Chromium Code Reviews

Unified Diff: Source/core/page/Page.cpp

Issue 804873003: Clear matched properties cache for theme color changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « Source/core/page/Page.h ('k') | Source/core/rendering/RenderTheme.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/Page.cpp
diff --git a/Source/core/page/Page.cpp b/Source/core/page/Page.cpp
index 2426b97f479de9a2d177db907aa8c9dd0f87db9f..585dce1b3950b02d3ff1400d19f9d11ff234b2ae 100644
--- a/Source/core/page/Page.cpp
+++ b/Source/core/page/Page.cpp
@@ -229,12 +229,12 @@ void Page::setOpenedByDOM()
m_openedByDOM = true;
}
-void Page::scheduleForcedStyleRecalcForAllPages()
+void Page::platformColorsChanged()
{
for (const Page* page : allPages())
for (Frame* frame = page->mainFrame(); frame; frame = frame->tree().traverseNext()) {
if (frame->isLocalFrame())
- toLocalFrame(frame)->document()->setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTracing::create(StyleChangeReason::PlatformColorChange));
+ toLocalFrame(frame)->document()->platformColorsChanged();
}
}
« no previous file with comments | « Source/core/page/Page.h ('k') | Source/core/rendering/RenderTheme.cpp » ('j') | no next file with comments »

Powered by Google App Engine