From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/WebCore/dom/InlineStyleSheetOwner.h | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'Source/WebCore/dom/InlineStyleSheetOwner.h') 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 @@ -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 m_sheet; + Style::Scope* m_styleScope { nullptr }; }; -} - -#endif +} // namespace WebCore -- cgit v1.2.1