| 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. | 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. |
| 4 * All rights reserved. | 4 * All rights reserved. |
| 5 * Copyright (C) 2012 Google Inc. All rights reserved. | 5 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 6 * | 6 * |
| 7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
| 8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
| 9 * are met: | 9 * are met: |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 #include "core/css/ElementRuleCollector.h" | 33 #include "core/css/ElementRuleCollector.h" |
| 34 #include "core/css/RuleSet.h" | 34 #include "core/css/RuleSet.h" |
| 35 #include "core/dom/TreeScope.h" | 35 #include "core/dom/TreeScope.h" |
| 36 #include "wtf/HashMap.h" | 36 #include "wtf/HashMap.h" |
| 37 #include "wtf/HashSet.h" | 37 #include "wtf/HashSet.h" |
| 38 | 38 |
| 39 namespace blink { | 39 namespace blink { |
| 40 | 40 |
| 41 class PageRuleCollector; | 41 class PageRuleCollector; |
| 42 class StyleSheetContents; | 42 class StyleSheetContents; |
| 43 class ViewportStyleResolver; | |
| 44 | 43 |
| 45 // This class selects a ComputedStyle for a given element based on a collection | 44 // This class selects a ComputedStyle for a given element based on a collection |
| 46 // of stylesheets. | 45 // of stylesheets. |
| 47 class ScopedStyleResolver final : public GarbageCollected<ScopedStyleResolver> { | 46 class ScopedStyleResolver final : public GarbageCollected<ScopedStyleResolver> { |
| 48 WTF_MAKE_NONCOPYABLE(ScopedStyleResolver); | 47 WTF_MAKE_NONCOPYABLE(ScopedStyleResolver); |
| 49 | 48 |
| 50 public: | 49 public: |
| 51 static ScopedStyleResolver* create(TreeScope& scope) { | 50 static ScopedStyleResolver* create(TreeScope& scope) { |
| 52 return new ScopedStyleResolver(scope); | 51 return new ScopedStyleResolver(scope); |
| 53 } | 52 } |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 using CSSStyleSheetRuleSubSet = HeapVector<Member<RuleSubSet>>; | 117 using CSSStyleSheetRuleSubSet = HeapVector<Member<RuleSubSet>>; |
| 119 | 118 |
| 120 Member<CSSStyleSheetRuleSubSet> m_treeBoundaryCrossingRuleSet; | 119 Member<CSSStyleSheetRuleSubSet> m_treeBoundaryCrossingRuleSet; |
| 121 bool m_hasDeepOrShadowSelector = false; | 120 bool m_hasDeepOrShadowSelector = false; |
| 122 bool m_hasUnresolvedKeyframesRule = false; | 121 bool m_hasUnresolvedKeyframesRule = false; |
| 123 }; | 122 }; |
| 124 | 123 |
| 125 } // namespace blink | 124 } // namespace blink |
| 126 | 125 |
| 127 #endif // ScopedStyleResolver_h | 126 #endif // ScopedStyleResolver_h |
| OLD | NEW |