| 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 return; | 191 return; |
| 192 } | 192 } |
| 193 } | 193 } |
| 194 HTMLElement::defaultEventHandler(evt); | 194 HTMLElement::defaultEventHandler(evt); |
| 195 } | 195 } |
| 196 | 196 |
| 197 Node::InsertionNotificationRequest HTMLFrameSetElement::insertedInto(ContainerNo
de* insertionPoint) | 197 Node::InsertionNotificationRequest HTMLFrameSetElement::insertedInto(ContainerNo
de* insertionPoint) |
| 198 { | 198 { |
| 199 if (insertionPoint->inShadowIncludingDocument() && document().frame()) { | 199 if (insertionPoint->inShadowIncludingDocument() && document().frame()) { |
| 200 // 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. | 200 // 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 document().frame()->loader().client()->dispatchWillInsertBody(); | 201 document().willInsertBody(); |
| 202 } | 202 } |
| 203 return HTMLElement::insertedInto(insertionPoint); | 203 return HTMLElement::insertedInto(insertionPoint); |
| 204 } | 204 } |
| 205 | 205 |
| 206 void HTMLFrameSetElement::willRecalcStyle(StyleRecalcChange) | 206 void HTMLFrameSetElement::willRecalcStyle(StyleRecalcChange) |
| 207 { | 207 { |
| 208 if (needsStyleRecalc() && layoutObject()) { | 208 if (needsStyleRecalc() && layoutObject()) { |
| 209 layoutObject()->setNeedsLayoutAndFullPaintInvalidation(LayoutInvalidatio
nReason::StyleChange); | 209 layoutObject()->setNeedsLayoutAndFullPaintInvalidation(LayoutInvalidatio
nReason::StyleChange); |
| 210 clearNeedsStyleRecalc(); | 210 clearNeedsStyleRecalc(); |
| 211 } | 211 } |
| 212 } | 212 } |
| 213 | 213 |
| 214 LocalDOMWindow* HTMLFrameSetElement::anonymousNamedGetter(const AtomicString& na
me) | 214 LocalDOMWindow* HTMLFrameSetElement::anonymousNamedGetter(const AtomicString& na
me) |
| 215 { | 215 { |
| 216 Element* frameElement = children()->namedItem(name); | 216 Element* frameElement = children()->namedItem(name); |
| 217 if (!isHTMLFrameElement(frameElement)) | 217 if (!isHTMLFrameElement(frameElement)) |
| 218 return nullptr; | 218 return nullptr; |
| 219 Document* document = toHTMLFrameElement(frameElement)->contentDocument(); | 219 Document* document = toHTMLFrameElement(frameElement)->contentDocument(); |
| 220 if (!document || !document->frame()) | 220 if (!document || !document->frame()) |
| 221 return nullptr; | 221 return nullptr; |
| 222 return document->domWindow(); | 222 return document->domWindow(); |
| 223 } | 223 } |
| 224 | 224 |
| 225 } // namespace blink | 225 } // namespace blink |
| OLD | NEW |