[CMAKE] Remove duplicated #ifdef guard in CMakeLists.txt
https://bugs.webkit.org/show_bug.cgi?id=91575

Reviewed by Dirk Pranke.

CMake files have used ENABLE_XXX macro. However, almost source and idl files are already protected by #ifdef.
So, we don't need to guard them in CMake files again.

In SVG idl files case, blackberry port doesn't support it yet. So, SVG idl files are handled by WebCore_SVG_IDL_FILES macro.

No new tests. This patch isn't for functionality.

* CMakeLists.txt:
* PlatformBlackBerry.cmake: Change SVG_IDL_FILES with WebCore_SVG_IDL_FILES.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123068 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[CMake][EFL] Should try to find the same libsoup version pulled by jhbuild
https://bugs.webkit.org/show_bug.cgi?id=91626

Patch by Christophe Dumez <christophe.dumez@intel.com> on 2012-07-18
Reviewed by Kenneth Rohde Christiansen.

.:

Bump required version of libsoup in CMake to 2.39.3. This is the first
tarball version to contain the API we need (soup_cookie_jar_get_cookies()
and soup_cookie_jar_set_cookie_with_first_party()).

* Source/cmake/OptionsEfl.cmake:

Tools:

Update jhbuild to pull libsoup 2.39.3 tarball from Gnome FTP instead
of fetching a tag from Gnome GIT. We need to do this to map the version
of libsoup that is required by our CMake config.

* efl/jhbuild.modules:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123069 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Shadow DOM drop event tests are very flaky.
https://bugs.webkit.org/show_bug.cgi?id=87364

Patch by Takashi Sakamoto <tasak@google.com> on 2012-07-18
Reviewed by Hajime Morita.

Modified these tests to run test functions in onload. Probably
executing event tests while parsing html document causes flakyness.

* fast/dom/shadow/drop-event-for-input-in-shadow.html:
* fast/dom/shadow/drop-event-in-shadow.html:
* platform/chromium/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123070 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Element wants to have userAgentShadowRoot()
https://bugs.webkit.org/show_bug.cgi?id=91564

Reviewed by Eric Carlson.

We introduce Element::userAgentShadowRoot() to return a UserAgentShadowRoot.
It returns the oldest shadow root if any, and checks the type of ShadowRoot in debug build.

Previously, we have used elementShadow()->oldestShadowRoot() to get UserAgentShadowRoot.
The class implementor will know the oldest shadow root is UserAgentShadowRoot, but it is not
clear for the other people. This method will make the code intention clearer.

We will introduce userAgentShadowRoot to the other elements (e.g. HTMLInputElement) after this patch.

No new tests, simple refactoring.

* dom/Element.cpp:
(WebCore::Element::userAgentShadowRoot):
(WebCore):
* dom/Element.h:
(Element):
* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::createShadowSubtree):
(WebCore::HTMLMediaElement::willAddAuthorShadowRoot):
(WebCore::HTMLMediaElement::mediaControls):
(WebCore::HTMLMediaElement::hasMediaControls):
(WebCore::HTMLMediaElement::createMediaControls):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123071 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Implement painting slider tick marks
https://bugs.webkit.org/show_bug.cgi?id=87844

Reviewed by Kent Tamura.

Source/WebCore:

This implements painting slider tick marks for <datalist> support for input type=range.
This does not support automatic update when list target changes, and it will be fixed
in a follow up patch (Bug 89544).

Tests: fast/forms/datalist/input-appearance-range-with-datalist-rtl.html
       fast/forms/datalist/input-appearance-range-with-datalist-zoomed.html
       fast/forms/datalist/input-appearance-range-with-datalist.html

