| 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 17 matching lines...) Expand all Loading... |
| 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 | 32 |
| 33 namespace blink { | 33 namespace blink { |
| 34 | 34 |
| 35 class SameSizeStyleRareNonInheritedData : public RefCounted<StyleRareNonInherite
dData> { | 35 class SameSizeStyleRareNonInheritedData : public RefCounted<StyleRareNonInherite
dData> { |
| 36 public: | 36 public: |
| 37 float floats[3]; | 37 float floats[3]; |
| 38 int integers; | 38 int integers[11]; |
| 39 | 39 |
| 40 LengthPoint lengthPoints[2]; | 40 LengthPoint lengthPoints[2]; |
| 41 LineClampValue lineClamps; | 41 LineClampValue lineClamps; |
| 42 DraggableRegionMode draggableRegions; | 42 DraggableRegionMode draggableRegions; |
| 43 | 43 |
| 44 void* dataRefs[10]; | 44 void* dataRefs[10]; |
| 45 void* ownPtrs[4]; | 45 void* ownPtrs[4]; |
| 46 #if ENABLE(OILPAN) | 46 #if ENABLE(OILPAN) |
| 47 Persistent<void*> persistentHandles[2]; | 47 Persistent<void*> persistentHandles[2]; |
| 48 void* refPtrs[2]; | 48 void* refPtrs[2]; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 65 unsigned m_bitFields[2]; | 65 unsigned m_bitFields[2]; |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 static_assert(sizeof(StyleRareNonInheritedData) == sizeof(SameSizeStyleRareNonIn
heritedData), "StyleRareNonInheritedData_should_stay_small"); | 68 static_assert(sizeof(StyleRareNonInheritedData) == sizeof(SameSizeStyleRareNonIn
heritedData), "StyleRareNonInheritedData_should_stay_small"); |
| 69 | 69 |
| 70 StyleRareNonInheritedData::StyleRareNonInheritedData() | 70 StyleRareNonInheritedData::StyleRareNonInheritedData() |
| 71 : opacity(ComputedStyle::initialOpacity()) | 71 : opacity(ComputedStyle::initialOpacity()) |
| 72 , m_perspective(ComputedStyle::initialPerspective()) | 72 , m_perspective(ComputedStyle::initialPerspective()) |
| 73 , m_shapeImageThreshold(ComputedStyle::initialShapeImageThreshold()) | 73 , m_shapeImageThreshold(ComputedStyle::initialShapeImageThreshold()) |
| 74 , m_order(ComputedStyle::initialOrder()) | 74 , m_order(ComputedStyle::initialOrder()) |
| 75 , m_onclickVpi(ComputedStyle::initialOnclickVpi()) |
| 76 , m_onclickVpu(ComputedStyle::initialOnclickVpu()) |
| 77 , m_onscrollVpi(ComputedStyle::initialOnscrollVpi()) |
| 78 , m_onscrollVpu(ComputedStyle::initialOnscrollVpu()) |
| 79 , m_ontouchstartVpi(ComputedStyle::initialOntouchstartVpi()) |
| 80 , m_ontouchstartVpu(ComputedStyle::initialOntouchstartVpu()) |
| 81 , m_ontouchendVpi(ComputedStyle::initialOntouchendVpi()) |
| 82 , m_ontouchendVpu(ComputedStyle::initialOntouchendVpu()) |
| 83 , m_ontouchmoveVpi(ComputedStyle::initialOntouchmoveVpi()) |
| 84 , m_ontouchmoveVpu(ComputedStyle::initialOntouchmoveVpu()) |
| 75 , m_perspectiveOrigin(ComputedStyle::initialPerspectiveOrigin()) | 85 , m_perspectiveOrigin(ComputedStyle::initialPerspectiveOrigin()) |
| 76 , m_objectPosition(ComputedStyle::initialObjectPosition()) | 86 , m_objectPosition(ComputedStyle::initialObjectPosition()) |
| 77 , lineClamp(ComputedStyle::initialLineClamp()) | 87 , lineClamp(ComputedStyle::initialLineClamp()) |
| 78 , m_draggableRegionMode(DraggableRegionNone) | 88 , m_draggableRegionMode(DraggableRegionNone) |
| 79 , m_shapeOutside(ComputedStyle::initialShapeOutside()) | 89 , m_shapeOutside(ComputedStyle::initialShapeOutside()) |
| 80 , m_clipPath(ComputedStyle::initialClipPath()) | 90 , m_clipPath(ComputedStyle::initialClipPath()) |
| 81 , m_mask(MaskFillLayer, true) | 91 , m_mask(MaskFillLayer, true) |
| 82 , m_pageSize() | 92 , m_pageSize() |
| 83 , m_shapeMargin(ComputedStyle::initialShapeMargin()) | 93 , m_shapeMargin(ComputedStyle::initialShapeMargin()) |
| 84 , m_textDecorationColor(StyleColor::currentColor()) | 94 , m_textDecorationColor(StyleColor::currentColor()) |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 { | 139 { |
| 130 m_maskBoxImage.setMaskDefaults(); | 140 m_maskBoxImage.setMaskDefaults(); |
| 131 } | 141 } |
| 132 | 142 |
| 133 StyleRareNonInheritedData::StyleRareNonInheritedData(const StyleRareNonInherited
Data& o) | 143 StyleRareNonInheritedData::StyleRareNonInheritedData(const StyleRareNonInherited
Data& o) |
| 134 : RefCounted<StyleRareNonInheritedData>() | 144 : RefCounted<StyleRareNonInheritedData>() |
| 135 , opacity(o.opacity) | 145 , opacity(o.opacity) |
| 136 , m_perspective(o.m_perspective) | 146 , m_perspective(o.m_perspective) |
| 137 , m_shapeImageThreshold(o.m_shapeImageThreshold) | 147 , m_shapeImageThreshold(o.m_shapeImageThreshold) |
| 138 , m_order(o.m_order) | 148 , m_order(o.m_order) |
| 149 , m_onclickVpi(o.m_onclickVpi) |
| 150 , m_onclickVpu(o.m_onclickVpu) |
| 151 , m_onscrollVpi(o.m_onscrollVpi) |
| 152 , m_onscrollVpu(o.m_onscrollVpu) |
| 153 , m_ontouchstartVpi(o.m_ontouchstartVpi) |
| 154 , m_ontouchstartVpu(o.m_ontouchstartVpu) |
| 155 , m_ontouchendVpi(o.m_ontouchendVpi) |
| 156 , m_ontouchendVpu(o.m_ontouchendVpu) |
| 157 , m_ontouchmoveVpi(o.m_ontouchmoveVpi) |
| 158 , m_ontouchmoveVpu(o.m_ontouchmoveVpu) |
| 139 , m_perspectiveOrigin(o.m_perspectiveOrigin) | 159 , m_perspectiveOrigin(o.m_perspectiveOrigin) |
| 140 , m_objectPosition(o.m_objectPosition) | 160 , m_objectPosition(o.m_objectPosition) |
| 141 , lineClamp(o.lineClamp) | 161 , lineClamp(o.lineClamp) |
| 142 , m_draggableRegionMode(o.m_draggableRegionMode) | 162 , m_draggableRegionMode(o.m_draggableRegionMode) |
| 143 , m_deprecatedFlexibleBox(o.m_deprecatedFlexibleBox) | 163 , m_deprecatedFlexibleBox(o.m_deprecatedFlexibleBox) |
| 144 , m_flexibleBox(o.m_flexibleBox) | 164 , m_flexibleBox(o.m_flexibleBox) |
| 145 , m_multiCol(o.m_multiCol) | 165 , m_multiCol(o.m_multiCol) |
| 146 , m_transform(o.m_transform) | 166 , m_transform(o.m_transform) |
| 147 , m_willChange(o.m_willChange) | 167 , m_willChange(o.m_willChange) |
| 148 , m_filter(o.m_filter) | 168 , m_filter(o.m_filter) |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 ReferenceFilterBuilder::clearDocumentResourceReference(backdropFilterOpe
rations.at(i)); | 242 ReferenceFilterBuilder::clearDocumentResourceReference(backdropFilterOpe
rations.at(i)); |
| 223 #endif | 243 #endif |
| 224 } | 244 } |
| 225 | 245 |
| 226 bool StyleRareNonInheritedData::operator==(const StyleRareNonInheritedData& o) c
onst | 246 bool StyleRareNonInheritedData::operator==(const StyleRareNonInheritedData& o) c
onst |
| 227 { | 247 { |
| 228 return opacity == o.opacity | 248 return opacity == o.opacity |
| 229 && m_perspective == o.m_perspective | 249 && m_perspective == o.m_perspective |
| 230 && m_shapeImageThreshold == o.m_shapeImageThreshold | 250 && m_shapeImageThreshold == o.m_shapeImageThreshold |
| 231 && m_order == o.m_order | 251 && m_order == o.m_order |
| 252 && m_onclickVpi == o.m_onclickVpi |
| 253 && m_onclickVpu == o.m_onclickVpu |
| 254 && m_onscrollVpi == o.m_onscrollVpi |
| 255 && m_onscrollVpu == o.m_onscrollVpu |
| 256 && m_ontouchstartVpi == o.m_ontouchstartVpi |
| 257 && m_ontouchstartVpu == o.m_ontouchstartVpu |
| 258 && m_ontouchendVpi == o.m_ontouchendVpi |
| 259 && m_ontouchendVpu == o.m_ontouchendVpu |
| 260 && m_ontouchmoveVpi == o.m_ontouchmoveVpi |
| 261 && m_ontouchmoveVpu == o.m_ontouchmoveVpu |
| 232 && m_perspectiveOrigin == o.m_perspectiveOrigin | 262 && m_perspectiveOrigin == o.m_perspectiveOrigin |
| 233 && m_objectPosition == o.m_objectPosition | 263 && m_objectPosition == o.m_objectPosition |
| 234 && lineClamp == o.lineClamp | 264 && lineClamp == o.lineClamp |
| 235 && m_draggableRegionMode == o.m_draggableRegionMode | 265 && m_draggableRegionMode == o.m_draggableRegionMode |
| 236 && m_deprecatedFlexibleBox == o.m_deprecatedFlexibleBox | 266 && m_deprecatedFlexibleBox == o.m_deprecatedFlexibleBox |
| 237 && m_flexibleBox == o.m_flexibleBox | 267 && m_flexibleBox == o.m_flexibleBox |
| 238 && m_multiCol == o.m_multiCol | 268 && m_multiCol == o.m_multiCol |
| 239 && m_transform == o.m_transform | 269 && m_transform == o.m_transform |
| 240 && m_willChange == o.m_willChange | 270 && m_willChange == o.m_willChange |
| 241 && m_filter == o.m_filter | 271 && m_filter == o.m_filter |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 { | 389 { |
| 360 return dataEquivalent(m_shapeOutside, o.m_shapeOutside); | 390 return dataEquivalent(m_shapeOutside, o.m_shapeOutside); |
| 361 } | 391 } |
| 362 | 392 |
| 363 bool StyleRareNonInheritedData::clipPathDataEquivalent(const StyleRareNonInherit
edData& o) const | 393 bool StyleRareNonInheritedData::clipPathDataEquivalent(const StyleRareNonInherit
edData& o) const |
| 364 { | 394 { |
| 365 return dataEquivalent(m_clipPath, o.m_clipPath); | 395 return dataEquivalent(m_clipPath, o.m_clipPath); |
| 366 } | 396 } |
| 367 | 397 |
| 368 } // namespace blink | 398 } // namespace blink |
| OLD | NEW |