Changeset 132388 in webkit for trunk/Source/WebCore/css/CSSImageSetValue.cpp
- Timestamp:
- Oct 24, 2012, 1:18:36 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/css/CSSImageSetValue.cpp
r132157 r132388 141 141 String CSSImageSetValue::customCssText() const 142 142 { 143 return "-webkit-image-set(" + CSSValueList::customCssText() + ")"; 143 StringBuilder result; 144 result.append("-webkit-image-set("); 145 146 size_t length = this->length(); 147 size_t i = 0; 148 while (i < length) { 149 if (i > 0) 150 result.append(", "); 151 152 const CSSValue* imageValue = item(i); 153 result.append(imageValue->cssText()); 154 result.append(' '); 155 156 ++i; 157 ASSERT(i < length); 158 const CSSValue* scaleFactorValue = item(i); 159 result.append(scaleFactorValue->cssText()); 160 // FIXME: Eventually the scale factor should contain it's own unit http://wkb.ug/100120. 161 // For now 'x' is hard-coded in the parser, so we hard-code it here too. 162 result.append('x'); 163 164 ++i; 165 } 166 167 result.append(")"); 168 return result.toString(); 144 169 } 145 170
Note:
See TracChangeset
for help on using the changeset viewer.