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

Unified Diff: third_party/WebKit/Source/platform/LayoutLocale.h

Issue 2213393002: Defer computing localeForHan until needed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/LayoutLocale.h
diff --git a/third_party/WebKit/Source/platform/LayoutLocale.h b/third_party/WebKit/Source/platform/LayoutLocale.h
index a4bc22c81ec50b56b5ec4829b01d6190c929b0d7..83d10c71c9633dd445f3be3f70e6fe50f898ca7a 100644
--- a/third_party/WebKit/Source/platform/LayoutLocale.h
+++ b/third_party/WebKit/Source/platform/LayoutLocale.h
@@ -42,7 +42,7 @@ public:
UScriptCode scriptForHan() const;
bool hasScriptForHan() const;
static const LayoutLocale* localeForHan(const LayoutLocale*);
- static void setLocaleForHan(const LayoutLocale*);
+ static void InvalidateLocaleForHan() { s_defaultForHanComputed = false; }
drott 2016/08/08 15:16:37 lowercase first letter => invalidateLocaleForHan()
kojii 2016/08/08 15:33:54 Thanks for catching, confused with Chromium style.
const char* localeForHanForSkFontMgr() const;
Hyphenation* getHyphenation() const;
@@ -55,6 +55,7 @@ private:
explicit LayoutLocale(const AtomicString&);
void computeScriptForHan() const;
+ static void computeLocaleForHan();
AtomicString m_string;
mutable CString m_stringForSkFontMgr;

Powered by Google App Engine
This is Rietveld 408576698