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

Side by Side Diff: Source/core/accessibility/AccessibilityObject.cpp

Issue 23728003: Return Frame&, not Frame* from RenderView::frame() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fixed PopupMenuTest build 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 551
552 return AXObjectCache::focusedUIElementForPage(page); 552 return AXObjectCache::focusedUIElementForPage(page);
553 } 553 }
554 554
555 Document* AccessibilityObject::document() const 555 Document* AccessibilityObject::document() const
556 { 556 {
557 FrameView* frameView = documentFrameView(); 557 FrameView* frameView = documentFrameView();
558 if (!frameView) 558 if (!frameView)
559 return 0; 559 return 0;
560 560
561 return frameView->frame()->document(); 561 return frameView->frame().document();
562 } 562 }
563 563
564 FrameView* AccessibilityObject::documentFrameView() const 564 FrameView* AccessibilityObject::documentFrameView() const
565 { 565 {
566 const AccessibilityObject* object = this; 566 const AccessibilityObject* object = this;
567 while (object && !object->isAccessibilityRenderObject()) 567 while (object && !object->isAccessibilityRenderObject())
568 object = object->parentObject(); 568 object = object->parentObject();
569 569
570 if (!object) 570 if (!object)
571 return 0; 571 return 0;
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
982 982
983 for (AccessibilityObject* object = parentObject(); object; object = object-> parentObject()) { 983 for (AccessibilityObject* object = parentObject(); object; object = object-> parentObject()) {
984 if (equalIgnoringCase(object->getAttribute(aria_hiddenAttr), "true")) 984 if (equalIgnoringCase(object->getAttribute(aria_hiddenAttr), "true"))
985 return true; 985 return true;
986 } 986 }
987 987
988 return false; 988 return false;
989 } 989 }
990 990
991 } // namespace WebCore 991 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/accessibility/AXObjectCache.cpp ('k') | Source/core/accessibility/AccessibilityRenderObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698