Changeset 136378 in webkit for trunk/Source/WebCore/css/CSSToStyleMap.cpp
- Timestamp:
- Dec 3, 2012, 3:55:28 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/css/CSSToStyleMap.cpp
r127045 r136378 214 214 } 215 215 216 void CSSToStyleMap::mapFillXPosition(CSSPropertyID , FillLayer* layer, CSSValue* value)216 void CSSToStyleMap::mapFillXPosition(CSSPropertyID propertyID, FillLayer* layer, CSSValue* value) 217 217 { 218 218 if (value->isInitialValue()) { … … 227 227 228 228 CSSPrimitiveValue* primitiveValue = static_cast<CSSPrimitiveValue*>(value); 229 #if ENABLE(CSS3_BACKGROUND) 230 Pair* pair = primitiveValue->getPairValue(); 231 if (pair) { 232 ASSERT(propertyID == CSSPropertyBackgroundPositionX); 233 primitiveValue = pair->second(); 234 } 235 #else 236 UNUSED_PARAM(propertyID); 237 #endif 229 238 Length length; 230 239 if (primitiveValue->isLength()) … … 239 248 return; 240 249 layer->setXPosition(length); 241 } 242 243 void CSSToStyleMap::mapFillYPosition(CSSPropertyID, FillLayer* layer, CSSValue* value) 250 #if ENABLE(CSS3_BACKGROUND) 251 if (pair) 252 layer->setBackgroundXOrigin(*(pair->first())); 253 #endif 254 } 255 256 void CSSToStyleMap::mapFillYPosition(CSSPropertyID propertyID, FillLayer* layer, CSSValue* value) 244 257 { 245 258 if (value->isInitialValue()) { … … 254 267 255 268 CSSPrimitiveValue* primitiveValue = static_cast<CSSPrimitiveValue*>(value); 269 #if ENABLE(CSS3_BACKGROUND) 270 Pair* pair = primitiveValue->getPairValue(); 271 if (pair) { 272 ASSERT(propertyID == CSSPropertyBackgroundPositionY); 273 primitiveValue = pair->second(); 274 } 275 #else 276 UNUSED_PARAM(propertyID); 277 #endif 256 278 Length length; 257 279 if (primitiveValue->isLength()) … … 266 288 return; 267 289 layer->setYPosition(length); 290 #if ENABLE(CSS3_BACKGROUND) 291 if (pair) 292 layer->setBackgroundYOrigin(*(pair->first())); 293 #endif 268 294 } 269 295
Note:
See TracChangeset
for help on using the changeset viewer.