OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. | 2 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above | 8 * 1. Redistributions of source code must retain the above |
9 * copyright notice, this list of conditions and the following | 9 * copyright notice, this list of conditions and the following |
10 * disclaimer. | 10 * disclaimer. |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 58 |
59 String CSSFilterRule::cssText() const | 59 String CSSFilterRule::cssText() const |
60 { | 60 { |
61 StringBuilder result; | 61 StringBuilder result; |
62 result.appendLiteral("@-webkit-filter "); | 62 result.appendLiteral("@-webkit-filter "); |
63 | 63 |
64 String filterName = m_filterRule->filterName(); | 64 String filterName = m_filterRule->filterName(); |
65 result.append(filterName); | 65 result.append(filterName); |
66 result.appendLiteral(" { "); | 66 result.appendLiteral(" { "); |
67 | 67 |
68 String descs = m_filterRule->properties()->asText(); | 68 String descs = m_filterRule->properties().asText(); |
69 result.append(descs); | 69 result.append(descs); |
70 if (!descs.isEmpty()) | 70 if (!descs.isEmpty()) |
71 result.append(' '); | 71 result.append(' '); |
72 result.append('}'); | 72 result.append('}'); |
73 | 73 |
74 return result.toString(); | 74 return result.toString(); |
75 } | 75 } |
76 | 76 |
77 void CSSFilterRule::reattach(StyleRuleBase* rule) | 77 void CSSFilterRule::reattach(StyleRuleBase* rule) |
78 { | 78 { |
79 ASSERT(rule); | 79 ASSERT(rule); |
80 m_filterRule = toStyleRuleFilter(rule); | 80 m_filterRule = toStyleRuleFilter(rule); |
81 if (m_propertiesCSSOMWrapper) | 81 if (m_propertiesCSSOMWrapper) |
82 m_propertiesCSSOMWrapper->reattach(m_filterRule->mutableProperties()); | 82 m_propertiesCSSOMWrapper->reattach(m_filterRule->mutableProperties()); |
83 } | 83 } |
84 | 84 |
85 void CSSFilterRule::trace(Visitor* visitor) | 85 void CSSFilterRule::trace(Visitor* visitor) |
86 { | 86 { |
87 visitor->trace(m_filterRule); | 87 visitor->trace(m_filterRule); |
88 CSSRule::trace(visitor); | 88 CSSRule::trace(visitor); |
89 } | 89 } |
90 | 90 |
91 } // namespace WebCore | 91 } // namespace WebCore |
92 | 92 |
OLD | NEW |