Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(353)

Side by Side Diff: third_party/WebKit/Source/core/css/CSSPropertyEquality.cpp

Issue 2520873002: [css-ui] Add support for caret-color property (Closed)
Patch Set: Add new baselines for Mac and Windows Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698