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

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

Issue 18196004: Revert 153294 "Remove AtomicStringImpl." (Closed) Base URL: svn://svn.chromium.org/blink/
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 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 void matchPageRulesForList(Vector<StyleRulePage*>& matchedRules, const Vecto r<StyleRulePage*>&, bool isLeftPage, bool isFirstPage, const String& pageName); 332 void matchPageRulesForList(Vector<StyleRulePage*>& matchedRules, const Vecto r<StyleRulePage*>&, bool isLeftPage, bool isFirstPage, const String& pageName);
333 Settings* documentSettings() { return m_document->settings(); } 333 Settings* documentSettings() { return m_document->settings(); }
334 334
335 bool isLeftPage(int pageIndex) const; 335 bool isLeftPage(int pageIndex) const;
336 bool isRightPage(int pageIndex) const { return !isLeftPage(pageIndex); } 336 bool isRightPage(int pageIndex) const { return !isLeftPage(pageIndex); }
337 bool isFirstPage(int pageIndex) const; 337 bool isFirstPage(int pageIndex) const;
338 String pageName(int pageIndex) const; 338 String pageName(int pageIndex) const;
339 339
340 DocumentRuleSets m_ruleSets; 340 DocumentRuleSets m_ruleSets;
341 341
342 typedef HashMap<StringImpl*, RefPtr<StyleRuleKeyframes> > KeyframesRuleMap; 342 typedef HashMap<AtomicStringImpl*, RefPtr<StyleRuleKeyframes> > KeyframesRul eMap;
343 KeyframesRuleMap m_keyframesRuleMap; 343 KeyframesRuleMap m_keyframesRuleMap;
344 344
345 public: 345 public:
346 static RenderStyle* styleNotYetAvailable() { return s_styleNotYetAvailable; } 346 static RenderStyle* styleNotYetAvailable() { return s_styleNotYetAvailable; }
347 347
348 PassRefPtr<StyleImage> styleImage(CSSPropertyID, CSSValue*); 348 PassRefPtr<StyleImage> styleImage(CSSPropertyID, CSSValue*);
349 PassRefPtr<StyleImage> cachedOrPendingFromValue(CSSPropertyID, CSSImageValue *); 349 PassRefPtr<StyleImage> cachedOrPendingFromValue(CSSPropertyID, CSSImageValue *);
350 PassRefPtr<StyleImage> generatedOrPendingFromValue(CSSPropertyID, CSSImageGe neratorValue*); 350 PassRefPtr<StyleImage> generatedOrPendingFromValue(CSSPropertyID, CSSImageGe neratorValue*);
351 PassRefPtr<StyleImage> setOrPendingFromValue(CSSPropertyID, CSSImageSetValue *); 351 PassRefPtr<StyleImage> setOrPendingFromValue(CSSPropertyID, CSSImageSetValue *);
352 PassRefPtr<StyleImage> cursorOrPendingFromValue(CSSPropertyID, CSSCursorImag eValue*); 352 PassRefPtr<StyleImage> cursorOrPendingFromValue(CSSPropertyID, CSSCursorImag eValue*);
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 PseudoId ignoreDynamicPseudo = NOPSEUDO; 472 PseudoId ignoreDynamicPseudo = NOPSEUDO;
473 if (selectorChecker.match(selectorCheckingContext, ignoreDynamicPseudo, DOMSiblingTraversalStrategy()) == SelectorChecker::SelectorMatches) 473 if (selectorChecker.match(selectorCheckingContext, ignoreDynamicPseudo, DOMSiblingTraversalStrategy()) == SelectorChecker::SelectorMatches)
474 return true; 474 return true;
475 } 475 }
476 return false; 476 return false;
477 } 477 }
478 478
479 } // namespace WebCore 479 } // namespace WebCore
480 480
481 #endif // StyleResolver_h 481 #endif // StyleResolver_h
OLDNEW
« no previous file with comments | « trunk/Source/core/css/StyleInvalidationAnalysis.cpp ('k') | trunk/Source/core/dom/CheckedRadioButtons.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698