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

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

Issue 1304123006: Applying the "all" property needs to check all properties against the whitelist. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 bool applyAnimatedProperties(StyleResolverState&, const Element* animatingEl ement); 213 bool applyAnimatedProperties(StyleResolverState&, const Element* animatingEl ement);
214 void applyCallbackSelectors(StyleResolverState&); 214 void applyCallbackSelectors(StyleResolverState&);
215 215
216 template <CSSPropertyPriority priority> 216 template <CSSPropertyPriority priority>
217 void applyMatchedProperties(StyleResolverState&, const MatchedPropertiesRang e&, bool important, bool inheritedOnly); 217 void applyMatchedProperties(StyleResolverState&, const MatchedPropertiesRang e&, bool important, bool inheritedOnly);
218 template <CSSPropertyPriority priority> 218 template <CSSPropertyPriority priority>
219 void applyProperties(StyleResolverState&, const StylePropertySet* properties , bool isImportant, bool inheritedOnly, PropertyWhitelistType = PropertyWhitelis tNone); 219 void applyProperties(StyleResolverState&, const StylePropertySet* properties , bool isImportant, bool inheritedOnly, PropertyWhitelistType = PropertyWhitelis tNone);
220 template <CSSPropertyPriority priority> 220 template <CSSPropertyPriority priority>
221 void applyAnimatedProperties(StyleResolverState&, const WillBeHeapHashMap<Pr opertyHandle, RefPtrWillBeMember<Interpolation>>&); 221 void applyAnimatedProperties(StyleResolverState&, const WillBeHeapHashMap<Pr opertyHandle, RefPtrWillBeMember<Interpolation>>&);
222 template <CSSPropertyPriority priority> 222 template <CSSPropertyPriority priority>
223 void applyAllProperty(StyleResolverState&, CSSValue*, bool inheritedOnly); 223 void applyAllProperty(StyleResolverState&, CSSValue*, bool inheritedOnly, Pr opertyWhitelistType);
224 224
225 bool pseudoStyleForElementInternal(Element&, const PseudoStyleRequest&, cons t ComputedStyle* parentStyle, StyleResolverState&); 225 bool pseudoStyleForElementInternal(Element&, const PseudoStyleRequest&, cons t ComputedStyle* parentStyle, StyleResolverState&);
226 226
227 PassRefPtrWillBeRawPtr<PseudoElement> createPseudoElement(Element* parent, P seudoId); 227 PassRefPtrWillBeRawPtr<PseudoElement> createPseudoElement(Element* parent, P seudoId);
228 228
229 Document& document() { return *m_document; } 229 Document& document() { return *m_document; }
230 230
231 static ComputedStyle* s_styleNotYetAvailable; 231 static ComputedStyle* s_styleNotYetAvailable;
232 232
233 MatchedPropertiesCache m_matchedPropertiesCache; 233 MatchedPropertiesCache m_matchedPropertiesCache;
(...skipping 26 matching lines...) Expand all
260 260
261 OwnPtr<StyleResolverStats> m_styleResolverStats; 261 OwnPtr<StyleResolverStats> m_styleResolverStats;
262 262
263 // Use only for Internals::updateStyleAndReturnAffectedElementCount. 263 // Use only for Internals::updateStyleAndReturnAffectedElementCount.
264 unsigned m_accessCount; 264 unsigned m_accessCount;
265 }; 265 };
266 266
267 } // namespace blink 267 } // namespace blink
268 268
269 #endif // StyleResolver_h 269 #endif // StyleResolver_h
OLDNEW
« no previous file with comments | « LayoutTests/fast/pagination/first-letter-inherit-all-crash-expected.txt ('k') | Source/core/css/resolver/StyleResolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698