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

Unified Diff: third_party/WebKit/Source/core/dom/Element.cpp

Issue 2451893003: Move Document global rule data to CSSGlobalRuleSet. (Closed)
Patch Set: Rebased. Created 4 years, 2 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
Index: third_party/WebKit/Source/core/dom/Element.cpp
diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp
index f3ae79885c5abb4b72f02fbffaf47f8b3a4c630e..29813cdd9d1ffb3e0a18cf398789d7899df4fb85 100644
--- a/third_party/WebKit/Source/core/dom/Element.cpp
+++ b/third_party/WebKit/Source/core/dom/Element.cpp
@@ -3361,7 +3361,7 @@ void Element::setFloatingPointAttribute(const QualifiedName& attributeName,
void Element::setContainsFullScreenElement(bool flag) {
setElementFlag(ContainsFullScreenElement, flag);
- document().styleEngine().ensureFullscreenUAStyle();
+ document().styleEngine().ensureUAStyleForFullscreen();
pseudoStateChanged(CSSSelector::PseudoFullScreenAncestor);
}
@@ -3991,8 +3991,7 @@ bool Element::supportsStyleSharing() const {
if (isSVGElement() && toSVGElement(this)->animatedSMILStyleProperties())
return false;
// Ids stop style sharing if they show up in the stylesheets.
- if (hasID() &&
- document().ensureStyleResolver().hasRulesForId(idForStyleResolution()))
+ if (hasID() && document().styleEngine().hasRulesForId(idForStyleResolution()))
return false;
// :active and :hover elements always make a chain towards the document node
// and no siblings or cousins will have the same state. There's also only one
« no previous file with comments | « third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp ('k') | third_party/WebKit/Source/core/dom/Fullscreen.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698