| 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 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 422 // previous frame. | 422 // previous frame. |
| 423 DisableCompositingQueryAsserts disabler; | 423 DisableCompositingQueryAsserts disabler; |
| 424 if (const PaintLayer* ancestorOverflowLayer = | 424 if (const PaintLayer* ancestorOverflowLayer = |
| 425 layer()->ancestorOverflowLayer()) | 425 layer()->ancestorOverflowLayer()) |
| 426 ancestorOverflowLayer->getScrollableArea() | 426 ancestorOverflowLayer->getScrollableArea() |
| 427 ->invalidateAllStickyConstraints(); | 427 ->invalidateAllStickyConstraints(); |
| 428 } | 428 } |
| 429 | 429 |
| 430 void LayoutBoxModelObject::createLayer() { | 430 void LayoutBoxModelObject::createLayer() { |
| 431 ASSERT(!m_layer); | 431 ASSERT(!m_layer); |
| 432 m_layer = wrapUnique(new PaintLayer(this)); | 432 m_layer = makeUnique<PaintLayer>(this); |
| 433 setHasLayer(true); | 433 setHasLayer(true); |
| 434 m_layer->insertOnlyThisLayerAfterStyleChange(); | 434 m_layer->insertOnlyThisLayerAfterStyleChange(); |
| 435 } | 435 } |
| 436 | 436 |
| 437 void LayoutBoxModelObject::destroyLayer() { | 437 void LayoutBoxModelObject::destroyLayer() { |
| 438 setHasLayer(false); | 438 setHasLayer(false); |
| 439 m_layer = nullptr; | 439 m_layer = nullptr; |
| 440 } | 440 } |
| 441 | 441 |
| 442 bool LayoutBoxModelObject::hasSelfPaintingLayer() const { | 442 bool LayoutBoxModelObject::hasSelfPaintingLayer() const { |
| (...skipping 876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1319 if (rootElementStyle->hasBackground()) | 1319 if (rootElementStyle->hasBackground()) |
| 1320 return false; | 1320 return false; |
| 1321 | 1321 |
| 1322 if (node() != document().firstBodyElement()) | 1322 if (node() != document().firstBodyElement()) |
| 1323 return false; | 1323 return false; |
| 1324 | 1324 |
| 1325 return true; | 1325 return true; |
| 1326 } | 1326 } |
| 1327 | 1327 |
| 1328 } // namespace blink | 1328 } // namespace blink |
| OLD | NEW |