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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutView.h

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. Created 4 years, 6 months 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 * Copyright (C) 2006 Apple Computer, Inc. 3 * Copyright (C) 2006 Apple Computer, Inc.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 14 matching lines...) Expand all
25 #include "core/CoreExport.h" 25 #include "core/CoreExport.h"
26 #include "core/layout/HitTestCache.h" 26 #include "core/layout/HitTestCache.h"
27 #include "core/layout/HitTestResult.h" 27 #include "core/layout/HitTestResult.h"
28 #include "core/layout/LayoutBlockFlow.h" 28 #include "core/layout/LayoutBlockFlow.h"
29 #include "core/layout/LayoutState.h" 29 #include "core/layout/LayoutState.h"
30 #include "core/layout/PaintInvalidationState.h" 30 #include "core/layout/PaintInvalidationState.h"
31 #include "platform/PODFreeListArena.h" 31 #include "platform/PODFreeListArena.h"
32 #include "platform/RuntimeEnabledFeatures.h" 32 #include "platform/RuntimeEnabledFeatures.h"
33 #include "platform/heap/Handle.h" 33 #include "platform/heap/Handle.h"
34 #include "platform/scroll/ScrollableArea.h" 34 #include "platform/scroll/ScrollableArea.h"
35 #include "wtf/OwnPtr.h" 35 #include <memory>
36 36
37 namespace blink { 37 namespace blink {
38 38
39 class FrameView; 39 class FrameView;
40 class PaintLayerCompositor; 40 class PaintLayerCompositor;
41 class LayoutQuote; 41 class LayoutQuote;
42 class LayoutMedia; 42 class LayoutMedia;
43 class ViewFragmentationContext; 43 class ViewFragmentationContext;
44 44
45 // LayoutView is the root of the layout tree and the Document's LayoutObject. 45 // LayoutView is the root of the layout tree and the Document's LayoutObject.
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 // Outside of printing, this is 0. 255 // Outside of printing, this is 0.
256 LayoutUnit m_pageLogicalHeight; 256 LayoutUnit m_pageLogicalHeight;
257 bool m_pageLogicalHeightChanged; 257 bool m_pageLogicalHeightChanged;
258 258
259 // LayoutState is an optimization used during layout. 259 // LayoutState is an optimization used during layout.
260 // |m_layoutState| will be nullptr outside of layout. 260 // |m_layoutState| will be nullptr outside of layout.
261 // 261 //
262 // See the class comment for more details. 262 // See the class comment for more details.
263 LayoutState* m_layoutState; 263 LayoutState* m_layoutState;
264 264
265 OwnPtr<ViewFragmentationContext> m_fragmentationContext; 265 std::unique_ptr<ViewFragmentationContext> m_fragmentationContext;
266 OwnPtr<PaintLayerCompositor> m_compositor; 266 std::unique_ptr<PaintLayerCompositor> m_compositor;
267 RefPtr<IntervalArena> m_intervalArena; 267 RefPtr<IntervalArena> m_intervalArena;
268 268
269 LayoutQuote* m_layoutQuoteHead; 269 LayoutQuote* m_layoutQuoteHead;
270 unsigned m_layoutCounterCount; 270 unsigned m_layoutCounterCount;
271 271
272 unsigned m_hitTestCount; 272 unsigned m_hitTestCount;
273 unsigned m_hitTestCacheHits; 273 unsigned m_hitTestCacheHits;
274 Persistent<HitTestCache> m_hitTestCache; 274 Persistent<HitTestCache> m_hitTestCache;
275 275
276 Vector<LayoutMedia*> m_mediaForPositionNotification; 276 Vector<LayoutMedia*> m_mediaForPositionNotification;
277 }; 277 };
278 278
279 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutView, isLayoutView()); 279 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutView, isLayoutView());
280 280
281 } // namespace blink 281 } // namespace blink
282 282
283 #endif // LayoutView_h 283 #endif // LayoutView_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutThemeTest.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698