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

Issue 2536453002: Rename some functions about layout locations (Closed)

Created:
4 years ago by Xianzhu
Modified:
4 years ago
Reviewers:
chrishtr, szager1, wkorman, eae
CC:
blink-reviews, blink-reviews-layout_chromium.org, blink-reviews-paint_chromium.org, chromium-reviews, dshwang, krit, eae+blinkwatch, f(malita), fs, gyuyoung2, jchaffraix+rendering, kouhei+svg_chromium.org, leviw+renderwatch, pdr+svgwatchlist_chromium.org, pdr+renderingwatchlist_chromium.org, rwlbuis, Stephen Chennney, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Rename some functions about layout locations After the renaming, we'll have the following terms: - physicalLocation: physical location of a box or an inline in the containing block. (0,0) is the top-left corner of the containing block. Renamed LayoutBox::topLeftLocation() and InlineBox::locationIncludingFlipping() to physicalLocation(). - location: location in "physical coordinates with flipped blocks direction". (0,0) is the top-left corner of the containing block for writing-mode in normal blocks direction (horizontal-tb and vertical-lr), and is the top-right corner of the containing block for writing-mode in flipped block direction (vertical-rl). Renamed InlineBox::topLeft() to location() to keep consistence with LayoutBox. Removed InlineBox::top(), left(), right(), bottom(). BTW removed LayoutInline::logicalPositionToPhysicalPoint() which was not properly named because the input is not "logical" position but "physical position in flipped blocks direction". Also it was redundant. Replaced the callsites with flipForWritingMode(). CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 BUG= Committed: https://crrev.com/6085e846342287cc5a8531abe99c838687a10620 Cr-Commit-Position: refs/heads/master@{#434900}

Patch Set 1 #

Patch Set 2 : - #

Patch Set 3 : - #

Patch Set 4 : - #

Total comments: 4

Patch Set 5 : Add test #

Total comments: 14

Patch Set 6 : Update comments #

