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

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

Issue 1645433002: Basic implementation of @apply (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix expted.txt for failing test Created 4 years, 10 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
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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 void applyCallbackSelectors(StyleResolverState&); 204 void applyCallbackSelectors(StyleResolverState&);
205 205
206 template <CSSPropertyPriority priority> 206 template <CSSPropertyPriority priority>
207 void applyMatchedProperties(StyleResolverState&, const MatchedPropertiesRang e&, bool important, bool inheritedOnly); 207 void applyMatchedProperties(StyleResolverState&, const MatchedPropertiesRang e&, bool important, bool inheritedOnly);
208 template <CSSPropertyPriority priority> 208 template <CSSPropertyPriority priority>
209 void applyProperties(StyleResolverState&, const StylePropertySet* properties , bool isImportant, bool inheritedOnly, PropertyWhitelistType = PropertyWhitelis tNone); 209 void applyProperties(StyleResolverState&, const StylePropertySet* properties , bool isImportant, bool inheritedOnly, PropertyWhitelistType = PropertyWhitelis tNone);
210 template <CSSPropertyPriority priority> 210 template <CSSPropertyPriority priority>
211 void applyAnimatedProperties(StyleResolverState&, const ActiveInterpolations Map&); 211 void applyAnimatedProperties(StyleResolverState&, const ActiveInterpolations Map&);
212 template <CSSPropertyPriority priority> 212 template <CSSPropertyPriority priority>
213 void applyAllProperty(StyleResolverState&, CSSValue*, bool inheritedOnly, Pr opertyWhitelistType); 213 void applyAllProperty(StyleResolverState&, CSSValue*, bool inheritedOnly, Pr opertyWhitelistType);
214 template <CSSPropertyPriority priority>
215 void applyPropertiesForApplyAtRule(StyleResolverState&, const CSSValue*, boo l isImportant, bool inheritedOnly, PropertyWhitelistType);
214 216
215 bool pseudoStyleForElementInternal(Element&, const PseudoStyleRequest&, cons t ComputedStyle* parentStyle, StyleResolverState&); 217 bool pseudoStyleForElementInternal(Element&, const PseudoStyleRequest&, cons t ComputedStyle* parentStyle, StyleResolverState&);
216 bool hasAuthorBackground(const StyleResolverState&); 218 bool hasAuthorBackground(const StyleResolverState&);
217 bool hasAuthorBorder(const StyleResolverState&); 219 bool hasAuthorBorder(const StyleResolverState&);
218 220
219 PassRefPtrWillBeRawPtr<PseudoElement> createPseudoElement(Element* parent, P seudoId); 221 PassRefPtrWillBeRawPtr<PseudoElement> createPseudoElement(Element* parent, P seudoId);
220 222
221 Document& document() { return *m_document; } 223 Document& document() { return *m_document; }
222 224
223 static ComputedStyle* s_styleNotYetAvailable; 225 static ComputedStyle* s_styleNotYetAvailable;
(...skipping 23 matching lines...) Expand all
247 bool m_needCollectFeatures; 249 bool m_needCollectFeatures;
248 bool m_printMediaType; 250 bool m_printMediaType;
249 251
250 unsigned m_styleSharingDepth; 252 unsigned m_styleSharingDepth;
251 WillBeHeapVector<OwnPtrWillBeMember<StyleSharingList>, styleSharingMaxDepth> m_styleSharingLists; 253 WillBeHeapVector<OwnPtrWillBeMember<StyleSharingList>, styleSharingMaxDepth> m_styleSharingLists;
252 }; 254 };
253 255
254 } // namespace blink 256 } // namespace blink
255 257
256 #endif // StyleResolver_h 258 #endif // StyleResolver_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698