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

Unified Diff: android_webview/renderer/aw_render_view_ext.cc

Issue 1140253006: Remove a few more uses of WebElement::innerText in Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/renderer/aw_render_view_ext.cc
diff --git a/android_webview/renderer/aw_render_view_ext.cc b/android_webview/renderer/aw_render_view_ext.cc
index c2877c59f0f2ac81af1215515e3a4cfae5817c25..7aa901d5f65465fca06a6ab306bac728cf0ffdb0 100644
--- a/android_webview/renderer/aw_render_view_ext.cc
+++ b/android_webview/renderer/aw_render_view_ext.cc
@@ -247,12 +247,12 @@ void AwRenderViewExt::FocusedNodeChanged(const blink::WebNode& node) {
if (node.isNull() || !node.isElementNode() || !render_view())
return;
- // Note: element is not const due to innerText() is not const.
+ // Note: element is not const due to textContent() is not const.
blink::WebElement element = node.toConst<blink::WebElement>();
AwHitTestData data;
data.href = GetHref(element);
- data.anchor_text = element.innerText();
+ data.anchor_text = element.textContent();
GURL absolute_link_url;
if (node.isLink())
@@ -280,7 +280,7 @@ void AwRenderViewExt::OnDoHitTest(const gfx::PointF& touch_center,
GURL absolute_image_url = result.absoluteImageURL();
if (!result.urlElement().isNull()) {
- data.anchor_text = result.urlElement().innerText();
+ data.anchor_text = result.urlElement().textContent();
data.href = GetHref(result.urlElement());
// If we hit an image that failed to load, Blink won't give us its URL.
// Fall back to walking the DOM in this case.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698