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 Apple Computer, Inc. | 7 * Copyright (C) 2003, 2004, 2005, 2006 Apple Computer, Inc. |
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 return HTMLElement::isPresentationAttribute(name); | 47 return HTMLElement::isPresentationAttribute(name); |
48 } | 48 } |
49 | 49 |
50 void HTMLTablePartElement::collectStyleForPresentationAttribute(const QualifiedN
ame& name, const AtomicString& value, MutableStylePropertySet* style) | 50 void HTMLTablePartElement::collectStyleForPresentationAttribute(const QualifiedN
ame& name, const AtomicString& value, MutableStylePropertySet* style) |
51 { | 51 { |
52 if (name == bgcolorAttr) { | 52 if (name == bgcolorAttr) { |
53 addHTMLColorToStyle(style, CSSPropertyBackgroundColor, value); | 53 addHTMLColorToStyle(style, CSSPropertyBackgroundColor, value); |
54 } else if (name == backgroundAttr) { | 54 } else if (name == backgroundAttr) { |
55 String url = stripLeadingAndTrailingHTMLSpaces(value); | 55 String url = stripLeadingAndTrailingHTMLSpaces(value); |
56 if (!url.isEmpty()) { | 56 if (!url.isEmpty()) { |
57 RefPtrWillBeRawPtr<CSSImageValue> imageValue = CSSImageValue::create
(url, document().completeURL(url)); | 57 RefPtr<CSSImageValue> imageValue = CSSImageValue::create(url, docume
nt().completeURL(url)); |
58 imageValue->setReferrer(Referrer(document().outgoingReferrer(), docu
ment().referrerPolicy())); | 58 imageValue->setReferrer(Referrer(document().outgoingReferrer(), docu
ment().referrerPolicy())); |
59 style->setProperty(CSSProperty(CSSPropertyBackgroundImage, imageValu
e.release())); | 59 style->setProperty(CSSProperty(CSSPropertyBackgroundImage, imageValu
e.release())); |
60 } | 60 } |
61 } else if (name == valignAttr) { | 61 } else if (name == valignAttr) { |
62 if (equalIgnoringCase(value, "top")) | 62 if (equalIgnoringCase(value, "top")) |
63 addPropertyToPresentationAttributeStyle(style, CSSPropertyVerticalAl
ign, CSSValueTop); | 63 addPropertyToPresentationAttributeStyle(style, CSSPropertyVerticalAl
ign, CSSValueTop); |
64 else if (equalIgnoringCase(value, "middle")) | 64 else if (equalIgnoringCase(value, "middle")) |
65 addPropertyToPresentationAttributeStyle(style, CSSPropertyVerticalAl
ign, CSSValueMiddle); | 65 addPropertyToPresentationAttributeStyle(style, CSSPropertyVerticalAl
ign, CSSValueMiddle); |
66 else if (equalIgnoringCase(value, "bottom")) | 66 else if (equalIgnoringCase(value, "bottom")) |
67 addPropertyToPresentationAttributeStyle(style, CSSPropertyVerticalAl
ign, CSSValueBottom); | 67 addPropertyToPresentationAttributeStyle(style, CSSPropertyVerticalAl
ign, CSSValueBottom); |
(...skipping 22 matching lines...) Expand all Loading... |
90 | 90 |
91 HTMLTableElement* HTMLTablePartElement::findParentTable() const | 91 HTMLTableElement* HTMLTablePartElement::findParentTable() const |
92 { | 92 { |
93 ContainerNode* parent = ComposedTreeTraversal::parent(*this); | 93 ContainerNode* parent = ComposedTreeTraversal::parent(*this); |
94 while (parent && !isHTMLTableElement(*parent)) | 94 while (parent && !isHTMLTableElement(*parent)) |
95 parent = ComposedTreeTraversal::parent(*parent); | 95 parent = ComposedTreeTraversal::parent(*parent); |
96 return toHTMLTableElement(parent); | 96 return toHTMLTableElement(parent); |
97 } | 97 } |
98 | 98 |
99 } | 99 } |
OLD | NEW |