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

Side by Side Diff: sky/engine/core/css/resolver/StyleResolver.h

Issue 709203002: Remove more oilpan. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 public: 85 public:
86 CSSPropertyValue(CSSPropertyID property, CSSValue* value) 86 CSSPropertyValue(CSSPropertyID property, CSSValue* value)
87 : property(property), value(value) { } 87 : property(property), value(value) { }
88 // Stores value=propertySet.getPropertyCSSValue(id).get(). 88 // Stores value=propertySet.getPropertyCSSValue(id).get().
89 CSSPropertyValue(CSSPropertyID, const StylePropertySet&); 89 CSSPropertyValue(CSSPropertyID, const StylePropertySet&);
90 CSSPropertyID property; 90 CSSPropertyID property;
91 RawPtr<CSSValue> value; 91 RawPtr<CSSValue> value;
92 }; 92 };
93 93
94 // This class selects a RenderStyle for a given element based on a collection of stylesheets. 94 // This class selects a RenderStyle for a given element based on a collection of stylesheets.
95 class StyleResolver final : public DummyBase<StyleResolver> { 95 class StyleResolver final {
96 WTF_MAKE_NONCOPYABLE(StyleResolver); WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED ; 96 WTF_MAKE_NONCOPYABLE(StyleResolver); WTF_MAKE_FAST_ALLOCATED;
97 public: 97 public:
98 explicit StyleResolver(Document&); 98 explicit StyleResolver(Document&);
99 virtual ~StyleResolver(); 99 virtual ~StyleResolver();
100 100
101 PassRefPtr<RenderStyle> styleForElement(Element*, RenderStyle* parentStyle = 0, StyleSharingBehavior = AllowStyleSharing, 101 PassRefPtr<RenderStyle> styleForElement(Element*, RenderStyle* parentStyle = 0, StyleSharingBehavior = AllowStyleSharing,
102 RuleMatchingBehavior = MatchAllRules); 102 RuleMatchingBehavior = MatchAllRules);
103 103
104 PassRefPtr<RenderStyle> styleForKeyframe(Element*, const RenderStyle&, Rende rStyle* parentStyle, const StyleKeyframe*, const AtomicString& animationName); 104 PassRefPtr<RenderStyle> styleForKeyframe(Element*, const RenderStyle&, Rende rStyle* parentStyle, const StyleKeyframe*, const AtomicString& animationName);
105 static PassRefPtr<AnimatableValue> createAnimatableValueSnapshot(Element&, C SSPropertyID, CSSValue&); 105 static PassRefPtr<AnimatableValue> createAnimatableValueSnapshot(Element&, C SSPropertyID, CSSValue&);
106 static PassRefPtr<AnimatableValue> createAnimatableValueSnapshot(StyleResolv erState&, CSSPropertyID, CSSValue&); 106 static PassRefPtr<AnimatableValue> createAnimatableValueSnapshot(StyleResolv erState&, CSSPropertyID, CSSValue&);
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals; 265 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals;
266 unsigned m_styleResolverStatsSequence; 266 unsigned m_styleResolverStatsSequence;
267 267
268 // Use only for Internals::updateStyleAndReturnAffectedElementCount. 268 // Use only for Internals::updateStyleAndReturnAffectedElementCount.
269 unsigned m_accessCount; 269 unsigned m_accessCount;
270 }; 270 };
271 271
272 } // namespace blink 272 } // namespace blink
273 273
274 #endif // StyleResolver_h 274 #endif // StyleResolver_h
OLDNEW
« no previous file with comments | « sky/engine/core/css/resolver/ScopedStyleResolver.h ('k') | sky/engine/core/css/resolver/StyleResolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698