OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org) |
3 * Copyright (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) | 3 * Copyright (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) |
4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
All rights reserved. | 4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
All rights reserved. |
5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> | 5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> |
6 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> | 6 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> |
7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
8 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved. | 8 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved. |
9 * Copyright (C) 2012 Intel Corporation. All rights reserved. | 9 * Copyright (C) 2012 Intel Corporation. All rights reserved. |
10 * | 10 * |
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 if (id == CSSValueAuto) | 354 if (id == CSSValueAuto) |
355 validPrimitive = true; | 355 validPrimitive = true; |
356 else | 356 else |
357 validPrimitive = validUnit(value, FLength | FPercent | FUnitlessQuir
k); | 357 validPrimitive = validUnit(value, FLength | FPercent | FUnitlessQuir
k); |
358 break; | 358 break; |
359 | 359 |
360 case CSSPropertyWebkitBorderImage: | 360 case CSSPropertyWebkitBorderImage: |
361 parsedValue = parseBorderImage(propId); | 361 parsedValue = parseBorderImage(propId); |
362 break; | 362 break; |
363 | 363 |
364 case CSSPropertyBorderImageOutset: | |
365 case CSSPropertyWebkitMaskBoxImageOutset: { | |
366 RefPtrWillBeRawPtr<CSSQuadValue> result = nullptr; | |
367 if (parseBorderImageOutset(result)) | |
368 return result.release(); | |
369 return nullptr; | |
370 } | |
371 case CSSPropertyBorderImageRepeat: | |
372 case CSSPropertyWebkitMaskBoxImageRepeat: { | |
373 RefPtrWillBeRawPtr<CSSValue> result = nullptr; | |
374 if (parseBorderImageRepeat(result)) | |
375 return result.release(); | |
376 return nullptr; | |
377 } | |
378 case CSSPropertyBorderImageSlice: | |
379 case CSSPropertyWebkitMaskBoxImageSlice: { | |
380 RefPtrWillBeRawPtr<CSSBorderImageSliceValue> result = nullptr; | |
381 if (parseBorderImageSlice(propId, result)) | |
382 return result.release(); | |
383 return nullptr; | |
384 } | |
385 case CSSPropertyBorderImageWidth: | |
386 case CSSPropertyWebkitMaskBoxImageWidth: { | |
387 RefPtrWillBeRawPtr<CSSQuadValue> result = nullptr; | |
388 if (parseBorderImageWidth(result)) | |
389 return result.release(); | |
390 return nullptr; | |
391 } | |
392 case CSSPropertyWebkitBoxReflect: | 364 case CSSPropertyWebkitBoxReflect: |
393 if (id == CSSValueNone) | 365 if (id == CSSValueNone) |
394 validPrimitive = true; | 366 validPrimitive = true; |
395 else | 367 else |
396 parsedValue = parseReflect(); | 368 parsedValue = parseReflect(); |
397 break; | 369 break; |
398 case CSSPropertyFontSizeAdjust: // none | <number> | 370 case CSSPropertyFontSizeAdjust: // none | <number> |
399 ASSERT(RuntimeEnabledFeatures::cssFontSizeAdjustEnabled()); | 371 ASSERT(RuntimeEnabledFeatures::cssFontSizeAdjustEnabled()); |
400 validPrimitive = (id == CSSValueNone) ? true : validUnit(value, FNumber
| FNonNeg); | 372 validPrimitive = (id == CSSValueNone) ? true : validUnit(value, FNumber
| FNonNeg); |
401 break; | 373 break; |
(...skipping 3363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3765 ASSERT(!m_parsedCalculation); | 3737 ASSERT(!m_parsedCalculation); |
3766 m_parsedCalculation = CSSCalcValue::create(args, range); | 3738 m_parsedCalculation = CSSCalcValue::create(args, range); |
3767 | 3739 |
3768 if (!m_parsedCalculation) | 3740 if (!m_parsedCalculation) |
3769 return false; | 3741 return false; |
3770 | 3742 |
3771 return true; | 3743 return true; |
3772 } | 3744 } |
3773 | 3745 |
3774 } // namespace blink | 3746 } // namespace blink |
OLD | NEW |