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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/paint/FixedPositionDisplayItem.h

Issue 1412083007: Remove FastAllocBase.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef FixedPositionDisplayItem_h 5 #ifndef FixedPositionDisplayItem_h
6 #define FixedPositionDisplayItem_h 6 #define FixedPositionDisplayItem_h
7 7
8 #include "platform/geometry/LayoutSize.h" 8 #include "platform/geometry/LayoutSize.h"
9 #include "platform/graphics/paint/DisplayItem.h" 9 #include "platform/graphics/paint/DisplayItem.h"
10 #include "wtf/FastAllocBase.h"
11 #include "wtf/PassOwnPtr.h" 10 #include "wtf/PassOwnPtr.h"
12 11
13 namespace blink { 12 namespace blink {
14 13
15 class PLATFORM_EXPORT BeginFixedPositionDisplayItem final : public PairedBeginDi splayItem { 14 class PLATFORM_EXPORT BeginFixedPositionDisplayItem final : public PairedBeginDi splayItem {
16 public: 15 public:
17 BeginFixedPositionDisplayItem(const DisplayItemClientWrapper& client) 16 BeginFixedPositionDisplayItem(const DisplayItemClientWrapper& client)
18 : PairedBeginDisplayItem(client, BeginFixedPosition, sizeof(*this)) { } 17 : PairedBeginDisplayItem(client, BeginFixedPosition, sizeof(*this)) { }
19 18
20 void replay(GraphicsContext&) const final { } 19 void replay(GraphicsContext&) const final { }
(...skipping 10 matching lines...) Expand all
31 30
32 private: 31 private:
33 #if ENABLE(ASSERT) 32 #if ENABLE(ASSERT)
34 bool isEndAndPairedWith(DisplayItem::Type otherType) const final { return ot herType == BeginFixedPosition; } 33 bool isEndAndPairedWith(DisplayItem::Type otherType) const final { return ot herType == BeginFixedPosition; }
35 #endif 34 #endif
36 }; 35 };
37 36
38 } // namespace blink 37 } // namespace blink
39 38
40 #endif // FixedPositionDisplayItem_h 39 #endif // FixedPositionDisplayItem_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698