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

Unified Diff: third_party/WebKit/Source/core/dom/StyleEngine.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
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleEngine.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/StyleEngine.cpp
diff --git a/third_party/WebKit/Source/core/dom/StyleEngine.cpp b/third_party/WebKit/Source/core/dom/StyleEngine.cpp
index 62bc9c87459e6e449bcdef656b3aefe92adfbe1b..1793093c8983b98efac37ef632db1c41e6f5797c 100644
--- a/third_party/WebKit/Source/core/dom/StyleEngine.cpp
+++ b/third_party/WebKit/Source/core/dom/StyleEngine.cpp
@@ -28,6 +28,7 @@
#include "core/dom/StyleEngine.h"
#include "core/HTMLNames.h"
+#include "core/css/CSSDefaultStyleSheets.h"
#include "core/css/CSSFontSelector.h"
#include "core/css/CSSStyleSheet.h"
#include "core/css/FontFaceCache.h"
@@ -755,6 +756,15 @@ void StyleEngine::setHttpDefaultStyle(const String& content)
resolverChanged(FullStyleUpdate);
}
+void StyleEngine::ensureFullscreenUAStyle()
+{
+ CSSDefaultStyleSheets::instance().ensureDefaultStyleSheetForFullscreen();
+ if (!m_resolver)
+ return;
+ if (!m_resolver->hasFullscreenUAStyle())
+ m_resolver->resetRuleFeatures();
+}
+
DEFINE_TRACE(StyleEngine)
{
#if ENABLE(OILPAN)
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleEngine.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698