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

Side by Side Diff: sky/engine/core/css/CSSRule.h

Issue 654693004: Remove meta viewport and @viewport CSS rules. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
OLDNEW
1 /* 1 /*
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * (C) 2002-2003 Dirk Mueller (mueller@kde.org) 3 * (C) 2002-2003 Dirk Mueller (mueller@kde.org)
4 * Copyright (C) 2002, 2006, 2007, 2012 Apple Inc. All rights reserved. 4 * Copyright (C) 2002, 2006, 2007, 2012 Apple Inc. All rights reserved.
5 * Copyright (C) 2011 Andreas Kling (kling@webkit.org) 5 * Copyright (C) 2011 Andreas Kling (kling@webkit.org)
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 28 matching lines...) Expand all
39 virtual ~CSSRule() { } 39 virtual ~CSSRule() { }
40 40
41 enum Type { 41 enum Type {
42 UNKNOWN_RULE = 0, 42 UNKNOWN_RULE = 0,
43 STYLE_RULE = 1, 43 STYLE_RULE = 1,
44 MEDIA_RULE = 4, 44 MEDIA_RULE = 4,
45 FONT_FACE_RULE = 5, 45 FONT_FACE_RULE = 5,
46 KEYFRAMES_RULE = 7, 46 KEYFRAMES_RULE = 7,
47 KEYFRAME_RULE, 47 KEYFRAME_RULE,
48 SUPPORTS_RULE = 12, 48 SUPPORTS_RULE = 12,
49 VIEWPORT_RULE = 15,
50 WEBKIT_FILTER_RULE = 17 49 WEBKIT_FILTER_RULE = 17
51 }; 50 };
52 51
53 virtual Type type() const = 0; 52 virtual Type type() const = 0;
54 virtual String cssText() const = 0; 53 virtual String cssText() const = 0;
55 virtual void reattach(StyleRuleBase*) = 0; 54 virtual void reattach(StyleRuleBase*) = 0;
56 55
57 void setParentStyleSheet(CSSStyleSheet* styleSheet) 56 void setParentStyleSheet(CSSStyleSheet* styleSheet)
58 { 57 {
59 m_parentIsRule = false; 58 m_parentIsRule = false;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 CSSStyleSheet* m_parentStyleSheet; 102 CSSStyleSheet* m_parentStyleSheet;
104 }; 103 };
105 }; 104 };
106 105
107 #define DEFINE_CSS_RULE_TYPE_CASTS(ToType, TYPE_NAME) \ 106 #define DEFINE_CSS_RULE_TYPE_CASTS(ToType, TYPE_NAME) \
108 DEFINE_TYPE_CASTS(ToType, CSSRule, rule, rule->type() == CSSRule::TYPE_NAME, rule.type() == CSSRule::TYPE_NAME) 107 DEFINE_TYPE_CASTS(ToType, CSSRule, rule, rule->type() == CSSRule::TYPE_NAME, rule.type() == CSSRule::TYPE_NAME)
109 108
110 } // namespace blink 109 } // namespace blink
111 110
112 #endif // CSSRule_h 111 #endif // CSSRule_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698