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

Unified Diff: Source/core/html/shadow/SpinButtonElement.cpp

Issue 926193003: Move rendering/RenderBox to layout/LayoutBox. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/html/shadow/SliderThumbElement.cpp ('k') | Source/core/inspector/InspectorOverlay.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/shadow/SpinButtonElement.cpp
diff --git a/Source/core/html/shadow/SpinButtonElement.cpp b/Source/core/html/shadow/SpinButtonElement.cpp
index a7715529a24df5ae70dd4994f0bcd0a6cf0f87b1..d2f642730338da2dd4109bd9c75f67f8eddcbfea 100644
--- a/Source/core/html/shadow/SpinButtonElement.cpp
+++ b/Source/core/html/shadow/SpinButtonElement.cpp
@@ -32,10 +32,10 @@
#include "core/events/WheelEvent.h"
#include "core/frame/LocalFrame.h"
#include "core/html/shadow/ShadowElementNames.h"
+#include "core/layout/LayoutBox.h"
#include "core/page/Chrome.h"
#include "core/page/EventHandler.h"
#include "core/page/Page.h"
-#include "core/rendering/RenderBox.h"
#include "platform/scroll/ScrollbarTheme.h"
namespace blink {
@@ -74,7 +74,7 @@ void SpinButtonElement::defaultEventHandler(Event* event)
return;
}
- RenderBox* box = renderBox();
+ LayoutBox* box = layoutBox();
if (!box) {
if (!event->defaultHandled())
HTMLDivElement::defaultEventHandler(event);
@@ -144,7 +144,7 @@ void SpinButtonElement::willOpenPopup()
void SpinButtonElement::forwardEvent(Event* event)
{
- if (!renderBox())
+ if (!layoutBox())
return;
if (!event->hasInterface(EventNames::WheelEvent))
@@ -162,7 +162,7 @@ void SpinButtonElement::forwardEvent(Event* event)
bool SpinButtonElement::willRespondToMouseMoveEvents()
{
- if (renderBox() && shouldRespondToMouseEvents())
+ if (layoutBox() && shouldRespondToMouseEvents())
return true;
return HTMLDivElement::willRespondToMouseMoveEvents();
@@ -170,7 +170,7 @@ bool SpinButtonElement::willRespondToMouseMoveEvents()
bool SpinButtonElement::willRespondToMouseClickEvents()
{
- if (renderBox() && shouldRespondToMouseEvents())
+ if (layoutBox() && shouldRespondToMouseEvents())
return true;
return HTMLDivElement::willRespondToMouseClickEvents();
« no previous file with comments | « Source/core/html/shadow/SliderThumbElement.cpp ('k') | Source/core/inspector/InspectorOverlay.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698