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

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

Issue 216803002: Implement 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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 257
258 void applyMatchedProperties(StyleResolverState&, const MatchResult&); 258 void applyMatchedProperties(StyleResolverState&, const MatchResult&);
259 bool applyAnimatedProperties(StyleResolverState&, Element* animatingElement) ; 259 bool applyAnimatedProperties(StyleResolverState&, Element* animatingElement) ;
260 260
261 enum StyleApplicationPass { 261 enum StyleApplicationPass {
262 AnimationProperties, 262 AnimationProperties,
263 HighPriorityProperties, 263 HighPriorityProperties,
264 LowPriorityProperties 264 LowPriorityProperties
265 }; 265 };
266 template <StyleResolver::StyleApplicationPass pass> 266 template <StyleResolver::StyleApplicationPass pass>
267 static inline CSSPropertyID firstCSSPropertyId();
268 template <StyleResolver::StyleApplicationPass pass>
269 static inline CSSPropertyID lastCSSPropertyId();
270 template <StyleResolver::StyleApplicationPass pass>
267 static inline bool isPropertyForPass(CSSPropertyID); 271 static inline bool isPropertyForPass(CSSPropertyID);
268 template <StyleApplicationPass pass> 272 template <StyleApplicationPass pass>
269 void applyMatchedProperties(StyleResolverState&, const MatchResult&, bool im portant, int startIndex, int endIndex, bool inheritedOnly); 273 void applyMatchedProperties(StyleResolverState&, const MatchResult&, bool im portant, int startIndex, int endIndex, bool inheritedOnly);
270 template <StyleApplicationPass pass> 274 template <StyleApplicationPass pass>
271 void applyProperties(StyleResolverState&, const StylePropertySet* properties , StyleRule*, bool isImportant, bool inheritedOnly, PropertyWhitelistType = Prop ertyWhitelistNone); 275 void applyProperties(StyleResolverState&, const StylePropertySet* properties , StyleRule*, bool isImportant, bool inheritedOnly, PropertyWhitelistType = Prop ertyWhitelistNone);
272 template <StyleApplicationPass pass> 276 template <StyleApplicationPass pass>
273 void applyAnimatedProperties(StyleResolverState&, const WillBeHeapHashMap<CS SPropertyID, RefPtrWillBeMember<Interpolation> >&); 277 void applyAnimatedProperties(StyleResolverState&, const WillBeHeapHashMap<CS SPropertyID, RefPtrWillBeMember<Interpolation> >&);
278 template <StyleResolver::StyleApplicationPass pass>
279 void applyAllProperty(StyleResolverState&, CSSValue*);
280
274 void matchPageRules(MatchResult&, RuleSet*, bool isLeftPage, bool isFirstPag e, const String& pageName); 281 void matchPageRules(MatchResult&, RuleSet*, bool isLeftPage, bool isFirstPag e, const String& pageName);
275 void matchPageRulesForList(WillBeHeapVector<RawPtrWillBeMember<StyleRulePage > >& matchedRules, const WillBeHeapVector<RawPtrWillBeMember<StyleRulePage> >&, bool isLeftPage, bool isFirstPage, const String& pageName); 282 void matchPageRulesForList(WillBeHeapVector<RawPtrWillBeMember<StyleRulePage > >& matchedRules, const WillBeHeapVector<RawPtrWillBeMember<StyleRulePage> >&, bool isLeftPage, bool isFirstPage, const String& pageName);
276 void collectViewportRules(); 283 void collectViewportRules();
277 Settings* documentSettings() { return m_document.settings(); } 284 Settings* documentSettings() { return m_document.settings(); }
278 285
279 bool isLeftPage(int pageIndex) const; 286 bool isLeftPage(int pageIndex) const;
280 bool isRightPage(int pageIndex) const { return !isLeftPage(pageIndex); } 287 bool isRightPage(int pageIndex) const { return !isLeftPage(pageIndex); }
281 bool isFirstPage(int pageIndex) const; 288 bool isFirstPage(int pageIndex) const;
282 String pageName(int pageIndex) const; 289 String pageName(int pageIndex) const;
283 290
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals; 333 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals;
327 unsigned m_styleResolverStatsSequence; 334 unsigned m_styleResolverStatsSequence;
328 335
329 // Use only for Internals::updateStyleAndReturnAffectedElementCount. 336 // Use only for Internals::updateStyleAndReturnAffectedElementCount.
330 unsigned m_accessCount; 337 unsigned m_accessCount;
331 }; 338 };
332 339
333 } // namespace WebCore 340 } // namespace WebCore
334 341
335 #endif // StyleResolver_h 342 #endif // StyleResolver_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698