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

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

Issue 22955006: Chrome::client() should return a ChromeClient reference. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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/dom/Document.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 cea4bcd6a411d34a134533e8b7bcb46488423cf0..ef762976b95a152b3b600ce7e7d21d23485fd85f 100644
--- a/Source/core/accessibility/AXObjectCache.cpp
+++ b/Source/core/accessibility/AXObjectCache.cpp
@@ -943,9 +943,7 @@ void AXObjectCache::postPlatformNotification(AccessibilityObject* obj, AXNotific
if (!obj || !obj->document() || !obj->documentFrameView() || !obj->documentFrameView()->frame() || !obj->documentFrameView()->frame()->page())
return;
- ChromeClient* client = obj->documentFrameView()->frame()->page()->chrome().client();
- if (!client)
- return;
+ ChromeClient& client = obj->documentFrameView()->frame()->page()->chrome().client();
switch (notification) {
case AXActiveDescendantChanged:
@@ -978,7 +976,7 @@ void AXObjectCache::postPlatformNotification(AccessibilityObject* obj, AXNotific
break;
}
- client->postAccessibilityNotification(obj, notification);
+ client.postAccessibilityNotification(obj, notification);
}
void AXObjectCache::nodeTextChangePlatformNotification(AccessibilityObject*, AXTextChange, unsigned, const String&)
« no previous file with comments | « no previous file | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698