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 29 matching lines...) Expand all Loading... |
40 class StyleRuleCSSStyleDeclaration; | 40 class StyleRuleCSSStyleDeclaration; |
41 | 41 |
42 class CSSViewportRule: public CSSRule { | 42 class CSSViewportRule: 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 ~CSSViewportRule(); |
49 | 49 |
50 virtual CSSRule::Type type() const OVERRIDE { return WEBKIT_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 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE; | 53 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE; |
54 | 54 |
55 CSSStyleDeclaration* style() const; | 55 CSSStyleDeclaration* style() const; |
56 | 56 |
57 private: | 57 private: |
58 CSSViewportRule(StyleRuleViewport*, CSSStyleSheet*); | 58 CSSViewportRule(StyleRuleViewport*, CSSStyleSheet*); |
59 | 59 |
60 RefPtr<StyleRuleViewport> m_viewportRule; | 60 RefPtr<StyleRuleViewport> m_viewportRule; |
61 mutable RefPtr<StyleRuleCSSStyleDeclaration> m_propertiesCSSOMWrapper; | 61 mutable RefPtr<StyleRuleCSSStyleDeclaration> m_propertiesCSSOMWrapper; |
62 }; | 62 }; |
63 | 63 |
64 } // namespace WebCore | 64 } // namespace WebCore |
65 | 65 |
66 #endif // CSSViewportRule_h | 66 #endif // CSSViewportRule_h |
OLD | NEW |