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

Side by Side Diff: third_party/WebKit/Source/core/css/resolver/StyleResolver.h

Issue 2722983004: Use ApplyAnimations enum parameter instead of bool for callsite readability (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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
4 * All rights reserved. 4 * All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 enum ShouldUpdateNeedsApplyPass { 237 enum ShouldUpdateNeedsApplyPass {
238 CheckNeedsApplyPass = false, 238 CheckNeedsApplyPass = false,
239 UpdateNeedsApplyPass = true, 239 UpdateNeedsApplyPass = true,
240 }; 240 };
241 241
242 void applyMatchedPropertiesAndCustomPropertyAnimations( 242 void applyMatchedPropertiesAndCustomPropertyAnimations(
243 StyleResolverState&, 243 StyleResolverState&,
244 const MatchResult&, 244 const MatchResult&,
245 const Element* animatingElement); 245 const Element* animatingElement);
246 CacheSuccess applyMatchedCache(StyleResolverState&, const MatchResult&); 246 CacheSuccess applyMatchedCache(StyleResolverState&, const MatchResult&);
247 enum ApplyAnimations { ExcludeAnimations, IncludeAnimations };
247 void applyCustomProperties(StyleResolverState&, 248 void applyCustomProperties(StyleResolverState&,
248 const MatchResult&, 249 const MatchResult&,
249 bool applyAnimations, 250 ApplyAnimations,
250 const CacheSuccess&, 251 const CacheSuccess&,
251 NeedsApplyPass&); 252 NeedsApplyPass&);
252 void applyMatchedAnimationProperties(StyleResolverState&, 253 void applyMatchedAnimationProperties(StyleResolverState&,
253 const MatchResult&, 254 const MatchResult&,
254 const CacheSuccess&, 255 const CacheSuccess&,
255 NeedsApplyPass&); 256 NeedsApplyPass&);
256 void applyMatchedStandardProperties(StyleResolverState&, 257 void applyMatchedStandardProperties(StyleResolverState&,
257 const MatchResult&, 258 const MatchResult&,
258 const CacheSuccess&, 259 const CacheSuccess&,
259 NeedsApplyPass&); 260 NeedsApplyPass&);
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 bool m_wasViewportResized = false; 317 bool m_wasViewportResized = false;
317 318
318 unsigned m_styleSharingDepth = 0; 319 unsigned m_styleSharingDepth = 0;
319 HeapVector<Member<StyleSharingList>, styleSharingMaxDepth> 320 HeapVector<Member<StyleSharingList>, styleSharingMaxDepth>
320 m_styleSharingLists; 321 m_styleSharingLists;
321 }; 322 };
322 323
323 } // namespace blink 324 } // namespace blink
324 325
325 #endif // StyleResolver_h 326 #endif // StyleResolver_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698