DescriptionMake 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 #
Messages
Total messages: 13 (9 generated)
|