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

Issue 1183003003: Move overflow in InlineTextBox::adjustPosition() if it has glyph overflows (Closed)

Created:
5 years, 6 months ago by Xianzhu
Modified:
5 years, 6 months ago
CC:
blink-reviews, blink-reviews-rendering, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Move overflow in InlineTextBox::adjustPosition() if it has glyph overflows If the InlineTextBox has glyph overflows, without overflow adjustment, the overflow will be inconsistent with the changed position of the inline box. Now also move the overflow. BTW, renamed adjustPosition() to move() to make the meaning clearer. BUG=499690 TEST=fast/repaint/line-flow-with-floats-2.html --enable-slimming-paint Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197290

Patch Set 1 #

Patch Set 2 : NeedsRebaseline for fast/repaint/line-flow-with-floats-2.html #

Patch Set 3 : Vertical dy,dx #

Patch Set 4 : Rename #

Patch Set 5 : add comments #

Total comments: 9

Patch Set 6 : Address leviw@'s comments #

Patch Set 7 : Rebase #

Total comments: 4

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -51 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/layout/LayoutBlockFlowLine.cpp View 1 2 3 4 5 6 7 6 chunks +6 lines, -10 lines 0 comments Download
M Source/core/layout/LayoutListItem.cpp View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/layout/line/InlineBox.h View 1 2 3 4 5 6 7 1 chunk +7 lines, -22 lines 0 comments Download
M Source/core/layout/line/InlineBox.cpp View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/layout/line/InlineFlowBox.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/core/layout/line/InlineFlowBox.cpp View 1 2 3 2 chunks +5 lines, -5 lines 0 comments Download
M Source/core/layout/line/InlineTextBox.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/layout/line/InlineTextBox.cpp View 1 2 3 4 5 1 chunk +12 lines, -1 line 0 comments Download
M Source/core/layout/line/RootInlineBox.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/core/layout/line/RootInlineBox.cpp View 1 2 3 2 chunks +5 lines, -5 lines 0 comments Download
M Source/core/layout/svg/line/SVGRootInlineBox.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 20 (3 generated)
Xianzhu
5 years, 6 months ago (2015-06-15 23:15:57 UTC) #2
chrishtr
What is adjustPosition for exactly? Could you add a comment to its definition in InlineBox.h?
5 years, 6 months ago (2015-06-16 14:50:17 UTC) #3
Xianzhu
On 2015/06/16 14:50:17, chrishtr wrote: > What is adjustPosition for exactly? Could you add a ...
5 years, 6 months ago (2015-06-16 17:50:57 UTC) #4
leviw_travelin_and_unemployed
On 2015/06/16 at 17:50:57, wangxianzhu wrote: > On 2015/06/16 14:50:17, chrishtr wrote: > > What ...
5 years, 6 months ago (2015-06-16 17:59:21 UTC) #5
chrishtr
On 2015/06/16 at 17:59:21, leviw wrote: > On 2015/06/16 at 17:50:57, wangxianzhu wrote: > > ...
5 years, 6 months ago (2015-06-16 18:49:52 UTC) #6
Xianzhu
On 2015/06/16 18:49:52, chrishtr wrote: > On 2015/06/16 at 17:59:21, leviw wrote: > > On ...
5 years, 6 months ago (2015-06-16 18:55:29 UTC) #7
Xianzhu
Patch Set 4 contains the following renaming: adjustPosition(LayoutUnit dx, LayoutUnit dy) => move(LayoutSize) adjustLogicalPosition => ...
5 years, 6 months ago (2015-06-16 18:58:15 UTC) #8
Xianzhu
On 2015/06/16 18:49:52, chrishtr wrote: > On 2015/06/16 at 17:59:21, leviw wrote: > > On ...
5 years, 6 months ago (2015-06-16 19:16:20 UTC) #9
leviw_travelin_and_unemployed
https://codereview.chromium.org/1183003003/diff/80001/Source/core/layout/LayoutBlockFlowLine.cpp File Source/core/layout/LayoutBlockFlowLine.cpp (right): https://codereview.chromium.org/1183003003/diff/80001/Source/core/layout/LayoutBlockFlowLine.cpp#newcode1924 Source/core/layout/LayoutBlockFlowLine.cpp:1924: curr->moveInLogicalDirection(LayoutSize(logicalLeft - curr->logicalLeft(), 0)); Nit: s/0/LayoutUnit()/ https://codereview.chromium.org/1183003003/diff/80001/Source/core/layout/LayoutBlockFlowLine.cpp#newcode1994 Source/core/layout/LayoutBlockFlowLine.cpp:1994: curr->moveInLogicalDirection(LayoutSize(logicalLeft, ...
5 years, 6 months ago (2015-06-16 20:09:17 UTC) #11
Xianzhu
https://codereview.chromium.org/1183003003/diff/80001/Source/core/layout/LayoutBlockFlowLine.cpp File Source/core/layout/LayoutBlockFlowLine.cpp (right): https://codereview.chromium.org/1183003003/diff/80001/Source/core/layout/LayoutBlockFlowLine.cpp#newcode1924 Source/core/layout/LayoutBlockFlowLine.cpp:1924: curr->moveInLogicalDirection(LayoutSize(logicalLeft - curr->logicalLeft(), 0)); On 2015/06/16 20:09:17, leviw wrote: ...
5 years, 6 months ago (2015-06-16 20:43:23 UTC) #12
Xianzhu
Updated descriptions. Ptal.
5 years, 6 months ago (2015-06-17 15:43:14 UTC) #13
chrishtr
I'll defer to Levi for final call on the names of these layout methods.
5 years, 6 months ago (2015-06-17 16:36:07 UTC) #14
leviw_travelin_and_unemployed
https://codereview.chromium.org/1183003003/diff/120001/Source/core/layout/line/InlineBox.h File Source/core/layout/line/InlineBox.h (right): https://codereview.chromium.org/1183003003/diff/120001/Source/core/layout/line/InlineBox.h#newcode81 Source/core/layout/line/InlineBox.h:81: virtual void move(const LayoutSize& delta); It'd be nice if ...
5 years, 6 months ago (2015-06-17 18:35:12 UTC) #15
Xianzhu
https://codereview.chromium.org/1183003003/diff/120001/Source/core/layout/line/InlineBox.h File Source/core/layout/line/InlineBox.h (right): https://codereview.chromium.org/1183003003/diff/120001/Source/core/layout/line/InlineBox.h#newcode81 Source/core/layout/line/InlineBox.h:81: virtual void move(const LayoutSize& delta); On 2015/06/17 18:35:11, leviw ...
5 years, 6 months ago (2015-06-17 18:51:10 UTC) #16
leviw_travelin_and_unemployed
LGTM.
5 years, 6 months ago (2015-06-17 20:00:10 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1183003003/140001
5 years, 6 months ago (2015-06-17 21:03:10 UTC) #19
commit-bot: I haz the power
5 years, 6 months ago (2015-06-17 22:42:20 UTC) #20
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197290

Powered by Google App Engine
This is Rietveld 408576698