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

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

Issue 2400863005: Reformat comments in core/layout up until LayoutTableRow (Closed)
Patch Set: Created 4 years, 2 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: third_party/WebKit/Source/core/layout/LayoutBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
index 3ea84066f96f7fdc9bbe7b30a454d6fc1bc15a1b..b4b3900d543d31771f86de8a4a9423348cbb3a8f 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
@@ -271,8 +271,9 @@ void LayoutBox::styleDidChange(StyleDifference diff,
oldStyle->effectiveZoom() != newStyle.effectiveZoom()) {
PaintLayerScrollableArea* scrollableArea = this->getScrollableArea();
ASSERT(scrollableArea);
- // We use scrollOffset() rather than scrollPosition(), because scrollOffset is the distance
- // from the beginning of flow for the box, which is the dimension we want to preserve.
+ // We use scrollOffset() rather than scrollPosition(), because scrollOffset
+ // is the distance from the beginning of flow for the box, which is the
+ // dimension we want to preserve.
ScrollOffset oldOffset = scrollableArea->scrollOffset();
if (oldOffset.width() || oldOffset.height()) {
ScrollOffset newOffset = oldOffset.scaledBy(newStyle.effectiveZoom() /

Powered by Google App Engine
This is Rietveld 408576698