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

Side by Side Diff: Source/core/css/CSSFilterRule.cpp

Issue 181783005: Have Element::ensureMutableInlineStyle() return a reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 9 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/animation/css/CSSAnimations.cpp ('k') | Source/core/css/CSSFontFaceRule.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 * 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
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
OLDNEW
« no previous file with comments | « Source/core/animation/css/CSSAnimations.cpp ('k') | Source/core/css/CSSFontFaceRule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698