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 21 matching lines...) Expand all Loading... |
32 #include "core/dom/ContainerNode.h" | 32 #include "core/dom/ContainerNode.h" |
33 #include "wtf/HashMap.h" | 33 #include "wtf/HashMap.h" |
34 #include "wtf/HashSet.h" | 34 #include "wtf/HashSet.h" |
35 #include "wtf/OwnPtr.h" | 35 #include "wtf/OwnPtr.h" |
36 #include "wtf/PassOwnPtr.h" | 36 #include "wtf/PassOwnPtr.h" |
37 | 37 |
38 namespace WebCore { | 38 namespace WebCore { |
39 | 39 |
40 class MediaQueryEvaluator; | 40 class MediaQueryEvaluator; |
41 class PageRuleCollector; | 41 class PageRuleCollector; |
42 class ShadowRoot; | |
43 class StyleSheetContents; | 42 class StyleSheetContents; |
44 | 43 |
45 // 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. |
46 class ScopedStyleResolver { | 45 class ScopedStyleResolver { |
47 WTF_MAKE_NONCOPYABLE(ScopedStyleResolver); WTF_MAKE_FAST_ALLOCATED; | 46 WTF_MAKE_NONCOPYABLE(ScopedStyleResolver); WTF_MAKE_FAST_ALLOCATED; |
48 public: | 47 public: |
49 static PassOwnPtr<ScopedStyleResolver> create(ContainerNode& scopingNode) {
return adoptPtr(new ScopedStyleResolver(scopingNode)); } | 48 static PassOwnPtr<ScopedStyleResolver> create(ContainerNode& scopingNode) {
return adoptPtr(new ScopedStyleResolver(scopingNode)); } |
50 | 49 |
51 static ContainerNode* scopingNodeFor(Document&, const CSSStyleSheet*); | 50 static ContainerNode* scopingNodeFor(Document&, const CSSStyleSheet*); |
52 | 51 |
(...skipping 21 matching lines...) Expand all Loading... |
74 | 73 |
75 WillBePersistentHeapVector<RawPtrWillBeMember<CSSStyleSheet> > m_authorStyle
Sheets; | 74 WillBePersistentHeapVector<RawPtrWillBeMember<CSSStyleSheet> > m_authorStyle
Sheets; |
76 | 75 |
77 typedef WillBePersistentHeapHashMap<const StringImpl*, RefPtrWillBeMember<St
yleRuleKeyframes> > KeyframesRuleMap; | 76 typedef WillBePersistentHeapHashMap<const StringImpl*, RefPtrWillBeMember<St
yleRuleKeyframes> > KeyframesRuleMap; |
78 KeyframesRuleMap m_keyframesRuleMap; | 77 KeyframesRuleMap m_keyframesRuleMap; |
79 }; | 78 }; |
80 | 79 |
81 } // namespace WebCore | 80 } // namespace WebCore |
82 | 81 |
83 #endif // ScopedStyleResolver_h | 82 #endif // ScopedStyleResolver_h |
OLD | NEW |