[EFL] Move codes related to theme setting from Widget to RenderTheme
authorryuan.choi@samsung.com <ryuan.choi@samsung.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 17 Jul 2012 07:52:29 +0000 (07:52 +0000)
committerryuan.choi@samsung.com <ryuan.choi@samsung.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 17 Jul 2012 07:52:29 +0000 (07:52 +0000)
commit7d932edd4dfc7b5b38ba83c87a27ca4163169fe4
tree3a8d8120b8c5e3911f7ef69f990074de53c4310e
parent5cdc612661e87d032a2ff2d4c625565c279aafbf
[EFL] Move codes related to theme setting from Widget to RenderTheme
https://bugs.webkit.org/show_bug.cgi?id=89842

Reviewed by Kenneth Rohde Christiansen.

Source/WebCore:

WebKit/Efl uses custom theme for Scrollbar, RenderTheme and Cursor.
However, theme information itself is in WidgetEfl so it is accessed by
calling recursive function.
Because theme is managed by each page, this patch moves codes related to
theme from WidgetEfl to RenderThemeEfl which is contained by page.

* platform/Widget.h: Removed functions related to theme.
* platform/efl/RenderThemeEfl.cpp:
(WebCore::RenderThemeEfl::setThemePath): Added to set theme path.
(WebCore::RenderThemeEfl::createEdje): Updated method to use RenderThemeEfl's theme.
(WebCore::RenderThemeEfl::RenderThemeEfl):
* platform/efl/RenderThemeEfl.h:
(WebCore::RenderThemeEfl::themePath): Added to get theme path
* platform/efl/ScrollbarEfl.cpp: Updated method to use RenderThemeEfl's theme.
(ScrollbarEfl::setParent):
* platform/efl/WidgetEfl.cpp: Removed codes related theme.
(WidgetPrivate):

Source/WebKit:

* CMakeLists.txt: Added html/shadow to WebKit_INCLUDE_DIRECTORIES.

Source/WebKit/efl:

* ewk/ewk_frame.cpp:
(ewk_frame_view_create_for_view): Removed codes which set theme in FrameView.
* ewk/ewk_view.cpp:
(ewk_view_theme_set): Called RenderThemeEfl::setThemePath instead of setting theme in FrameView.

Source/WebKit2:

* CMakeLists.txt: Added html/shadow to WebKit_INCLUDE_DIRECTORIES.
* WebProcess/WebPage/efl/WebPageEfl.cpp:
(WebKit::WebPage::setThemePath): Called RenderThemeEfl::setThemePath instead of setting theme in FrameView.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@122817 268f45cc-cd09-0410-ab3c-d52691b4dbfc
14 files changed:
Source/WebCore/ChangeLog
Source/WebCore/platform/Widget.h
Source/WebCore/platform/efl/RenderThemeEfl.cpp
Source/WebCore/platform/efl/RenderThemeEfl.h
Source/WebCore/platform/efl/ScrollbarEfl.cpp
Source/WebCore/platform/efl/WidgetEfl.cpp
Source/WebKit/CMakeLists.txt
Source/WebKit/ChangeLog
Source/WebKit/efl/ChangeLog
Source/WebKit/efl/ewk/ewk_frame.cpp
Source/WebKit/efl/ewk/ewk_view.cpp
Source/WebKit2/CMakeLists.txt
Source/WebKit2/ChangeLog
Source/WebKit2/WebProcess/WebPage/efl/WebPageEfl.cpp