| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) | 2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include "config.h" | 22 #include "config.h" |
| 23 #include "core/style/StyleRareNonInheritedData.h" | 23 #include "core/style/StyleRareNonInheritedData.h" |
| 24 | 24 |
| 25 #include "core/style/ContentData.h" | 25 #include "core/style/ContentData.h" |
| 26 #include "core/style/DataEquivalency.h" | 26 #include "core/style/DataEquivalency.h" |
| 27 #include "core/style/ComputedStyle.h" | 27 #include "core/style/ComputedStyle.h" |
| 28 #include "core/style/ShadowList.h" | 28 #include "core/style/ShadowList.h" |
| 29 #include "core/style/StyleFilterData.h" | 29 #include "core/style/StyleFilterData.h" |
| 30 #include "core/style/StyleTransformData.h" | 30 #include "core/style/StyleTransformData.h" |
| 31 #include "core/layout/svg/ReferenceFilterBuilder.h" | 31 #include "core/layout/svg/ReferenceFilterBuilder.h" |
| 32 #include "wtf/SizeAssertions.h" |
| 32 | 33 |
| 33 namespace blink { | 34 namespace blink { |
| 34 | 35 |
| 35 class SameSizeStyleRareNonInheritedData : public RefCounted<StyleRareNonInherite
dData> { | 36 ASSERT_SIZE(StyleRareNonInheritedData, 312, 400); |
| 36 public: | |
| 37 float floats[3]; | |
| 38 int integers; | |
| 39 | |
| 40 LengthPoint lengthPoints[2]; | |
| 41 LineClampValue lineClamps; | |
| 42 DraggableRegionMode draggableRegions; | |
| 43 | |
| 44 void* dataRefs[10]; | |
| 45 void* ownPtrs[4]; | |
| 46 #if ENABLE(OILPAN) | |
| 47 Persistent<void*> persistentHandles[2]; | |
| 48 void* refPtrs[2]; | |
| 49 #else | |
| 50 void* refPtrs[4]; | |
| 51 #endif | |
| 52 | |
| 53 FillLayer fillLayers; | |
| 54 NinePieceImage ninePieces; | |
| 55 FloatSize floatSize; | |
| 56 Length lengths; | |
| 57 | |
| 58 StyleColor styleColors[8]; | |
| 59 | |
| 60 Vector<String> m_callbackSelectors; | |
| 61 | |
| 62 StyleContentAlignmentData contentAlignmentData[2]; | |
| 63 StyleSelfAlignmentData selfAlignmentData[4]; | |
| 64 | |
| 65 unsigned m_bitFields[2]; | |
| 66 }; | |
| 67 | |
| 68 static_assert(sizeof(StyleRareNonInheritedData) == sizeof(SameSizeStyleRareNonIn
heritedData), "StyleRareNonInheritedData_should_stay_small"); | |
| 69 | 37 |
| 70 StyleRareNonInheritedData::StyleRareNonInheritedData() | 38 StyleRareNonInheritedData::StyleRareNonInheritedData() |
| 71 : opacity(ComputedStyle::initialOpacity()) | 39 : opacity(ComputedStyle::initialOpacity()) |
| 72 , m_perspective(ComputedStyle::initialPerspective()) | 40 , m_perspective(ComputedStyle::initialPerspective()) |
| 73 , m_shapeImageThreshold(ComputedStyle::initialShapeImageThreshold()) | 41 , m_shapeImageThreshold(ComputedStyle::initialShapeImageThreshold()) |
| 74 , m_order(ComputedStyle::initialOrder()) | 42 , m_order(ComputedStyle::initialOrder()) |
| 75 , m_perspectiveOrigin(ComputedStyle::initialPerspectiveOrigin()) | 43 , m_perspectiveOrigin(ComputedStyle::initialPerspectiveOrigin()) |
| 76 , m_objectPosition(ComputedStyle::initialObjectPosition()) | 44 , m_objectPosition(ComputedStyle::initialObjectPosition()) |
| 77 , lineClamp(ComputedStyle::initialLineClamp()) | 45 , lineClamp(ComputedStyle::initialLineClamp()) |
| 78 , m_draggableRegionMode(DraggableRegionNone) | 46 , m_draggableRegionMode(DraggableRegionNone) |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 { | 325 { |
| 358 return dataEquivalent(m_shapeOutside, o.m_shapeOutside); | 326 return dataEquivalent(m_shapeOutside, o.m_shapeOutside); |
| 359 } | 327 } |
| 360 | 328 |
| 361 bool StyleRareNonInheritedData::clipPathDataEquivalent(const StyleRareNonInherit
edData& o) const | 329 bool StyleRareNonInheritedData::clipPathDataEquivalent(const StyleRareNonInherit
edData& o) const |
| 362 { | 330 { |
| 363 return dataEquivalent(m_clipPath, o.m_clipPath); | 331 return dataEquivalent(m_clipPath, o.m_clipPath); |
| 364 } | 332 } |
| 365 | 333 |
| 366 } // namespace blink | 334 } // namespace blink |
| OLD | NEW |