Commit 1c7d4199 authored by jhoneycutt@apple.com's avatar jhoneycutt@apple.com
Browse files

2008-04-17 Jon Honeycutt <jhoneycutt@apple.com>

        Reviewed by aliu.

        * page/AccessibilityObject.cpp:
        (WebCore::AccessibilityObject::layoutCount): Check isRenderView() before
        casting to RenderView.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32041 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 2fafb6e2
2008-04-17 Jon Honeycutt <jhoneycutt@apple.com>
Reviewed by aliu.
* page/AccessibilityObject.cpp:
(WebCore::AccessibilityObject::layoutCount): Check isRenderView() before
casting to RenderView.
2008-04-17 Antti Koivisto <antti@apple.com> 2008-04-17 Antti Koivisto <antti@apple.com>
   
Reviewed by Oliver. Reviewed by Oliver.
...@@ -79,7 +87,6 @@ ...@@ -79,7 +87,6 @@
Reviewed by Jon Honeycutt. Reviewed by Jon Honeycutt.
   
Added some asserts to catch undesirable usage of setWrapper and addChildren. Added some asserts to catch undesirable usage of setWrapper and addChildren.
* page/AccessibilityObject.cpp: * page/AccessibilityObject.cpp:
(WebCore::AccessibilityObject::addChildren): (WebCore::AccessibilityObject::addChildren):
* page/AccessibilityObject.h: * page/AccessibilityObject.h:
...@@ -679,6 +679,8 @@ bool AccessibilityObject::isLoaded() const ...@@ -679,6 +679,8 @@ bool AccessibilityObject::isLoaded() const
int AccessibilityObject::layoutCount() const int AccessibilityObject::layoutCount() const
{ {
if (!m_renderer->isRenderView())
return 0;
return static_cast<RenderView*>(m_renderer)->frameView()->layoutCount(); return static_cast<RenderView*>(m_renderer)->frameView()->layoutCount();
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment