Chromium Code Reviews| Index: third_party/WebKit/Source/core/layout/TracedLayoutObject.cpp |
| diff --git a/third_party/WebKit/Source/core/layout/TracedLayoutObject.cpp b/third_party/WebKit/Source/core/layout/TracedLayoutObject.cpp |
| index ee60df3dcdedfef88bb996b50d8a887137531a8c..288bf003d59b5dc40765ae88e996969874e234bd 100644 |
| --- a/third_party/WebKit/Source/core/layout/TracedLayoutObject.cpp |
| +++ b/third_party/WebKit/Source/core/layout/TracedLayoutObject.cpp |
| @@ -27,7 +27,9 @@ String TracedLayoutObject::asTraceFormat() const |
| } |
| TracedLayoutObject::TracedLayoutObject(const LayoutObject& object, bool traceGeometry) |
| - : m_address((unsigned long) &object) |
| + // Cast through uintptr_t and then unsigned int to make the truncation |
|
Will Harris
2015/11/10 18:05:14
looks like m_address should be a different type he
brucedawson
2015/11/10 18:43:26
Yes, ideally, but the setNumber function that they
Will Harris
2015/11/10 19:45:46
this code is crazy. I agree with not complicating
brucedawson
2015/11/10 19:54:33
I changed it to uintptr_t so it's at least portabl
|
| + // explicit. |
| + : m_address(static_cast<unsigned long>(reinterpret_cast<uintptr_t>(&object))) |
| , m_isAnonymous(object.isAnonymous()) |
| , m_isPositioned(object.isOutOfFlowPositioned()) |
| , m_isRelPositioned(object.isRelPositioned()) |