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

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

Issue 1835843002: WIP: Fix foreignObject cullrect Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 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 DisplayItemClient_h 5 #ifndef DisplayItemClient_h
6 #define DisplayItemClient_h 6 #define DisplayItemClient_h
7 7
8 #include "platform/PlatformExport.h" 8 #include "platform/PlatformExport.h"
9 #include "platform/geometry/LayoutRect.h" 9 #include "platform/geometry/LayoutRect.h"
10 #include "wtf/text/WTFString.h" 10 #include "wtf/text/WTFString.h"
(...skipping 10 matching lines...) Expand all
21 #if ENABLE(ASSERT) 21 #if ENABLE(ASSERT)
22 DisplayItemClient(); 22 DisplayItemClient();
23 virtual ~DisplayItemClient(); 23 virtual ~DisplayItemClient();
24 #else 24 #else
25 virtual ~DisplayItemClient() { } 25 virtual ~DisplayItemClient() { }
26 #endif 26 #endif
27 27
28 virtual String debugName() const = 0; 28 virtual String debugName() const = 0;
29 29
30 // The visual rect of this DisplayItemClient, in object space of the object that owns the GraphicsLayer, i.e. 30 // The visual rect of this DisplayItemClient, in object space of the object that owns the GraphicsLayer, i.e.
31 // offset by offsetFromLayoutObjectPlusSubpixelAccumulation(). 31 // offset by offsetFromLayoutObjectWithSubpixelAccumulation().
32 virtual LayoutRect visualRect() const = 0; 32 virtual LayoutRect visualRect() const = 0;
33 33
34 #if ENABLE(ASSERT) 34 #if ENABLE(ASSERT)
35 // Tests if a DisplayItemClient object has been created and has not been del eted yet. 35 // Tests if a DisplayItemClient object has been created and has not been del eted yet.
36 static bool isAlive(const DisplayItemClient&); 36 static bool isAlive(const DisplayItemClient&);
37 #endif 37 #endif
38 }; 38 };
39 39
40 inline bool operator==(const DisplayItemClient& client1, const DisplayItemClient & client2) { return &client1 == &client2; } 40 inline bool operator==(const DisplayItemClient& client1, const DisplayItemClient & client2) { return &client1 == &client2; }
41 inline bool operator!=(const DisplayItemClient& client1, const DisplayItemClient & client2) { return &client1 != &client2; } 41 inline bool operator!=(const DisplayItemClient& client1, const DisplayItemClient & client2) { return &client1 != &client2; }
42 42
43 } // namespace blink 43 } // namespace blink
44 44
45 #endif // DisplayItemClient_h 45 #endif // DisplayItemClient_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/paint/CullRect.h ('k') | ui/compositor/canvas_painter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698