Chromium Code Reviews| 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 CSSPropertyObjectPosition: | |
| 179 return a.objectPosition() == b.objectPosition(); | |
| 180 case CSSPropertyOffsetAnchor: | |
| 181 return a.offsetAnchor() == b.offsetAnchor(); | |
| 178 case CSSPropertyOffsetDistance: | 182 case CSSPropertyOffsetDistance: |
| 179 return a.offsetDistance() == b.offsetDistance(); | 183 return a.offsetDistance() == b.offsetDistance(); |
| 180 case CSSPropertyOffsetRotation: | 184 case CSSPropertyOffsetRotation: |
| 181 return a.offsetRotation() == b.offsetRotation(); | 185 return a.offsetRotation() == b.offsetRotation(); |
| 182 case CSSPropertyObjectPosition: | 186 case CSSPropertyOffsetPosition: |
|
suzyh_UTC10 (ex-contributor)
2016/09/22 03:44:53
Alph order: switch with CSSPropertyOffsetRotation.
Eric Willigers
2016/09/22 04:32:15
Done.
| |
| 183 return a.objectPosition() == b.objectPosition(); | 187 return a.offsetPosition() == b.offsetPosition(); |
| 184 case CSSPropertyOpacity: | 188 case CSSPropertyOpacity: |
| 185 return a.opacity() == b.opacity(); | 189 return a.opacity() == b.opacity(); |
| 186 case CSSPropertyOrphans: | 190 case CSSPropertyOrphans: |
| 187 return a.orphans() == b.orphans(); | 191 return a.orphans() == b.orphans(); |
| 188 case CSSPropertyOutlineColor: | 192 case CSSPropertyOutlineColor: |
| 189 return a.outlineColor() == b.outlineColor() | 193 return a.outlineColor() == b.outlineColor() |
| 190 && a.visitedLinkOutlineColor() == b.visitedLinkOutlineColor(); | 194 && a.visitedLinkOutlineColor() == b.visitedLinkOutlineColor(); |
| 191 case CSSPropertyOutlineOffset: | 195 case CSSPropertyOutlineOffset: |
| 192 return a.outlineOffset() == b.outlineOffset(); | 196 return a.outlineOffset() == b.outlineOffset(); |
| 193 case CSSPropertyOutlineWidth: | 197 case CSSPropertyOutlineWidth: |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 332 return a.svgStyle().ry() == b.svgStyle().ry(); | 336 return a.svgStyle().ry() == b.svgStyle().ry(); |
| 333 case CSSPropertyZIndex: | 337 case CSSPropertyZIndex: |
| 334 return a.hasAutoZIndex() == b.hasAutoZIndex() && (a.hasAutoZIndex() || a .zIndex() == b.zIndex()); | 338 return a.hasAutoZIndex() == b.hasAutoZIndex() && (a.hasAutoZIndex() || a .zIndex() == b.zIndex()); |
| 335 default: | 339 default: |
| 336 NOTREACHED(); | 340 NOTREACHED(); |
| 337 return true; | 341 return true; |
| 338 } | 342 } |
| 339 } | 343 } |
| 340 | 344 |
| 341 } // namespace blink | 345 } // namespace blink |
| OLD | NEW |