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

Unified Diff: Source/core/editing/EditorCommand.cpp

Issue 889563002: Make RenderObject::style() return a const object (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Blind fix for Mac. Created 5 years, 11 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: Source/core/editing/EditorCommand.cpp
diff --git a/Source/core/editing/EditorCommand.cpp b/Source/core/editing/EditorCommand.cpp
index a37f4dbc50b988d7297b59bd4dfb42a9e46f7f08..f9fb66ab35dd672f71627de3b5926bf1349e403a 100644
--- a/Source/core/editing/EditorCommand.cpp
+++ b/Source/core/editing/EditorCommand.cpp
@@ -271,7 +271,7 @@ static unsigned verticalScrollDistance(LocalFrame& frame)
if (!renderer || !renderer->isBox())
return 0;
RenderBox& renderBox = toRenderBox(*renderer);
- RenderStyle* style = renderBox.style();
+ const RenderStyle* style = renderBox.style();
if (!style)
return 0;
if (!(style->overflowY() == OSCROLL || style->overflowY() == OAUTO || focusedElement->hasEditableStyle()))

Powered by Google App Engine
This is Rietveld 408576698