| 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, 2008, 2009 Apple Inc. All rights reserved. | 6 * Copyright (C) 2004, 2006, 2008, 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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 else if (page->focusController()->focusedFrame() == contentFrame()) // F
ocus may have already been given to another frame, don't take it away. | 215 else if (page->focusController()->focusedFrame() == contentFrame()) // F
ocus may have already been given to another frame, don't take it away. |
| 216 page->focusController()->setFocusedFrame(0); | 216 page->focusController()->setFocusedFrame(0); |
| 217 } | 217 } |
| 218 } | 218 } |
| 219 | 219 |
| 220 bool HTMLFrameElementBase::isURLAttribute(const Attribute& attribute) const | 220 bool HTMLFrameElementBase::isURLAttribute(const Attribute& attribute) const |
| 221 { | 221 { |
| 222 return attribute.name() == srcAttr || HTMLFrameOwnerElement::isURLAttribute(
attribute); | 222 return attribute.name() == srcAttr || HTMLFrameOwnerElement::isURLAttribute(
attribute); |
| 223 } | 223 } |
| 224 | 224 |
| 225 bool HTMLFrameElementBase::isHTMLContentAttribute(const Attribute& attribute) co
nst |
| 226 { |
| 227 return attribute.name() == srcdocAttr || HTMLFrameOwnerElement::isHTMLConten
tAttribute(attribute); |
| 228 } |
| 229 |
| 225 int HTMLFrameElementBase::width() | 230 int HTMLFrameElementBase::width() |
| 226 { | 231 { |
| 227 document()->updateLayoutIgnorePendingStylesheets(); | 232 document()->updateLayoutIgnorePendingStylesheets(); |
| 228 if (!renderBox()) | 233 if (!renderBox()) |
| 229 return 0; | 234 return 0; |
| 230 return renderBox()->width(); | 235 return renderBox()->width(); |
| 231 } | 236 } |
| 232 | 237 |
| 233 int HTMLFrameElementBase::height() | 238 int HTMLFrameElementBase::height() |
| 234 { | 239 { |
| 235 document()->updateLayoutIgnorePendingStylesheets(); | 240 document()->updateLayoutIgnorePendingStylesheets(); |
| 236 if (!renderBox()) | 241 if (!renderBox()) |
| 237 return 0; | 242 return 0; |
| 238 return renderBox()->height(); | 243 return renderBox()->height(); |
| 239 } | 244 } |
| 240 | 245 |
| 241 } // namespace WebCore | 246 } // namespace WebCore |
| OLD | NEW |