| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "config.h" | 5 #include "config.h" |
| 6 #include "core/animation/css/CSSPropertyEquality.h" | 6 #include "core/animation/css/CSSPropertyEquality.h" |
| 7 | 7 |
| 8 #include "core/animation/css/CSSAnimations.h" | 8 #include "core/animation/css/CSSAnimations.h" |
| 9 #include "core/rendering/style/DataEquivalency.h" | 9 #include "core/rendering/style/DataEquivalency.h" |
| 10 #include "core/rendering/style/RenderStyle.h" | 10 #include "core/rendering/style/RenderStyle.h" |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 case CSSPropertyPaddingBottom: | 166 case CSSPropertyPaddingBottom: |
| 167 return a.paddingBottom() == b.paddingBottom(); | 167 return a.paddingBottom() == b.paddingBottom(); |
| 168 case CSSPropertyPaddingLeft: | 168 case CSSPropertyPaddingLeft: |
| 169 return a.paddingLeft() == b.paddingLeft(); | 169 return a.paddingLeft() == b.paddingLeft(); |
| 170 case CSSPropertyPaddingRight: | 170 case CSSPropertyPaddingRight: |
| 171 return a.paddingRight() == b.paddingRight(); | 171 return a.paddingRight() == b.paddingRight(); |
| 172 case CSSPropertyPaddingTop: | 172 case CSSPropertyPaddingTop: |
| 173 return a.paddingTop() == b.paddingTop(); | 173 return a.paddingTop() == b.paddingTop(); |
| 174 case CSSPropertyRight: | 174 case CSSPropertyRight: |
| 175 return a.right() == b.right(); | 175 return a.right() == b.right(); |
| 176 case CSSPropertyShapeImageThreshold: | |
| 177 return a.shapeImageThreshold() == b.shapeImageThreshold(); | |
| 178 case CSSPropertyShapeMargin: | |
| 179 return a.shapeMargin() == b.shapeMargin(); | |
| 180 case CSSPropertyShapeOutside: | |
| 181 return dataEquivalent(a.shapeOutside(), b.shapeOutside()); | |
| 182 case CSSPropertyTextDecorationColor: | 176 case CSSPropertyTextDecorationColor: |
| 183 return a.textDecorationColor().resolve(a.color()) == b.textDecorationCol
or().resolve(b.color()); | 177 return a.textDecorationColor().resolve(a.color()) == b.textDecorationCol
or().resolve(b.color()); |
| 184 case CSSPropertyTextIndent: | 178 case CSSPropertyTextIndent: |
| 185 return a.textIndent() == b.textIndent(); | 179 return a.textIndent() == b.textIndent(); |
| 186 case CSSPropertyTextShadow: | 180 case CSSPropertyTextShadow: |
| 187 return dataEquivalent(a.textShadow(), b.textShadow()); | 181 return dataEquivalent(a.textShadow(), b.textShadow()); |
| 188 case CSSPropertyTop: | 182 case CSSPropertyTop: |
| 189 return a.top() == b.top(); | 183 return a.top() == b.top(); |
| 190 case CSSPropertyVerticalAlign: | 184 case CSSPropertyVerticalAlign: |
| 191 return a.verticalAlign() == b.verticalAlign() | 185 return a.verticalAlign() == b.verticalAlign() |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 return a.zIndex() == b.zIndex(); | 232 return a.zIndex() == b.zIndex(); |
| 239 case CSSPropertyZoom: | 233 case CSSPropertyZoom: |
| 240 return a.zoom() == b.zoom(); | 234 return a.zoom() == b.zoom(); |
| 241 default: | 235 default: |
| 242 ASSERT_NOT_REACHED(); | 236 ASSERT_NOT_REACHED(); |
| 243 return true; | 237 return true; |
| 244 } | 238 } |
| 245 } | 239 } |
| 246 | 240 |
| 247 } | 241 } |
| OLD | NEW |