| 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 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 namespace blink { | 32 namespace blink { |
| 33 | 33 |
| 34 using namespace HTMLNames; | 34 using namespace HTMLNames; |
| 35 | 35 |
| 36 inline HTMLFrameElement::HTMLFrameElement(Document& document) | 36 inline HTMLFrameElement::HTMLFrameElement(Document& document) |
| 37 : HTMLFrameElementBase(frameTag, document) | 37 : HTMLFrameElementBase(frameTag, document) |
| 38 , m_frameBorder(true) | 38 , m_frameBorder(true) |
| 39 , m_frameBorderSet(false) | 39 , m_frameBorderSet(false) |
| 40 { | 40 { |
| 41 ScriptWrappable::init(this); | |
| 42 } | 41 } |
| 43 | 42 |
| 44 DEFINE_NODE_FACTORY(HTMLFrameElement) | 43 DEFINE_NODE_FACTORY(HTMLFrameElement) |
| 45 | 44 |
| 46 bool HTMLFrameElement::rendererIsNeeded(const RenderStyle&) | 45 bool HTMLFrameElement::rendererIsNeeded(const RenderStyle&) |
| 47 { | 46 { |
| 48 // For compatibility, frames render even when display: none is set. | 47 // For compatibility, frames render even when display: none is set. |
| 49 return isURLAllowed(); | 48 return isURLAllowed(); |
| 50 } | 49 } |
| 51 | 50 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 76 m_frameBorderSet = !value.isNull(); | 75 m_frameBorderSet = !value.isNull(); |
| 77 // FIXME: If we are already attached, this has no effect. | 76 // FIXME: If we are already attached, this has no effect. |
| 78 } else if (name == noresizeAttr) { | 77 } else if (name == noresizeAttr) { |
| 79 if (renderer()) | 78 if (renderer()) |
| 80 renderer()->updateFromElement(); | 79 renderer()->updateFromElement(); |
| 81 } else | 80 } else |
| 82 HTMLFrameElementBase::parseAttribute(name, value); | 81 HTMLFrameElementBase::parseAttribute(name, value); |
| 83 } | 82 } |
| 84 | 83 |
| 85 } // namespace blink | 84 } // namespace blink |
| OLD | NEW |