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 22 matching lines...) Expand all Loading... |
33 inline HTMLParagraphElement::HTMLParagraphElement(Document& document) | 33 inline HTMLParagraphElement::HTMLParagraphElement(Document& document) |
34 : HTMLElement(pTag, document) {} | 34 : HTMLElement(pTag, document) {} |
35 | 35 |
36 DEFINE_NODE_FACTORY(HTMLParagraphElement) | 36 DEFINE_NODE_FACTORY(HTMLParagraphElement) |
37 | 37 |
38 void HTMLParagraphElement::CollectStyleForPresentationAttribute( | 38 void HTMLParagraphElement::CollectStyleForPresentationAttribute( |
39 const QualifiedName& name, | 39 const QualifiedName& name, |
40 const AtomicString& value, | 40 const AtomicString& value, |
41 MutableStylePropertySet* style) { | 41 MutableStylePropertySet* style) { |
42 if (name == alignAttr) { | 42 if (name == alignAttr) { |
43 if (EqualIgnoringCase(value, "middle") || | 43 if (DeprecatedEqualIgnoringCase(value, "middle") || |
44 EqualIgnoringCase(value, "center")) | 44 DeprecatedEqualIgnoringCase(value, "center")) |
45 AddPropertyToPresentationAttributeStyle(style, CSSPropertyTextAlign, | 45 AddPropertyToPresentationAttributeStyle(style, CSSPropertyTextAlign, |
46 CSSValueWebkitCenter); | 46 CSSValueWebkitCenter); |
47 else if (EqualIgnoringCase(value, "left")) | 47 else if (DeprecatedEqualIgnoringCase(value, "left")) |
48 AddPropertyToPresentationAttributeStyle(style, CSSPropertyTextAlign, | 48 AddPropertyToPresentationAttributeStyle(style, CSSPropertyTextAlign, |
49 CSSValueWebkitLeft); | 49 CSSValueWebkitLeft); |
50 else if (EqualIgnoringCase(value, "right")) | 50 else if (DeprecatedEqualIgnoringCase(value, "right")) |
51 AddPropertyToPresentationAttributeStyle(style, CSSPropertyTextAlign, | 51 AddPropertyToPresentationAttributeStyle(style, CSSPropertyTextAlign, |
52 CSSValueWebkitRight); | 52 CSSValueWebkitRight); |
53 else | 53 else |
54 AddPropertyToPresentationAttributeStyle(style, CSSPropertyTextAlign, | 54 AddPropertyToPresentationAttributeStyle(style, CSSPropertyTextAlign, |
55 value); | 55 value); |
56 } else { | 56 } else { |
57 HTMLElement::CollectStyleForPresentationAttribute(name, value, style); | 57 HTMLElement::CollectStyleForPresentationAttribute(name, value, style); |
58 } | 58 } |
59 } | 59 } |
60 | 60 |
61 } // namespace blink | 61 } // namespace blink |
OLD | NEW |