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

Unified Diff: Source/web/WebAXObject.cpp

Issue 1033943002: Rename LayoutStyle to papayawhip (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ensureComputedStyle Created 5 years, 9 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 | « Source/web/PopupMenuTest.cpp ('k') | Source/web/WebFormControlElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/web/PopupMenuTest.cpp ('k') | Source/web/WebFormControlElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698