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 "core/css/CSSPropertyEquality.h" | 5 #include "core/css/CSSPropertyEquality.h" |
6 | 6 |
7 #include "core/style/ComputedStyle.h" | 7 #include "core/style/ComputedStyle.h" |
8 #include "core/style/DataEquivalency.h" | 8 #include "core/style/DataEquivalency.h" |
9 #include "core/style/ShadowList.h" | 9 #include "core/style/ShadowList.h" |
10 | 10 |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 case CSSPropertyMarginTop: | 168 case CSSPropertyMarginTop: |
169 return a.marginTop() == b.marginTop(); | 169 return a.marginTop() == b.marginTop(); |
170 case CSSPropertyMaxHeight: | 170 case CSSPropertyMaxHeight: |
171 return a.maxHeight() == b.maxHeight(); | 171 return a.maxHeight() == b.maxHeight(); |
172 case CSSPropertyMaxWidth: | 172 case CSSPropertyMaxWidth: |
173 return a.maxWidth() == b.maxWidth(); | 173 return a.maxWidth() == b.maxWidth(); |
174 case CSSPropertyMinHeight: | 174 case CSSPropertyMinHeight: |
175 return a.minHeight() == b.minHeight(); | 175 return a.minHeight() == b.minHeight(); |
176 case CSSPropertyMinWidth: | 176 case CSSPropertyMinWidth: |
177 return a.minWidth() == b.minWidth(); | 177 return a.minWidth() == b.minWidth(); |
178 case CSSPropertyMotionOffset: | 178 case CSSPropertyOffsetDistance: |
179 return a.motionOffset() == b.motionOffset(); | 179 return a.offsetDistance() == b.offsetDistance(); |
180 case CSSPropertyMotionRotation: | 180 case CSSPropertyOffsetRotation: |
181 return a.motionRotation() == b.motionRotation(); | 181 return a.offsetRotation() == b.offsetRotation(); |
182 case CSSPropertyObjectPosition: | 182 case CSSPropertyObjectPosition: |
183 return a.objectPosition() == b.objectPosition(); | 183 return a.objectPosition() == b.objectPosition(); |
184 case CSSPropertyOpacity: | 184 case CSSPropertyOpacity: |
185 return a.opacity() == b.opacity(); | 185 return a.opacity() == b.opacity(); |
186 case CSSPropertyOrphans: | 186 case CSSPropertyOrphans: |
187 return a.orphans() == b.orphans(); | 187 return a.orphans() == b.orphans(); |
188 case CSSPropertyOutlineColor: | 188 case CSSPropertyOutlineColor: |
189 return a.outlineColor() == b.outlineColor() | 189 return a.outlineColor() == b.outlineColor() |
190 && a.visitedLinkOutlineColor() == b.visitedLinkOutlineColor(); | 190 && a.visitedLinkOutlineColor() == b.visitedLinkOutlineColor(); |
191 case CSSPropertyOutlineOffset: | 191 case CSSPropertyOutlineOffset: |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 return a.svgStyle().ry() == b.svgStyle().ry(); | 332 return a.svgStyle().ry() == b.svgStyle().ry(); |
333 case CSSPropertyZIndex: | 333 case CSSPropertyZIndex: |
334 return a.hasAutoZIndex() == b.hasAutoZIndex() && (a.hasAutoZIndex() || a
.zIndex() == b.zIndex()); | 334 return a.hasAutoZIndex() == b.hasAutoZIndex() && (a.hasAutoZIndex() || a
.zIndex() == b.zIndex()); |
335 default: | 335 default: |
336 NOTREACHED(); | 336 NOTREACHED(); |
337 return true; | 337 return true; |
338 } | 338 } |
339 } | 339 } |
340 | 340 |
341 } // namespace blink | 341 } // namespace blink |
OLD | NEW |