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

Issue 2952563002: Make PreviousRootInlineBoxCandidatePosition() to ignore nodes without layout object (Closed)

Created:
3 years, 6 months ago by yosin_UTC9
Modified:
3 years, 6 months ago
Reviewers:
yoichio, Xiaocheng
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Make PreviousRootInlineBoxCandidatePosition() to ignore nodes without layout object This is follow-up patch of the patch[1] which introduces |InSameLine()| to return wrong value for nodes without layout object. Original code: while (node && !node->GetLayoutObject() || InSameLine(...) The patch[1]: while (InSameLine(node, ...) InSameLine(Node* node) if (!node->GetLayoutObject()) return false; // This is wrong. This patch fixes this error. [1] http://crrev.com/2938923003: Introduce InSameLine() with Node and VisiblePosition BUG=734648 TEST=run_webkit_unit_tests --gtest_filter=VisibleUnitsTest.PreviousRootInlineBoxCandidatePositionWithDisplayNone Review-Url: https://codereview.chromium.org/2952563002 Cr-Commit-Position: refs/heads/master@{#481057} Committed: https://chromium.googlesource.com/chromium/src/+/5bdfdfb6bb8fa7593b2d4f81f1304c14f248a116

Patch Set 1 : 2017-06-20T18:32:03 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -4 lines) Patch
M third_party/WebKit/Source/core/editing/VisibleUnits.h View 1 chunk +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/editing/VisibleUnitsLine.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/VisibleUnitsTest.cpp View 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (9 generated)
yosin_UTC9
PTAL
3 years, 6 months ago (2017-06-20 09:43:43 UTC) #5
Xiaocheng
lgtm. Thanks! It's fortunate that performance bots caught our mistake...
3 years, 6 months ago (2017-06-20 18:19:52 UTC) #8
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/2952563002/1
3 years, 6 months ago (2017-06-21 01:07:34 UTC) #10
commit-bot: I haz the power
3 years, 6 months ago (2017-06-21 01:12:57 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/5bdfdfb6bb8fa7593b2d4f81f130...

Powered by Google App Engine
This is Rietveld 408576698