Index: Source/web/WebAXObject.cpp |
diff --git a/Source/web/WebAXObject.cpp b/Source/web/WebAXObject.cpp |
index 5dca5777bda07647665f815eb46fb2264c72414c..525740a4a1eef3c99a52559187da0f333af4c118 100644 |
--- a/Source/web/WebAXObject.cpp |
+++ b/Source/web/WebAXObject.cpp |
@@ -40,7 +40,7 @@ |
#include "core/frame/FrameView.h" |
#include "core/frame/PinchViewport.h" |
#include "core/layout/LayoutView.h" |
-#include "core/layout/style/LayoutStyle.h" |
+#include "core/layout/style/ComputedStyle.h" |
#include "core/page/EventHandler.h" |
#include "core/page/Page.h" |
#include "modules/accessibility/AXObject.h" |
@@ -981,7 +981,7 @@ bool WebAXObject::hasComputedStyle() const |
if (!node) |
return false; |
- return node->computedStyle(); |
+ return node->ensureComputedStyle(); |
} |
WebString WebAXObject::computedStyleDisplay() const |
@@ -997,11 +997,11 @@ WebString WebAXObject::computedStyleDisplay() const |
if (!node) |
return WebString(); |
- const LayoutStyle* layoutStyle = node->computedStyle(); |
- if (!layoutStyle) |
+ const ComputedStyle* computedStyle = node->ensureComputedStyle(); |
+ if (!computedStyle) |
return WebString(); |
- return WebString(CSSPrimitiveValue::create(layoutStyle->display())->getStringValue()); |
+ return WebString(CSSPrimitiveValue::create(computedStyle->display())->getStringValue()); |
} |
bool WebAXObject::accessibilityIsIgnored() const |