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

Issue 1280543005: Refactor LayoutInline::addOutlineRects to avoid tricky logic to avoid dups (Closed)

Created:
5 years, 4 months ago by Xianzhu
Modified:
5 years, 4 months ago
Reviewers:
chrishtr, pdr.
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

Refactor LayoutInline::addOutlineRects to avoid tricky logic to avoid dups Previously LayoutInline::addOutlineRects() checks if the incoming rects vector is empty to determine if it should add outline rects for line boxes, to avoid duplicated outline rects for line boxes if the ancestor has already added the line boxes. The check is implicit and fragile. Separate LayoutInline::addOutlineRectsForChildrenAndContinuations() to make the intent explicit. Also separate LayoutInline::addOutlineForContinuations() for use by https://codereview.chromium.org/1278543002/ BUG=506669 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=200274

Patch Set 1 #

Total comments: 7

Patch Set 2 : Change comments about calling addOutlineRectsForChildrenAndContinuations #

Patch Set 3 : Change comments about calling addOutlineRectsForChildrenAndContinuations #

Total comments: 2

Patch Set 4 : Rephrase comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -14 lines) Patch
M Source/core/layout/LayoutBlock.cpp View 1 chunk +2 lines, -6 lines 0 comments Download
M Source/core/layout/LayoutBoxModelObject.cpp View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M Source/core/layout/LayoutInline.h View 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/layout/LayoutInline.cpp View 1 chunk +10 lines, -8 lines 0 comments Download

Messages

