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

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

Issue 143323014: *** DO NOT LAND *** Attempt to understand Regions complexity Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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/CSSRegionRule.cpp ('k') | Source/core/css/CSSRule.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 * (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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 PAGE_RULE, 46 PAGE_RULE,
47 // 7 was VARIABLES_RULE; we now match other browsers with 7 as 47 // 7 was VARIABLES_RULE; we now match other browsers with 7 as
48 // KEYFRAMES_RULE: 48 // KEYFRAMES_RULE:
49 // <https://bugs.webkit.org/show_bug.cgi?id=71293>. 49 // <https://bugs.webkit.org/show_bug.cgi?id=71293>.
50 KEYFRAMES_RULE, 50 KEYFRAMES_RULE,
51 WEBKIT_KEYFRAMES_RULE = KEYFRAMES_RULE, 51 WEBKIT_KEYFRAMES_RULE = KEYFRAMES_RULE,
52 KEYFRAME_RULE, 52 KEYFRAME_RULE,
53 WEBKIT_KEYFRAME_RULE = KEYFRAME_RULE, 53 WEBKIT_KEYFRAME_RULE = KEYFRAME_RULE,
54 SUPPORTS_RULE = 12, 54 SUPPORTS_RULE = 12,
55 VIEWPORT_RULE = 15, 55 VIEWPORT_RULE = 15,
56 WEBKIT_REGION_RULE = 16,
57 WEBKIT_FILTER_RULE = 17 56 WEBKIT_FILTER_RULE = 17
58 }; 57 };
59 58
60 virtual Type type() const = 0; 59 virtual Type type() const = 0;
61 virtual String cssText() const = 0; 60 virtual String cssText() const = 0;
62 virtual void reattach(StyleRuleBase*) = 0; 61 virtual void reattach(StyleRuleBase*) = 0;
63 62
64 void setParentStyleSheet(CSSStyleSheet* styleSheet) 63 void setParentStyleSheet(CSSStyleSheet* styleSheet)
65 { 64 {
66 m_parentIsRule = false; 65 m_parentIsRule = false;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 CSSStyleSheet* m_parentStyleSheet; 106 CSSStyleSheet* m_parentStyleSheet;
108 }; 107 };
109 }; 108 };
110 109
111 #define DEFINE_CSS_RULE_TYPE_CASTS(ToType, TYPE_NAME) \ 110 #define DEFINE_CSS_RULE_TYPE_CASTS(ToType, TYPE_NAME) \
112 DEFINE_TYPE_CASTS(ToType, CSSRule, rule, rule->type() == CSSRule::TYPE_NAME, rule.type() == CSSRule::TYPE_NAME) 111 DEFINE_TYPE_CASTS(ToType, CSSRule, rule, rule->type() == CSSRule::TYPE_NAME, rule.type() == CSSRule::TYPE_NAME)
113 112
114 } // namespace WebCore 113 } // namespace WebCore
115 114
116 #endif // CSSRule_h 115 #endif // CSSRule_h
OLDNEW
« no previous file with comments | « Source/core/css/CSSRegionRule.cpp ('k') | Source/core/css/CSSRule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698