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

Unified Diff: third_party/WebKit/Source/core/css/CSSStyleSheet.cpp

Issue 2671173002: Change CSSParserContext to have a Document handle (vs UseCounter). (Closed)
Patch Set: fix todo style Created 3 years, 10 months 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
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSStyleSheet.h ('k') | third_party/WebKit/Source/core/css/FontFace.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/CSSStyleSheet.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSStyleSheet.cpp b/third_party/WebKit/Source/core/css/CSSStyleSheet.cpp
index c7ddcfa2f93aa39ffb5f0ac3a01d505b64fc4d62..22d89cc955a62693ca24005d59aeb651d33146fa 100644
--- a/third_party/WebKit/Source/core/css/CSSStyleSheet.cpp
+++ b/third_party/WebKit/Source/core/css/CSSStyleSheet.cpp
@@ -80,6 +80,14 @@ static bool isAcceptableCSSStyleSheetParent(const Node& parentNode) {
}
#endif
+// static
+const Document* CSSStyleSheet::singleOwnerDocument(
+ const CSSStyleSheet* styleSheet) {
+ if (styleSheet)
+ return StyleSheetContents::singleOwnerDocument(styleSheet->contents());
+ return nullptr;
+}
+
CSSStyleSheet* CSSStyleSheet::create(StyleSheetContents* sheet,
CSSImportRule* ownerRule) {
return new CSSStyleSheet(sheet, ownerRule);
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSStyleSheet.h ('k') | third_party/WebKit/Source/core/css/FontFace.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698