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

Unified Diff: Source/platform/text/BidiContext.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/platform/scroll/ScrollableArea.cpp ('k') | Source/wtf/SizeAssertions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/text/BidiContext.cpp
diff --git a/Source/platform/text/BidiContext.cpp b/Source/platform/text/BidiContext.cpp
index 4572872004ea1b49dca23988831d41f85c947a60..455856c9aa1fbecdfd399af46273096bdf41bd9b 100644
--- a/Source/platform/text/BidiContext.cpp
+++ b/Source/platform/text/BidiContext.cpp
@@ -22,6 +22,7 @@
#include "config.h"
#include "platform/text/BidiContext.h"
+#include "wtf/SizeAssertions.h"
#include "wtf/StdLibExtras.h"
#include "wtf/Vector.h"
@@ -29,12 +30,7 @@ namespace blink {
using namespace WTF::Unicode;
-struct SameSizeAsBidiContext : public RefCounted<SameSizeAsBidiContext> {
- uint32_t bitfields : 16;
- void* parent;
-};
-
-static_assert(sizeof(BidiContext) == sizeof(SameSizeAsBidiContext), "BidiContext should stay small");
+ASSERT_SIZE(BidiContext, 12, 16);
inline PassRefPtr<BidiContext> BidiContext::createUncached(unsigned char level, Direction direction, bool override, BidiEmbeddingSource source, BidiContext* parent)
{
« no previous file with comments | « Source/platform/scroll/ScrollableArea.cpp ('k') | Source/wtf/SizeAssertions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698