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

Issue 2943053002: Introduce Find{Left,Right}BidiRun() and utilize in AdjustInlineBoxPositionForTextDirection() (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

Introduce Find{Left,Right}BidiRun() and utilize in AdjustInlineBoxPositionForTextDirection() This patch introduces |Find{Left,Right}BidiRun()| in |InlineBoxTraversal| to unify common pattern into function for improving of readability. Before this patch: InlineBox* result = start; do { result = result->Forward(); } while (result && result->BidiLevel() > level); ... use result ... After this patch: InlineBox* Find(InlineBox* start, unsigned level) { for (InlineBox* runner = start->Forward(); runner; runner = runner->Forward()) { if (runner->BidiLevel() <= level) return runner; } return nullptr; } InlineBox* result = Find(start, level); ... use result ... BUG=707656 TEST=n/a; no behavior changes Review-Url: https://codereview.chromium.org/2943053002 Cr-Commit-Position: refs/heads/master@{#480340} Committed: https://chromium.googlesource.com/chromium/src/+/add3c68a6c8aea99a4f7088193f99d5eaaa5b510

Patch Set 1 : 2017-06-16T13:52:56 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -8 lines) Patch
M third_party/WebKit/Source/core/editing/InlineBoxTraversal.h View 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/InlineBoxTraversal.cpp View 2 chunks +20 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/VisibleUnits.cpp View 2 chunks +4 lines, -8 lines 0 comments Download

Messages

Total messages: 22 (16 generated)
yosin_UTC9
PTAL
3 years, 6 months ago (2017-06-16 06:37:01 UTC) #9
Xiaocheng
lgtm
3 years, 6 months ago (2017-06-16 18:30:57 UTC) #12
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/2943053002/20001
3 years, 6 months ago (2017-06-17 03:01:59 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/466755)
3 years, 6 months ago (2017-06-17 03:04:31 UTC) #16
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/2943053002/20001
3 years, 6 months ago (2017-06-19 01:58:10 UTC) #18
commit-bot: I haz the power
3 years, 6 months ago (2017-06-19 03:47:22 UTC) #22
Message was sent while issue was closed.
Committed patchset #1 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/add3c68a6c8aea99a4f7088193f9...

Powered by Google App Engine
This is Rietveld 408576698