| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 } | 52 } |
| 53 | 53 |
| 54 RenderObject* HTMLFrameElement::createRenderer(RenderStyle*) | 54 RenderObject* HTMLFrameElement::createRenderer(RenderStyle*) |
| 55 { | 55 { |
| 56 return new RenderFrame(this); | 56 return new RenderFrame(this); |
| 57 } | 57 } |
| 58 | 58 |
| 59 static inline HTMLFrameSetElement* containingFrameSetElement(Node* node) | 59 static inline HTMLFrameSetElement* containingFrameSetElement(Node* node) |
| 60 { | 60 { |
| 61 while ((node = node->parentNode())) { | 61 while ((node = node->parentNode())) { |
| 62 if (node->hasTagName(framesetTag)) | 62 if (isHTMLFrameSetElement(*node)) |
| 63 return toHTMLFrameSetElement(node); | 63 return toHTMLFrameSetElement(node); |
| 64 } | 64 } |
| 65 return 0; | 65 return 0; |
| 66 } | 66 } |
| 67 | 67 |
| 68 bool HTMLFrameElement::noResize() const | 68 bool HTMLFrameElement::noResize() const |
| 69 { | 69 { |
| 70 return hasAttribute(noresizeAttr); | 70 return hasAttribute(noresizeAttr); |
| 71 } | 71 } |
| 72 | 72 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 87 m_frameBorderSet = !value.isNull(); | 87 m_frameBorderSet = !value.isNull(); |
| 88 // FIXME: If we are already attached, this has no effect. | 88 // FIXME: If we are already attached, this has no effect. |
| 89 } else if (name == noresizeAttr) { | 89 } else if (name == noresizeAttr) { |
| 90 if (renderer()) | 90 if (renderer()) |
| 91 renderer()->updateFromElement(); | 91 renderer()->updateFromElement(); |
| 92 } else | 92 } else |
| 93 HTMLFrameElementBase::parseAttribute(name, value); | 93 HTMLFrameElementBase::parseAttribute(name, value); |
| 94 } | 94 } |
| 95 | 95 |
| 96 } // namespace WebCore | 96 } // namespace WebCore |
| OLD | NEW |