Total messages: 23 (3 generated)
Xianzhu
5 years, 4 months ago (2015-08-07 16:23:58 UTC) #2
chrishtr
https://codereview.chromium.org/1280543005/diff/1/Source/core/layout/LayoutInline.cpp File Source/core/layout/LayoutInline.cpp (left): https://codereview.chromium.org/1280543005/diff/1/Source/core/layout/LayoutInline.cpp#oldcode1384 Source/core/layout/LayoutInline.cpp:1384: if (rects.isEmpty()) { I don't quite get yet why ...
5 years, 4 months ago (2015-08-07 17:08:40 UTC) #3
Xianzhu
https://codereview.chromium.org/1280543005/diff/1/Source/core/layout/LayoutInline.cpp File Source/core/layout/LayoutInline.cpp (left): https://codereview.chromium.org/1280543005/diff/1/Source/core/layout/LayoutInline.cpp#oldcode1384 Source/core/layout/LayoutInline.cpp:1384: if (rects.isEmpty()) { On 2015/08/07 17:08:40, chrishtr wrote: > ...
5 years, 4 months ago (2015-08-07 17:18:49 UTC) #4
chrishtr
On 2015/08/07 at 17:18:49, wangxianzhu wrote: > https://codereview.chromium.org/1280543005/diff/1/Source/core/layout/LayoutInline.cpp > File Source/core/layout/LayoutInline.cpp (left): > > https://codereview.chromium.org/1280543005/diff/1/Source/core/layout/LayoutInline.cpp#oldcode1384 ...
5 years, 4 months ago (2015-08-07 22:46:41 UTC) #5
chrishtr
5 years, 4 months ago (2015-08-07 22:46:43 UTC) #6
Xianzhu
On 2015/08/07 22:46:41, chrishtr wrote: > On 2015/08/07 at 17:18:49, wangxianzhu wrote: > > > ...
5 years, 4 months ago (2015-08-07 22:56:49 UTC) #7
chrishtr
On 2015/08/07 at 22:56:49, wangxianzhu wrote: > On 2015/08/07 22:46:41, chrishtr wrote: > > On ...
5 years, 4 months ago (2015-08-07 23:00:43 UTC) #8
Xianzhu
On 2015/08/07 23:00:43, chrishtr wrote: > On 2015/08/07 at 22:56:49, wangxianzhu wrote: > > On ...
5 years, 4 months ago (2015-08-07 23:12:04 UTC) #9
chrishtr
https://codereview.chromium.org/1280543005/diff/1/Source/core/layout/LayoutBlock.cpp File Source/core/layout/LayoutBlock.cpp (right): https://codereview.chromium.org/1280543005/diff/1/Source/core/layout/LayoutBlock.cpp#newcode2600 Source/core/layout/LayoutBlock.cpp:2600: if (inlineElementContinuation) Can this code just be deleted, and ...
5 years, 4 months ago (2015-08-07 23:35:31 UTC) #10
Xianzhu
https://codereview.chromium.org/1280543005/diff/1/Source/core/layout/LayoutBlock.cpp File Source/core/layout/LayoutBlock.cpp (right): https://codereview.chromium.org/1280543005/diff/1/Source/core/layout/LayoutBlock.cpp#newcode2600 Source/core/layout/LayoutBlock.cpp:2600: if (inlineElementContinuation) On 2015/08/07 23:35:31, chrishtr wrote: > Can ...
5 years, 4 months ago (2015-08-07 23:56:23 UTC) #11
chrishtr
https://codereview.chromium.org/1280543005/diff/1/Source/core/layout/LayoutBlock.cpp File Source/core/layout/LayoutBlock.cpp (right): https://codereview.chromium.org/1280543005/diff/1/Source/core/layout/LayoutBlock.cpp#newcode2600 Source/core/layout/LayoutBlock.cpp:2600: if (inlineElementContinuation) On 2015/08/07 at 23:56:23, Xianzhu wrote: > ...
5 years, 4 months ago (2015-08-08 02:42:00 UTC) #12
Xianzhu
On 2015/08/08 02:42:00, chrishtr wrote: > https://codereview.chromium.org/1280543005/diff/1/Source/core/layout/LayoutBlock.cpp > File Source/core/layout/LayoutBlock.cpp (right): > > https://codereview.chromium.org/1280543005/diff/1/Source/core/layout/LayoutBlock.cpp#newcode2600 > ...
5 years, 4 months ago (2015-08-10 16:04:30 UTC) #13
Xianzhu
On 2015/08/10 16:04:30, Xianzhu wrote: > On 2015/08/08 02:42:00, chrishtr wrote: > > > https://codereview.chromium.org/1280543005/diff/1/Source/core/layout/LayoutBlock.cpp ...
5 years, 4 months ago (2015-08-10 17:01:11 UTC) #14
chrishtr
https://codereview.chromium.org/1280543005/diff/1/Source/core/layout/LayoutBoxModelObject.cpp File Source/core/layout/LayoutBoxModelObject.cpp (right): https://codereview.chromium.org/1280543005/diff/1/Source/core/layout/LayoutBoxModelObject.cpp#newcode418 Source/core/layout/LayoutBoxModelObject.cpp:418: // Some ancestor of the LayoutInline has already added ...
5 years, 4 months ago (2015-08-10 20:14:48 UTC) #15
Xianzhu
https://codereview.chromium.org/1280543005/diff/1/Source/core/layout/LayoutBoxModelObject.cpp File Source/core/layout/LayoutBoxModelObject.cpp (right): https://codereview.chromium.org/1280543005/diff/1/Source/core/layout/LayoutBoxModelObject.cpp#newcode418 Source/core/layout/LayoutBoxModelObject.cpp:418: // Some ancestor of the LayoutInline has already added ...
5 years, 4 months ago (2015-08-10 21:52:32 UTC) #16
chrishtr
lgtm https://codereview.chromium.org/1280543005/diff/40001/Source/core/layout/LayoutBoxModelObject.cpp File Source/core/layout/LayoutBoxModelObject.cpp (right): https://codereview.chromium.org/1280543005/diff/40001/Source/core/layout/LayoutBoxModelObject.cpp#newcode419 Source/core/layout/LayoutBoxModelObject.cpp:419: // line boxes, so descendants don't need to ...
5 years, 4 months ago (2015-08-10 21:54:10 UTC) #17
Xianzhu
https://codereview.chromium.org/1280543005/diff/40001/Source/core/layout/LayoutBoxModelObject.cpp File Source/core/layout/LayoutBoxModelObject.cpp (right): https://codereview.chromium.org/1280543005/diff/40001/Source/core/layout/LayoutBoxModelObject.cpp#newcode419 Source/core/layout/LayoutBoxModelObject.cpp:419: // line boxes, so descendants don't need to add ...
5 years, 4 months ago (2015-08-10 21:57:14 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1280543005/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1280543005/60001
5 years, 4 months ago (2015-08-10 21:57:40 UTC) #21
chrishtr
lgtm
5 years, 4 months ago (2015-08-10 22:01:10 UTC) #22
commit-bot: I haz the power
5 years, 4 months ago (2015-08-10 23:03:24 UTC) #23
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=200274

Powered by Google App Engine
This is Rietveld 408576698