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

Unified Diff: third_party/WebKit/Source/web/WebViewImpl.cpp

Issue 1583913003: Introduce deviceDependentMediaQueries (similar to viewportDependent). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review fixes Created 4 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 | « third_party/WebKit/Source/web/DevToolsEmulator.cpp ('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/web/WebViewImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp
index 8222c42af9b5d445d1ad9018ad01c5aba5b363c4..fc4e911fddbe0a260f794548cdb7ed500d6ded23 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -1848,16 +1848,6 @@ void WebViewImpl::performResize()
if (!mainFrameImpl()->frameView()->needsLayout())
postLayoutResize(mainFrameImpl());
}
-
- // When device emulation is enabled, device size values may change - they are
- // usually set equal to the view size. These values are not considered viewport-dependent
- // (see MediaQueryExp::isViewportDependent), since they are only viewport-dependent in emulation mode,
- // and thus will not be invalidated in |FrameView::performPreLayoutTasks|.
- // Therefore we should force explicit media queries invalidation here.
- if (m_devToolsEmulator->resizeIsDeviceSizeChange()) {
- if (Document* document = mainFrameImpl()->frame()->document())
- document->mediaQueryAffectingValueChanged();
- }
}
void WebViewImpl::setTopControlsHeight(float height, bool topControlsShrinkLayoutSize)
« no previous file with comments | « third_party/WebKit/Source/web/DevToolsEmulator.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698