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(); |
278 } | 279 } |
279 } | 280 } |
280 | 281 |
281 LocalDOMWindow* HTMLFrameSetElement::anonymousNamedGetter( | 282 LocalDOMWindow* HTMLFrameSetElement::anonymousNamedGetter( |
282 const AtomicString& name) { | 283 const AtomicString& name) { |
283 Element* frameElement = children()->namedItem(name); | 284 Element* frameElement = children()->namedItem(name); |
284 if (!isHTMLFrameElement(frameElement)) | 285 if (!isHTMLFrameElement(frameElement)) |
285 return nullptr; | 286 return nullptr; |
286 Document* document = toHTMLFrameElement(frameElement)->contentDocument(); | 287 Document* document = toHTMLFrameElement(frameElement)->contentDocument(); |
287 if (!document || !document->frame()) | 288 if (!document || !document->frame()) |
288 return nullptr; | 289 return nullptr; |
289 return document->domWindow(); | 290 return document->domWindow(); |
290 } | 291 } |
291 | 292 |
292 } // namespace blink | 293 } // namespace blink |
OLD | NEW |