OLD | NEW |
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, 2005, 2006, 2008, 2012 Apple Inc. All rights reserved. | 4 * Copyright (C) 2002, 2005, 2006, 2008, 2012 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 return; | 44 return; |
45 case Media: | 45 case Media: |
46 delete toStyleRuleMedia(this); | 46 delete toStyleRuleMedia(this); |
47 return; | 47 return; |
48 case Supports: | 48 case Supports: |
49 delete toStyleRuleSupports(this); | 49 delete toStyleRuleSupports(this); |
50 return; | 50 return; |
51 case Keyframes: | 51 case Keyframes: |
52 delete toStyleRuleKeyframes(this); | 52 delete toStyleRuleKeyframes(this); |
53 return; | 53 return; |
54 case Filter: | |
55 delete toStyleRuleFilter(this); | |
56 return; | |
57 case Unknown: | 54 case Unknown: |
58 case Keyframe: | 55 case Keyframe: |
59 ASSERT_NOT_REACHED(); | 56 ASSERT_NOT_REACHED(); |
60 return; | 57 return; |
61 } | 58 } |
62 ASSERT_NOT_REACHED(); | 59 ASSERT_NOT_REACHED(); |
63 } | 60 } |
64 | 61 |
65 unsigned StyleRule::averageSizeInBytes() | 62 unsigned StyleRule::averageSizeInBytes() |
66 { | 63 { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 { | 104 { |
108 } | 105 } |
109 | 106 |
110 StyleRuleSupports::StyleRuleSupports(const String& conditionText, bool condition
IsSupported, Vector<RefPtr<StyleRuleBase> >& adoptRules) | 107 StyleRuleSupports::StyleRuleSupports(const String& conditionText, bool condition
IsSupported, Vector<RefPtr<StyleRuleBase> >& adoptRules) |
111 : StyleRuleGroup(Supports, adoptRules) | 108 : StyleRuleGroup(Supports, adoptRules) |
112 , m_conditionText(conditionText) | 109 , m_conditionText(conditionText) |
113 , m_conditionIsSupported(conditionIsSupported) | 110 , m_conditionIsSupported(conditionIsSupported) |
114 { | 111 { |
115 } | 112 } |
116 | 113 |
117 StyleRuleFilter::StyleRuleFilter(const String& filterName) | |
118 : StyleRuleBase(Filter) | |
119 , m_filterName(filterName) | |
120 { | |
121 } | |
122 | |
123 StyleRuleFilter::~StyleRuleFilter() | |
124 { | |
125 } | |
126 | |
127 void StyleRuleFilter::setProperties(PassRefPtr<StylePropertySet> properties) | |
128 { | |
129 m_properties = properties; | |
130 } | |
131 | |
132 } // namespace blink | 114 } // namespace blink |
OLD | NEW |