| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1997 Martin Jones (mjones@kde.org) | 2 * Copyright (C) 1997 Martin Jones (mjones@kde.org) |
| 3 * (C) 1997 Torben Weis (weis@kde.org) | 3 * (C) 1997 Torben Weis (weis@kde.org) |
| 4 * (C) 1998 Waldo Bastian (bastian@kde.org) | 4 * (C) 1998 Waldo Bastian (bastian@kde.org) |
| 5 * (C) 1999 Lars Knoll (knoll@kde.org) | 5 * (C) 1999 Lars Knoll (knoll@kde.org) |
| 6 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 6 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 7 * Copyright (C) 2003, 2004, 2005, 2006, 2010 Apple Inc. All rights reserved. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2010 Apple Inc. All rights reserved. |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 : HTMLElement(captionTag, document) | 36 : HTMLElement(captionTag, document) |
| 37 { | 37 { |
| 38 ScriptWrappable::init(this); | 38 ScriptWrappable::init(this); |
| 39 } | 39 } |
| 40 | 40 |
| 41 PassRefPtr<HTMLTableCaptionElement> HTMLTableCaptionElement::create(Document& do
cument) | 41 PassRefPtr<HTMLTableCaptionElement> HTMLTableCaptionElement::create(Document& do
cument) |
| 42 { | 42 { |
| 43 return adoptRef(new HTMLTableCaptionElement(document)); | 43 return adoptRef(new HTMLTableCaptionElement(document)); |
| 44 } | 44 } |
| 45 | 45 |
| 46 bool HTMLTableCaptionElement::isPresentationAttribute(const QualifiedName& name)
const | |
| 47 { | |
| 48 if (name == alignAttr) | |
| 49 return true; | |
| 50 return HTMLElement::isPresentationAttribute(name); | |
| 51 } | |
| 52 | |
| 53 void HTMLTableCaptionElement::collectStyleForPresentationAttribute(const Qualifi
edName& name, const AtomicString& value, MutableStylePropertySet* style) | 46 void HTMLTableCaptionElement::collectStyleForPresentationAttribute(const Qualifi
edName& name, const AtomicString& value, MutableStylePropertySet* style) |
| 54 { | 47 { |
| 55 if (name == alignAttr) { | 48 if (name == alignAttr) { |
| 56 if (!value.isEmpty()) | 49 if (!value.isEmpty()) |
| 57 addPropertyToPresentationAttributeStyle(style, CSSPropertyCaptionSid
e, value); | 50 addPropertyToPresentationAttributeStyle(style, CSSPropertyCaptionSid
e, value); |
| 58 } else | 51 } else |
| 59 HTMLElement::collectStyleForPresentationAttribute(name, value, style); | 52 HTMLElement::collectStyleForPresentationAttribute(name, value, style); |
| 60 } | 53 } |
| 61 | 54 |
| 62 } | 55 } |
| OLD | NEW |