Changeset 192762 in webkit
- Timestamp:
- Nov 24, 2015, 12:37:31 AM (10 years ago)
- Location:
- trunk/Source/WebKit/win
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/win/ChangeLog
r192725 r192762 1 2015-11-24 Per Arne Vollan <peavo@outlook.com> 2 3 [Win] Implement methods to get and set inner html. 4 https://bugs.webkit.org/show_bug.cgi?id=151569 5 6 Reviewed by Alex Christensen. 7 8 * DOMHTMLClasses.cpp: 9 (DOMHTMLElement::innerHTML): 10 (DOMHTMLElement::setInnerHTML): 11 (DOMHTMLElement::innerText): 12 1 13 == Rolled over to ChangeLog-2015-11-21 == -
trunk/Source/WebKit/win/DOMHTMLClasses.cpp
r188662 r192762 503 503 HRESULT DOMHTMLElement::innerHTML(__deref_opt_out BSTR* result) 504 504 { 505 ASSERT_NOT_REACHED();506 if (!result)507 return E_POINTER;508 *result = nullptr;509 return E_NOTIMPL;505 if (!result) 506 return E_POINTER; 507 String innerHtmlString = downcast<HTMLElement>(m_element)->innerHTML(); 508 *result = BString(innerHtmlString).release(); 509 return S_OK; 510 510 } 511 511 512 HRESULT DOMHTMLElement::setInnerHTML(_In_ BSTR /*html*/) 513 { 514 ASSERT_NOT_REACHED(); 515 return E_NOTIMPL; 512 HRESULT DOMHTMLElement::setInnerHTML(_In_ BSTR html) 513 { 514 ASSERT(is<HTMLElement>(m_element)); 515 HTMLElement* htmlElement = downcast<HTMLElement>(m_element); 516 String htmlString(html, SysStringLen(html)); 517 ExceptionCode ec = 0; 518 htmlElement->setInnerHTML(htmlString, ec); 519 return S_OK; 516 520 } 517 521 … … 529 533 { 530 534 ASSERT(is<HTMLElement>(m_element)); 531 HTMLElement* htmlEle = downcast<HTMLElement>(m_element);535 HTMLElement* htmlElement = downcast<HTMLElement>(m_element); 532 536 WTF::String textString(text, SysStringLen(text)); 533 537 WebCore::ExceptionCode ec = 0; 534 htmlEle ->setInnerText(textString, ec);538 htmlElement->setInnerText(textString, ec); 535 539 return S_OK; 536 540 }
Note:
See TracChangeset
for help on using the changeset viewer.