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

Issue 2925293003: Cleanup TextDirection (Closed)

Created:
3 years, 6 months ago by kojii
Modified:
3 years, 6 months ago
Reviewers:
drott, eae
CC:
blink-reviews, blink-reviews-html_chromium.org, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, dglazkov+blink, dshwang, drott+blinkwatch_chromium.org, krit, eric.carlson_apple.com, fmalita+watch_chromium.org, fs, gasubic, Justin Novosad, kinuko+watch, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney, nessy
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Cleanup TextDirection This patch: 1. Changes kLtr to be 0. In most CPU architectures, 0 is faster and smaller code to set to and to compare with. This also matches to the assignments in ICU UBiDiDirection[1]. 2. Adds comments. 3. Removes type name from function name since it's not needed when it was changed to "enum class", and looks redundant. 4. Prefers LTR/RTL than full spell, since they are common enough acronyms used in many specs and is more intuitive than full spell. Note the style guide[2] prefers to capitalize acronyms. 5. Adds "IsRtl()" for better readability than "!IsLtr()". [1] https://cs.chromium.org/chromium/src/third_party/icu/source/common/unicode/ubidi.h?type=cs&q=UBiDiDirection&l=419 [2] https://google.github.io/styleguide/cppguide.html#Function_Names Review-Url: https://codereview.chromium.org/2925293003 Cr-Commit-Position: refs/heads/master@{#478707} Committed: https://chromium.googlesource.com/chromium/src/+/3b243ddca222fb1533dd1dcc29a6dfc07986d756

Patch Set 1 #

Patch Set 2 : Fix typo in comments #

Patch Set 3 : unsigned to uint8_t #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -18 lines) Patch
M third_party/WebKit/Source/core/html/track/vtt/VTTCue.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/LengthBox.cpp View 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/shaping/ShapeResultBloberizer.cpp View 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/geometry/LayoutRectOutsets.cpp View 3 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/platform/text/TextDirection.h View 1 2 1 chunk +17 lines, -2 lines 0 comments Download

Messages

Total messages: 21 (15 generated)
kojii
PTAL. WDYT? #2-4 are minor, I'm ok either way if you heard anyone expressed preferences ...
3 years, 6 months ago (2017-06-09 12:23:41 UTC) #7
drott
lgtm
3 years, 6 months ago (2017-06-09 12:47:32 UTC) #12
drott
works for me, no objections.
3 years, 6 months ago (2017-06-09 12:47:46 UTC) #13
eae
LGTM
3 years, 6 months ago (2017-06-12 16:45:18 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/2925293003/40001
3 years, 6 months ago (2017-06-12 16:46:18 UTC) #18
commit-bot: I haz the power
3 years, 6 months ago (2017-06-12 19:06:05 UTC) #21
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/3b243ddca222fb1533dd1dcc29a6...

Powered by Google App Engine
This is Rietveld 408576698