* html/HTMLInputElement.cpp:
(WebCore::HTMLInputElement::sliderThumbElement):
(WebCore):
* html/HTMLInputElement.h:
(HTMLInputElement):
* html/InputType.h:
(WebCore::InputType::sliderThumbElement):
* html/RangeInputType.cpp:
(WebCore::RangeInputType::typeMismatchFor): We need HTMLInputElement::isValidValue("foo") to return false.
(WebCore):
(WebCore::RangeInputType::sliderThumbElement):
* html/RangeInputType.h:
(RangeInputType):
* html/shadow/SliderThumbElement.cpp:
(WebCore::RenderSliderContainer::layout): Slider height needs to be increased for the tick marks.
* platform/efl/RenderThemeEfl.cpp:
(WebCore):
(WebCore::RenderThemeEfl::sliderTickSize):
(WebCore::RenderThemeEfl::sliderTickOffsetFromTrackCenter):
* platform/efl/RenderThemeEfl.h:
(RenderThemeEfl):
* platform/qt/RenderThemeQt.cpp:
(WebCore::RenderThemeQt::sliderTickSize):
(WebCore):
(WebCore::RenderThemeQt::sliderTickOffsetFromTrackCenter):
* platform/qt/RenderThemeQt.h:
(RenderThemeQt):
* rendering/RenderTheme.cpp:
(WebCore):
(WebCore::RenderTheme::paintSliderTicks):
* rendering/RenderTheme.h:
(RenderTheme):
* rendering/RenderThemeChromiumCommon.cpp:
(WebCore::RenderThemeChromiumCommon::supportsDataListUI):
* rendering/RenderThemeChromiumLinux.cpp:
(WebCore):
(WebCore::RenderThemeChromiumLinux::sliderTickSize): Tick size for horizontal slider. i.e. Width is length along the track.
(WebCore::RenderThemeChromiumLinux::sliderTickOffsetFromTrackCenter): Offset from
middle of draw rect to draw the ticks. Minus value means above the track.
(WebCore::RenderThemeChromiumLinux::paintSliderTrack):
* rendering/RenderThemeChromiumLinux.h:
(RenderThemeChromiumLinux):
* rendering/RenderThemeChromiumWin.cpp:
(WebCore):
(WebCore::RenderThemeChromiumWin::sliderTickSize):
(WebCore::RenderThemeChromiumWin::sliderTickOffsetFromTrackCenter):
(WebCore::RenderThemeChromiumWin::paintSliderTrack):
(WebCore::RenderThemeChromiumWin::paintSliderThumb):
* rendering/RenderThemeChromiumWin.h:
(RenderThemeChromiumWin):
* rendering/RenderThemeMac.h:
(RenderThemeMac):
* rendering/RenderThemeMac.mm:
(WebCore::RenderThemeMac::paintSliderTrack):
(WebCore):
(WebCore::RenderThemeMac::sliderTickSize):
(WebCore::RenderThemeMac::sliderTickOffsetFromTrackCenter):

LayoutTests:

* fast/forms/datalist/input-appearance-range-with-datalist-expected.txt: Added.
* fast/forms/datalist/input-appearance-range-with-datalist-rtl-expected.html: Added.
* fast/forms/datalist/input-appearance-range-with-datalist-rtl.html: Added. The ticks should go from right to left.
* fast/forms/datalist/input-appearance-range-with-datalist-zoomed-expected.txt: Added.
* fast/forms/datalist/input-appearance-range-with-datalist-zoomed.html: Added. The ticks should zoom properly.
* fast/forms/datalist/input-appearance-range-with-datalist.html: Added.
* platform/chromium-linux/fast/forms/datalist/input-appearance-range-with-datalist-expected.png: Added.
* platform/chromium-linux/fast/forms/datalist/input-appearance-range-with-datalist-zoomed-expected.png: Added.
* platform/chromium-mac/fast/forms/datalist/input-appearance-range-with-datalist-expected.png: Added.
* platform/chromium-mac/fast/forms/datalist/input-appearance-range-with-datalist-zoomed-expected.png: Added.
* platform/chromium-win/fast/forms/datalist/input-appearance-range-with-datalist-expected.png: Added.
* platform/chromium-win/fast/forms/datalist/input-appearance-range-with-datalist-zoomed-expected.png: Added.
* platform/chromium/TestExpectations:
* platform/chromium/fast/forms/datalist/input-list-expected.txt:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123072 268f45cc-cd09-0410-ab3c-d52691b4dbfc