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

Unified Diff: third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp

Issue 803133002: Use invalidation sets for fullscreen pseudos. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Load fullscreen.css on demand Created 4 years, 9 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/css/resolver/StyleResolver.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp b/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
index 73a048414e3fce350df7649fde7671a232ec9927..7f9662ccc27e54bcf396b1b622f36dcc9d9d2941 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
@@ -330,8 +330,10 @@ void StyleResolver::collectFeatures()
// in the current set of stylesheets. Style sharing code uses this information to reject
// sharing candidates.
CSSDefaultStyleSheets& defaultStyleSheets = CSSDefaultStyleSheets::instance();
- if (defaultStyleSheets.defaultStyle())
+ if (defaultStyleSheets.defaultStyle()) {
m_features.add(defaultStyleSheets.defaultStyle()->features());
+ m_hasFullscreenUAStyle = defaultStyleSheets.fullscreenStyleSheet();
+ }
if (document().isViewSource())
m_features.add(defaultStyleSheets.defaultViewSourceStyle()->features());
« no previous file with comments | « third_party/WebKit/Source/core/css/resolver/StyleResolver.h ('k') | third_party/WebKit/Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698