Index: Source/core/frame/FrameView.cpp |
diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp |
index c7fd8ef5c9d620e4d9480715823645314e27beb3..63807ed111b992c62739609d8fdc6d4691e5960e 100644 |
--- a/Source/core/frame/FrameView.cpp |
+++ b/Source/core/frame/FrameView.cpp |
@@ -1297,15 +1297,15 @@ void FrameView::viewportConstrainedVisibleContentSizeChanged(bool widthChanged, |
for (const auto& viewportConstrainedObject : *m_viewportConstrainedObjects) { |
LayoutObject* renderer = viewportConstrainedObject; |
- LayoutStyle* style = renderer->style(); |
+ const LayoutStyle& style = renderer->styleRef(); |
if (widthChanged) { |
- if (style->width().isFixed() && (style->left().isAuto() || style->right().isAuto())) |
+ if (style.width().isFixed() && (style.left().isAuto() || style.right().isAuto())) |
renderer->setNeedsPositionedMovementLayout(); |
else |
renderer->setNeedsLayoutAndFullPaintInvalidation(); |
} |
if (heightChanged) { |
- if (style->height().isFixed() && (style->top().isAuto() || style->bottom().isAuto())) |
+ if (style.height().isFixed() && (style.top().isAuto() || style.bottom().isAuto())) |
renderer->setNeedsPositionedMovementLayout(); |
else |
renderer->setNeedsLayoutAndFullPaintInvalidation(); |