| 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 4017 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4028 return shape; | 4028 return shape; |
| 4029 } | 4029 } |
| 4030 | 4030 |
| 4031 PassRefPtrWillBeRawPtr<CSSBasicShape> CSSPropertyParser::parseBasicShapeInset(CS
SParserValueList* args) | 4031 PassRefPtrWillBeRawPtr<CSSBasicShape> CSSPropertyParser::parseBasicShapeInset(CS
SParserValueList* args) |
| 4032 { | 4032 { |
| 4033 ASSERT(args); | 4033 ASSERT(args); |
| 4034 | 4034 |
| 4035 RefPtrWillBeRawPtr<CSSBasicShapeInset> shape = CSSBasicShapeInset::create(); | 4035 RefPtrWillBeRawPtr<CSSBasicShapeInset> shape = CSSBasicShapeInset::create(); |
| 4036 | 4036 |
| 4037 CSSParserValue* argument = args->current(); | 4037 CSSParserValue* argument = args->current(); |
| 4038 WillBeHeapVector<RefPtrWillBeMember<CSSPrimitiveValue> > widthArguments; | 4038 WillBeHeapVector<RefPtrWillBeMember<CSSPrimitiveValue>> widthArguments; |
| 4039 bool hasRoundedInset = false; | 4039 bool hasRoundedInset = false; |
| 4040 | 4040 |
| 4041 while (argument) { | 4041 while (argument) { |
| 4042 if (argument->unit == CSSPrimitiveValue::CSS_IDENT && argument->id == CS
SValueRound) { | 4042 if (argument->unit == CSSPrimitiveValue::CSS_IDENT && argument->id == CS
SValueRound) { |
| 4043 hasRoundedInset = true; | 4043 hasRoundedInset = true; |
| 4044 break; | 4044 break; |
| 4045 } | 4045 } |
| 4046 | 4046 |
| 4047 Units unitFlags = FLength | FPercent; | 4047 Units unitFlags = FLength | FPercent; |
| 4048 if (!validUnit(argument, unitFlags) || widthArguments.size() > 4) | 4048 if (!validUnit(argument, unitFlags) || widthArguments.size() > 4) |
| (...skipping 4445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8494 } | 8494 } |
| 8495 } | 8495 } |
| 8496 | 8496 |
| 8497 if (!list->length()) | 8497 if (!list->length()) |
| 8498 return nullptr; | 8498 return nullptr; |
| 8499 | 8499 |
| 8500 return list.release(); | 8500 return list.release(); |
| 8501 } | 8501 } |
| 8502 | 8502 |
| 8503 } // namespace blink | 8503 } // namespace blink |
| OLD | NEW |