void DumpRenderTreeSupportEfl::setSelectTrailingWhitespaceEnabled(Evas_Object* ewkView, bool enabled) { DRT_SUPPRT_PAGE_GET_OR_RETURN(ewkView, page); WebCore::EditorClientEfl* editorClient = static_cast<WebCore::EditorClientEfl*>(page->editorClient()); if (!editorClient) return; editorClient->setSelectTrailingWhitespaceEnabled(enabled); }
void DumpRenderTreeSupportEfl::setSelectTrailingWhitespaceEnabled(Evas_Object* ewkView, bool enabled) { WebCore::Page* page = EWKPrivate::corePage(ewkView); if (!page) return; WebCore::EditorClientEfl* editorClient = static_cast<WebCore::EditorClientEfl*>(page->editorClient()); if (!editorClient) return; editorClient->setSelectTrailingWhitespaceEnabled(enabled); }