diff options
Diffstat (limited to 'Source/WebCore/dom/ElementRareData.cpp')
-rw-r--r-- | Source/WebCore/dom/ElementRareData.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/Source/WebCore/dom/ElementRareData.cpp b/Source/WebCore/dom/ElementRareData.cpp index d35215e20..aca3463a7 100644 --- a/Source/WebCore/dom/ElementRareData.cpp +++ b/Source/WebCore/dom/ElementRareData.cpp @@ -34,14 +34,19 @@ namespace WebCore { struct SameSizeAsElementRareData : NodeRareData { - short indices[2]; - unsigned bitfields; + int tabIndex; + unsigned short childIndex; +#if ENABLE(FULLSCREEN_API) + unsigned bitfields : 11; +#else + unsigned bitfields : 10; +#endif RegionOversetState regionOversetState; LayoutSize sizeForResizing; - IntSize scrollOffset; - void* pointers[7]; + IntPoint savedLayerScrollPosition; + void* pointers[8]; }; -COMPILE_ASSERT(sizeof(ElementRareData) == sizeof(SameSizeAsElementRareData), ElementRareDataShouldStaySmall); +static_assert(sizeof(ElementRareData) == sizeof(SameSizeAsElementRareData), "ElementRareData should stay small"); } // namespace WebCore |