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

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

Issue 339163002: Implemented applyPropertyAll for applying all shorthand property. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
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. All rights reserved. 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 256
257 void applyMatchedProperties(StyleResolverState&, const MatchResult&); 257 void applyMatchedProperties(StyleResolverState&, const MatchResult&);
258 bool applyAnimatedProperties(StyleResolverState&, Element* animatingElement) ; 258 bool applyAnimatedProperties(StyleResolverState&, Element* animatingElement) ;
259 259
260 enum StyleApplicationPass { 260 enum StyleApplicationPass {
261 AnimationProperties, 261 AnimationProperties,
262 HighPriorityProperties, 262 HighPriorityProperties,
263 LowPriorityProperties 263 LowPriorityProperties
264 }; 264 };
265 template <StyleResolver::StyleApplicationPass pass> 265 template <StyleResolver::StyleApplicationPass pass>
266 static inline CSSPropertyID firstCSSPropertyId();
267 template <StyleResolver::StyleApplicationPass pass>
268 static inline CSSPropertyID lastCSSPropertyId();
269 template <StyleResolver::StyleApplicationPass pass>
266 static inline bool isPropertyForPass(CSSPropertyID); 270 static inline bool isPropertyForPass(CSSPropertyID);
267 template <StyleApplicationPass pass> 271 template <StyleApplicationPass pass>
268 void applyMatchedProperties(StyleResolverState&, const MatchResult&, bool im portant, int startIndex, int endIndex, bool inheritedOnly); 272 void applyMatchedProperties(StyleResolverState&, const MatchResult&, bool im portant, int startIndex, int endIndex, bool inheritedOnly);
269 template <StyleApplicationPass pass> 273 template <StyleApplicationPass pass>
270 void applyProperties(StyleResolverState&, const StylePropertySet* properties , StyleRule*, bool isImportant, bool inheritedOnly, PropertyWhitelistType = Prop ertyWhitelistNone); 274 void applyProperties(StyleResolverState&, const StylePropertySet* properties , StyleRule*, bool isImportant, bool inheritedOnly, PropertyWhitelistType = Prop ertyWhitelistNone);
271 template <StyleApplicationPass pass> 275 template <StyleApplicationPass pass>
272 void applyAnimatedProperties(StyleResolverState&, const WillBeHeapHashMap<CS SPropertyID, RefPtrWillBeMember<Interpolation> >&); 276 void applyAnimatedProperties(StyleResolverState&, const WillBeHeapHashMap<CS SPropertyID, RefPtrWillBeMember<Interpolation> >&);
277 template <StyleResolver::StyleApplicationPass pass>
278 void applyAllProperty(StyleResolverState&, CSSValue*);
279
273 void matchPageRules(MatchResult&, RuleSet*, bool isLeftPage, bool isFirstPag e, const String& pageName); 280 void matchPageRules(MatchResult&, RuleSet*, bool isLeftPage, bool isFirstPag e, const String& pageName);
274 void matchPageRulesForList(WillBeHeapVector<RawPtrWillBeMember<StyleRulePage > >& matchedRules, const WillBeHeapVector<RawPtrWillBeMember<StyleRulePage> >&, bool isLeftPage, bool isFirstPage, const String& pageName); 281 void matchPageRulesForList(WillBeHeapVector<RawPtrWillBeMember<StyleRulePage > >& matchedRules, const WillBeHeapVector<RawPtrWillBeMember<StyleRulePage> >&, bool isLeftPage, bool isFirstPage, const String& pageName);
275 void collectViewportRules(); 282 void collectViewportRules();
276 Settings* documentSettings() { return m_document.settings(); } 283 Settings* documentSettings() { return m_document.settings(); }
277 284
278 bool isLeftPage(int pageIndex) const; 285 bool isLeftPage(int pageIndex) const;
279 bool isRightPage(int pageIndex) const { return !isLeftPage(pageIndex); } 286 bool isRightPage(int pageIndex) const { return !isLeftPage(pageIndex); }
280 bool isFirstPage(int pageIndex) const; 287 bool isFirstPage(int pageIndex) const;
281 String pageName(int pageIndex) const; 288 String pageName(int pageIndex) const;
282 289
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals; 332 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals;
326 unsigned m_styleResolverStatsSequence; 333 unsigned m_styleResolverStatsSequence;
327 334
328 // Use only for Internals::updateStyleAndReturnAffectedElementCount. 335 // Use only for Internals::updateStyleAndReturnAffectedElementCount.
329 unsigned m_accessCount; 336 unsigned m_accessCount;
330 }; 337 };
331 338
332 } // namespace WebCore 339 } // namespace WebCore
333 340
334 #endif // StyleResolver_h 341 #endif // StyleResolver_h
OLDNEW
« no previous file with comments | « Source/core/css/StylePropertyShorthandCustom.cpp ('k') | Source/core/css/resolver/StyleResolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698