[Title] Dispatch window resize event after changing font type
[Issues] P130902-00458
[Problem] In the page which has long text string, after changing font type,
the scroll position does not follow the change of scrollview height.
[Solution] Dispatch window resize event after changing font type in order to relocate the scroll position.
Change-Id: Ic4f77badd20b6115ec65c8f6c64858a8e6744517
FcInitReinitialize();
WebCore::fontCache()->invalidate();
- FrameView* frameView = m_mainFrame->coreFrame()->view();
+ Frame* frame = m_mainFrame->coreFrame();
+ if (!frame)
+ return;
+
+ if (frame->document())
+ frame->document()->dispatchWindowEvent(Event::create(eventNames().resizeEvent, false, false));
+
+ FrameView* frameView = frame->view();
if (!frameView)
return;