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

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: Fixed ASSERT_NOT_REACH in linux_blink_dbg Created 6 years, 7 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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 LowPriorityProperties 268 LowPriorityProperties
269 }; 269 };
270 template <StyleResolver::StyleApplicationPass pass> 270 template <StyleResolver::StyleApplicationPass pass>
271 static inline bool isPropertyForPass(CSSPropertyID); 271 static inline bool isPropertyForPass(CSSPropertyID);
272 template <StyleApplicationPass pass> 272 template <StyleApplicationPass pass>
273 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);
274 template <StyleApplicationPass pass> 274 template <StyleApplicationPass pass>
275 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);
276 template <StyleApplicationPass pass> 276 template <StyleApplicationPass pass>
277 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
278 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);
279 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);
280 void collectViewportRules(); 283 void collectViewportRules();
281 Settings* documentSettings() { return m_document.settings(); } 284 Settings* documentSettings() { return m_document.settings(); }
282 285
283 bool isLeftPage(int pageIndex) const; 286 bool isLeftPage(int pageIndex) const;
284 bool isRightPage(int pageIndex) const { return !isLeftPage(pageIndex); } 287 bool isRightPage(int pageIndex) const { return !isLeftPage(pageIndex); }
285 bool isFirstPage(int pageIndex) const; 288 bool isFirstPage(int pageIndex) const;
286 String pageName(int pageIndex) const; 289 String pageName(int pageIndex) const;
287 290
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals; 333 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals;
331 unsigned m_styleResolverStatsSequence; 334 unsigned m_styleResolverStatsSequence;
332 335
333 // Use only for Internals::updateStyleAndReturnAffectedElementCount. 336 // Use only for Internals::updateStyleAndReturnAffectedElementCount.
334 unsigned m_accessCount; 337 unsigned m_accessCount;
335 }; 338 };
336 339
337 } // namespace WebCore 340 } // namespace WebCore
338 341
339 #endif // StyleResolver_h 342 #endif // StyleResolver_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698