Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(147)

Unified Diff: third_party/WebKit/Source/core/css/StyleSheetContents.h

Issue 2474483002: [LazyParseCSS] Ensure UseCounting has parity with strict parsing (Closed)
Patch Set: s/!/!!/ Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/css/StyleSheetContents.h
diff --git a/third_party/WebKit/Source/core/css/StyleSheetContents.h b/third_party/WebKit/Source/core/css/StyleSheetContents.h
index 954dd098fa15e7ec84a2cc0dfdbe9d509e1c18cd..5fbb04ccc4776d0d7b4500b6de3e77a177c37e01 100644
--- a/third_party/WebKit/Source/core/css/StyleSheetContents.h
+++ b/third_party/WebKit/Source/core/css/StyleSheetContents.h
@@ -86,6 +86,10 @@ class CORE_EXPORT StyleSheetContents
Document* singleOwnerDocument() const;
bool hasSingleOwnerDocument() const { return m_hasSingleOwnerDocument; }
+ // Gets the first owner document in the list of registered clients, or nullptr
+ // if there are none.
+ Document* anyOwnerDocument() const;
+
const String& charset() const { return m_parserContext.charset(); }
bool loadCompleted() const;
@@ -187,6 +191,7 @@ class CORE_EXPORT StyleSheetContents
void notifyRemoveFontFaceRule(const StyleRuleFontFace*);
Document* clientSingleOwnerDocument() const;
+ Document* clientAnyOwnerDocument() const;
Member<StyleRuleImport> m_ownerRule;

Powered by Google App Engine
This is Rietveld 408576698