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

Unified Diff: third_party/WebKit/Source/core/frame/LocalFrame.cpp

Issue 2557533005: Collect active stylesheets and and apply asynchronously. (Closed)
Patch Set: [Mac] Missing style recalc for device scale change Created 4 years 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/frame/LocalFrame.cpp
diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.cpp b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
index fce55762b41d60740ebe853b59143a1b8a45b3a7..35e3a704187450276f3df95c0469eb2e1ed6749d 100644
--- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
@@ -695,6 +695,9 @@ void LocalFrame::setPageAndTextZoomFactors(float pageZoomFactor,
void LocalFrame::deviceScaleFactorChanged() {
document()->mediaQueryAffectingValueChanged();
+ document()->setNeedsStyleRecalc(
esprehn 2016/12/09 01:36:21 Did this cause a full document recalc before? I di
rune 2016/12/09 08:55:50 Yes, mediaQueryAffectingValueChanged called resolv
+ SubtreeStyleChange,
+ StyleChangeReasonForTracing::create(StyleChangeReason::Zoom));
for (Frame* child = tree().firstChild(); child;
child = child->tree().nextSibling()) {
if (child->isLocalFrame())

Powered by Google App Engine
This is Rietveld 408576698