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

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

Issue 1896893004: Hook up style invalidation for CSS Paint API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@css-paint-register
Patch Set: fix component build. Created 4 years, 8 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/animation/css/CSSPropertyEquality.h" 5 #include "core/css/CSSPropertyEquality.h"
6 6
7 #include "core/animation/css/CSSAnimations.h" 7 #include "core/style/ComputedStyle.h"
8 #include "core/style/DataEquivalency.h" 8 #include "core/style/DataEquivalency.h"
9 #include "core/style/ComputedStyle.h"
10 #include "core/style/ShadowList.h" 9 #include "core/style/ShadowList.h"
11 10
11 // TODO(ikilpatrick): generate this file.
12
12 namespace blink { 13 namespace blink {
13 14
14 namespace { 15 namespace {
15 16
16 template <CSSPropertyID property> 17 template <CSSPropertyID property>
17 bool fillLayersEqual(const FillLayer& aLayers, const FillLayer& bLayers) 18 bool fillLayersEqual(const FillLayer& aLayers, const FillLayer& bLayers)
18 { 19 {
19 const FillLayer* aLayer = &aLayers; 20 const FillLayer* aLayer = &aLayers;
20 const FillLayer* bLayer = &bLayers; 21 const FillLayer* bLayer = &bLayers;
21 while (aLayer && bLayer) { 22 while (aLayer && bLayer) {
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 return a.svgStyle().ry() == b.svgStyle().ry(); 332 return a.svgStyle().ry() == b.svgStyle().ry();
332 case CSSPropertyZIndex: 333 case CSSPropertyZIndex:
333 return a.hasAutoZIndex() == b.hasAutoZIndex() && (a.hasAutoZIndex() || a .zIndex() == b.zIndex()); 334 return a.hasAutoZIndex() == b.hasAutoZIndex() && (a.hasAutoZIndex() || a .zIndex() == b.zIndex());
334 default: 335 default:
335 ASSERT_NOT_REACHED(); 336 ASSERT_NOT_REACHED();
336 return true; 337 return true;
337 } 338 }
338 } 339 }
339 340
340 } // namespace blink 341 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698