| 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) 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 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 // previous frame. | 421 // previous frame. |
| 422 DisableCompositingQueryAsserts disabler; | 422 DisableCompositingQueryAsserts disabler; |
| 423 if (const PaintLayer* ancestorOverflowLayer = | 423 if (const PaintLayer* ancestorOverflowLayer = |
| 424 layer()->ancestorOverflowLayer()) | 424 layer()->ancestorOverflowLayer()) |
| 425 ancestorOverflowLayer->getScrollableArea() | 425 ancestorOverflowLayer->getScrollableArea() |
| 426 ->invalidateAllStickyConstraints(); | 426 ->invalidateAllStickyConstraints(); |
| 427 } | 427 } |
| 428 | 428 |
| 429 void LayoutBoxModelObject::createLayer() { | 429 void LayoutBoxModelObject::createLayer() { |
| 430 ASSERT(!m_layer); | 430 ASSERT(!m_layer); |
| 431 m_layer = makeUnique<PaintLayer>(this); | 431 m_layer = WTF::makeUnique<PaintLayer>(this); |
| 432 setHasLayer(true); | 432 setHasLayer(true); |
| 433 m_layer->insertOnlyThisLayerAfterStyleChange(); | 433 m_layer->insertOnlyThisLayerAfterStyleChange(); |
| 434 } | 434 } |
| 435 | 435 |
| 436 void LayoutBoxModelObject::destroyLayer() { | 436 void LayoutBoxModelObject::destroyLayer() { |
| 437 setHasLayer(false); | 437 setHasLayer(false); |
| 438 m_layer = nullptr; | 438 m_layer = nullptr; |
| 439 } | 439 } |
| 440 | 440 |
| 441 bool LayoutBoxModelObject::hasSelfPaintingLayer() const { | 441 bool LayoutBoxModelObject::hasSelfPaintingLayer() const { |
| (...skipping 885 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1327 if (rootElementStyle->hasBackground()) | 1327 if (rootElementStyle->hasBackground()) |
| 1328 return false; | 1328 return false; |
| 1329 | 1329 |
| 1330 if (node() != document().firstBodyElement()) | 1330 if (node() != document().firstBodyElement()) |
| 1331 return false; | 1331 return false; |
| 1332 | 1332 |
| 1333 return true; | 1333 return true; |
| 1334 } | 1334 } |
| 1335 | 1335 |
| 1336 } // namespace blink | 1336 } // namespace blink |
| OLD | NEW |