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

Unified Diff: Source/platform/fonts/GenericFontFamilySettings.h

Issue 93783005: Store a copy of generic font settings at CSSFontSelector. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years 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: Source/platform/fonts/GenericFontFamilySettings.h
diff --git a/Source/platform/fonts/GenericFontFamilySettings.h b/Source/platform/fonts/GenericFontFamilySettings.h
index b1607f564c0ac7256974c054c37a63668c279753..ac10e1f79d2f21b9f183ba3b70126cb2b97eaf76 100644
--- a/Source/platform/fonts/GenericFontFamilySettings.h
+++ b/Source/platform/fonts/GenericFontFamilySettings.h
@@ -40,13 +40,15 @@
namespace WebCore {
class PLATFORM_EXPORT GenericFontFamilySettings {
- WTF_MAKE_NONCOPYABLE(GenericFontFamilySettings); WTF_MAKE_FAST_ALLOCATED;
+ WTF_MAKE_FAST_ALLOCATED;
public:
GenericFontFamilySettings()
{
}
+ explicit GenericFontFamilySettings(const GenericFontFamilySettings&);
+
void setStandard(const AtomicString&, UScriptCode = USCRIPT_COMMON);
const AtomicString& standard(UScriptCode = USCRIPT_COMMON) const;
@@ -72,6 +74,8 @@ public:
void reset();
private:
+ GenericFontFamilySettings& operator=(const GenericFontFamilySettings&) WTF_DELETED_FUNCTION;
+
// UScriptCode uses -1 and 0 for UScriptInvalidCode and UScriptCommon.
// We need to use -2 and -3 for empty value and deleted value.
struct UScriptCodeHashTraits : WTF::GenericHashTraits<int> {

Powered by Google App Engine
This is Rietveld 408576698