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

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

Issue 1379213002: Remove LayoutTable::m_currentBorder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update comment Created 5 years, 2 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 DisplayItem_h 5 #ifndef DisplayItem_h
6 #define DisplayItem_h 6 #define DisplayItem_h
7 7
8 #include "platform/PlatformExport.h" 8 #include "platform/PlatformExport.h"
9 #include "platform/graphics/ContiguousContainer.h" 9 #include "platform/graphics/ContiguousContainer.h"
10 #include "platform/graphics/paint/DisplayItemClient.h" 10 #include "platform/graphics/paint/DisplayItemClient.h"
11 #include "wtf/Assertions.h" 11 #include "wtf/Assertions.h"
12 #include "wtf/PassOwnPtr.h" 12 #include "wtf/PassOwnPtr.h"
13 13
14 #ifndef NDEBUG 14 #ifndef NDEBUG
15 #include "wtf/text/StringBuilder.h" 15 #include "wtf/text/StringBuilder.h"
16 #include "wtf/text/WTFString.h" 16 #include "wtf/text/WTFString.h"
17 #endif 17 #endif
18 18
19 19
20 namespace blink { 20 namespace blink {
21 21
22 class GraphicsContext; 22 class GraphicsContext;
23 class WebDisplayItemList; 23 class WebDisplayItemList;
24 24
25 class PLATFORM_EXPORT DisplayItem { 25 class PLATFORM_EXPORT DisplayItem {
26 public: 26 public:
27 enum { 27 enum {
28 // Must be kept in sync with core/paint/PaintPhase.h. 28 // Must be kept in sync with core/paint/PaintPhase.h.
29 PaintPhaseMax = 12, 29 PaintPhaseMax = 11,
30 }; 30 };
31 31
32 // A display item type uniquely identifies a display item of a client. 32 // A display item type uniquely identifies a display item of a client.
33 // Some display item types can be categorized using the following directives : 33 // Some display item types can be categorized using the following directives :
34 // - In enum Type: 34 // - In enum Type:
35 // - enum value <Category>First; 35 // - enum value <Category>First;
36 // - enum values of the category, first of which should equal <Category>Fi rst; 36 // - enum values of the category, first of which should equal <Category>Fi rst;
37 // (for ease of maintenance, the values should be in alphabetic order) 37 // (for ease of maintenance, the values should be in alphabetic order)
38 // - enum value <Category>Last which should be equal to the last of the en um values of the category 38 // - enum value <Category>Last which should be equal to the last of the en um values of the category
39 // - DEFINE_CATEGORY_METHODS(<Category>) to define is<Category>Type(Type) an d is<Category>() methods. 39 // - DEFINE_CATEGORY_METHODS(<Category>) to define is<Category>Type(Type) an d is<Category>() methods.
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 bool isEndAndPairedWith(DisplayItem::Type otherType) const override = 0; 392 bool isEndAndPairedWith(DisplayItem::Type otherType) const override = 0;
393 #endif 393 #endif
394 394
395 private: 395 private:
396 bool isEnd() const final { return true; } 396 bool isEnd() const final { return true; }
397 }; 397 };
398 398
399 } // namespace blink 399 } // namespace blink
400 400
401 #endif // DisplayItem_h 401 #endif // DisplayItem_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698