| 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) 2003, 2010 Apple Inc. All rights reserved. | 4 * Copyright (C) 2003, 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 addPropertyToPresentationAttributeStyle(style, CSSPropertyWidth, 1,
CSSPrimitiveValue::CSS_PX); | 71 addPropertyToPresentationAttributeStyle(style, CSSPropertyWidth, 1,
CSSPrimitiveValue::CSS_PX); |
| 72 else | 72 else |
| 73 addHTMLLengthToStyle(style, CSSPropertyWidth, value); | 73 addHTMLLengthToStyle(style, CSSPropertyWidth, value); |
| 74 } else if (name == colorAttr) { | 74 } else if (name == colorAttr) { |
| 75 addPropertyToPresentationAttributeStyle(style, CSSPropertyBorderStyle, C
SSValueSolid); | 75 addPropertyToPresentationAttributeStyle(style, CSSPropertyBorderStyle, C
SSValueSolid); |
| 76 addHTMLColorToStyle(style, CSSPropertyBorderColor, value); | 76 addHTMLColorToStyle(style, CSSPropertyBorderColor, value); |
| 77 addHTMLColorToStyle(style, CSSPropertyBackgroundColor, value); | 77 addHTMLColorToStyle(style, CSSPropertyBackgroundColor, value); |
| 78 } else if (name == noshadeAttr) { | 78 } else if (name == noshadeAttr) { |
| 79 addPropertyToPresentationAttributeStyle(style, CSSPropertyBorderStyle, C
SSValueSolid); | 79 addPropertyToPresentationAttributeStyle(style, CSSPropertyBorderStyle, C
SSValueSolid); |
| 80 | 80 |
| 81 RefPtr<CSSPrimitiveValue> darkGrayValue = cssValuePool().createColorValu
e(Color::darkGray); | 81 RefPtrWillBeRawPtr<CSSPrimitiveValue> darkGrayValue = cssValuePool().cre
ateColorValue(Color::darkGray); |
| 82 style->setProperty(CSSPropertyBorderColor, darkGrayValue); | 82 style->setProperty(CSSPropertyBorderColor, darkGrayValue); |
| 83 style->setProperty(CSSPropertyBackgroundColor, darkGrayValue); | 83 style->setProperty(CSSPropertyBackgroundColor, darkGrayValue); |
| 84 } else if (name == sizeAttr) { | 84 } else if (name == sizeAttr) { |
| 85 StringImpl* si = value.impl(); | 85 StringImpl* si = value.impl(); |
| 86 int size = si->toInt(); | 86 int size = si->toInt(); |
| 87 if (size <= 1) | 87 if (size <= 1) |
| 88 addPropertyToPresentationAttributeStyle(style, CSSPropertyBorderBott
omWidth, 0, CSSPrimitiveValue::CSS_PX); | 88 addPropertyToPresentationAttributeStyle(style, CSSPropertyBorderBott
omWidth, 0, CSSPrimitiveValue::CSS_PX); |
| 89 else | 89 else |
| 90 addPropertyToPresentationAttributeStyle(style, CSSPropertyHeight, si
ze - 2, CSSPrimitiveValue::CSS_PX); | 90 addPropertyToPresentationAttributeStyle(style, CSSPropertyHeight, si
ze - 2, CSSPrimitiveValue::CSS_PX); |
| 91 } else | 91 } else |
| 92 HTMLElement::collectStyleForPresentationAttribute(name, value, style); | 92 HTMLElement::collectStyleForPresentationAttribute(name, value, style); |
| 93 } | 93 } |
| 94 | 94 |
| 95 } | 95 } |
| OLD | NEW |