| 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 25 matching lines...) Expand all Loading... |
| 36 #include "platform/wtf/HashMap.h" | 36 #include "platform/wtf/HashMap.h" |
| 37 #include "platform/wtf/HashSet.h" | 37 #include "platform/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 | 43 |
| 44 // 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 |
| 45 // of stylesheets. | 45 // of stylesheets. |
| 46 class ScopedStyleResolver final : public GarbageCollected<ScopedStyleResolver> { | 46 class ScopedStyleResolver final |
| 47 : public GarbageCollectedFinalized<ScopedStyleResolver> { |
| 47 WTF_MAKE_NONCOPYABLE(ScopedStyleResolver); | 48 WTF_MAKE_NONCOPYABLE(ScopedStyleResolver); |
| 48 | 49 |
| 49 public: | 50 public: |
| 50 static ScopedStyleResolver* Create(TreeScope& scope) { | 51 static ScopedStyleResolver* Create(TreeScope& scope) { |
| 51 return new ScopedStyleResolver(scope); | 52 return new ScopedStyleResolver(scope); |
| 52 } | 53 } |
| 53 | 54 |
| 54 const TreeScope& GetTreeScope() const { return *scope_; } | 55 const TreeScope& GetTreeScope() const { return *scope_; } |
| 55 ScopedStyleResolver* Parent() const; | 56 ScopedStyleResolver* Parent() const; |
| 56 | 57 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 | 126 |
| 126 Member<CSSStyleSheetRuleSubSet> tree_boundary_crossing_rule_set_; | 127 Member<CSSStyleSheetRuleSubSet> tree_boundary_crossing_rule_set_; |
| 127 bool has_deep_or_shadow_selector_ = false; | 128 bool has_deep_or_shadow_selector_ = false; |
| 128 bool has_unresolved_keyframes_rule_ = false; | 129 bool has_unresolved_keyframes_rule_ = false; |
| 129 bool needs_append_all_sheets_ = false; | 130 bool needs_append_all_sheets_ = false; |
| 130 }; | 131 }; |
| 131 | 132 |
| 132 } // namespace blink | 133 } // namespace blink |
| 133 | 134 |
| 134 #endif // ScopedStyleResolver_h | 135 #endif // ScopedStyleResolver_h |
| OLD | NEW |