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

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

Issue 19804005: Remove AtomicStringImpl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 bool buildScopedStyleTreeInDocumentOrder() const { return m_styleTree.buildI nDocumentOrder(); } 206 bool buildScopedStyleTreeInDocumentOrder() const { return m_styleTree.buildI nDocumentOrder(); }
207 207
208 ScopedStyleResolver* ensureScopedStyleResolver(const ContainerNode* scope) 208 ScopedStyleResolver* ensureScopedStyleResolver(const ContainerNode* scope)
209 { 209 {
210 return m_styleTree.ensureScopedStyleResolver(scope ? scope : document()) ; 210 return m_styleTree.ensureScopedStyleResolver(scope ? scope : document()) ;
211 } 211 }
212 212
213 // FIXME: Used by SharingStyleFinder, but should be removed. 213 // FIXME: Used by SharingStyleFinder, but should be removed.
214 bool styleSharingCandidateMatchesRuleSet(const ElementResolveContext&, Rende rStyle*, RuleSet*); 214 bool styleSharingCandidateMatchesRuleSet(const ElementResolveContext&, Rende rStyle*, RuleSet*);
215 215
216 const StyleRuleKeyframes* matchScopedKeyframesRule(Element*, const AtomicStr ingImpl* animationName); 216 const StyleRuleKeyframes* matchScopedKeyframesRule(Element*, const StringImp l* animationName);
217 PassRefPtr<RenderStyle> styleForKeyframe(Element*, const RenderStyle*, const StyleKeyframe*, KeyframeValue&); 217 PassRefPtr<RenderStyle> styleForKeyframe(Element*, const RenderStyle*, const StyleKeyframe*, KeyframeValue&);
218 218
219 // These methods will give back the set of rules that matched for a given el ement (or a pseudo-element). 219 // These methods will give back the set of rules that matched for a given el ement (or a pseudo-element).
220 enum CSSRuleFilter { 220 enum CSSRuleFilter {
221 UAAndUserCSSRules = 1 << 1, 221 UAAndUserCSSRules = 1 << 1,
222 AuthorCSSRules = 1 << 2, 222 AuthorCSSRules = 1 << 2,
223 EmptyCSSRules = 1 << 3, 223 EmptyCSSRules = 1 << 3,
224 CrossOriginCSSRules = 1 << 4, 224 CrossOriginCSSRules = 1 << 4,
225 AllButEmptyCSSRules = UAAndUserCSSRules | AuthorCSSRules | CrossOriginCS SRules, 225 AllButEmptyCSSRules = UAAndUserCSSRules | AuthorCSSRules | CrossOriginCS SRules,
226 AllCSSRules = AllButEmptyCSSRules | EmptyCSSRules, 226 AllCSSRules = AllButEmptyCSSRules | EmptyCSSRules,
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 Settings* documentSettings() { return m_document->settings(); } 302 Settings* documentSettings() { return m_document->settings(); }
303 303
304 bool isLeftPage(int pageIndex) const; 304 bool isLeftPage(int pageIndex) const;
305 bool isRightPage(int pageIndex) const { return !isLeftPage(pageIndex); } 305 bool isRightPage(int pageIndex) const { return !isLeftPage(pageIndex); }
306 bool isFirstPage(int pageIndex) const; 306 bool isFirstPage(int pageIndex) const;
307 String pageName(int pageIndex) const; 307 String pageName(int pageIndex) const;
308 308
309 DocumentRuleSets m_ruleSets; 309 DocumentRuleSets m_ruleSets;
310 310
311 // FIXME: This likely belongs on RuleSet. 311 // FIXME: This likely belongs on RuleSet.
312 typedef HashMap<AtomicStringImpl*, RefPtr<StyleRuleKeyframes> > KeyframesRul eMap; 312 typedef HashMap<StringImpl*, RefPtr<StyleRuleKeyframes> > KeyframesRuleMap;
313 KeyframesRuleMap m_keyframesRuleMap; 313 KeyframesRuleMap m_keyframesRuleMap;
314 314
315 static RenderStyle* s_styleNotYetAvailable; 315 static RenderStyle* s_styleNotYetAvailable;
316 316
317 void cacheBorderAndBackground(); 317 void cacheBorderAndBackground();
318 318
319 void applyProperty(StyleResolverState&, CSSPropertyID, CSSValue*); 319 void applyProperty(StyleResolverState&, CSSPropertyID, CSSValue*);
320 320
321 MatchedPropertiesCache m_matchedPropertiesCache; 321 MatchedPropertiesCache m_matchedPropertiesCache;
322 322
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 PseudoId ignoreDynamicPseudo = NOPSEUDO; 362 PseudoId ignoreDynamicPseudo = NOPSEUDO;
363 if (selectorChecker.match(selectorCheckingContext, ignoreDynamicPseudo, DOMSiblingTraversalStrategy()) == SelectorChecker::SelectorMatches) 363 if (selectorChecker.match(selectorCheckingContext, ignoreDynamicPseudo, DOMSiblingTraversalStrategy()) == SelectorChecker::SelectorMatches)
364 return true; 364 return true;
365 } 365 }
366 return false; 366 return false;
367 } 367 }
368 368
369 } // namespace WebCore 369 } // namespace WebCore
370 370
371 #endif // StyleResolver_h 371 #endif // StyleResolver_h
OLDNEW
« no previous file with comments | « Source/core/css/resolver/ScopedStyleResolver.cpp ('k') | Source/core/css/resolver/StyleResolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698