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

Unified Diff: Source/core/accessibility/AXSpinButton.cpp

Issue 370073002: Use type cast macro for AnimatableLengthPoint|3D instead of manual toFoo() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 years, 5 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 | « no previous file | Source/core/accessibility/AXTable.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/accessibility/AXSpinButton.cpp
diff --git a/Source/core/accessibility/AXSpinButton.cpp b/Source/core/accessibility/AXSpinButton.cpp
index e73482ed419f10d35c4d856b3bf27543a29c605d..475eefbecd7823c260db879616527c82258336fa 100644
--- a/Source/core/accessibility/AXSpinButton.cpp
+++ b/Source/core/accessibility/AXSpinButton.cpp
@@ -62,12 +62,12 @@ void AXSpinButton::addChildren()
{
m_haveChildren = true;
- AXSpinButtonPart* incrementor = static_cast<AXSpinButtonPart*>(axObjectCache()->getOrCreate(SpinButtonPartRole));
+ AXSpinButtonPart* incrementor = toAXSpinButtonPart(axObjectCache()->getOrCreate(SpinButtonPartRole));
incrementor->setIsIncrementor(true);
incrementor->setParent(this);
m_children.append(incrementor);
- AXSpinButtonPart* decrementor = static_cast<AXSpinButtonPart*>(axObjectCache()->getOrCreate(SpinButtonPartRole));
+ AXSpinButtonPart* decrementor = toAXSpinButtonPart(axObjectCache()->getOrCreate(SpinButtonPartRole));
decrementor->setIsIncrementor(false);
decrementor->setParent(this);
m_children.append(decrementor);
« no previous file with comments | « no previous file | Source/core/accessibility/AXTable.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698