*/
#include "config.h"
-#include "WebAXObject.h"
+#include "public/web/WebAXObject.h"
#include "HTMLNames.h"
-#include "WebDocument.h"
-#include "WebNode.h"
#include "core/accessibility/AXObject.h"
#include "core/accessibility/AXObjectCache.h"
#include "core/accessibility/AXTable.h"
#include "core/css/CSSPrimitiveValueMappings.h"
#include "core/dom/Document.h"
#include "core/dom/Node.h"
-#include "core/page/EventHandler.h"
#include "core/frame/FrameView.h"
+#include "core/page/EventHandler.h"
+#include "core/rendering/RenderView.h"
#include "core/rendering/style/RenderStyle.h"
#include "platform/PlatformKeyboardEvent.h"
#include "public/platform/WebPoint.h"
#include "public/platform/WebRect.h"
#include "public/platform/WebString.h"
#include "public/platform/WebURL.h"
+#include "public/web/WebDocument.h"
+#include "public/web/WebNode.h"
#include "wtf/text/StringBuilder.h"
using namespace WebCore;
AXObjectCache::setInlineTextBoxAccessibility(true);
}
-void WebAXObject::startCachingComputedObjectAttributesUntilTreeMutates()
-{
- m_private->axObjectCache()->startCachingComputedObjectAttributesUntilTreeMutates();
-}
-
-void WebAXObject::stopCachingComputedObjectAttributes()
-{
- m_private->axObjectCache()->stopCachingComputedObjectAttributes();
-}
-
bool WebAXObject::isDetached() const
{
if (m_private.isNull())
if (isDetached())
return WebRect();
+ // It's not safe to call boundingBoxRect if a layout is pending.
+ // Clients should call updateBackingStoreAndCheckValidity first.
+ ASSERT(m_private->document() && m_private->document()->lifecycle().state() >= DocumentLifecycle::LayoutClean);
+
return pixelSnappedIntRect(m_private->elementRect());
}