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

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

Issue 951213004: Make CSSRuleSourceData use the CSSRule Type enum (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Use StyleRule::Type Created 5 years, 10 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
« no previous file with comments | « Source/core/css/CSSPropertySourceData.h ('k') | Source/core/css/StyleRule.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, 2008, 2012, 2013 Apple Inc. All rights reserved. 4 * Copyright (C) 2002, 2006, 2008, 2012, 2013 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 20 matching lines...) Expand all
31 31
32 class CSSRule; 32 class CSSRule;
33 class CSSStyleSheet; 33 class CSSStyleSheet;
34 class MutableStylePropertySet; 34 class MutableStylePropertySet;
35 class StylePropertySet; 35 class StylePropertySet;
36 36
37 class StyleRuleBase : public RefCountedWillBeGarbageCollectedFinalized<StyleRule Base> { 37 class StyleRuleBase : public RefCountedWillBeGarbageCollectedFinalized<StyleRule Base> {
38 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; 38 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
39 public: 39 public:
40 enum Type { 40 enum Type {
41 Unknown,
41 Style, 42 Style,
42 Import, 43 Import,
43 Media, 44 Media,
44 FontFace, 45 FontFace,
45 Page, 46 Page,
46 Keyframes, 47 Keyframes,
47 Keyframe, 48 Keyframe,
48 Namespace, 49 Namespace,
49 Supports, 50 Supports,
50 Viewport, 51 Viewport,
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 DEFINE_TYPE_CASTS(StyleRule, StyleRuleBase, rule, rule->isStyleRule(), rule.isSt yleRule()); 259 DEFINE_TYPE_CASTS(StyleRule, StyleRuleBase, rule, rule->isStyleRule(), rule.isSt yleRule());
259 DEFINE_STYLE_RULE_TYPE_CASTS(FontFace); 260 DEFINE_STYLE_RULE_TYPE_CASTS(FontFace);
260 DEFINE_STYLE_RULE_TYPE_CASTS(Page); 261 DEFINE_STYLE_RULE_TYPE_CASTS(Page);
261 DEFINE_STYLE_RULE_TYPE_CASTS(Media); 262 DEFINE_STYLE_RULE_TYPE_CASTS(Media);
262 DEFINE_STYLE_RULE_TYPE_CASTS(Supports); 263 DEFINE_STYLE_RULE_TYPE_CASTS(Supports);
263 DEFINE_STYLE_RULE_TYPE_CASTS(Viewport); 264 DEFINE_STYLE_RULE_TYPE_CASTS(Viewport);
264 265
265 } // namespace blink 266 } // namespace blink
266 267
267 #endif // StyleRule_h 268 #endif // StyleRule_h
OLDNEW
« no previous file with comments | « Source/core/css/CSSPropertySourceData.h ('k') | Source/core/css/StyleRule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698