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

Unified Diff: Source/core/frame/FrameView.cpp

Issue 889563002: Make RenderObject::style() return a const object (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated change after Doug's review. Created 5 years, 10 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
« no previous file with comments | « Source/core/editing/iterators/TextIterator.cpp ('k') | Source/core/html/HTMLFormControlElementTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « Source/core/editing/iterators/TextIterator.cpp ('k') | Source/core/html/HTMLFormControlElementTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698