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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 case CSSPropertyBorderTopLeftRadius: | 109 case CSSPropertyBorderTopLeftRadius: |
110 return a.borderTopLeftRadius() == b.borderTopLeftRadius(); | 110 return a.borderTopLeftRadius() == b.borderTopLeftRadius(); |
111 case CSSPropertyBorderTopRightRadius: | 111 case CSSPropertyBorderTopRightRadius: |
112 return a.borderTopRightRadius() == b.borderTopRightRadius(); | 112 return a.borderTopRightRadius() == b.borderTopRightRadius(); |
113 case CSSPropertyBorderTopWidth: | 113 case CSSPropertyBorderTopWidth: |
114 return a.borderTopWidth() == b.borderTopWidth(); | 114 return a.borderTopWidth() == b.borderTopWidth(); |
115 case CSSPropertyBottom: | 115 case CSSPropertyBottom: |
116 return a.bottom() == b.bottom(); | 116 return a.bottom() == b.bottom(); |
117 case CSSPropertyBoxShadow: | 117 case CSSPropertyBoxShadow: |
118 return dataEquivalent(a.boxShadow(), b.boxShadow()); | 118 return dataEquivalent(a.boxShadow(), b.boxShadow()); |
| 119 case CSSPropertyCaretColor: |
| 120 return a.caretColor() == b.caretColor() && |
| 121 a.visitedLinkCaretColor() == b.visitedLinkCaretColor(); |
119 case CSSPropertyClip: | 122 case CSSPropertyClip: |
120 return a.clip() == b.clip(); | 123 return a.clip() == b.clip(); |
121 case CSSPropertyColor: | 124 case CSSPropertyColor: |
122 return a.color() == b.color() && | 125 return a.color() == b.color() && |
123 a.visitedLinkColor() == b.visitedLinkColor(); | 126 a.visitedLinkColor() == b.visitedLinkColor(); |
124 case CSSPropertyFill: { | 127 case CSSPropertyFill: { |
125 const SVGComputedStyle& aSVG = a.svgStyle(); | 128 const SVGComputedStyle& aSVG = a.svgStyle(); |
126 const SVGComputedStyle& bSVG = b.svgStyle(); | 129 const SVGComputedStyle& bSVG = b.svgStyle(); |
127 return aSVG.fillPaintType() == bSVG.fillPaintType() && | 130 return aSVG.fillPaintType() == bSVG.fillPaintType() && |
128 (aSVG.fillPaintType() != SVG_PAINTTYPE_RGBCOLOR || | 131 (aSVG.fillPaintType() != SVG_PAINTTYPE_RGBCOLOR || |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 case CSSPropertyZIndex: | 366 case CSSPropertyZIndex: |
364 return a.hasAutoZIndex() == b.hasAutoZIndex() && | 367 return a.hasAutoZIndex() == b.hasAutoZIndex() && |
365 (a.hasAutoZIndex() || a.zIndex() == b.zIndex()); | 368 (a.hasAutoZIndex() || a.zIndex() == b.zIndex()); |
366 default: | 369 default: |
367 NOTREACHED(); | 370 NOTREACHED(); |
368 return true; | 371 return true; |
369 } | 372 } |
370 } | 373 } |
371 | 374 |
372 } // namespace blink | 375 } // namespace blink |
OLD | NEW |