diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-02-24 16:36:50 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-02-24 16:36:50 +0100 |
commit | ad0d549d4cc13433f77c1ac8f0ab379c83d93f28 (patch) | |
tree | b34b0daceb7c8e7fdde4b4ec43650ab7caadb0a9 /Source/WebCore/html/HTMLFrameSetElement.cpp | |
parent | 03e12282df9aa1e1fb05a8b90f1cfc2e08764cec (diff) | |
download | qtwebkit-ad0d549d4cc13433f77c1ac8f0ab379c83d93f28.tar.gz |
Imported WebKit commit bb52bf3c0119e8a128cd93afe5572413a8617de9 (http://svn.webkit.org/repository/webkit/trunk@108790)
Diffstat (limited to 'Source/WebCore/html/HTMLFrameSetElement.cpp')
-rw-r--r-- | Source/WebCore/html/HTMLFrameSetElement.cpp | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/Source/WebCore/html/HTMLFrameSetElement.cpp b/Source/WebCore/html/HTMLFrameSetElement.cpp index 4af6342bd..d3fdb97a4 100644 --- a/Source/WebCore/html/HTMLFrameSetElement.cpp +++ b/Source/WebCore/html/HTMLFrameSetElement.cpp @@ -64,6 +64,21 @@ PassRefPtr<HTMLFrameSetElement> HTMLFrameSetElement::create(const QualifiedName& return adoptRef(new HTMLFrameSetElement(tagName, document)); } +bool HTMLFrameSetElement::isPresentationAttribute(Attribute* attr) const +{ + if (attr->name() == bordercolorAttr) + return true; + return HTMLElement::isPresentationAttribute(attr); +} + +void HTMLFrameSetElement::collectStyleForAttribute(Attribute* attr, StylePropertySet* style) +{ + if (attr->name() == bordercolorAttr) + addHTMLColorToStyle(style, CSSPropertyBorderColor, attr->value()); + else + HTMLElement::collectStyleForAttribute(attr, style); +} + void HTMLFrameSetElement::parseAttribute(Attribute* attr) { if (attr->name() == rowsAttr) { @@ -98,13 +113,9 @@ void HTMLFrameSetElement::parseAttribute(Attribute* attr) m_borderSet = true; } else m_borderSet = false; - } else if (attr->name() == bordercolorAttr) { + } else if (attr->name() == bordercolorAttr) m_borderColorSet = !attr->isEmpty(); - if (attr->value().isNull()) - removeCSSProperty(CSSPropertyBorderColor); - else - addCSSColor(CSSPropertyBorderColor, attr->value()); - } else if (attr->name() == onloadAttr) + else if (attr->name() == onloadAttr) document()->setWindowAttributeEventListener(eventNames().loadEvent, createAttributeEventListener(document()->frame(), attr)); else if (attr->name() == onbeforeunloadAttr) document()->setWindowAttributeEventListener(eventNames().beforeunloadEvent, createAttributeEventListener(document()->frame(), attr)); |