| 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. |
| 4 * All rights reserved. |
| 4 * Copyright (C) 2012 Google Inc. All rights reserved. | 5 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 5 * | 6 * |
| 6 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
| 8 * are met: | 9 * are met: |
| 9 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 11 * notice, this list of conditions and the following disclaimer. |
| 11 * 2. Redistributions in binary form must reproduce the above copyright | 12 * 2. Redistributions in binary form must reproduce the above copyright |
| 12 * notice, this list of conditions and the following disclaimer in the | 13 * notice, this list of conditions and the following disclaimer in the |
| 13 * documentation and/or other materials provided with the distribution. | 14 * documentation and/or other materials provided with the distribution. |
| (...skipping 19 matching lines...) Expand all Loading... |
| 33 #include "core/dom/TreeScope.h" | 34 #include "core/dom/TreeScope.h" |
| 34 #include "wtf/HashMap.h" | 35 #include "wtf/HashMap.h" |
| 35 #include "wtf/HashSet.h" | 36 #include "wtf/HashSet.h" |
| 36 | 37 |
| 37 namespace blink { | 38 namespace blink { |
| 38 | 39 |
| 39 class PageRuleCollector; | 40 class PageRuleCollector; |
| 40 class StyleSheetContents; | 41 class StyleSheetContents; |
| 41 class ViewportStyleResolver; | 42 class ViewportStyleResolver; |
| 42 | 43 |
| 43 // This class selects a ComputedStyle for a given element based on a collection
of stylesheets. | 44 // This class selects a ComputedStyle for a given element based on a collection |
| 45 // of stylesheets. |
| 44 class ScopedStyleResolver final : public GarbageCollected<ScopedStyleResolver> { | 46 class ScopedStyleResolver final : public GarbageCollected<ScopedStyleResolver> { |
| 45 WTF_MAKE_NONCOPYABLE(ScopedStyleResolver); | 47 WTF_MAKE_NONCOPYABLE(ScopedStyleResolver); |
| 46 | 48 |
| 47 public: | 49 public: |
| 48 static ScopedStyleResolver* create(TreeScope& scope) { | 50 static ScopedStyleResolver* create(TreeScope& scope) { |
| 49 return new ScopedStyleResolver(scope); | 51 return new ScopedStyleResolver(scope); |
| 50 } | 52 } |
| 51 | 53 |
| 52 const TreeScope& treeScope() const { return *m_scope; } | 54 const TreeScope& treeScope() const { return *m_scope; } |
| 53 ScopedStyleResolver* parent() const; | 55 ScopedStyleResolver* parent() const; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 using CSSStyleSheetRuleSubSet = HeapVector<Member<RuleSubSet>>; | 116 using CSSStyleSheetRuleSubSet = HeapVector<Member<RuleSubSet>>; |
| 115 | 117 |
| 116 Member<CSSStyleSheetRuleSubSet> m_treeBoundaryCrossingRuleSet; | 118 Member<CSSStyleSheetRuleSubSet> m_treeBoundaryCrossingRuleSet; |
| 117 bool m_hasDeepOrShadowSelector = false; | 119 bool m_hasDeepOrShadowSelector = false; |
| 118 bool m_hasUnresolvedKeyframesRule = false; | 120 bool m_hasUnresolvedKeyframesRule = false; |
| 119 }; | 121 }; |
| 120 | 122 |
| 121 } // namespace blink | 123 } // namespace blink |
| 122 | 124 |
| 123 #endif // ScopedStyleResolver_h | 125 #endif // ScopedStyleResolver_h |
| OLD | NEW |