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

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

Issue 2494333002: Replace wrapUnique(new T(args)) by makeUnique<T>(args) in Blink (Closed)
Patch Set: Drop redundant WTF:: Created 4 years, 1 month 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 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h ('k') | third_party/WebKit/Source/core/layout/LayoutGrid.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698