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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBlock.cpp

Issue 1459743002: Don't update the logical width when a scrollbar gets added (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/LayoutTests/css3/flexbox/overflow-auto-resizes-correctly-expected.txt ('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/core/layout/LayoutBlock.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
index ba3abb1d3659862d6093f1c0ed478e8b6b7de214..7c513b92a0dae30daa3008661ca25c9351bc4f7a 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
@@ -887,7 +887,6 @@ void LayoutBlock::updateScrollInfoAfterLayout()
}
if (gDelayUpdateScrollInfo) {
- LayoutUnit logicalWidthExcludingScrollbar = logicalWidth() - scrollbarLogicalWidth();
LayoutUnit logicalHeightExcludingScrollbar = logicalHeight() - scrollbarLogicalHeight();
ScrollInfo scrollInfo;
layer()->scrollableArea()->updateScrollDimensions(scrollInfo.scrollOffset, scrollInfo.autoHorizontalScrollBarChanged, scrollInfo.autoVerticalScrollBarChanged);
@@ -896,8 +895,6 @@ void LayoutBlock::updateScrollInfoAfterLayout()
scrollInfoIterator.storedValue->value.merge(scrollInfo);
if (scrollInfo.autoHorizontalScrollBarChanged)
setLogicalHeight(logicalHeightExcludingScrollbar + scrollbarLogicalHeight());
skobes 2015/11/18 22:45:24 Is the setLogicalHeight call wrong for the same re
cbiesinger 2015/11/18 22:52:51 So, that is a very good question and I was wonderi
skobes 2015/11/18 23:01:55 Width and height are both outputs of layout, and i
- if (scrollInfo.autoVerticalScrollBarChanged)
- setLogicalWidth(logicalWidthExcludingScrollbar + scrollbarLogicalWidth());
} else {
layer()->scrollableArea()->updateAfterLayout();
}
« no previous file with comments | « third_party/WebKit/LayoutTests/css3/flexbox/overflow-auto-resizes-correctly-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698