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

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

Issue 2729453002: Revert of Call Element::rebuildLayoutTree from Document::updateStyle directly (Closed)
Patch Set: 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();
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
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