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

Side by Side Diff: sky/engine/core/css/resolver/ScopedStyleResolver.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 * Copyright (C) 2012 Google Inc. All rights reserved. 4 * Copyright (C) 2012 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 24 matching lines...) Expand all
35 #include "wtf/OwnPtr.h" 35 #include "wtf/OwnPtr.h"
36 #include "wtf/PassOwnPtr.h" 36 #include "wtf/PassOwnPtr.h"
37 37
38 namespace blink { 38 namespace blink {
39 39
40 class MediaQueryEvaluator; 40 class MediaQueryEvaluator;
41 class StyleResolver; 41 class StyleResolver;
42 class StyleSheetContents; 42 class StyleSheetContents;
43 43
44 // This class selects a RenderStyle for a given element based on a collection of stylesheets. 44 // This class selects a RenderStyle for a given element based on a collection of stylesheets.
45 class ScopedStyleResolver final : public DummyBase<ScopedStyleResolver> { 45 class ScopedStyleResolver final {
46 WTF_MAKE_NONCOPYABLE(ScopedStyleResolver); 46 WTF_MAKE_NONCOPYABLE(ScopedStyleResolver);
47 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; 47 WTF_MAKE_FAST_ALLOCATED;
48 public: 48 public:
49 static PassOwnPtr<ScopedStyleResolver> create(TreeScope& scope) 49 static PassOwnPtr<ScopedStyleResolver> create(TreeScope& scope)
50 { 50 {
51 return adoptPtr(new ScopedStyleResolver(scope)); 51 return adoptPtr(new ScopedStyleResolver(scope));
52 } 52 }
53 53
54 static TreeScope* treeScopeFor(Document&, const CSSStyleSheet*); 54 static TreeScope* treeScopeFor(Document&, const CSSStyleSheet*);
55 55
56 const TreeScope& treeScope() const { return *m_scope; } 56 const TreeScope& treeScope() const { return *m_scope; }
57 ScopedStyleResolver* parent() const; 57 ScopedStyleResolver* parent() const;
(...skipping 19 matching lines...) Expand all
77 77
78 Vector<RawPtr<CSSStyleSheet> > m_authorStyleSheets; 78 Vector<RawPtr<CSSStyleSheet> > m_authorStyleSheets;
79 79
80 typedef HashMap<const StringImpl*, RefPtr<StyleRuleKeyframes> > KeyframesRul eMap; 80 typedef HashMap<const StringImpl*, RefPtr<StyleRuleKeyframes> > KeyframesRul eMap;
81 KeyframesRuleMap m_keyframesRuleMap; 81 KeyframesRuleMap m_keyframesRuleMap;
82 }; 82 };
83 83
84 } // namespace blink 84 } // namespace blink
85 85
86 #endif // ScopedStyleResolver_h 86 #endif // ScopedStyleResolver_h
OLDNEW
« no previous file with comments | « sky/engine/core/css/resolver/MediaQueryResult.h ('k') | sky/engine/core/css/resolver/StyleResolver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698