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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/ClipPathDisplayItem.h

Issue 2119033003: Fix alignment issue of ContiguousContainer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/graphics/paint/ClipPathDisplayItem.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/ClipPathDisplayItem.h b/third_party/WebKit/Source/platform/graphics/paint/ClipPathDisplayItem.h
index 721b1ee5b7f6fc467dbb2221b10ccb9e37681398..caf25f307be6bb926f7f5e6468816503b62a97d1 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/ClipPathDisplayItem.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/ClipPathDisplayItem.h
@@ -12,10 +12,10 @@
namespace blink {
-class PLATFORM_EXPORT BeginClipPathDisplayItem final : public PairedBeginDisplayItem {
+class PLATFORM_EXPORT BeginClipPathDisplayItem final : public PairedBeginDisplayItem<BeginClipPathDisplayItem> {
public:
BeginClipPathDisplayItem(const DisplayItemClient& client, const Path& clipPath)
- : PairedBeginDisplayItem(client, BeginClipPath, sizeof(*this))
+ : PairedBeginDisplayItem(client, BeginClipPath)
, m_clipPath(clipPath.getSkPath()) { }
void replay(GraphicsContext&) const override;
@@ -37,10 +37,10 @@ private:
#endif
};
-class PLATFORM_EXPORT EndClipPathDisplayItem final : public PairedEndDisplayItem {
+class PLATFORM_EXPORT EndClipPathDisplayItem final : public PairedEndDisplayItem<EndClipPathDisplayItem> {
public:
EndClipPathDisplayItem(const DisplayItemClient& client)
- : PairedEndDisplayItem(client, EndClipPath, sizeof(*this)) { }
+ : PairedEndDisplayItem(client, EndClipPath) { }
void replay(GraphicsContext&) const override;
void appendToWebDisplayItemList(const IntRect&, WebDisplayItemList*) const override;

Powered by Google App Engine
This is Rietveld 408576698