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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/Transform3DDisplayItem.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/Transform3DDisplayItem.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/Transform3DDisplayItem.h b/third_party/WebKit/Source/platform/graphics/paint/Transform3DDisplayItem.h
index b25dcd59e8cb455d3fd6eb92dbe91689a6deba0c..88a9aad01681732b92e4fcef44b3f86bf25ea4f9 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/Transform3DDisplayItem.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/Transform3DDisplayItem.h
@@ -12,14 +12,14 @@
namespace blink {
-class PLATFORM_EXPORT BeginTransform3DDisplayItem final : public PairedBeginDisplayItem {
+class PLATFORM_EXPORT BeginTransform3DDisplayItem final : public PairedBeginDisplayItem<BeginTransform3DDisplayItem> {
public:
BeginTransform3DDisplayItem(
const DisplayItemClient& client,
Type type,
const TransformationMatrix& transform,
const FloatPoint3D& transformOrigin)
- : PairedBeginDisplayItem(client, type, sizeof(*this))
+ : PairedBeginDisplayItem(client, type)
, m_transform(transform)
, m_transformOrigin(transformOrigin)
{
@@ -49,10 +49,10 @@ private:
const FloatPoint3D m_transformOrigin;
};
-class PLATFORM_EXPORT EndTransform3DDisplayItem final : public PairedEndDisplayItem {
+class PLATFORM_EXPORT EndTransform3DDisplayItem final : public PairedEndDisplayItem<EndTransform3DDisplayItem> {
public:
EndTransform3DDisplayItem(const DisplayItemClient& client, Type type)
- : PairedEndDisplayItem(client, type, sizeof(*this))
+ : PairedEndDisplayItem(client, type)
{
ASSERT(DisplayItem::isEndTransform3DType(type));
}

Powered by Google App Engine
This is Rietveld 408576698