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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp

Issue 2851763004: Remove LayoutObject::LayerCreationAllowedForSubtree. (Closed)
Patch Set: Created 3 years, 7 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) 2005 Allan Sandfeld Jensen (kde@carewolf.com) 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com)
5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com)
6 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
7 * Copyright (C) 2010 Google Inc. All rights reserved. 7 * Copyright (C) 2010 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 (StyleRef().OriginalDisplay() != old_style->OriginalDisplay()) && 319 (StyleRef().OriginalDisplay() != old_style->OriginalDisplay()) &&
320 ((StyleRef().OriginalDisplay() == EDisplay::kBlock) || 320 ((StyleRef().OriginalDisplay() == EDisplay::kBlock) ||
321 (StyleRef().OriginalDisplay() == EDisplay::kInlineBlock)) && 321 (StyleRef().OriginalDisplay() == EDisplay::kInlineBlock)) &&
322 ((old_style->OriginalDisplay() == EDisplay::kBlock) || 322 ((old_style->OriginalDisplay() == EDisplay::kBlock) ||
323 (old_style->OriginalDisplay() == EDisplay::kInlineBlock))) 323 (old_style->OriginalDisplay() == EDisplay::kInlineBlock)))
324 Parent()->SetNeedsLayout(LayoutInvalidationReason::kChildChanged, 324 Parent()->SetNeedsLayout(LayoutInvalidationReason::kChildChanged,
325 kMarkContainerChain); 325 kMarkContainerChain);
326 326
327 PaintLayerType type = LayerTypeRequired(); 327 PaintLayerType type = LayerTypeRequired();
328 if (type != kNoPaintLayer) { 328 if (type != kNoPaintLayer) {
329 if (!Layer() && LayerCreationAllowedForSubtree()) { 329 if (!Layer()) {
330 if (was_floating_before_style_changed && IsFloating()) 330 if (was_floating_before_style_changed && IsFloating())
331 SetChildNeedsLayout(); 331 SetChildNeedsLayout();
332 CreateLayerAfterStyleChange(); 332 CreateLayerAfterStyleChange();
333 if (Parent() && !NeedsLayout()) { 333 if (Parent() && !NeedsLayout()) {
334 // FIXME: We should call specialized versions of these functions. 334 // FIXME: We should call specialized versions of these functions.
335 Layer()->UpdateScrollingAfterLayout(); 335 Layer()->UpdateScrollingAfterLayout();
336 Layer()->UpdateLayerPositionsAfterLayout(); 336 Layer()->UpdateLayerPositionsAfterLayout();
337 } 337 }
338 } 338 }
339 } else if (Layer() && Layer()->Parent()) { 339 } else if (Layer() && Layer()->Parent()) {
(...skipping 1142 matching lines...) Expand 10 before | Expand all | Expand 10 after
1482 if (root_element_style->HasBackground()) 1482 if (root_element_style->HasBackground())
1483 return false; 1483 return false;
1484 1484
1485 if (GetNode() != GetDocument().FirstBodyElement()) 1485 if (GetNode() != GetDocument().FirstBodyElement())
1486 return false; 1486 return false;
1487 1487
1488 return true; 1488 return true;
1489 } 1489 }
1490 1490
1491 } // namespace blink 1491 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698