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

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

Issue 2730683002: Add CSS Transition support to registered custom properties (Closed)
Patch Set: Rebased Created 3 years, 9 months 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/css/CSSValue.h"
7 #include "core/style/ComputedStyle.h" 8 #include "core/style/ComputedStyle.h"
8 #include "core/style/DataEquivalency.h" 9 #include "core/style/DataEquivalency.h"
9 #include "core/style/ShadowList.h" 10 #include "core/style/ShadowList.h"
11 #include "wtf/text/AtomicString.h"
Eric Willigers 2017/03/08 04:10:47 Declaring the class would be sufficient. frame/csp
alancutter (OOO until 2018) 2017/03/09 04:35:59 Removed.
10 12
11 // TODO(ikilpatrick): generate this file. 13 // TODO(ikilpatrick): generate this file.
12 14
13 namespace blink { 15 namespace blink {
14 16
15 namespace { 17 namespace {
16 18
17 template <CSSPropertyID property> 19 template <CSSPropertyID property>
18 bool fillLayersEqual(const FillLayer& aLayers, const FillLayer& bLayers) { 20 bool fillLayersEqual(const FillLayer& aLayers, const FillLayer& bLayers) {
19 const FillLayer* aLayer = &aLayers; 21 const FillLayer* aLayer = &aLayers;
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 return a.svgStyle().ry() == b.svgStyle().ry(); 370 return a.svgStyle().ry() == b.svgStyle().ry();
369 case CSSPropertyZIndex: 371 case CSSPropertyZIndex:
370 return a.hasAutoZIndex() == b.hasAutoZIndex() && 372 return a.hasAutoZIndex() == b.hasAutoZIndex() &&
371 (a.hasAutoZIndex() || a.zIndex() == b.zIndex()); 373 (a.hasAutoZIndex() || a.zIndex() == b.zIndex());
372 default: 374 default:
373 NOTREACHED(); 375 NOTREACHED();
374 return true; 376 return true;
375 } 377 }
376 } 378 }
377 379
380 bool CSSPropertyEquality::registeredCustomPropertiesEqual(
381 const AtomicString& propertyName,
382 const ComputedStyle& a,
383 const ComputedStyle& b) {
384 return compareCSSValuePtr(a.getRegisteredVariable(propertyName),
385 b.getRegisteredVariable(propertyName));
386 }
387
378 } // namespace blink 388 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698