| 1716 | } |
| 1717 | |
| 1718 | bool Element::IsDocumentFocused(IHTMLDocument2* focused_doc) { |
| 1719 | CComPtr<IDispatch> parent_doc_dispatch; |
| 1720 | this->element_->get_document(&parent_doc_dispatch); |
| 1721 | |
| 1722 | if (parent_doc_dispatch.IsEqualObject(focused_doc)) { |
| 1723 | return true; |
| 1724 | } else { |
| 1725 | LOG(WARN) << "Found managed element's document is not currently focused"; |
| 1726 | } |
| 1727 | return false; |
| 1728 | } |
| 1729 | |
| 1730 | bool Element::HasFirstChildTextNodeOfMultipleChildren() { |
| 1731 | CComPtr<IHTMLDOMNode> element_node; |
no test coverage detected