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

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h

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) 2003, 2009, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved.
3 * 3 *
4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
5 * 5 *
6 * Other contributors: 6 * Other contributors:
7 * Robert O'Callahan <roc+@cs.cmu.edu> 7 * Robert O'Callahan <roc+@cs.cmu.edu>
8 * David Baron <dbaron@fas.harvard.edu> 8 * David Baron <dbaron@fas.harvard.edu>
9 * Christian Biesinger <cbiesinger@web.de> 9 * Christian Biesinger <cbiesinger@web.de>
10 * Randall Jesup <rjesup@wgate.com> 10 * Randall Jesup <rjesup@wgate.com>
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 void updateResizerStyle(); 513 void updateResizerStyle();
514 514
515 void updateScrollableAreaSet(bool hasOverflow); 515 void updateScrollableAreaSet(bool hasOverflow);
516 516
517 void updateCompositingLayersAfterScroll(); 517 void updateCompositingLayersAfterScroll();
518 518
519 PaintLayerScrollableAreaRareData* rareData() { return m_rareData.get(); } 519 PaintLayerScrollableAreaRareData* rareData() { return m_rareData.get(); }
520 520
521 PaintLayerScrollableAreaRareData& ensureRareData() { 521 PaintLayerScrollableAreaRareData& ensureRareData() {
522 if (!m_rareData) 522 if (!m_rareData)
523 m_rareData = wrapUnique(new PaintLayerScrollableAreaRareData()); 523 m_rareData = makeUnique<PaintLayerScrollableAreaRareData>();
524 return *m_rareData.get(); 524 return *m_rareData.get();
525 } 525 }
526 526
527 PaintLayer& m_layer; 527 PaintLayer& m_layer;
528 528
529 PaintLayer* m_nextTopmostScrollChild; 529 PaintLayer* m_nextTopmostScrollChild;
530 PaintLayer* m_topmostScrollChild; 530 PaintLayer* m_topmostScrollChild;
531 531
532 // Keeps track of whether the layer is currently resizing, so events can cause 532 // Keeps track of whether the layer is currently resizing, so events can cause
533 // resizing to start and stop. 533 // resizing to start and stop.
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 582
583 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, 583 DEFINE_TYPE_CASTS(PaintLayerScrollableArea,
584 ScrollableArea, 584 ScrollableArea,
585 scrollableArea, 585 scrollableArea,
586 scrollableArea->isPaintLayerScrollableArea(), 586 scrollableArea->isPaintLayerScrollableArea(),
587 scrollableArea.isPaintLayerScrollableArea()); 587 scrollableArea.isPaintLayerScrollableArea());
588 588
589 } // namespace blink 589 } // namespace blink
590 590
591 #endif // LayerScrollableArea_h 591 #endif // LayerScrollableArea_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayer.cpp ('k') | third_party/WebKit/Source/core/paint/VideoPainterTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698