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

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

Issue 1480233007: Don't update the logical width when a scrollbar gets added (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2564
Patch Set: Created 5 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
« 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..787e482c7748bf02e6f52753bd3a675e4571a292 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
@@ -887,17 +887,11 @@ void LayoutBlock::updateScrollInfoAfterLayout()
}
if (gDelayUpdateScrollInfo) {
- LayoutUnit logicalWidthExcludingScrollbar = logicalWidth() - scrollbarLogicalWidth();
- LayoutUnit logicalHeightExcludingScrollbar = logicalHeight() - scrollbarLogicalHeight();
ScrollInfo scrollInfo;
layer()->scrollableArea()->updateScrollDimensions(scrollInfo.scrollOffset, scrollInfo.autoHorizontalScrollBarChanged, scrollInfo.autoVerticalScrollBarChanged);
DelayedUpdateScrollInfoMap::AddResult scrollInfoIterator = gDelayedUpdateScrollInfoMap->add(this, scrollInfo);
if (!scrollInfoIterator.isNewEntry)
scrollInfoIterator.storedValue->value.merge(scrollInfo);
- if (scrollInfo.autoHorizontalScrollBarChanged)
- setLogicalHeight(logicalHeightExcludingScrollbar + scrollbarLogicalHeight());
- 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