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

Unified Diff: Source/core/layout/LayoutText.cpp

Issue 1317143005: [WIP] do something :-) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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/core/layout/LayoutTableCell.cpp ('k') | Source/core/layout/PointerEventsHitRules.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutText.cpp
diff --git a/Source/core/layout/LayoutText.cpp b/Source/core/layout/LayoutText.cpp
index 438d88c07c78d4e4f1d2093ff74752d6ba115b99..39bc55f6d32457a79e8b961df37ee85494c36be8 100644
--- a/Source/core/layout/LayoutText.cpp
+++ b/Source/core/layout/LayoutText.cpp
@@ -46,6 +46,7 @@
#include "platform/text/BidiResolver.h"
#include "platform/text/TextBreakIterator.h"
#include "platform/text/TextRunIterator.h"
+#include "wtf/SizeAssertions.h"
#include "wtf/text/CharacterNames.h"
#include "wtf/text/StringBuffer.h"
#include "wtf/text/StringBuilder.h"
@@ -55,14 +56,7 @@ using namespace Unicode;
namespace blink {
-struct SameSizeAsLayoutText : public LayoutObject {
- uint32_t bitfields : 16;
- float widths[4];
- String text;
- void* pointers[2];
-};
-
-static_assert(sizeof(LayoutText) == sizeof(SameSizeAsLayoutText), "LayoutText should stay small");
+ASSERT_SIZE(LayoutText, sizeof(LayoutObject) + 32, sizeof(LayoutObject) + 48);
class SecureTextTimer;
typedef HashMap<LayoutText*, SecureTextTimer*> SecureTextTimerMap;
« no previous file with comments | « Source/core/layout/LayoutTableCell.cpp ('k') | Source/core/layout/PointerEventsHitRules.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698