| 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 * (C) 2000 Simon Hausmann (hausmann@kde.org) | 4 * (C) 2000 Simon Hausmann (hausmann@kde.org) |
| 5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 6 * Copyright (C) 2004, 2006, 2009 Apple Inc. All rights reserved. | 6 * Copyright (C) 2004, 2006, 2009 Apple Inc. All rights reserved. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 LayoutObject* HTMLFrameElement::createLayoutObject(const ComputedStyle&) | 50 LayoutObject* HTMLFrameElement::createLayoutObject(const ComputedStyle&) |
| 51 { | 51 { |
| 52 return new LayoutFrame(this); | 52 return new LayoutFrame(this); |
| 53 } | 53 } |
| 54 | 54 |
| 55 bool HTMLFrameElement::noResize() const | 55 bool HTMLFrameElement::noResize() const |
| 56 { | 56 { |
| 57 return hasAttribute(noresizeAttr); | 57 return hasAttribute(noresizeAttr); |
| 58 } | 58 } |
| 59 | 59 |
| 60 void HTMLFrameElement::attach(const AttachContext& context) | 60 void HTMLFrameElement::attachLayoutTree(const AttachContext& context) |
| 61 { | 61 { |
| 62 HTMLFrameElementBase::attach(context); | 62 HTMLFrameElementBase::attachLayoutTree(context); |
| 63 | 63 |
| 64 if (HTMLFrameSetElement* frameSetElement = Traversal<HTMLFrameSetElement>::f
irstAncestor(*this)) { | 64 if (HTMLFrameSetElement* frameSetElement = Traversal<HTMLFrameSetElement>::f
irstAncestor(*this)) { |
| 65 if (!m_frameBorderSet) | 65 if (!m_frameBorderSet) |
| 66 m_frameBorder = frameSetElement->hasFrameBorder(); | 66 m_frameBorder = frameSetElement->hasFrameBorder(); |
| 67 } | 67 } |
| 68 } | 68 } |
| 69 | 69 |
| 70 void HTMLFrameElement::parseAttribute(const QualifiedName& name, const AtomicStr
ing& oldValue, const AtomicString& value) | 70 void HTMLFrameElement::parseAttribute(const QualifiedName& name, const AtomicStr
ing& oldValue, const AtomicString& value) |
| 71 { | 71 { |
| 72 if (name == frameborderAttr) { | 72 if (name == frameborderAttr) { |
| 73 m_frameBorder = value.toInt(); | 73 m_frameBorder = value.toInt(); |
| 74 m_frameBorderSet = !value.isNull(); | 74 m_frameBorderSet = !value.isNull(); |
| 75 // FIXME: If we are already attached, this has no effect. | 75 // FIXME: If we are already attached, this has no effect. |
| 76 } else if (name == noresizeAttr) { | 76 } else if (name == noresizeAttr) { |
| 77 if (layoutObject()) | 77 if (layoutObject()) |
| 78 layoutObject()->updateFromElement(); | 78 layoutObject()->updateFromElement(); |
| 79 } else { | 79 } else { |
| 80 HTMLFrameElementBase::parseAttribute(name, oldValue, value); | 80 HTMLFrameElementBase::parseAttribute(name, oldValue, value); |
| 81 } | 81 } |
| 82 } | 82 } |
| 83 | 83 |
| 84 } // namespace blink | 84 } // namespace blink |
| OLD | NEW |