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

Unified Diff: sky/engine/core/frame/FrameView.cpp

Issue 848483003: Simplify media query handling for stylesheets. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 | « sky/engine/core/dom/StyleEngine.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/frame/FrameView.cpp
diff --git a/sky/engine/core/frame/FrameView.cpp b/sky/engine/core/frame/FrameView.cpp
index 888b0156d32ce3dfd4e02444245c79bb81c78064..3cd0717edd71d387f2f093465d7aff74bcbd05c4 100644
--- a/sky/engine/core/frame/FrameView.cpp
+++ b/sky/engine/core/frame/FrameView.cpp
@@ -222,15 +222,13 @@ void FrameView::performPreLayoutTasks()
}
Document* document = m_frame->document();
- if (wasViewportResized())
+ if (wasViewportResized()) {
document->notifyResizeForViewportUnits();
+ document->mediaQueryAffectingValueChanged();
- // Viewport-dependent media queries may cause us to need completely different style information.
- if (document->styleResolver().mediaQueryAffectedByViewportChange()) {
+ // TODO(esprehn): This is way too much work, it rebuilds the entire sheet list
+ // and does a full document recalc.
document->styleResolverChanged();
- document->mediaQueryAffectingValueChanged();
- } else {
- document->evaluateMediaQueryList();
}
document->updateRenderTreeIfNeeded();
« no previous file with comments | « sky/engine/core/dom/StyleEngine.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698