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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 public: | 45 public: |
46 static PassRefPtr<WebKitCSSViewportRule> create(StyleRuleViewport* viewportR
ule, CSSStyleSheet* sheet) | 46 static PassRefPtr<WebKitCSSViewportRule> create(StyleRuleViewport* viewportR
ule, CSSStyleSheet* sheet) |
47 { | 47 { |
48 return adoptRef(new WebKitCSSViewportRule(viewportRule, sheet)); | 48 return adoptRef(new WebKitCSSViewportRule(viewportRule, sheet)); |
49 } | 49 } |
50 ~WebKitCSSViewportRule(); | 50 ~WebKitCSSViewportRule(); |
51 | 51 |
52 virtual CSSRule::Type type() const OVERRIDE { return WEBKIT_VIEWPORT_RULE; } | 52 virtual CSSRule::Type type() const OVERRIDE { return WEBKIT_VIEWPORT_RULE; } |
53 virtual String cssText() const OVERRIDE; | 53 virtual String cssText() const OVERRIDE; |
54 virtual void reattach(StyleRuleBase*) OVERRIDE; | 54 virtual void reattach(StyleRuleBase*) OVERRIDE; |
55 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE; | |
56 | 55 |
57 CSSStyleDeclaration* style() const; | 56 CSSStyleDeclaration* style() const; |
58 | 57 |
59 private: | 58 private: |
60 WebKitCSSViewportRule(StyleRuleViewport*, CSSStyleSheet*); | 59 WebKitCSSViewportRule(StyleRuleViewport*, CSSStyleSheet*); |
61 | 60 |
62 RefPtr<StyleRuleViewport> m_viewportRule; | 61 RefPtr<StyleRuleViewport> m_viewportRule; |
63 mutable RefPtr<StyleRuleCSSStyleDeclaration> m_propertiesCSSOMWrapper; | 62 mutable RefPtr<StyleRuleCSSStyleDeclaration> m_propertiesCSSOMWrapper; |
64 }; | 63 }; |
65 | 64 |
66 } // namespace WebCore | 65 } // namespace WebCore |
67 | 66 |
68 #endif // WebKitCSSViewportRule_h | 67 #endif // WebKitCSSViewportRule_h |
69 | 68 |
70 #endif // ENABLE(CSS_DEVICE_ADAPTATION) | 69 #endif // ENABLE(CSS_DEVICE_ADAPTATION) |
OLD | NEW |