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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayer.cpp

Issue 1622593003: Revert of Add size check for PaintLayer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/paint/PaintLayer.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayer.cpp b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
index 24891e1a2e7338837dace8734db5a050c70f9f65..f1f683b47c1d4b69f10391d4f6de1780a9c81348 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
@@ -94,38 +94,6 @@
namespace {
-#if !OS(WIN) // Compiler on windows seems to combine bit fields of inner structs.
-
-struct SameSizeAsPaintLayer {
- virtual ~SameSizeAsPaintLayer() { } // Allocate vtable pointer.
- int type;
- int bitFields;
- void* pointers[13];
- LayoutUnit layoutUnits[8];
- int intFields[6];
- uint64_t compositingReasons[2];
- struct {
- IntRect rect;
- void* pointers[8];
- int bitFields;
- } ancestorCompositingInputs;
- struct {
- int bitFields;
- } descendantCompositingInputs;
- struct {
- void* pointers[2];
- } clipper;
- struct {
- IntSize size;
- void* pointer;
- LayoutRect rect;
- } previousPaintStatus;
-};
-
-static_assert(sizeof(PaintLayer) == sizeof(SameSizeAsPaintLayer), "PaintLayer should stay small");
-
-#endif // !OS(WIN)
-
static CompositingQueryMode gCompositingQueryMode =
CompositingQueriesAreOnlyAllowedInCertainDocumentLifecyclePhases;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698