diff options
Diffstat (limited to 'Source/WebCore/dom/InlineStyleSheetOwner.h')
-rw-r--r-- | Source/WebCore/dom/InlineStyleSheetOwner.h | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/Source/WebCore/dom/InlineStyleSheetOwner.h b/Source/WebCore/dom/InlineStyleSheetOwner.h index 6f422c90d..06fae80d1 100644 --- a/Source/WebCore/dom/InlineStyleSheetOwner.h +++ b/Source/WebCore/dom/InlineStyleSheetOwner.h @@ -19,8 +19,7 @@ * */ -#ifndef InlineStyleSheetOwner_h -#define InlineStyleSheetOwner_h +#pragma once #include "CSSStyleSheet.h" #include <wtf/text/TextPosition.h> @@ -41,15 +40,19 @@ public: CSSStyleSheet* sheet() const { return m_sheet.get(); } bool isLoading() const; - bool sheetLoaded(Document&); - void startLoadingDynamicSheet(Document&); + bool sheetLoaded(Element&); + void startLoadingDynamicSheet(Element&); - void insertedIntoDocument(Document&, Element&); - void removedFromDocument(Document&, Element&); - void clearDocumentData(Document&, Element&); + void insertedIntoDocument(Element&); + void removedFromDocument(Element&); + void clearDocumentData(Element&); void childrenChanged(Element&); void finishParsingChildren(Element&); + Style::Scope* styleScope() { return m_styleScope; } + + static void clearCache(); + private: void createSheet(Element&, const String& text); void createSheetFromTextContents(Element&); @@ -57,12 +60,11 @@ private: bool m_isParsingChildren; bool m_loading; - WTF::OrdinalNumber m_startLineNumber; + WTF::TextPosition m_startTextPosition; AtomicString m_contentType; AtomicString m_media; RefPtr<CSSStyleSheet> m_sheet; + Style::Scope* m_styleScope { nullptr }; }; -} - -#endif +} // namespace WebCore |