| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 StyleRareNonInheritedData::StyleRareNonInheritedData(const StyleRareNonInherited
Data& o) | 65 StyleRareNonInheritedData::StyleRareNonInheritedData(const StyleRareNonInherited
Data& o) |
| 66 : RefCounted<StyleRareNonInheritedData>() | 66 : RefCounted<StyleRareNonInheritedData>() |
| 67 , opacity(o.opacity) | 67 , opacity(o.opacity) |
| 68 , m_aspectRatioDenominator(o.m_aspectRatioDenominator) | 68 , m_aspectRatioDenominator(o.m_aspectRatioDenominator) |
| 69 , m_aspectRatioNumerator(o.m_aspectRatioNumerator) | 69 , m_aspectRatioNumerator(o.m_aspectRatioNumerator) |
| 70 , m_perspective(o.m_perspective) | 70 , m_perspective(o.m_perspective) |
| 71 , m_perspectiveOriginX(o.m_perspectiveOriginX) | 71 , m_perspectiveOriginX(o.m_perspectiveOriginX) |
| 72 , m_perspectiveOriginY(o.m_perspectiveOriginY) | 72 , m_perspectiveOriginY(o.m_perspectiveOriginY) |
| 73 , m_flexibleBox(o.m_flexibleBox) | 73 , m_flexibleBox(o.m_flexibleBox) |
| 74 , m_transform(o.m_transform) | 74 , m_transform(o.m_transform) |
| 75 , m_willChange(o.m_willChange) | |
| 76 , m_filter(o.m_filter) | 75 , m_filter(o.m_filter) |
| 77 , m_counterDirectives(o.m_counterDirectives ? clone(*o.m_counterDirectives)
: nullptr) | 76 , m_counterDirectives(o.m_counterDirectives ? clone(*o.m_counterDirectives)
: nullptr) |
| 78 , m_boxShadow(o.m_boxShadow) | 77 , m_boxShadow(o.m_boxShadow) |
| 79 , m_animations(o.m_animations ? CSSAnimationData::create(*o.m_animations) :
nullptr) | |
| 80 , m_transitions(o.m_transitions ? CSSTransitionData::create(*o.m_transitions
) : nullptr) | |
| 81 , m_clipPath(o.m_clipPath) | 78 , m_clipPath(o.m_clipPath) |
| 82 , m_textDecorationColor(o.m_textDecorationColor) | 79 , m_textDecorationColor(o.m_textDecorationColor) |
| 83 , m_order(o.m_order) | 80 , m_order(o.m_order) |
| 84 , m_objectPosition(o.m_objectPosition) | 81 , m_objectPosition(o.m_objectPosition) |
| 85 , m_transformStyle3D(o.m_transformStyle3D) | 82 , m_transformStyle3D(o.m_transformStyle3D) |
| 86 , m_alignContent(o.m_alignContent) | 83 , m_alignContent(o.m_alignContent) |
| 87 , m_alignItems(o.m_alignItems) | 84 , m_alignItems(o.m_alignItems) |
| 88 , m_alignItemsOverflowAlignment(o.m_alignItemsOverflowAlignment) | 85 , m_alignItemsOverflowAlignment(o.m_alignItemsOverflowAlignment) |
| 89 , m_alignSelf(o.m_alignSelf) | 86 , m_alignSelf(o.m_alignSelf) |
| 90 , m_alignSelfOverflowAlignment(o.m_alignSelfOverflowAlignment) | 87 , m_alignSelfOverflowAlignment(o.m_alignSelfOverflowAlignment) |
| (...skipping 20 matching lines...) Expand all Loading... |
| 111 bool StyleRareNonInheritedData::operator==(const StyleRareNonInheritedData& o) c
onst | 108 bool StyleRareNonInheritedData::operator==(const StyleRareNonInheritedData& o) c
onst |
| 112 { | 109 { |
| 113 return opacity == o.opacity | 110 return opacity == o.opacity |
| 114 && m_aspectRatioDenominator == o.m_aspectRatioDenominator | 111 && m_aspectRatioDenominator == o.m_aspectRatioDenominator |
| 115 && m_aspectRatioNumerator == o.m_aspectRatioNumerator | 112 && m_aspectRatioNumerator == o.m_aspectRatioNumerator |
| 116 && m_perspective == o.m_perspective | 113 && m_perspective == o.m_perspective |
| 117 && m_perspectiveOriginX == o.m_perspectiveOriginX | 114 && m_perspectiveOriginX == o.m_perspectiveOriginX |
| 118 && m_perspectiveOriginY == o.m_perspectiveOriginY | 115 && m_perspectiveOriginY == o.m_perspectiveOriginY |
| 119 && m_flexibleBox == o.m_flexibleBox | 116 && m_flexibleBox == o.m_flexibleBox |
| 120 && m_transform == o.m_transform | 117 && m_transform == o.m_transform |
| 121 && m_willChange == o.m_willChange | |
| 122 && m_filter == o.m_filter | 118 && m_filter == o.m_filter |
| 123 && counterDataEquivalent(o) | 119 && counterDataEquivalent(o) |
| 124 && shadowDataEquivalent(o) | 120 && shadowDataEquivalent(o) |
| 125 && animationDataEquivalent(o) | |
| 126 && transitionDataEquivalent(o) | |
| 127 && m_clipPath == o.m_clipPath | 121 && m_clipPath == o.m_clipPath |
| 128 && m_textDecorationColor == o.m_textDecorationColor | 122 && m_textDecorationColor == o.m_textDecorationColor |
| 129 && m_order == o.m_order | 123 && m_order == o.m_order |
| 130 && m_objectPosition == o.m_objectPosition | 124 && m_objectPosition == o.m_objectPosition |
| 131 && m_transformStyle3D == o.m_transformStyle3D | 125 && m_transformStyle3D == o.m_transformStyle3D |
| 132 && m_alignContent == o.m_alignContent | 126 && m_alignContent == o.m_alignContent |
| 133 && m_alignItems == o.m_alignItems | 127 && m_alignItems == o.m_alignItems |
| 134 && m_alignItemsOverflowAlignment == o.m_alignItemsOverflowAlignment | 128 && m_alignItemsOverflowAlignment == o.m_alignItemsOverflowAlignment |
| 135 && m_alignSelf == o.m_alignSelf | 129 && m_alignSelf == o.m_alignSelf |
| 136 && m_alignSelfOverflowAlignment == o.m_alignSelfOverflowAlignment | 130 && m_alignSelfOverflowAlignment == o.m_alignSelfOverflowAlignment |
| (...skipping 15 matching lines...) Expand all Loading... |
| 152 bool StyleRareNonInheritedData::counterDataEquivalent(const StyleRareNonInherite
dData& o) const | 146 bool StyleRareNonInheritedData::counterDataEquivalent(const StyleRareNonInherite
dData& o) const |
| 153 { | 147 { |
| 154 return dataEquivalent(m_counterDirectives, o.m_counterDirectives); | 148 return dataEquivalent(m_counterDirectives, o.m_counterDirectives); |
| 155 } | 149 } |
| 156 | 150 |
| 157 bool StyleRareNonInheritedData::shadowDataEquivalent(const StyleRareNonInherited
Data& o) const | 151 bool StyleRareNonInheritedData::shadowDataEquivalent(const StyleRareNonInherited
Data& o) const |
| 158 { | 152 { |
| 159 return dataEquivalent(m_boxShadow, o.m_boxShadow); | 153 return dataEquivalent(m_boxShadow, o.m_boxShadow); |
| 160 } | 154 } |
| 161 | 155 |
| 162 bool StyleRareNonInheritedData::animationDataEquivalent(const StyleRareNonInheri
tedData& o) const | |
| 163 { | |
| 164 if (!m_animations && !o.m_animations) | |
| 165 return true; | |
| 166 if (!m_animations || !o.m_animations) | |
| 167 return false; | |
| 168 return m_animations->animationsMatchForStyleRecalc(*o.m_animations); | |
| 169 } | |
| 170 | |
| 171 bool StyleRareNonInheritedData::transitionDataEquivalent(const StyleRareNonInher
itedData& o) const | |
| 172 { | |
| 173 if (!m_transitions && !o.m_transitions) | |
| 174 return true; | |
| 175 if (!m_transitions || !o.m_transitions) | |
| 176 return false; | |
| 177 return m_transitions->transitionsMatchForStyleRecalc(*o.m_transitions); | |
| 178 } | |
| 179 | |
| 180 bool StyleRareNonInheritedData::hasFilters() const | 156 bool StyleRareNonInheritedData::hasFilters() const |
| 181 { | 157 { |
| 182 return m_filter.get() && !m_filter->m_operations.isEmpty(); | 158 return m_filter.get() && !m_filter->m_operations.isEmpty(); |
| 183 } | 159 } |
| 184 | 160 |
| 185 } // namespace blink | 161 } // namespace blink |
| OLD | NEW |