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

Unified Diff: Source/web/WebDevToolsAgentImpl.cpp

Issue 23819019: Refactor fixed layout mode (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: git rebase Created 7 years, 3 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
Index: Source/web/WebDevToolsAgentImpl.cpp
diff --git a/Source/web/WebDevToolsAgentImpl.cpp b/Source/web/WebDevToolsAgentImpl.cpp
index 3100784d640cb68e5955140628422d3cfd961715..f6f92c5e2d8bfe61a25dcf328f8f0943b5cf2f4e 100644
--- a/Source/web/WebDevToolsAgentImpl.cpp
+++ b/Source/web/WebDevToolsAgentImpl.cpp
@@ -332,8 +332,10 @@ private:
int overrideWidth = effectiveEmulatedSize.width + scrollbarDimensions.width;
int overrideHeight = effectiveEmulatedSize.height + scrollbarDimensions.height;
- if (IntSize(overrideWidth, overrideHeight) != frameView->size())
+ if (IntSize(overrideWidth, overrideHeight) != frameView->size()) {
frameView->resize(overrideWidth, overrideHeight);
+ frameView->setLayoutSize(IntSize(overrideWidth, overrideHeight));
+ }
Document* doc = frameView->frame().document();
doc->styleResolverChanged(RecalcStyleImmediately);

Powered by Google App Engine
This is Rietveld 408576698