| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * Copyright (C) 2006, 2007, 2010 Apple Inc. All rights reserved. | 4 * Copyright (C) 2006, 2007, 2010 Apple Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 if (value == "a") | 49 if (value == "a") |
| 50 return CSSValueLowerAlpha; | 50 return CSSValueLowerAlpha; |
| 51 if (value == "A") | 51 if (value == "A") |
| 52 return CSSValueUpperAlpha; | 52 return CSSValueUpperAlpha; |
| 53 if (value == "i") | 53 if (value == "i") |
| 54 return CSSValueLowerRoman; | 54 return CSSValueLowerRoman; |
| 55 if (value == "I") | 55 if (value == "I") |
| 56 return CSSValueUpperRoman; | 56 return CSSValueUpperRoman; |
| 57 if (value == "1") | 57 if (value == "1") |
| 58 return CSSValueDecimal; | 58 return CSSValueDecimal; |
| 59 if (EqualIgnoringCase(value, "disc")) | 59 if (DeprecatedEqualIgnoringCase(value, "disc")) |
| 60 return CSSValueDisc; | 60 return CSSValueDisc; |
| 61 if (EqualIgnoringCase(value, "circle")) | 61 if (DeprecatedEqualIgnoringCase(value, "circle")) |
| 62 return CSSValueCircle; | 62 return CSSValueCircle; |
| 63 if (EqualIgnoringCase(value, "square")) | 63 if (DeprecatedEqualIgnoringCase(value, "square")) |
| 64 return CSSValueSquare; | 64 return CSSValueSquare; |
| 65 if (EqualIgnoringCase(value, "none")) | 65 if (DeprecatedEqualIgnoringCase(value, "none")) |
| 66 return CSSValueNone; | 66 return CSSValueNone; |
| 67 return CSSValueInvalid; | 67 return CSSValueInvalid; |
| 68 } | 68 } |
| 69 | 69 |
| 70 void HTMLLIElement::CollectStyleForPresentationAttribute( | 70 void HTMLLIElement::CollectStyleForPresentationAttribute( |
| 71 const QualifiedName& name, | 71 const QualifiedName& name, |
| 72 const AtomicString& value, | 72 const AtomicString& value, |
| 73 MutableStylePropertySet* style) { | 73 MutableStylePropertySet* style) { |
| 74 if (name == typeAttr) { | 74 if (name == typeAttr) { |
| 75 CSSValueID type_value = ListTypeToCSSValueID(value); | 75 CSSValueID type_value = ListTypeToCSSValueID(value); |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 DCHECK(GetLayoutObject()->IsListItem()); | 125 DCHECK(GetLayoutObject()->IsListItem()); |
| 126 | 126 |
| 127 int requested_value = 0; | 127 int requested_value = 0; |
| 128 if (ParseHTMLInteger(value, requested_value)) | 128 if (ParseHTMLInteger(value, requested_value)) |
| 129 ToLayoutListItem(GetLayoutObject())->SetExplicitValue(requested_value); | 129 ToLayoutListItem(GetLayoutObject())->SetExplicitValue(requested_value); |
| 130 else | 130 else |
| 131 ToLayoutListItem(GetLayoutObject())->ClearExplicitValue(); | 131 ToLayoutListItem(GetLayoutObject())->ClearExplicitValue(); |
| 132 } | 132 } |
| 133 | 133 |
| 134 } // namespace blink | 134 } // namespace blink |
| OLD | NEW |