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

Issue 2119083003: Make ApplyStyleCommand::applyRelativeFontStyleChange() to handle AfterAnchor position correctly (Closed)

Created:
4 years, 5 months ago by yosin_UTC9
Modified:
4 years, 5 months ago
Reviewers:
yoichio, Xiaocheng
CC:
blink-reviews, blink-reviews-style_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make ApplyStyleCommand::applyRelativeFontStyleChange() to handle AfterAnchor position correctly This patch makes |ApplyStyleCommand::applyRelativeFontStyleChange()| to stop node iteration from start position to end node position by using |Position::nodeAsRangePastLastNode()| instead of |Position::anchorNode()| to have correct beyond last node in below loop: Node* beyondLast = end.anchorNode(); for (Node* node = startNode; node != beyondLast; node = NodeTraversal::next(node)) { ... use |node| ... } When |end| is |AfterAnchor| of previous sibling of |startNode|, above loop doesn't stop. BUG=619753 TEST=LayoutTests/editing/execCommand/font-size-delta-after-anchor-crash.html Committed: https://crrev.com/0117448155092540494f302397df47aa8c2bd421 Cr-Commit-Position: refs/heads/master@{#403750}

Patch Set 1 #

Patch Set 2 : 2016-07-05T10:59:18 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -8 lines) Patch
A third_party/WebKit/LayoutTests/editing/execCommand/font-size-delta-after-anchor-crash.html View 1 1 chunk +20 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp View 1 1 chunk +3 lines, -8 lines 2 comments Download

Messages

Total messages: 12 (4 generated)
yosin_UTC9
PTAL Bots failures aren't related to this patch.
4 years, 5 months ago (2016-07-05 03:30:10 UTC) #3
Xiaocheng
lgtm
4 years, 5 months ago (2016-07-05 05:27:42 UTC) #4
yoichio
https://codereview.chromium.org/2119083003/diff/20001/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp File third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp (right): https://codereview.chromium.org/2119083003/diff/20001/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp#newcode402 third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp:402: for (Node* node = startNode; node != beyondEnd; node ...
4 years, 5 months ago (2016-07-05 05:50:57 UTC) #5
yosin_UTC9
https://codereview.chromium.org/2119083003/diff/20001/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp File third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp (right): https://codereview.chromium.org/2119083003/diff/20001/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp#newcode402 third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp:402: for (Node* node = startNode; node != beyondEnd; node ...
4 years, 5 months ago (2016-07-05 07:41:24 UTC) #6
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/2119083003/20001
4 years, 5 months ago (2016-07-05 07:41:39 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 5 months ago (2016-07-05 07:45:47 UTC) #9
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-05 07:45:52 UTC) #10
commit-bot: I haz the power
4 years, 5 months ago (2016-07-05 07:48:36 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/0117448155092540494f302397df47aa8c2bd421
Cr-Commit-Position: refs/heads/master@{#403750}

Powered by Google App Engine
This is Rietveld 408576698