Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLFrameSetElement.cpp

Issue 2473743003: Call Element::rebuildLayoutTree from Document::updateStyle directly (Closed)
Patch Set: Make needsAttach() only check if getStyleChangeType flag is NeedsReattachStyleChange and add a Layo… Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/stylerecalc.md ('k') | third_party/WebKit/Source/core/style/ComputedStyleConstants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698