Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(214)

Side by Side Diff: Source/core/css/CSSViewportRule.h

Issue 16209003: Unprefix the @viewport rule of CSS Device Adaptation spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/css/CSSRule.idl ('k') | Source/core/css/CSSViewportRule.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « Source/core/css/CSSRule.idl ('k') | Source/core/css/CSSViewportRule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698