OLD | NEW |
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 25 matching lines...) Expand all Loading... |
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 PageRuleCollector; | 41 class PageRuleCollector; |
42 class StyleResolver; | 42 class StyleResolver; |
43 class StyleSheetContents; | 43 class StyleSheetContents; |
44 | 44 |
45 // This class selects a RenderStyle for a given element based on a collection of
stylesheets. | 45 // This class selects a RenderStyle for a given element based on a collection of
stylesheets. |
46 class ScopedStyleResolver FINAL : public NoBaseWillBeGarbageCollected<ScopedStyl
eResolver> { | 46 class ScopedStyleResolver final : public NoBaseWillBeGarbageCollected<ScopedStyl
eResolver> { |
47 WTF_MAKE_NONCOPYABLE(ScopedStyleResolver); | 47 WTF_MAKE_NONCOPYABLE(ScopedStyleResolver); |
48 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; | 48 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; |
49 public: | 49 public: |
50 static PassOwnPtrWillBeRawPtr<ScopedStyleResolver> create(TreeScope& scope) | 50 static PassOwnPtrWillBeRawPtr<ScopedStyleResolver> create(TreeScope& scope) |
51 { | 51 { |
52 return adoptPtrWillBeNoop(new ScopedStyleResolver(scope)); | 52 return adoptPtrWillBeNoop(new ScopedStyleResolver(scope)); |
53 } | 53 } |
54 | 54 |
55 static TreeScope* treeScopeFor(Document&, const CSSStyleSheet*); | 55 static TreeScope* treeScopeFor(Document&, const CSSStyleSheet*); |
56 | 56 |
(...skipping 23 matching lines...) Expand all Loading... |
80 | 80 |
81 WillBeHeapVector<RawPtrWillBeMember<CSSStyleSheet> > m_authorStyleSheets; | 81 WillBeHeapVector<RawPtrWillBeMember<CSSStyleSheet> > m_authorStyleSheets; |
82 | 82 |
83 typedef WillBeHeapHashMap<const StringImpl*, RefPtrWillBeMember<StyleRuleKey
frames> > KeyframesRuleMap; | 83 typedef WillBeHeapHashMap<const StringImpl*, RefPtrWillBeMember<StyleRuleKey
frames> > KeyframesRuleMap; |
84 KeyframesRuleMap m_keyframesRuleMap; | 84 KeyframesRuleMap m_keyframesRuleMap; |
85 }; | 85 }; |
86 | 86 |
87 } // namespace blink | 87 } // namespace blink |
88 | 88 |
89 #endif // ScopedStyleResolver_h | 89 #endif // ScopedStyleResolver_h |
OLD | NEW |