| Index: Source/core/rendering/RenderObject.h
|
| diff --git a/Source/core/rendering/RenderObject.h b/Source/core/rendering/RenderObject.h
|
| index 8e2cac7534c614242f00576c406a905307e5e621..708a0ece5931ce08fa4bf52fb76a532f03a02e69 100644
|
| --- a/Source/core/rendering/RenderObject.h
|
| +++ b/Source/core/rendering/RenderObject.h
|
| @@ -1102,6 +1102,8 @@ private:
|
| #endif
|
| const char* invalidationReasonToString(InvalidationReason) const;
|
|
|
| + static bool isAllowedToModifyRenderTreeStructure(Document&);
|
| +
|
| RefPtr<RenderStyle> m_style;
|
|
|
| Node* m_node;
|
| @@ -1275,6 +1277,18 @@ private:
|
| LayoutPoint m_previousPositionFromRepaintContainer;
|
| };
|
|
|
| +// FIXME: remove this once the render object lifecycle ASSERTS are no longer hit.
|
| +class DeprecatedDisableModifyRenderTreeStructureAsserts {
|
| + WTF_MAKE_NONCOPYABLE(DeprecatedDisableModifyRenderTreeStructureAsserts);
|
| +public:
|
| + DeprecatedDisableModifyRenderTreeStructureAsserts();
|
| +
|
| + static bool canModifyRenderTreeStateInAnyState();
|
| +
|
| +private:
|
| + TemporaryChange<bool> m_disabler;
|
| +};
|
| +
|
| // Allow equality comparisons of RenderObject's by reference or pointer, interchangeably.
|
| inline bool operator==(const RenderObject& a, const RenderObject& b) { return &a == &b; }
|
| inline bool operator==(const RenderObject& a, const RenderObject* b) { return &a == b; }
|
|
|