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

Issue 1516003003: Merge LayoutInline::mapLocalToAncestor() into LayoutObject. (Closed)

Created:
5 years ago by mstensho (USE GERRIT)
Modified:
4 years, 10 months ago
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Merge LayoutInline::mapLocalToAncestor() into LayoutObject. Avoids code duplication and maybe also makes the LayoutObject implementation more correct. It was typically only LayoutText objects that used the LayoutObject implementation of mapLocalToAncestor() prior to this change. Some extra care was needed when calling style() members, since text nodes just copy their parent's computed style instead of just inheriting the inheritable ones. Apart from that, it's basically just about replacing the LayoutObject implementation with that of LayoutInline. BUG=568492 R=leviw@chromium.org,ojan@chromium.org Committed: https://crrev.com/f54369c41aab496af8ed8133395d40625266a839 Cr-Commit-Position: refs/heads/master@{#375269}

Patch Set 1 #

Patch Set 2 : rebase master #

Patch Set 3 : rebase master #

Patch Set 4 : rebase master #

Total comments: 2

Patch Set 5 : review constness + bonus constness #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -58 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutInline.h View 1 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutInline.cpp View 1 2 1 chunk +0 lines, -48 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.cpp View 1 2 3 4 1 chunk +32 lines, -8 lines 0 comments Download

Messages

Total messages: 19 (6 generated)
mstensho (USE GERRIT)
This is a reboot of https://codereview.chromium.org/1181953005/ , which I closed, because I had more important ...
5 years ago (2015-12-10 21:22:01 UTC) #1
mstensho (USE GERRIT)
4 years, 11 months ago (2016-01-04 11:31:09 UTC) #3
ojan
Levi, I think you're the best reviewer for this?
4 years, 11 months ago (2016-01-22 01:54:17 UTC) #4
mstensho (USE GERRIT)
On 2016/01/22 01:54:17, ojan wrote: > Levi, I think you're the best reviewer for this? ...
4 years, 10 months ago (2016-01-29 08:07:17 UTC) #5
leviw_travelin_and_unemployed
Sorry, I've been a bit behind and was hoping Ojan would lend his reviewing hand. ...
4 years, 10 months ago (2016-01-29 21:58:33 UTC) #6
mstensho (USE GERRIT)
On 2016/01/29 21:58:33, leviw wrote: > Can I hang a carrot in front of this ...
4 years, 10 months ago (2016-02-11 12:18:29 UTC) #8
mstensho (USE GERRIT)
On 2016/02/11 12:18:29, mstensho wrote: > On 2016/01/29 21:58:33, leviw wrote: > > Can I ...
4 years, 10 months ago (2016-02-12 13:08:53 UTC) #9
eae
LGTM https://codereview.chromium.org/1516003003/diff/60001/third_party/WebKit/Source/core/layout/LayoutObject.cpp File third_party/WebKit/Source/core/layout/LayoutObject.cpp (right): https://codereview.chromium.org/1516003003/diff/60001/third_party/WebKit/Source/core/layout/LayoutObject.cpp#newcode2209 third_party/WebKit/Source/core/layout/LayoutObject.cpp:2209: if (PaintLayer* layer = style()->hasInFlowPosition() && hasLayer() ? ...
4 years, 10 months ago (2016-02-12 17:31:55 UTC) #10
leviw_travelin_and_unemployed
LGTM 2 when eae's nit is addressed. Thanks for jumping through the hoops, Morten!
4 years, 10 months ago (2016-02-12 19:20:12 UTC) #11
mstensho (USE GERRIT)
https://codereview.chromium.org/1516003003/diff/60001/third_party/WebKit/Source/core/layout/LayoutObject.cpp File third_party/WebKit/Source/core/layout/LayoutObject.cpp (right): https://codereview.chromium.org/1516003003/diff/60001/third_party/WebKit/Source/core/layout/LayoutObject.cpp#newcode2209 third_party/WebKit/Source/core/layout/LayoutObject.cpp:2209: if (PaintLayer* layer = style()->hasInFlowPosition() && hasLayer() ? toLayoutBoxModelObject(this)->layer() ...
4 years, 10 months ago (2016-02-12 20:12:49 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1516003003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1516003003/80001
4 years, 10 months ago (2016-02-12 20:13:21 UTC) #15
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 10 months ago (2016-02-12 22:05:10 UTC) #17
commit-bot: I haz the power
4 years, 10 months ago (2016-02-16 22:45:29 UTC) #19
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/f54369c41aab496af8ed8133395d40625266a839
Cr-Commit-Position: refs/heads/master@{#375269}

Powered by Google App Engine
This is Rietveld 408576698