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

Issue 2454693003: adjustedPositionRelativeTo() couldn't find offsetParent. (Closed)

Created:
4 years, 1 month ago by Karl Øygard
Modified:
4 years, 1 month ago
CC:
chromium-reviews, szager+layoutwatch_chromium.org, zoltan1, blink-reviews-layout_chromium.org, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, blink-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

adjustedPositionRelativeTo() couldn't find offsetParent. LayoutBoxModelObject::adjustedPositionRelativeTo() could get confused by inline continuations, and could fail if offsetParent itself was a split continuation. If the child belongs to the second part of the continuation, we'll instead race to the root of the tree. By comparing with the node instead, we correctly identify the offsetParent and stop the search. BUG=638187 Committed: https://crrev.com/c3485960aedb34468b06c02f7d132501a26c0d2d Cr-Commit-Position: refs/heads/master@{#429541}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Update comment, since the problem described has been fixed. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -3 lines) Patch
A third_party/WebKit/LayoutTests/fast/inline/inline-offsetLeft-continuation.html View 1 chunk +14 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/inline/inline-offsetLeft-continuation-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp View 1 1 chunk +4 lines, -3 lines 0 comments Download

Messages

Total messages: 27 (16 generated)
Karl Øygard
ptal
4 years, 1 month ago (2016-10-31 22:17:02 UTC) #7
Gleb Lanbin
https://codereview.chromium.org/2454693003/diff/1/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp File third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp (right): https://codereview.chromium.org/2454693003/diff/1/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp#newcode1019 third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp:1019: current && current->node() != element; I'm not very familiar ...
4 years, 1 month ago (2016-10-31 22:29:53 UTC) #8
Karl Øygard
https://codereview.chromium.org/2454693003/diff/1/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp File third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp (right): https://codereview.chromium.org/2454693003/diff/1/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp#newcode1019 third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp:1019: current && current->node() != element; On 2016/10/31 22:29:53, Gleb ...
4 years, 1 month ago (2016-11-02 12:48:01 UTC) #9
Gleb Lanbin
lgtm
4 years, 1 month ago (2016-11-02 16:36:25 UTC) #14
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/2454693003/20001
4 years, 1 month ago (2016-11-03 09:32:49 UTC) #16
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
4 years, 1 month ago (2016-11-03 09:32:52 UTC) #18
mstensho (USE GERRIT)
rslgtm
4 years, 1 month ago (2016-11-03 09:35:47 UTC) #20
mstensho (USE GERRIT)
On 2016/11/03 09:35:47, mstensho wrote: > rslgtm ltghaaah! lgtm!
4 years, 1 month ago (2016-11-03 09:36:51 UTC) #21
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/2454693003/20001
4 years, 1 month ago (2016-11-03 09:38:12 UTC) #23
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-03 09:42:13 UTC) #25
commit-bot: I haz the power
4 years, 1 month ago (2016-11-03 09:44:41 UTC) #27
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/c3485960aedb34468b06c02f7d132501a26c0d2d
Cr-Commit-Position: refs/heads/master@{#429541}

Powered by Google App Engine
This is Rietveld 408576698