| 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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 document().willInsertBody(); | 268 document().willInsertBody(); |
| 269 } | 269 } |
| 270 return HTMLElement::insertedInto(insertionPoint); | 270 return HTMLElement::insertedInto(insertionPoint); |
| 271 } | 271 } |
| 272 | 272 |
| 273 void HTMLFrameSetElement::willRecalcStyle(StyleRecalcChange) { | 273 void HTMLFrameSetElement::willRecalcStyle(StyleRecalcChange) { |
| 274 if (needsStyleRecalc() && layoutObject()) { | 274 if (needsStyleRecalc() && layoutObject()) { |
| 275 layoutObject()->setNeedsLayoutAndFullPaintInvalidation( | 275 layoutObject()->setNeedsLayoutAndFullPaintInvalidation( |
| 276 LayoutInvalidationReason::StyleChange); | 276 LayoutInvalidationReason::StyleChange); |
| 277 clearNeedsStyleRecalc(); | 277 clearNeedsStyleRecalc(); |
| 278 clearNeedsReattachLayoutTree(); | |
| 279 } | 278 } |
| 280 } | 279 } |
| 281 | 280 |
| 282 LocalDOMWindow* HTMLFrameSetElement::anonymousNamedGetter( | 281 LocalDOMWindow* HTMLFrameSetElement::anonymousNamedGetter( |
| 283 const AtomicString& name) { | 282 const AtomicString& name) { |
| 284 Element* frameElement = children()->namedItem(name); | 283 Element* frameElement = children()->namedItem(name); |
| 285 if (!isHTMLFrameElement(frameElement)) | 284 if (!isHTMLFrameElement(frameElement)) |
| 286 return nullptr; | 285 return nullptr; |
| 287 Document* document = toHTMLFrameElement(frameElement)->contentDocument(); | 286 Document* document = toHTMLFrameElement(frameElement)->contentDocument(); |
| 288 if (!document || !document->frame()) | 287 if (!document || !document->frame()) |
| 289 return nullptr; | 288 return nullptr; |
| 290 return document->domWindow(); | 289 return document->domWindow(); |
| 291 } | 290 } |
| 292 | 291 |
| 293 } // namespace blink | 292 } // namespace blink |
| OLD | NEW |