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

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

Issue 16646002: Move the CSS Device Adaptation @viewport rule support behind a runtime flag (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: For landing 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/CSSValueKeywords.in ('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 13 matching lines...) Expand all
24 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR 25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
26 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF 26 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
27 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 * SUCH DAMAGE. 28 * SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef CSSViewportRule_h 31 #ifndef CSSViewportRule_h
32 #define CSSViewportRule_h 32 #define CSSViewportRule_h
33 33
34 #if ENABLE(CSS_DEVICE_ADAPTATION)
35
36 #include "core/css/CSSRule.h" 34 #include "core/css/CSSRule.h"
37 35
38 namespace WebCore { 36 namespace WebCore {
39 37
40 class CSSStyleDeclaration; 38 class CSSStyleDeclaration;
41 class StyleRuleViewport; 39 class StyleRuleViewport;
42 class StyleRuleCSSStyleDeclaration; 40 class StyleRuleCSSStyleDeclaration;
43 41
44 class CSSViewportRule: public CSSRule { 42 class CSSViewportRule: public CSSRule {
45 public: 43 public:
(...skipping 13 matching lines...) Expand all
59 private: 57 private:
60 CSSViewportRule(StyleRuleViewport*, CSSStyleSheet*); 58 CSSViewportRule(StyleRuleViewport*, CSSStyleSheet*);
61 59
62 RefPtr<StyleRuleViewport> m_viewportRule; 60 RefPtr<StyleRuleViewport> m_viewportRule;
63 mutable RefPtr<StyleRuleCSSStyleDeclaration> m_propertiesCSSOMWrapper; 61 mutable RefPtr<StyleRuleCSSStyleDeclaration> m_propertiesCSSOMWrapper;
64 }; 62 };
65 63
66 } // namespace WebCore 64 } // namespace WebCore
67 65
68 #endif // CSSViewportRule_h 66 #endif // CSSViewportRule_h
69
70 #endif // ENABLE(CSS_DEVICE_ADAPTATION)
OLDNEW
« no previous file with comments | « Source/core/css/CSSValueKeywords.in ('k') | Source/core/css/CSSViewportRule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698