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

Unified Diff: Source/platform/fonts/FontDescription.cpp

Issue 1317143005: [WIP] do something :-) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 | « Source/platform/Length.cpp ('k') | Source/platform/graphics/paint/DisplayItem.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/fonts/FontDescription.cpp
diff --git a/Source/platform/fonts/FontDescription.cpp b/Source/platform/fonts/FontDescription.cpp
index b26c41fbcfd00fe2e4aa18aa40964059dd6be770..80cceceee5a9b4daded45498a5f49b49b3573c2c 100644
--- a/Source/platform/fonts/FontDescription.cpp
+++ b/Source/platform/fonts/FontDescription.cpp
@@ -31,22 +31,13 @@
#include "platform/fonts/FontDescription.h"
#include "platform/RuntimeEnabledFeatures.h"
+#include "wtf/SizeAssertions.h"
#include "wtf/text/AtomicStringHash.h"
#include "wtf/text/StringHash.h"
namespace blink {
-struct SameSizeAsFontDescription {
- FontFamily familyList;
- RefPtr<FontFeatureSettings> m_featureSettings;
- AtomicString locale;
- float sizes[6];
- // FXIME: Make them fit into one word.
- uint32_t bitfields;
- uint32_t bitfields2 : 7;
-};
-
-static_assert(sizeof(FontDescription) == sizeof(SameSizeAsFontDescription), "FontDescription should stay small");
+ASSERT_SIZE(FontDescription, 48, 64);
TypesettingFeatures FontDescription::s_defaultTypesettingFeatures = 0;
« no previous file with comments | « Source/platform/Length.cpp ('k') | Source/platform/graphics/paint/DisplayItem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698