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

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: drott review 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/LayoutLocale.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..91bff73424f44bc5c123e841d7ebc029ef7c7000 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; }
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;
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/LayoutLocale.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698