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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/ScrollDisplayItem.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/ScrollDisplayItem.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/ScrollDisplayItem.h b/third_party/WebKit/Source/platform/graphics/paint/ScrollDisplayItem.h
index f8b0e541278ad65c1ebafbd91d1efcac10a052e4..5c1b2d0045b6c5ba7de82fda9a32aa3b4baebb93 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/ScrollDisplayItem.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/ScrollDisplayItem.h
@@ -11,10 +11,10 @@
namespace blink {
-class PLATFORM_EXPORT BeginScrollDisplayItem final : public PairedBeginDisplayItem {
+class PLATFORM_EXPORT BeginScrollDisplayItem final : public PairedBeginDisplayItem<BeginScrollDisplayItem> {
public:
BeginScrollDisplayItem(const DisplayItemClient& client, Type type, const IntSize& currentOffset)
- : PairedBeginDisplayItem(client, type, sizeof(*this))
+ : PairedBeginDisplayItem(client, type)
, m_currentOffset(currentOffset)
{
ASSERT(isScrollType(type));
@@ -40,10 +40,10 @@ private:
const IntSize m_currentOffset;
};
-class PLATFORM_EXPORT EndScrollDisplayItem final : public PairedEndDisplayItem {
+class PLATFORM_EXPORT EndScrollDisplayItem final : public PairedEndDisplayItem<EndScrollDisplayItem> {
public:
EndScrollDisplayItem(const DisplayItemClient& client, Type type)
- : PairedEndDisplayItem(client, type, sizeof(*this))
+ : PairedEndDisplayItem(client, type)
{
ASSERT(isEndScrollType(type));
}

Powered by Google App Engine
This is Rietveld 408576698