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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/TransformDisplayItem.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/TransformDisplayItem.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/TransformDisplayItem.h b/third_party/WebKit/Source/platform/graphics/paint/TransformDisplayItem.h
index 185245856b9fca5c56ce3f6662cbb1b4a7fa91cf..c0b7b0c31c99836b086c456376ed2481b473b2ec 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/TransformDisplayItem.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/TransformDisplayItem.h
@@ -10,10 +10,10 @@
namespace blink {
-class PLATFORM_EXPORT BeginTransformDisplayItem final : public PairedBeginDisplayItem {
+class PLATFORM_EXPORT BeginTransformDisplayItem final : public PairedBeginDisplayItem<BeginTransformDisplayItem> {
public:
BeginTransformDisplayItem(const DisplayItemClient& client, const AffineTransform& transform)
- : PairedBeginDisplayItem(client, BeginTransform, sizeof(*this))
+ : PairedBeginDisplayItem(client, BeginTransform)
, m_transform(transform) { }
void replay(GraphicsContext&) const override;
@@ -36,10 +36,10 @@ private:
const AffineTransform m_transform;
};
-class PLATFORM_EXPORT EndTransformDisplayItem final : public PairedEndDisplayItem {
+class PLATFORM_EXPORT EndTransformDisplayItem final : public PairedEndDisplayItem<EndTransformDisplayItem> {
public:
EndTransformDisplayItem(const DisplayItemClient& client)
- : PairedEndDisplayItem(client, EndTransform, sizeof(*this)) { }
+ : PairedEndDisplayItem(client, EndTransform) { }
void replay(GraphicsContext&) const override;
void appendToWebDisplayItemList(const IntRect&, WebDisplayItemList*) const override;

Powered by Google App Engine
This is Rietveld 408576698