mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Restore previous CefFrame::GetText behavior (issue #1743)
This commit is contained in:
@ -26,6 +26,7 @@ MSVC_PUSH_WARNING_LEVEL(0);
|
||||
#include "third_party/WebKit/public/web/WebViewClient.h"
|
||||
|
||||
#include "third_party/WebKit/Source/core/css/parser/CSSParser.h"
|
||||
#include "third_party/WebKit/Source/core/dom/Element.h"
|
||||
#include "third_party/WebKit/Source/core/dom/Node.h"
|
||||
#include "third_party/WebKit/Source/core/editing/serializers/Serialization.h"
|
||||
#include "third_party/WebKit/Source/web/WebLocalFrameImpl.h"
|
||||
@ -77,7 +78,8 @@ std::string DumpDocumentText(blink::WebFrame* frame) {
|
||||
if (document_element.isNull())
|
||||
return std::string();
|
||||
|
||||
return document_element.textContent().utf8();
|
||||
blink::Element* web_element = document_element.unwrap<blink::Element>();
|
||||
return blink::WebString(web_element->innerText()).utf8();
|
||||
}
|
||||
|
||||
cef_dom_node_type_t GetNodeType(const blink::WebNode& node) {
|
||||
|
Reference in New Issue
Block a user