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