void DumpRenderTreeSupportEfl::clearUserStyleSheets(const Evas_Object* ewkView) { WebCore::Page* page = EWKPrivate::corePage(ewkView); if (!page) return; page->group().removeUserStyleSheetsFromWorld(WebCore::mainThreadNormalWorld()); }
void DumpRenderTreeSupportEfl::addUserStyleSheet(const Evas_Object* ewkView, const String& sourceCode, bool allFrames) { WebCore::Page* page = EWKPrivate::corePage(ewkView); if (!page) return; page->group().addUserStyleSheetToWorld(WebCore::mainThreadNormalWorld(), sourceCode, WebCore::KURL(), nullptr, nullptr, allFrames ? WebCore::InjectInAllFrames : WebCore::InjectInTopFrameOnly); }