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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/ClipDisplayItem.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/ClipDisplayItem.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/ClipDisplayItem.h b/third_party/WebKit/Source/platform/graphics/paint/ClipDisplayItem.h
index de020e23af719b5f39c96d279d09bffbea2e02f8..6b14363ad68fbd3fe268f57f11c84138f42b048b 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/ClipDisplayItem.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/ClipDisplayItem.h
@@ -14,10 +14,10 @@
namespace blink {
-class PLATFORM_EXPORT ClipDisplayItem final : public PairedBeginDisplayItem {
+class PLATFORM_EXPORT ClipDisplayItem final : public PairedBeginDisplayItem<ClipDisplayItem> {
public:
ClipDisplayItem(const DisplayItemClient& client, Type type, const IntRect& clipRect)
- : PairedBeginDisplayItem(client, type, sizeof(*this))
+ : PairedBeginDisplayItem(client, type)
, m_clipRect(clipRect)
{
ASSERT(isClipType(type));
@@ -49,10 +49,10 @@ private:
Vector<FloatRoundedRect> m_roundedRectClips;
};
-class PLATFORM_EXPORT EndClipDisplayItem final : public PairedEndDisplayItem {
+class PLATFORM_EXPORT EndClipDisplayItem final : public PairedEndDisplayItem<EndClipDisplayItem> {
public:
EndClipDisplayItem(const DisplayItemClient& client, Type type)
- : PairedEndDisplayItem(client, type, sizeof(*this))
+ : PairedEndDisplayItem(client, type)
{
ASSERT(isEndClipType(type));
}

Powered by Google App Engine
This is Rietveld 408576698