Patch Set 7 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+149 lines, -202 lines) Patch
M third_party/WebKit/Source/core/BUILD.gn View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
D third_party/WebKit/Source/core/layout/InlineTextBoxTest.cpp View 1 2 3 4 1 chunk +0 lines, -84 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp View 1 2 2 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.h View 1 2 3 4 5 2 chunks +7 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.cpp View 5 chunks +10 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBoxTest.cpp View 3 chunks +9 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutInline.cpp View 1 2 3 4 5 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutText.cpp View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/MultiColumnFragmentainerGroup.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/line/DEPS View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/line/EllipsisBox.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/line/InlineBox.h View 1 2 3 4 5 8 chunks +23 lines, -25 lines 0 comments Download
M third_party/WebKit/Source/core/layout/line/InlineBox.cpp View 1 2 3 4 3 chunks +10 lines, -29 lines 0 comments Download
A third_party/WebKit/Source/core/layout/line/InlineBoxTest.cpp View 1 2 3 4 1 chunk +46 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/line/InlineFlowBox.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/line/InlineFlowBox.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp View 1 chunk +1 line, -1 line 0 comments Download
A + third_party/WebKit/Source/core/layout/line/InlineTextBoxTest.cpp View 1 2 3 4 0 chunks +-1 lines, --1 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGText.cpp View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/line/SVGInlineTextBox.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/svg/line/SVGRootInlineBox.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/EllipsisBoxPainter.cpp View 2 chunks +3 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayer.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 47 (33 generated)
Xianzhu
4 years ago (2016-11-27 18:02:02 UTC) #16
chrishtr
A nice cleanup. Also adding eae@ because this renames some core methods in layout positioning. ...
4 years ago (2016-11-28 15:13:29 UTC) #21
Xianzhu
https://codereview.chromium.org/2536453002/diff/60001/third_party/WebKit/Source/core/layout/line/InlineBox.cpp File third_party/WebKit/Source/core/layout/line/InlineBox.cpp (left): https://codereview.chromium.org/2536453002/diff/60001/third_party/WebKit/Source/core/layout/line/InlineBox.cpp#oldcode351 third_party/WebKit/Source/core/layout/line/InlineBox.cpp:351: return LayoutPoint(point.x(), On 2016/11/28 15:13:29, chrishtr wrote: > This ...
4 years ago (2016-11-28 18:42:36 UTC) #22
chrishtr
lgtm Please wait for someone from layout to approve also. https://codereview.chromium.org/2536453002/diff/80001/third_party/WebKit/Source/core/layout/line/InlineBoxTest.cpp File third_party/WebKit/Source/core/layout/line/InlineBoxTest.cpp (right): https://codereview.chromium.org/2536453002/diff/80001/third_party/WebKit/Source/core/layout/line/InlineBoxTest.cpp#newcode32 ...
4 years ago (2016-11-28 19:16:01 UTC) #23
Xianzhu
https://codereview.chromium.org/2536453002/diff/80001/third_party/WebKit/Source/core/layout/line/InlineBoxTest.cpp File third_party/WebKit/Source/core/layout/line/InlineBoxTest.cpp (right): https://codereview.chromium.org/2536453002/diff/80001/third_party/WebKit/Source/core/layout/line/InlineBoxTest.cpp#newcode32 third_party/WebKit/Source/core/layout/line/InlineBoxTest.cpp:32: EXPECT_EQ(LayoutRect(14, 11, 44, 33), rect); On 2016/11/28 19:16:01, chrishtr ...
4 years ago (2016-11-28 20:10:07 UTC) #24
chrishtr
On 2016/11/28 at 20:10:07, wangxianzhu wrote: > https://codereview.chromium.org/2536453002/diff/80001/third_party/WebKit/Source/core/layout/line/InlineBoxTest.cpp > File third_party/WebKit/Source/core/layout/line/InlineBoxTest.cpp (right): > > https://codereview.chromium.org/2536453002/diff/80001/third_party/WebKit/Source/core/layout/line/InlineBoxTest.cpp#newcode32 ...
4 years ago (2016-11-28 21:35:50 UTC) #25
szager1
Most lg, but needs a few more breadcrumbs for the next person... https://codereview.chromium.org/2536453002/diff/80001/third_party/WebKit/Source/core/layout/line/InlineBox.h File third_party/WebKit/Source/core/layout/line/InlineBox.h ...
4 years ago (2016-11-28 23:03:09 UTC) #26
wkorman
lgtm This does look like a nice cleanup. It's always so hard to wrap my ...
4 years ago (2016-11-29 00:02:13 UTC) #27
wkorman
Just wanted to note for other readers -- I spent a long time reading this ...
4 years ago (2016-11-29 00:17:00 UTC) #28
Xianzhu
https://codereview.chromium.org/2536453002/diff/80001/third_party/WebKit/Source/core/layout/line/InlineBox.h File third_party/WebKit/Source/core/layout/line/InlineBox.h (right): https://codereview.chromium.org/2536453002/diff/80001/third_party/WebKit/Source/core/layout/line/InlineBox.h#newcode227 third_party/WebKit/Source/core/layout/line/InlineBox.h:227: // coordinates with flipped blocks direction". On 2016/11/29 00:02:13, ...
4 years ago (2016-11-29 01:44:18 UTC) #31
szager1
lgtm
4 years ago (2016-11-29 02:07:03 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2536453002/120001
4 years ago (2016-11-29 04:14:34 UTC) #43
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years ago (2016-11-29 05:14:12 UTC) #45
commit-bot: I haz the power
4 years ago (2016-11-29 05:19:57 UTC) #47
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/6085e846342287cc5a8531abe99c838687a10620
Cr-Commit-Position: refs/heads/master@{#434900}

Powered by Google App Engine
This is Rietveld 408576698