OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Intel Corporation. All rights reserved. | 2 * Copyright (C) 2012 Intel Corporation. All rights reserved. |
3 * Copyright (C) 2012 Apple Inc. All rights reserved. | 3 * Copyright (C) 2012 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above | 9 * 1. Redistributions of source code must retain the above |
10 * copyright notice, this list of conditions and the following | 10 * copyright notice, this list of conditions and the following |
(...skipping 21 matching lines...) Expand all Loading... |
32 #define CSSViewportRule_h | 32 #define CSSViewportRule_h |
33 | 33 |
34 #include "core/css/CSSRule.h" | 34 #include "core/css/CSSRule.h" |
35 | 35 |
36 namespace WebCore { | 36 namespace WebCore { |
37 | 37 |
38 class CSSStyleDeclaration; | 38 class CSSStyleDeclaration; |
39 class StyleRuleViewport; | 39 class StyleRuleViewport; |
40 class StyleRuleCSSStyleDeclaration; | 40 class StyleRuleCSSStyleDeclaration; |
41 | 41 |
42 class CSSViewportRule: public CSSRule { | 42 class CSSViewportRule FINAL: public CSSRule { |
43 public: | 43 public: |
44 static PassRefPtr<CSSViewportRule> create(StyleRuleViewport* viewportRule, C
SSStyleSheet* sheet) | 44 static PassRefPtr<CSSViewportRule> create(StyleRuleViewport* viewportRule, C
SSStyleSheet* sheet) |
45 { | 45 { |
46 return adoptRef(new CSSViewportRule(viewportRule, sheet)); | 46 return adoptRef(new CSSViewportRule(viewportRule, sheet)); |
47 } | 47 } |
48 ~CSSViewportRule(); | 48 virtual ~CSSViewportRule(); |
49 | 49 |
50 virtual CSSRule::Type type() const OVERRIDE { return VIEWPORT_RULE; } | 50 virtual CSSRule::Type type() const OVERRIDE { return VIEWPORT_RULE; } |
51 virtual String cssText() const OVERRIDE; | 51 virtual String cssText() const OVERRIDE; |
52 virtual void reattach(StyleRuleBase*) OVERRIDE; | 52 virtual void reattach(StyleRuleBase*) OVERRIDE; |
53 | 53 |
54 CSSStyleDeclaration* style() const; | 54 CSSStyleDeclaration* style() const; |
55 | 55 |
56 private: | 56 private: |
57 CSSViewportRule(StyleRuleViewport*, CSSStyleSheet*); | 57 CSSViewportRule(StyleRuleViewport*, CSSStyleSheet*); |
58 | 58 |
59 RefPtr<StyleRuleViewport> m_viewportRule; | 59 RefPtr<StyleRuleViewport> m_viewportRule; |
60 mutable RefPtr<StyleRuleCSSStyleDeclaration> m_propertiesCSSOMWrapper; | 60 mutable RefPtr<StyleRuleCSSStyleDeclaration> m_propertiesCSSOMWrapper; |
61 }; | 61 }; |
62 | 62 |
63 DEFINE_CSS_RULE_TYPE_CASTS(CSSViewportRule, VIEWPORT_RULE); | 63 DEFINE_CSS_RULE_TYPE_CASTS(CSSViewportRule, VIEWPORT_RULE); |
64 | 64 |
65 } // namespace WebCore | 65 } // namespace WebCore |
66 | 66 |
67 #endif // CSSViewportRule_h | 67 #endif // CSSViewportRule_h |
OLD | NEW |