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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/FloatClipDisplayItem.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/FloatClipDisplayItem.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/FloatClipDisplayItem.h b/third_party/WebKit/Source/platform/graphics/paint/FloatClipDisplayItem.h
index b6275a15ba5cd8870092cc4b59bb129a44125e54..116eaf93b8d63828f6d3c7bb845bc1081af01306 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/FloatClipDisplayItem.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/FloatClipDisplayItem.h
@@ -13,10 +13,10 @@ namespace blink {
class RoundedRect;
-class PLATFORM_EXPORT FloatClipDisplayItem final : public PairedBeginDisplayItem {
+class PLATFORM_EXPORT FloatClipDisplayItem final : public PairedBeginDisplayItem<FloatClipDisplayItem> {
public:
FloatClipDisplayItem(const DisplayItemClient& client, Type type, const FloatRect& clipRect)
- : PairedBeginDisplayItem(client, type, sizeof(*this))
+ : PairedBeginDisplayItem(client, type)
, m_clipRect(clipRect)
{
ASSERT(isFloatClipType(type));
@@ -40,10 +40,10 @@ private:
const FloatRect m_clipRect;
};
-class PLATFORM_EXPORT EndFloatClipDisplayItem final : public PairedEndDisplayItem {
+class PLATFORM_EXPORT EndFloatClipDisplayItem final : public PairedEndDisplayItem<EndFloatClipDisplayItem> {
public:
EndFloatClipDisplayItem(const DisplayItemClient& client, Type type)
- : PairedEndDisplayItem(client, type, sizeof(*this))
+ : PairedEndDisplayItem(client, type)
{
ASSERT(isEndFloatClipType(type));
}

Powered by Google App Engine
This is Rietveld 408576698