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

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

Issue 24253004: Cleanup: Start using toFoo methods as part of newly adopted coding guideline. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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/AccessibilityARIAGridCell.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/accessibility/AXObjectCache.cpp
diff --git a/Source/core/accessibility/AXObjectCache.cpp b/Source/core/accessibility/AXObjectCache.cpp
index ad15a32d1ed3c9c5463885d3c55615705dd21c8d..6b1048cb72f007823281cd74d0f0fb0356bacdbb 100644
--- a/Source/core/accessibility/AXObjectCache.cpp
+++ b/Source/core/accessibility/AXObjectCache.cpp
@@ -317,7 +317,7 @@ AccessibilityObject* AXObjectCache::getOrCreate(Widget* widget)
RefPtr<AccessibilityObject> newObj = 0;
if (widget->isFrameView())
- newObj = AccessibilityScrollView::create(static_cast<ScrollView*>(widget));
+ newObj = AccessibilityScrollView::create(toScrollView(widget));
else if (widget->isScrollbar())
newObj = AccessibilityScrollbar::create(static_cast<Scrollbar*>(widget));
@@ -635,7 +635,7 @@ void AXObjectCache::notificationPostTimerFired(Timer<AXObjectCache>*)
// Make sure none of the render views are in the process of being layed out.
// Notifications should only be sent after the renderer has finished
if (obj->isAccessibilityRenderObject()) {
- AccessibilityRenderObject* renderObj = static_cast<AccessibilityRenderObject*>(obj);
+ AccessibilityRenderObject* renderObj = toAccessibilityRenderObject(obj);
RenderObject* renderer = renderObj->renderer();
if (renderer && renderer->view())
ASSERT(!renderer->view()->layoutState());
« no previous file with comments | « no previous file | Source/core/accessibility/AccessibilityARIAGridCell.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698