| 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 23 matching lines...) Expand all Loading... |
| 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; |
| 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[9]; | 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]; |
| 49 #else | 49 #else |
| 50 void* refPtrs[4]; | 50 void* refPtrs[4]; |
| 51 #endif | 51 #endif |
| 52 | 52 |
| 53 FillLayer fillLayers; | 53 FillLayer fillLayers; |
| 54 NinePieceImage ninePieces; | 54 NinePieceImage ninePieces; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 , textOverflow(ComputedStyle::initialTextOverflow()) | 102 , textOverflow(ComputedStyle::initialTextOverflow()) |
| 103 , marginBeforeCollapse(MCOLLAPSE) | 103 , marginBeforeCollapse(MCOLLAPSE) |
| 104 , marginAfterCollapse(MCOLLAPSE) | 104 , marginAfterCollapse(MCOLLAPSE) |
| 105 , m_appearance(ComputedStyle::initialAppearance()) | 105 , m_appearance(ComputedStyle::initialAppearance()) |
| 106 , m_textDecorationStyle(ComputedStyle::initialTextDecorationStyle()) | 106 , m_textDecorationStyle(ComputedStyle::initialTextDecorationStyle()) |
| 107 , m_wrapFlow(ComputedStyle::initialWrapFlow()) | 107 , m_wrapFlow(ComputedStyle::initialWrapFlow()) |
| 108 , m_wrapThrough(ComputedStyle::initialWrapThrough()) | 108 , m_wrapThrough(ComputedStyle::initialWrapThrough()) |
| 109 , m_hasCurrentOpacityAnimation(false) | 109 , m_hasCurrentOpacityAnimation(false) |
| 110 , m_hasCurrentTransformAnimation(false) | 110 , m_hasCurrentTransformAnimation(false) |
| 111 , m_hasCurrentFilterAnimation(false) | 111 , m_hasCurrentFilterAnimation(false) |
| 112 , m_hasCurrentBackdropFilterAnimation(false) |
| 112 , m_runningOpacityAnimationOnCompositor(false) | 113 , m_runningOpacityAnimationOnCompositor(false) |
| 113 , m_runningTransformAnimationOnCompositor(false) | 114 , m_runningTransformAnimationOnCompositor(false) |
| 114 , m_runningFilterAnimationOnCompositor(false) | 115 , m_runningFilterAnimationOnCompositor(false) |
| 116 , m_runningBackdropFilterAnimationOnCompositor(false) |
| 115 , m_effectiveBlendMode(ComputedStyle::initialBlendMode()) | 117 , m_effectiveBlendMode(ComputedStyle::initialBlendMode()) |
| 116 , m_touchAction(ComputedStyle::initialTouchAction()) | 118 , m_touchAction(ComputedStyle::initialTouchAction()) |
| 117 , m_objectFit(ComputedStyle::initialObjectFit()) | 119 , m_objectFit(ComputedStyle::initialObjectFit()) |
| 118 , m_isolation(ComputedStyle::initialIsolation()) | 120 , m_isolation(ComputedStyle::initialIsolation()) |
| 119 , m_scrollBehavior(ComputedStyle::initialScrollBehavior()) | 121 , m_scrollBehavior(ComputedStyle::initialScrollBehavior()) |
| 120 , m_scrollSnapType(ComputedStyle::initialScrollSnapType()) | 122 , m_scrollSnapType(ComputedStyle::initialScrollSnapType()) |
| 121 , m_requiresAcceleratedCompositingForExternalReasons(false) | 123 , m_requiresAcceleratedCompositingForExternalReasons(false) |
| 122 , m_hasInlineTransform(false) | 124 , m_hasInlineTransform(false) |
| 123 , m_resize(ComputedStyle::initialResize()) | 125 , m_resize(ComputedStyle::initialResize()) |
| 124 , m_hasCompositorProxy(false) | 126 , m_hasCompositorProxy(false) |
| (...skipping 10 matching lines...) Expand all Loading... |
| 135 , m_perspectiveOrigin(o.m_perspectiveOrigin) | 137 , m_perspectiveOrigin(o.m_perspectiveOrigin) |
| 136 , m_objectPosition(o.m_objectPosition) | 138 , m_objectPosition(o.m_objectPosition) |
| 137 , lineClamp(o.lineClamp) | 139 , lineClamp(o.lineClamp) |
| 138 , m_draggableRegionMode(o.m_draggableRegionMode) | 140 , m_draggableRegionMode(o.m_draggableRegionMode) |
| 139 , m_deprecatedFlexibleBox(o.m_deprecatedFlexibleBox) | 141 , m_deprecatedFlexibleBox(o.m_deprecatedFlexibleBox) |
| 140 , m_flexibleBox(o.m_flexibleBox) | 142 , m_flexibleBox(o.m_flexibleBox) |
| 141 , m_multiCol(o.m_multiCol) | 143 , m_multiCol(o.m_multiCol) |
| 142 , m_transform(o.m_transform) | 144 , m_transform(o.m_transform) |
| 143 , m_willChange(o.m_willChange) | 145 , m_willChange(o.m_willChange) |
| 144 , m_filter(o.m_filter) | 146 , m_filter(o.m_filter) |
| 147 , m_backdropFilter(o.m_backdropFilter) |
| 145 , m_grid(o.m_grid) | 148 , m_grid(o.m_grid) |
| 146 , m_gridItem(o.m_gridItem) | 149 , m_gridItem(o.m_gridItem) |
| 147 , m_scrollSnap(o.m_scrollSnap) | 150 , m_scrollSnap(o.m_scrollSnap) |
| 148 , m_content(o.m_content ? o.m_content->clone() : nullptr) | 151 , m_content(o.m_content ? o.m_content->clone() : nullptr) |
| 149 , m_counterDirectives(o.m_counterDirectives ? clone(*o.m_counterDirectives)
: nullptr) | 152 , m_counterDirectives(o.m_counterDirectives ? clone(*o.m_counterDirectives)
: nullptr) |
| 150 , m_animations(o.m_animations ? CSSAnimationData::create(*o.m_animations) :
nullptr) | 153 , m_animations(o.m_animations ? CSSAnimationData::create(*o.m_animations) :
nullptr) |
| 151 , m_transitions(o.m_transitions ? CSSTransitionData::create(*o.m_transitions
) : nullptr) | 154 , m_transitions(o.m_transitions ? CSSTransitionData::create(*o.m_transitions
) : nullptr) |
| 152 , m_boxShadow(o.m_boxShadow) | 155 , m_boxShadow(o.m_boxShadow) |
| 153 , m_boxReflect(o.m_boxReflect) | 156 , m_boxReflect(o.m_boxReflect) |
| 154 , m_shapeOutside(o.m_shapeOutside) | 157 , m_shapeOutside(o.m_shapeOutside) |
| (...skipping 23 matching lines...) Expand all Loading... |
| 178 , textOverflow(o.textOverflow) | 181 , textOverflow(o.textOverflow) |
| 179 , marginBeforeCollapse(o.marginBeforeCollapse) | 182 , marginBeforeCollapse(o.marginBeforeCollapse) |
| 180 , marginAfterCollapse(o.marginAfterCollapse) | 183 , marginAfterCollapse(o.marginAfterCollapse) |
| 181 , m_appearance(o.m_appearance) | 184 , m_appearance(o.m_appearance) |
| 182 , m_textDecorationStyle(o.m_textDecorationStyle) | 185 , m_textDecorationStyle(o.m_textDecorationStyle) |
| 183 , m_wrapFlow(o.m_wrapFlow) | 186 , m_wrapFlow(o.m_wrapFlow) |
| 184 , m_wrapThrough(o.m_wrapThrough) | 187 , m_wrapThrough(o.m_wrapThrough) |
| 185 , m_hasCurrentOpacityAnimation(o.m_hasCurrentOpacityAnimation) | 188 , m_hasCurrentOpacityAnimation(o.m_hasCurrentOpacityAnimation) |
| 186 , m_hasCurrentTransformAnimation(o.m_hasCurrentTransformAnimation) | 189 , m_hasCurrentTransformAnimation(o.m_hasCurrentTransformAnimation) |
| 187 , m_hasCurrentFilterAnimation(o.m_hasCurrentFilterAnimation) | 190 , m_hasCurrentFilterAnimation(o.m_hasCurrentFilterAnimation) |
| 191 , m_hasCurrentBackdropFilterAnimation(o.m_hasCurrentBackdropFilterAnimation) |
| 188 , m_runningOpacityAnimationOnCompositor(o.m_runningOpacityAnimationOnComposi
tor) | 192 , m_runningOpacityAnimationOnCompositor(o.m_runningOpacityAnimationOnComposi
tor) |
| 189 , m_runningTransformAnimationOnCompositor(o.m_runningTransformAnimationOnCom
positor) | 193 , m_runningTransformAnimationOnCompositor(o.m_runningTransformAnimationOnCom
positor) |
| 190 , m_runningFilterAnimationOnCompositor(o.m_runningFilterAnimationOnComposito
r) | 194 , m_runningFilterAnimationOnCompositor(o.m_runningFilterAnimationOnComposito
r) |
| 195 , m_runningBackdropFilterAnimationOnCompositor(o.m_runningBackdropFilterAnim
ationOnCompositor) |
| 191 , m_effectiveBlendMode(o.m_effectiveBlendMode) | 196 , m_effectiveBlendMode(o.m_effectiveBlendMode) |
| 192 , m_touchAction(o.m_touchAction) | 197 , m_touchAction(o.m_touchAction) |
| 193 , m_objectFit(o.m_objectFit) | 198 , m_objectFit(o.m_objectFit) |
| 194 , m_isolation(o.m_isolation) | 199 , m_isolation(o.m_isolation) |
| 195 , m_scrollBehavior(o.m_scrollBehavior) | 200 , m_scrollBehavior(o.m_scrollBehavior) |
| 196 , m_scrollSnapType(o.m_scrollSnapType) | 201 , m_scrollSnapType(o.m_scrollSnapType) |
| 197 , m_requiresAcceleratedCompositingForExternalReasons(o.m_requiresAccelerated
CompositingForExternalReasons) | 202 , m_requiresAcceleratedCompositingForExternalReasons(o.m_requiresAccelerated
CompositingForExternalReasons) |
| 198 , m_hasInlineTransform(o.m_hasInlineTransform) | 203 , m_hasInlineTransform(o.m_hasInlineTransform) |
| 199 , m_resize(o.m_resize) | 204 , m_resize(o.m_resize) |
| 200 , m_hasCompositorProxy(o.m_hasCompositorProxy) | 205 , m_hasCompositorProxy(o.m_hasCompositorProxy) |
| 201 { | 206 { |
| 202 } | 207 } |
| 203 | 208 |
| 204 StyleRareNonInheritedData::~StyleRareNonInheritedData() | 209 StyleRareNonInheritedData::~StyleRareNonInheritedData() |
| 205 { | 210 { |
| 206 const FilterOperations& filterOperations = m_filter->m_operations; | 211 const FilterOperations& filterOperations = m_filter->m_operations; |
| 207 for (unsigned i = 0; i < filterOperations.size(); ++i) | 212 for (unsigned i = 0; i < filterOperations.size(); ++i) |
| 208 ReferenceFilterBuilder::clearDocumentResourceReference(filterOperations.
at(i)); | 213 ReferenceFilterBuilder::clearDocumentResourceReference(filterOperations.
at(i)); |
| 214 |
| 215 const FilterOperations& backdropFilterOperations = m_backdropFilter->m_opera
tions; |
| 216 for (unsigned i = 0; i < backdropFilterOperations.size(); ++i) |
| 217 ReferenceFilterBuilder::clearDocumentResourceReference(backdropFilterOpe
rations.at(i)); |
| 209 } | 218 } |
| 210 | 219 |
| 211 bool StyleRareNonInheritedData::operator==(const StyleRareNonInheritedData& o) c
onst | 220 bool StyleRareNonInheritedData::operator==(const StyleRareNonInheritedData& o) c
onst |
| 212 { | 221 { |
| 213 return opacity == o.opacity | 222 return opacity == o.opacity |
| 214 && m_perspective == o.m_perspective | 223 && m_perspective == o.m_perspective |
| 215 && m_shapeImageThreshold == o.m_shapeImageThreshold | 224 && m_shapeImageThreshold == o.m_shapeImageThreshold |
| 216 && m_order == o.m_order | 225 && m_order == o.m_order |
| 217 && m_perspectiveOrigin == o.m_perspectiveOrigin | 226 && m_perspectiveOrigin == o.m_perspectiveOrigin |
| 218 && m_objectPosition == o.m_objectPosition | 227 && m_objectPosition == o.m_objectPosition |
| 219 && lineClamp == o.lineClamp | 228 && lineClamp == o.lineClamp |
| 220 && m_draggableRegionMode == o.m_draggableRegionMode | 229 && m_draggableRegionMode == o.m_draggableRegionMode |
| 221 && m_deprecatedFlexibleBox == o.m_deprecatedFlexibleBox | 230 && m_deprecatedFlexibleBox == o.m_deprecatedFlexibleBox |
| 222 && m_flexibleBox == o.m_flexibleBox | 231 && m_flexibleBox == o.m_flexibleBox |
| 223 && m_multiCol == o.m_multiCol | 232 && m_multiCol == o.m_multiCol |
| 224 && m_transform == o.m_transform | 233 && m_transform == o.m_transform |
| 225 && m_willChange == o.m_willChange | 234 && m_willChange == o.m_willChange |
| 226 && m_filter == o.m_filter | 235 && m_filter == o.m_filter |
| 236 && m_backdropFilter == o.m_backdropFilter |
| 227 && m_grid == o.m_grid | 237 && m_grid == o.m_grid |
| 228 && m_gridItem == o.m_gridItem | 238 && m_gridItem == o.m_gridItem |
| 229 && m_scrollSnap == o.m_scrollSnap | 239 && m_scrollSnap == o.m_scrollSnap |
| 230 && contentDataEquivalent(o) | 240 && contentDataEquivalent(o) |
| 231 && counterDataEquivalent(o) | 241 && counterDataEquivalent(o) |
| 232 && shadowDataEquivalent(o) | 242 && shadowDataEquivalent(o) |
| 233 && reflectionDataEquivalent(o) | 243 && reflectionDataEquivalent(o) |
| 234 && animationDataEquivalent(o) | 244 && animationDataEquivalent(o) |
| 235 && transitionDataEquivalent(o) | 245 && transitionDataEquivalent(o) |
| 236 && shapeOutsideDataEquivalent(o) | 246 && shapeOutsideDataEquivalent(o) |
| (...skipping 24 matching lines...) Expand all Loading... |
| 261 && textOverflow == o.textOverflow | 271 && textOverflow == o.textOverflow |
| 262 && marginBeforeCollapse == o.marginBeforeCollapse | 272 && marginBeforeCollapse == o.marginBeforeCollapse |
| 263 && marginAfterCollapse == o.marginAfterCollapse | 273 && marginAfterCollapse == o.marginAfterCollapse |
| 264 && m_appearance == o.m_appearance | 274 && m_appearance == o.m_appearance |
| 265 && m_textDecorationStyle == o.m_textDecorationStyle | 275 && m_textDecorationStyle == o.m_textDecorationStyle |
| 266 && m_wrapFlow == o.m_wrapFlow | 276 && m_wrapFlow == o.m_wrapFlow |
| 267 && m_wrapThrough == o.m_wrapThrough | 277 && m_wrapThrough == o.m_wrapThrough |
| 268 && m_hasCurrentOpacityAnimation == o.m_hasCurrentOpacityAnimation | 278 && m_hasCurrentOpacityAnimation == o.m_hasCurrentOpacityAnimation |
| 269 && m_hasCurrentTransformAnimation == o.m_hasCurrentTransformAnimation | 279 && m_hasCurrentTransformAnimation == o.m_hasCurrentTransformAnimation |
| 270 && m_hasCurrentFilterAnimation == o.m_hasCurrentFilterAnimation | 280 && m_hasCurrentFilterAnimation == o.m_hasCurrentFilterAnimation |
| 281 && m_hasCurrentBackdropFilterAnimation == o.m_hasCurrentBackdropFilterAn
imation |
| 271 && m_effectiveBlendMode == o.m_effectiveBlendMode | 282 && m_effectiveBlendMode == o.m_effectiveBlendMode |
| 272 && m_touchAction == o.m_touchAction | 283 && m_touchAction == o.m_touchAction |
| 273 && m_objectFit == o.m_objectFit | 284 && m_objectFit == o.m_objectFit |
| 274 && m_isolation == o.m_isolation | 285 && m_isolation == o.m_isolation |
| 275 && m_scrollBehavior == o.m_scrollBehavior | 286 && m_scrollBehavior == o.m_scrollBehavior |
| 276 && m_scrollSnapType == o.m_scrollSnapType | 287 && m_scrollSnapType == o.m_scrollSnapType |
| 277 && m_requiresAcceleratedCompositingForExternalReasons == o.m_requiresAcc
eleratedCompositingForExternalReasons | 288 && m_requiresAcceleratedCompositingForExternalReasons == o.m_requiresAcc
eleratedCompositingForExternalReasons |
| 278 && m_hasInlineTransform == o.m_hasInlineTransform | 289 && m_hasInlineTransform == o.m_hasInlineTransform |
| 279 && m_resize == o.m_resize | 290 && m_resize == o.m_resize |
| 280 && m_hasCompositorProxy == o.m_hasCompositorProxy; | 291 && m_hasCompositorProxy == o.m_hasCompositorProxy; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 if (!m_transitions || !o.m_transitions) | 335 if (!m_transitions || !o.m_transitions) |
| 325 return false; | 336 return false; |
| 326 return m_transitions->transitionsMatchForStyleRecalc(*o.m_transitions); | 337 return m_transitions->transitionsMatchForStyleRecalc(*o.m_transitions); |
| 327 } | 338 } |
| 328 | 339 |
| 329 bool StyleRareNonInheritedData::hasFilters() const | 340 bool StyleRareNonInheritedData::hasFilters() const |
| 330 { | 341 { |
| 331 return m_filter.get() && !m_filter->m_operations.isEmpty(); | 342 return m_filter.get() && !m_filter->m_operations.isEmpty(); |
| 332 } | 343 } |
| 333 | 344 |
| 345 bool StyleRareNonInheritedData::hasBackdropFilters() const |
| 346 { |
| 347 return m_backdropFilter.get() && !m_backdropFilter->m_operations.isEmpty(); |
| 348 } |
| 349 |
| 334 bool StyleRareNonInheritedData::shapeOutsideDataEquivalent(const StyleRareNonInh
eritedData& o) const | 350 bool StyleRareNonInheritedData::shapeOutsideDataEquivalent(const StyleRareNonInh
eritedData& o) const |
| 335 { | 351 { |
| 336 return dataEquivalent(m_shapeOutside, o.m_shapeOutside); | 352 return dataEquivalent(m_shapeOutside, o.m_shapeOutside); |
| 337 } | 353 } |
| 338 | 354 |
| 339 bool StyleRareNonInheritedData::clipPathDataEquivalent(const StyleRareNonInherit
edData& o) const | 355 bool StyleRareNonInheritedData::clipPathDataEquivalent(const StyleRareNonInherit
edData& o) const |
| 340 { | 356 { |
| 341 return dataEquivalent(m_clipPath, o.m_clipPath); | 357 return dataEquivalent(m_clipPath, o.m_clipPath); |
| 342 } | 358 } |
| 343 | 359 |
| 344 } // namespace blink | 360 } // namespace blink |
| OLD | NEW |