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

Issue 2161683002: Add LayoutLocale class (Closed)

Created:
4 years, 5 months ago by kojii
Modified:
4 years, 5 months ago
Reviewers:
drott, dglazkov, eae
CC:
ajuma+watch_chromium.org, darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-layout_chromium.org, blink-reviews-platform-graphics_chromium.org, blink-reviews-style_chromium.org, Rik, chromium-reviews, danakj+watch_chromium.org, dglazkov+blink, dshwang, drott+blinkwatch_chromium.org, krit, eae+blinkwatch, f(malita), jbroman, jchaffraix+rendering, Justin Novosad, leviw+renderwatch, pdr+graphicswatchlist_chromium.org, pdr+renderingwatchlist_chromium.org, rwlbuis, Stephen Chennney, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add LayoutLocale class This patch adds LayoutLocale class that centralize conversions and caching layout-related data for locale/script/language. BUG=586517 Committed: https://crrev.com/d9e0aefc99858f93ba216a3cfab66ed13d3fdb2e Cr-Commit-Position: refs/heads/master@{#407433}

Patch Set 1 #

Patch Set 2 : unittest fix #

Total comments: 7

Patch Set 3 : still wip #

Patch Set 4 : Reduce methods on FontDescription #

Patch Set 5 : wip cont'd #

Patch Set 6 : Fix tests #

Patch Set 7 : More tests, fix Android tests #

Patch Set 8 : Rename to LayoutLocale #

Patch Set 9 : cleanup #

Patch Set 10 : Don't cache AcceptLanguages in LayoutLocale #

Patch Set 11 : Test stability #

Unified diffs Side-by-side diffs Delta from patch set Stats (+302 lines, -162 lines) Patch
M third_party/WebKit/Source/core/css/resolver/FontBuilder.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/FontBuilder.cpp View 1 2 3 4 5 6 7 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/FontBuilderTest.cpp View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutText.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/line/BreakingContextInlineHeaders.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.h View 1 2 3 4 5 6 7 3 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.cpp View 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.cpp View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -2 lines 0 comments Download
A third_party/WebKit/Source/platform/LayoutLocale.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +63 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/platform/LayoutLocale.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +126 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/platform/LayoutLocaleTest.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +32 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/blink_platform.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/Font.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/FontCache.h View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/FontCache.cpp View 1 chunk +0 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/FontDescription.h View 1 2 3 4 5 6 7 6 chunks +6 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/FontDescription.cpp View 2 chunks +5 lines, -22 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/android/FontCacheAndroidTest.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/fonts/linux/FontCacheLinux.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/fonts/shaping/CachingWordShaperTest.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.cpp View 1 2 2 chunks +2 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp View 1 2 3 4 5 6 7 1 chunk +3 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/win/FontCacheSkiaWin.cpp View 1 2 3 4 2 chunks +3 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/win/FontFallbackWin.h View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/win/FontFallbackWin.cpp View 1 2 3 4 5 6 7 8 9 3 chunks +5 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/platform/text/Hyphenation.h View 1 2 3 4 5 6 7 3 chunks +3 lines, -20 lines 0 comments Download
M third_party/WebKit/Source/platform/text/Hyphenation.cpp View 1 2 3 4 5 2 chunks +12 lines, -28 lines 0 comments Download
M third_party/WebKit/Source/platform/text/HyphenationTest.cpp View 1 2 3 4 5 6 7 2 chunks +7 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/platform/text/hyphenation/HyphenationMinikin.cpp View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 62 (49 generated)
kojii
Still WIP but thoughts/comments appreciated.
4 years, 5 months ago (2016-07-19 14:00:55 UTC) #9
eae
This is exciting, overall approach seems fine.
4 years, 5 months ago (2016-07-19 14:36:33 UTC) #12
drott
General approach looks good to me too, good to see some cleaning up and bringing ...
4 years, 5 months ago (2016-07-19 15:28:53 UTC) #13
dglazkov
4 years, 5 months ago (2016-07-19 22:06:03 UTC) #23
kojii
Thank you for your comments, replies inline below: https://codereview.chromium.org/2161683002/diff/20001/third_party/WebKit/Source/platform/fonts/FontDescription.h File third_party/WebKit/Source/platform/fonts/FontDescription.h (right): https://codereview.chromium.org/2161683002/diff/20001/third_party/WebKit/Source/platform/fonts/FontDescription.h#newcode181 third_party/WebKit/Source/platform/fonts/FontDescription.h:181: const ...
4 years, 5 months ago (2016-07-20 06:01:53 UTC) #26
drott
https://codereview.chromium.org/2161683002/diff/20001/third_party/WebKit/Source/platform/fonts/FontDescription.h File third_party/WebKit/Source/platform/fonts/FontDescription.h (right): https://codereview.chromium.org/2161683002/diff/20001/third_party/WebKit/Source/platform/fonts/FontDescription.h#newcode181 third_party/WebKit/Source/platform/fonts/FontDescription.h:181: const FontLocale* locale() const { return m_locale.get(); } > ...
4 years, 5 months ago (2016-07-21 09:23:50 UTC) #37
kojii
PTAL. There are more we can cleanup, such as in font fallback, but I think ...
4 years, 5 months ago (2016-07-22 13:34:20 UTC) #45
eae
LGTM but please give drott another chance to review it.
4 years, 5 months ago (2016-07-22 17:39:47 UTC) #50
drott
LGTM!
4 years, 5 months ago (2016-07-25 07:37:18 UTC) #55
kojii
Thank you!
4 years, 5 months ago (2016-07-25 07:38:11 UTC) #56
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/2161683002/200001
4 years, 5 months ago (2016-07-25 07:38:33 UTC) #59
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 5 months ago (2016-07-25 08:48:13 UTC) #60
commit-bot: I haz the power
4 years, 5 months ago (2016-07-25 08:49:23 UTC) #62
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/d9e0aefc99858f93ba216a3cfab66ed13d3fdb2e
Cr-Commit-Position: refs/heads/master@{#407433}

Powered by Google App Engine
This is Rietveld 408576698