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, 2010 Apple Inc. All rights reserved. | 6 * Copyright (C) 2004, 2006, 2009, 2010 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 if (insertionPoint->inDocument() && document().frame()) { | 200 if (insertionPoint->inDocument() && document().frame()) { |
201 // A document using <frameset> likely won't literally have a body, but a
s far as the client is concerned, the frameset is effectively the body. | 201 // A document using <frameset> likely won't literally have a body, but a
s far as the client is concerned, the frameset is effectively the body. |
202 document().frame()->loader().client()->dispatchWillInsertBody(); | 202 document().frame()->loader().client()->dispatchWillInsertBody(); |
203 } | 203 } |
204 return HTMLElement::insertedInto(insertionPoint); | 204 return HTMLElement::insertedInto(insertionPoint); |
205 } | 205 } |
206 | 206 |
207 void HTMLFrameSetElement::willRecalcStyle(StyleRecalcChange) | 207 void HTMLFrameSetElement::willRecalcStyle(StyleRecalcChange) |
208 { | 208 { |
209 if (needsStyleRecalc() && renderer()) { | 209 if (needsStyleRecalc() && renderer()) { |
210 renderer()->setNeedsLayout(); | 210 renderer()->setNeedsLayoutAndFullRepaint(); |
211 clearNeedsStyleRecalc(); | 211 clearNeedsStyleRecalc(); |
212 } | 212 } |
213 } | 213 } |
214 | 214 |
215 DOMWindow* HTMLFrameSetElement::anonymousNamedGetter(const AtomicString& name) | 215 DOMWindow* HTMLFrameSetElement::anonymousNamedGetter(const AtomicString& name) |
216 { | 216 { |
217 Element* frameElement = children()->namedItem(name); | 217 Element* frameElement = children()->namedItem(name); |
218 if (!isHTMLFrameElement(frameElement)) | 218 if (!isHTMLFrameElement(frameElement)) |
219 return 0; | 219 return 0; |
220 Document* document = toHTMLFrameElement(frameElement)->contentDocument(); | 220 Document* document = toHTMLFrameElement(frameElement)->contentDocument(); |
221 if (!document || !document->frame()) | 221 if (!document || !document->frame()) |
222 return 0; | 222 return 0; |
223 return document->domWindow(); | 223 return document->domWindow(); |
224 } | 224 } |
225 | 225 |
226 } // namespace WebCore | 226 } // namespace WebCore |
OLD | NEW |