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

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintLayer.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) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
3 * reserved. 3 * reserved.
4 * 4 *
5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
6 * 6 *
7 * Other contributors: 7 * Other contributors:
8 * Robert O'Callahan <roc+@cs.cmu.edu> 8 * Robert O'Callahan <roc+@cs.cmu.edu>
9 * David Baron <dbaron@fas.harvard.edu> 9 * David Baron <dbaron@fas.harvard.edu>
10 * Christian Biesinger <cbiesinger@web.de> 10 * Christian Biesinger <cbiesinger@web.de>
(...skipping 1008 matching lines...) Expand 10 before | Expand all | Expand 10 after
1019 current->m_childNeedsCompositingInputsUpdate = true; 1019 current->m_childNeedsCompositingInputsUpdate = true;
1020 1020
1021 compositor()->setNeedsCompositingUpdate( 1021 compositor()->setNeedsCompositingUpdate(
1022 CompositingUpdateAfterCompositingInputChange); 1022 CompositingUpdateAfterCompositingInputChange);
1023 } 1023 }
1024 1024
1025 void PaintLayer::updateAncestorDependentCompositingInputs( 1025 void PaintLayer::updateAncestorDependentCompositingInputs(
1026 const AncestorDependentCompositingInputs& compositingInputs, 1026 const AncestorDependentCompositingInputs& compositingInputs,
1027 bool hasAncestorWithClipPath) { 1027 bool hasAncestorWithClipPath) {
1028 m_ancestorDependentCompositingInputs = 1028 m_ancestorDependentCompositingInputs =
1029 wrapUnique(new AncestorDependentCompositingInputs(compositingInputs)); 1029 makeUnique<AncestorDependentCompositingInputs>(compositingInputs);
1030 m_hasAncestorWithClipPath = hasAncestorWithClipPath; 1030 m_hasAncestorWithClipPath = hasAncestorWithClipPath;
1031 m_needsAncestorDependentCompositingInputsUpdate = false; 1031 m_needsAncestorDependentCompositingInputsUpdate = false;
1032 } 1032 }
1033 1033
1034 void PaintLayer::updateDescendantDependentCompositingInputs( 1034 void PaintLayer::updateDescendantDependentCompositingInputs(
1035 bool hasDescendantWithClipPath, 1035 bool hasDescendantWithClipPath,
1036 bool hasNonIsolatedDescendantWithBlendMode, 1036 bool hasNonIsolatedDescendantWithBlendMode,
1037 bool hasRootScrollerAsDescendant) { 1037 bool hasRootScrollerAsDescendant) {
1038 m_hasDescendantWithClipPath = hasDescendantWithClipPath; 1038 m_hasDescendantWithClipPath = hasDescendantWithClipPath;
1039 m_hasNonIsolatedDescendantWithBlendMode = 1039 m_hasNonIsolatedDescendantWithBlendMode =
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
1534 // paint it; if it becomes self-painting, it should paint itself and no 1534 // paint it; if it becomes self-painting, it should paint itself and no
1535 // ancestor should paint it. 1535 // ancestor should paint it.
1536 if (wasSelfPaintingLayer != isSelfPaintingLayer() && 1536 if (wasSelfPaintingLayer != isSelfPaintingLayer() &&
1537 m_layoutObject->isFloating()) 1537 m_layoutObject->isFloating())
1538 LayoutBlockFlow::setAncestorShouldPaintFloatingObject(*layoutBox()); 1538 LayoutBlockFlow::setAncestorShouldPaintFloatingObject(*layoutBox());
1539 } 1539 }
1540 1540
1541 void PaintLayer::updateStackingNode() { 1541 void PaintLayer::updateStackingNode() {
1542 DCHECK(!m_stackingNode); 1542 DCHECK(!m_stackingNode);
1543 if (requiresStackingNode()) 1543 if (requiresStackingNode())
1544 m_stackingNode = wrapUnique(new PaintLayerStackingNode(this)); 1544 m_stackingNode = makeUnique<PaintLayerStackingNode>(this);
1545 else 1545 else
1546 m_stackingNode = nullptr; 1546 m_stackingNode = nullptr;
1547 } 1547 }
1548 1548
1549 void PaintLayer::updateScrollableArea() { 1549 void PaintLayer::updateScrollableArea() {
1550 DCHECK(!m_scrollableArea); 1550 DCHECK(!m_scrollableArea);
1551 if (requiresScrollableArea()) 1551 if (requiresScrollableArea())
1552 m_scrollableArea = PaintLayerScrollableArea::create(*this); 1552 m_scrollableArea = PaintLayerScrollableArea::create(*this);
1553 } 1553 }
1554 1554
(...skipping 1674 matching lines...) Expand 10 before | Expand all | Expand 10 after
3229 } 3229 }
3230 3230
3231 void showLayerTree(const blink::LayoutObject* layoutObject) { 3231 void showLayerTree(const blink::LayoutObject* layoutObject) {
3232 if (!layoutObject) { 3232 if (!layoutObject) {
3233 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); 3233 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n");
3234 return; 3234 return;
3235 } 3235 }
3236 showLayerTree(layoutObject->enclosingLayer()); 3236 showLayerTree(layoutObject->enclosingLayer());
3237 } 3237 }
3238 #endif 3238 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698