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

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"
10 11
11 // TODO(ikilpatrick): generate this file. 12 // TODO(ikilpatrick): generate this file.
12 13
13 namespace blink { 14 namespace blink {
14 15
15 namespace { 16 namespace {
16 17
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 return a.svgStyle().ry() == b.svgStyle().ry(); 369 return a.svgStyle().ry() == b.svgStyle().ry();
369 case CSSPropertyZIndex: 370 case CSSPropertyZIndex:
370 return a.hasAutoZIndex() == b.hasAutoZIndex() && 371 return a.hasAutoZIndex() == b.hasAutoZIndex() &&
371 (a.hasAutoZIndex() || a.zIndex() == b.zIndex()); 372 (a.hasAutoZIndex() || a.zIndex() == b.zIndex());
372 default: 373 default:
373 NOTREACHED(); 374 NOTREACHED();
374 return true; 375 return true;
375 } 376 }
376 } 377 }
377 378
379 bool CSSPropertyEquality::registeredCustomPropertiesEqual(
380 const AtomicString& propertyName,
381 const ComputedStyle& a,
382 const ComputedStyle& b) {
383 return dataEquivalent(a.getRegisteredVariable(propertyName),
384 b.getRegisteredVariable(propertyName));
385 }
386
378 } // namespace blink 387 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698