WebKit-https.git
8 years ago First sentence is missing or clipped when printing a inline PDF
ap@apple.com [Wed, 4 Jan 2012 19:24:38 +0000 (19:24 +0000)]
    First sentence is missing or clipped when printing a inline PDF
        https://bugs.webkit.org/show_bug.cgi?id=75514
        <rdar://problem/10640680>

        Reviewed by Dan Bernstein.

        * UIProcess/WebPageProxy.cpp:
        (WebKit::WebPageProxy::headerHeight):
        (WebKit::WebPageProxy::footerHeight):
        (WebKit::WebPageProxy::drawHeader):
        (WebKit::WebPageProxy::drawFooter):
        Do not ask the client about headers and footers when printing a PDF.

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

8 years ago[chromium] Move WebMimeRegistry and dependencies to Source/Platform
jamesr@google.com [Wed, 4 Jan 2012 19:08:02 +0000 (19:08 +0000)]
[chromium] Move WebMimeRegistry and dependencies to Source/Platform
https://bugs.webkit.org/show_bug.cgi?id=74583

Reviewed by Darin Fisher.

.:

Update .gitignore for Source/Platform/Platform.gyp/ generated project files.

* .gitignore:

Source/Platform:

This creates a skeleton directory structure for the chromium WebKit platform API and moves WebMimeRegistry.h
along with its dependencies (WebString and WebCString) to their final location.

* Platform.gyp/Platform.gyp: Added.
* Platform.gypi: Added.
* chromium/platform/WebCString.h: Copied from Source/WebKit/chromium/public/platform/WebCString.h.
(WebKit::WebCString::~WebCString):
(WebKit::WebCString::WebCString):
(WebKit::WebCString::operator=):
(WebKit::WebCString::isEmpty):
(WebKit::WebCString::isNull):
(WebKit::WebCString::operator std::string):
(WebKit::WebCString::fromUTF16):
(WebKit::operator<):
* chromium/platform/WebCommon.h: Copied from Source/WebKit/chromium/public/platform/WebCommon.h.
* chromium/platform/WebMimeRegistry.h: Copied from Source/WebKit/chromium/public/platform/WebMimeRegistry.h.
(WebKit::WebMimeRegistry::~WebMimeRegistry):
* chromium/platform/WebString.h: Copied from Source/WebKit/chromium/public/platform/WebString.h.
(WebKit::WebString::~WebString):
(WebKit::WebString::WebString):
(WebKit::WebString::operator=):
(WebKit::WebString::isEmpty):
(WebKit::WebString::isNull):
(WebKit::WebString::operator string16):
(WebKit::WebString::operator NullableString16):
(WebKit::WebString::fromUTF8):
(WebKit::operator==):
(WebKit::operator!=):
* chromium/src/WebCString.cpp: Renamed from Source/WebKit/chromium/src/WebCString.cpp.
(WebKit::WebCString::compare):
(WebKit::WebCString::reset):
(WebKit::WebCString::assign):
(WebKit::WebCString::length):
(WebKit::WebCString::data):
(WebKit::WebCString::utf16):
(WebKit::WebCString::fromUTF16):
(WebKit::WebCString::WebCString):
(WebKit::WebCString::operator=):
(WebKit::WebCString::operator WTF::CString):
* chromium/src/WebString.cpp: Renamed from Source/WebKit/chromium/src/WebString.cpp.
(WebKit::WebString::reset):
(WebKit::WebString::assign):
(WebKit::WebString::length):
(WebKit::WebString::data):
(WebKit::WebString::utf8):
(WebKit::WebString::fromUTF8):
(WebKit::WebString::equals):
(WebKit::WebString::WebString):
(WebKit::WebString::operator=):
(WebKit::WebString::operator WTF::String):
(WebKit::WebString::operator WTF::AtomicString):

Source/WebKit/chromium:

public/platform/WebMimeRegistry.h is a temporary forwarding header to ease the transition. Once downstream
callers are updated to the new location this header can be removed.

WebString, WebCString, and WebCommon.h will remain in place as forwarding headers for users of the WebKit client
API.

* WebKit.gyp:
* public/platform/WebCString.h:
* public/platform/WebCommon.h:
* public/platform/WebMimeRegistry.h:
* public/platform/WebString.h:

Tools:

Teaches the WEBKIT_EXPORT check about the chromium WebKit platform API header location.

* Scripts/webkitpy/style/checkers/cpp.py:
(check_function_definition):

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

8 years agoShare fractional time code between AnimationBase and KeyframeAnimation
igor.oliveira@openbossa.org [Wed, 4 Jan 2012 18:21:02 +0000 (18:21 +0000)]
Share fractional time code between AnimationBase and KeyframeAnimation
https://bugs.webkit.org/show_bug.cgi?id=75549

Remove left over from changeset 104045.

Unreviewed trivial fix.

* page/animation/AnimationBase.cpp:
(WebCore::AnimationBase::fractionalTime):

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

8 years agoNot reviewed. Update Chromium port test expectations.
hclam@chromium.org [Wed, 4 Jan 2012 17:51:24 +0000 (17:51 +0000)]
Not reviewed. Update Chromium port test expectations.

* platform/chromium-linux/svg/custom/glyph-selection-lang-attribute-expected.txt: Added.

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

8 years agoShare fractional time code between AnimationBase and KeyframeAnimation
igor.oliveira@openbossa.org [Wed, 4 Jan 2012 17:50:45 +0000 (17:50 +0000)]
Share fractional time code between AnimationBase and KeyframeAnimation
https://bugs.webkit.org/show_bug.cgi?id=75549

Share fractional time calculation between AnimationBase and KeyframeAnimation.

Reviewed by Simon Fraser.

* page/animation/AnimationBase.cpp:
(WebCore::AnimationBase::fractionalTime):
(WebCore::AnimationBase::progress):
* page/animation/AnimationBase.h:
* page/animation/KeyframeAnimation.cpp:
(WebCore::KeyframeAnimation::fetchIntervalEndpointsForProperty):

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

8 years ago[chromium] Bypass the shadow texture copy for accelerated
vangelis@chromium.org [Wed, 4 Jan 2012 17:17:09 +0000 (17:17 +0000)]
[chromium] Bypass the shadow texture copy for accelerated
canvas when running the compositor in single threaded mode.
https://bugs.webkit.org/show_bug.cgi?id=75146

Source/WebCore:

The texture copy fails on Windows as glCopyTexImage2D() doesn't
support BGRA source textures.
This change also modifies Canvas2DLayerChromium::updateCompositorResources
to call glCopyTexSubImage2D() instead of glCopyTexImage2D() so that
the copy can work with texture allocated via the glTexStorage2D
extension.

Reviewed by James Robinson.

Tests: Canvas2DLayerChromiumTest.cpp

* platform/graphics/chromium/Canvas2DLayerChromium.cpp:
(WebCore::Canvas2DLayerChromium::Canvas2DLayerChromium):
(WebCore::Canvas2DLayerChromium::~Canvas2DLayerChromium):
(WebCore::Canvas2DLayerChromium::paintContentsIfDirty):
(WebCore::Canvas2DLayerChromium::setTextureManager):
(WebCore::Canvas2DLayerChromium::updateCompositorResources):
(WebCore::Canvas2DLayerChromium::pushPropertiesTo):
(WebCore::Canvas2DLayerChromium::unreserveContentsTexture):
(WebCore::Canvas2DLayerChromium::cleanupResources):
* platform/graphics/chromium/Canvas2DLayerChromium.h:

Source/WebKit/chromium:

Modified Canvas2DLayerChromium unit test to test canvas with
both threaded and non-threaded compositing.

Reviewed by James Robinson.

* tests/CCSchedulerTestCommon.h:
(WebKitTests::FakeCCThread::threadID):
* tests/Canvas2DLayerChromiumTest.cpp:
(WebCore::Canvas2DLayerChromiumTest::setTextureManager):
(WebCore::Canvas2DLayerChromiumTest::fullLifecycleTest):
(WebCore::TEST_F):

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

8 years agoNot reviewed. Update Chromium port test expectations.
hclam@chromium.org [Wed, 4 Jan 2012 17:08:14 +0000 (17:08 +0000)]
Not reviewed. Update Chromium port test expectations.

* platform/chromium-linux/svg/W3C-SVG-1.1/masking-path-02-b-expected.png:
* platform/chromium-linux/svg/custom/glyph-selection-lang-attribute-expected.png:
* platform/chromium-mac-leopard/fast/repaint/shadow-multiple-vertical-expected.png:
* platform/chromium-mac-snowleopard/fast/repaint/shadow-multiple-vertical-expected.png:
* platform/chromium-mac-snowleopard/svg/W3C-SVG-1.1/masking-path-02-b-expected.png:
* platform/chromium-mac-snowleopard/svg/custom/glyph-selection-lang-attribute-expected.png: Added.
* platform/chromium-mac/svg/custom/glyph-selection-lang-attribute-expected.png: Removed.
* platform/chromium-win-xp/svg/W3C-SVG-1.1/masking-path-02-b-expected.png: Added.
* platform/chromium-win-xp/svg/custom/glyph-selection-lang-attribute-expected.png: Added.
* platform/chromium-win/svg/W3C-SVG-1.1/masking-path-02-b-expected.png:
* platform/chromium-win/svg/W3C-SVG-1.1/masking-path-02-b-expected.txt:
* platform/chromium-win/svg/custom/glyph-selection-lang-attribute-expected.png:
* platform/chromium-win/svg/custom/glyph-selection-lang-attribute-expected.txt: Added.
* platform/chromium/test_expectations.txt:

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

8 years ago[Qt] Fix windows build. WTF depends on timeEndPeriod from winmm
vestbo@webkit.org [Wed, 4 Jan 2012 16:12:48 +0000 (16:12 +0000)]
[Qt] Fix windows build. WTF depends on timeEndPeriod from winmm

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

8 years agoNot reviewed. Update Chromium port test expectations.
hclam@chromium.org [Wed, 4 Jan 2012 16:12:40 +0000 (16:12 +0000)]
Not reviewed. Update Chromium port test expectations.

* platform/chromium-mac-snowleopard/compositing/visibility/visibility-image-layers-expected.png: Removed.
* platform/chromium/test_expectations.txt:

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

8 years ago[Qt] Fix test regressions after r104025
commit-queue@webkit.org [Wed, 4 Jan 2012 15:55:23 +0000 (15:55 +0000)]
[Qt] Fix test regressions after r104025
https://bugs.webkit.org/show_bug.cgi?id=75545

Patch by Alexander Færøy <alexander.faeroy@nokia.com> on 2012-01-04
Reviewed by Kenneth Rohde Christiansen.

* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::editorState):

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

8 years ago[Qt] Fix link order of static libraries and unbreak QtWin32
vestbo@webkit.org [Wed, 4 Jan 2012 15:41:37 +0000 (15:41 +0000)]
[Qt] Fix link order of static libraries and unbreak QtWin32

We were keeping the correct static link order between the intermediate
WebKit libraries, but not the internal dependencies for each of those
libraries. The load() will in some instances mess with LIBS, so we need
to ensure that the dependent libraries are added after the library we
are linking against.

Reviewed by Simon Hausmann.

* qmake/mkspecs/features/default_post.prf:

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

8 years agoUse one big printf command instead of many chained echo commands to generate idl_file...
aroben@apple.com [Wed, 4 Jan 2012 15:33:20 +0000 (15:33 +0000)]
Use one big printf command instead of many chained echo commands to generate idl_files.tmp

This works around a bug in Cygwin where sh.exe will crash if given a too-long sequence of
&&-chained commands.

Fixes <http://webkit.org/b/75546> <rdar://problem/10622193> REGRESSION (r103519): WebCore's
DerivedSources.make crashes sh.exe if path to WebKit source tree is long enough

Reviewed by Antti Koivisto.

* DerivedSources.make: Change the '(echo foo && echo bar && echo baz && echo -n) >
./idl_files.tmp' command to 'printf "foo\nbar\nbaz\n" > ./idl_files.tmp'. We use the
patsubst function to append "\n" to each IDL filename, then use the subst function to remove
the spaces between the filenames.

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

8 years agoNot reviewed. Update Chromium port test expectations after Skia roll.
hclam@chromium.org [Wed, 4 Jan 2012 15:26:42 +0000 (15:26 +0000)]
Not reviewed. Update Chromium port test expectations after Skia roll.

* platform/chromium-cg-mac-snowleopard/svg/custom/fractional-rects-expected.png: Renamed from LayoutTests/platform/chromium-cg-mac/svg/custom/fractional-rects-expected.png.
* platform/chromium-linux/fast/backgrounds/animated-svg-as-mask-expected.png:
* platform/chromium-linux/svg/W3C-SVG-1.1/coords-coord-01-t-expected.png:
* platform/chromium-linux/svg/W3C-SVG-1.1/coords-coord-02-t-expected.png:
* platform/chromium-linux/svg/W3C-SVG-1.1/paths-data-13-t-expected.png:
* platform/chromium-linux/svg/W3C-SVG-1.1/render-groups-01-b-expected.png:
* platform/chromium-linux/svg/W3C-SVG-1.1/render-groups-03-t-expected.png:
* platform/chromium-linux/svg/W3C-SVG-1.1/text-align-08-b-expected.png:
* platform/chromium-linux/svg/as-background-image/animated-svg-as-background-expected.png:
* platform/chromium-linux/svg/carto.net/button-expected.png: Added.
* platform/chromium-linux/svg/carto.net/button-expected.txt: Removed.
* platform/chromium-linux/svg/css/group-with-shadow-expected.png:
* platform/chromium-linux/svg/custom/fractional-rects-expected.png:
* platform/chromium-linux/svg/custom/scrolling-embedded-svg-file-image-repaint-problem-expected.png:
* platform/chromium-linux/svg/custom/use-css-no-effect-on-shadow-tree-expected.png:
* platform/chromium-linux/svg/text/text-align-01-b-expected.png:
* platform/chromium-linux/svg/text/text-deco-01-b-expected.png:
* platform/chromium-linux/svg/text/text-path-01-b-expected.png:
* platform/chromium-linux/svg/text/text-text-03-b-expected.png:
* platform/chromium-linux/svg/text/text-text-07-t-expected.png:
* platform/chromium-linux/svg/zoom/page/zoom-svg-through-object-with-percentage-size-expected.png:
* platform/chromium-mac-leopard/svg/carto.net/button-expected.png:
* platform/chromium-mac-leopard/svg/css/group-with-shadow-expected.png:
* platform/chromium-mac-leopard/svg/custom/scrolling-embedded-svg-file-image-repaint-problem-expected.png:
* platform/chromium-mac-leopard/svg/text/text-align-01-b-expected.png:
* platform/chromium-mac-leopard/svg/text/text-deco-01-b-expected.png:
* platform/chromium-mac-leopard/svg/text/text-path-01-b-expected.png:
* platform/chromium-mac-leopard/svg/text/text-text-03-b-expected.png:
* platform/chromium-mac-leopard/svg/text/text-text-07-t-expected.png:
* platform/chromium-mac-leopard/svg/zoom/page/zoom-svg-through-object-with-percentage-size-expected.png:
* platform/chromium-mac-snowleopard/fast/backgrounds/animated-svg-as-mask-expected.png:
* platform/chromium-mac-snowleopard/svg/W3C-SVG-1.1/coords-coord-01-t-expected.png:
* platform/chromium-mac-snowleopard/svg/W3C-SVG-1.1/coords-coord-02-t-expected.png:
* platform/chromium-mac-snowleopard/svg/W3C-SVG-1.1/paths-data-13-t-expected.png: Added.
* platform/chromium-mac-snowleopard/svg/W3C-SVG-1.1/render-groups-01-b-expected.png:
* platform/chromium-mac-snowleopard/svg/W3C-SVG-1.1/render-groups-03-t-expected.png:
* platform/chromium-mac-snowleopard/svg/W3C-SVG-1.1/text-align-08-b-expected.png:
* platform/chromium-mac-snowleopard/svg/as-background-image/animated-svg-as-background-expected.png:
* platform/chromium-mac-snowleopard/svg/carto.net/button-expected.png:
* platform/chromium-mac-snowleopard/svg/css/group-with-shadow-expected.png:
* platform/chromium-mac-snowleopard/svg/custom/fractional-rects-expected.png: Added.
* platform/chromium-mac-snowleopard/svg/custom/scrolling-embedded-svg-file-image-repaint-problem-expected.png:
* platform/chromium-mac-snowleopard/svg/custom/use-css-no-effect-on-shadow-tree-expected.png: Renamed from LayoutTests/platform/chromium-mac/svg/custom/use-css-no-effect-on-shadow-tree-expected.png.
* platform/chromium-mac-snowleopard/svg/text/text-align-01-b-expected.png:
* platform/chromium-mac-snowleopard/svg/text/text-deco-01-b-expected.png:
* platform/chromium-mac-snowleopard/svg/text/text-path-01-b-expected.png:
* platform/chromium-mac-snowleopard/svg/text/text-text-03-b-expected.png:
* platform/chromium-mac-snowleopard/svg/text/text-text-07-t-expected.png:
* platform/chromium-mac-snowleopard/svg/zoom/page/zoom-svg-through-object-with-percentage-size-expected.png:
* platform/chromium-mac/svg/W3C-SVG-1.1/paths-data-13-t-expected.png: Removed.
* platform/chromium-mac/svg/custom/fractional-rects-expected.png: Removed.
* platform/chromium-win-xp/fast/backgrounds/animated-svg-as-mask-expected.png: Copied from LayoutTests/platform/chromium-win/fast/backgrounds/animated-svg-as-mask-expected.png.
* platform/chromium-win-xp/svg/as-background-image/animated-svg-as-background-expected.png: Copied from LayoutTests/platform/chromium-win/svg/as-background-image/animated-svg-as-background-expected.png.
* platform/chromium-win-xp/svg/text/text-align-01-b-expected.png: Added.
* platform/chromium-win-xp/svg/text/text-path-01-b-expected.png: Copied from LayoutTests/platform/chromium-win/svg/text/text-path-01-b-expected.png.
* platform/chromium-win/fast/backgrounds/animated-svg-as-mask-expected.png:
* platform/chromium-win/svg/W3C-SVG-1.1/coords-coord-01-t-expected.png:
* platform/chromium-win/svg/W3C-SVG-1.1/coords-coord-02-t-expected.png:
* platform/chromium-win/svg/W3C-SVG-1.1/paths-data-13-t-expected.png:
* platform/chromium-win/svg/W3C-SVG-1.1/render-groups-01-b-expected.png:
* platform/chromium-win/svg/W3C-SVG-1.1/render-groups-03-t-expected.png:
* platform/chromium-win/svg/W3C-SVG-1.1/text-align-08-b-expected.png:
* platform/chromium-win/svg/as-background-image/animated-svg-as-background-expected.png:
* platform/chromium-win/svg/carto.net/button-expected.png:
* platform/chromium-win/svg/css/group-with-shadow-expected.png:
* platform/chromium-win/svg/custom/fractional-rects-expected.png:
* platform/chromium-win/svg/custom/scrolling-embedded-svg-file-image-repaint-problem-expected.png:
* platform/chromium-win/svg/custom/use-css-no-effect-on-shadow-tree-expected.png:
* platform/chromium-win/svg/text/text-align-01-b-expected.png:
* platform/chromium-win/svg/text/text-path-01-b-expected.png:
* platform/chromium-win/svg/text/text-text-03-b-expected.png:
* platform/chromium-win/svg/text/text-text-07-t-expected.png:
* platform/chromium-win/svg/zoom/page/zoom-svg-through-object-with-percentage-size-expected.png:
* platform/chromium/test_expectations.txt:
* platform/mac/svg/custom/fractional-rects-expected.txt: Removed.
* platform/mac/svg/custom/use-css-no-effect-on-shadow-tree-expected.txt: Removed.
* platform/qt/svg/custom/fractional-rects-expected.txt: Removed.
* platform/qt/svg/custom/use-css-no-effect-on-shadow-tree-expected.txt: Removed.
* svg/as-background-image/animated-svg-as-background-expected.txt: Removed.
* svg/custom/fractional-rects-expected.txt: Renamed from LayoutTests/platform/gtk/svg/custom/fractional-rects-expected.txt.
* svg/custom/use-css-no-effect-on-shadow-tree-expected.txt: Renamed from LayoutTests/platform/gtk/svg/custom/use-css-no-effect-on-shadow-tree-expected.txt.

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

8 years ago[CSSRegions]Rollout support for background-color region styling
mihnea@adobe.com [Wed, 4 Jan 2012 14:51:28 +0000 (14:51 +0000)]
[CSSRegions]Rollout support for background-color region styling
https://bugs.webkit.org/show_bug.cgi?id=75007

Reviewed by Tony Chang.

Removed functionality, therefore no new tests. Since this is a temporary rollout,
the tests for region-style with background-color are not removed in this patch, just skipped.

* WebCore.exp.in:
* css/CSSStyleSelector.cpp:
(WebCore::CSSStyleSelector::CSSStyleSelector):
(WebCore::CSSStyleSelector::addMatchedDeclaration):
(WebCore::CSSStyleSelector::matchRules):
(WebCore::CSSStyleSelector::matchAllRules):
(WebCore::CSSStyleSelector::styleForElement):
(WebCore::CSSStyleSelector::pseudoStyleForElement):
(WebCore::RuleData::RuleData):
(WebCore::RuleSet::RuleSet):
(WebCore::RuleSet::addToRuleSet):
(WebCore::CSSStyleSelector::applyDeclarations):
(WebCore::CSSStyleSelector::applyProperty):
* css/CSSStyleSelector.h:
* rendering/RenderFlowThread.cpp:
(WebCore::RenderFlowThread::setRegionRangeForBox):
* rendering/RenderFlowThread.h:
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::paint):
(WebCore::RenderLayer::hitTest):
* rendering/RenderObject.cpp:
* rendering/RenderObject.h:
* rendering/RenderObjectChildList.cpp:
(WebCore::RenderObjectChildList::removeChildNode):
* rendering/RenderRegion.cpp:
* rendering/RenderRegion.h:
* rendering/RenderView.cpp:
(WebCore::RenderView::RenderView):
* rendering/RenderView.h:

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

8 years agoREGRESSION(r104028): Broke editing tests and event coordinates in desktop behaviour
abecsi@webkit.org [Wed, 4 Jan 2012 14:34:52 +0000 (14:34 +0000)]
REGRESSION(r104028): Broke editing tests and event coordinates in desktop behaviour
https://bugs.webkit.org/show_bug.cgi?id=75542

[Qt][WK2] Pinch zoom should affect the page size
https://bugs.webkit.org/show_bug.cgi?id=74601

Unreviewed roll-out.

Patch by Andras Becsi <andras.becsi@nokia.com> on 2012-01-04

* Shared/NativeWebMouseEvent.h:
* Shared/NativeWebTouchEvent.h:
* Shared/NativeWebWheelEvent.h:
* Shared/qt/NativeWebMouseEventQt.cpp:
(WebKit::NativeWebMouseEvent::NativeWebMouseEvent):
* Shared/qt/NativeWebTouchEventQt.cpp:
(WebKit::NativeWebTouchEvent::NativeWebTouchEvent):
* Shared/qt/NativeWebWheelEventQt.cpp:
(WebKit::NativeWebWheelEvent::NativeWebWheelEvent):
* Shared/qt/WebEventFactoryQt.cpp:
(WebKit::WebEventFactory::createWebMouseEvent):
(WebKit::WebEventFactory::createWebWheelEvent):
(WebKit::WebEventFactory::createWebTouchEvent):
* Shared/qt/WebEventFactoryQt.h:
* UIProcess/API/qt/qquickwebpage.cpp:
(QQuickWebPage::keyPressEvent):
(QQuickWebPage::keyReleaseEvent):
(QQuickWebPage::inputMethodEvent):
(QQuickWebPage::focusInEvent):
(QQuickWebPage::focusOutEvent):
(QQuickWebPage::mousePressEvent):
(QQuickWebPage::mouseMoveEvent):
(QQuickWebPage::mouseReleaseEvent):
(QQuickWebPage::mouseDoubleClickEvent):
(QQuickWebPage::wheelEvent):
(QQuickWebPage::hoverEnterEvent):
(QQuickWebPage::hoverMoveEvent):
(QQuickWebPage::hoverLeaveEvent):
(QQuickWebPage::dragMoveEvent):
(QQuickWebPage::dragEnterEvent):
(QQuickWebPage::dragLeaveEvent):
(QQuickWebPage::dropEvent):
(QQuickWebPage::geometryChanged):
(QQuickWebPage::event):
(QQuickWebPage::touchEvent):
(QQuickWebPagePrivate::QQuickWebPagePrivate):
(QQuickWebPagePrivate::paintToCurrentGLContext):
* UIProcess/API/qt/qquickwebpage_p.h:
* UIProcess/API/qt/qquickwebpage_p_p.h:
* UIProcess/API/qt/qquickwebview.cpp:
(QQuickWebViewPrivate::enableMouseEvents):
(QQuickWebViewPrivate::disableMouseEvents):
(QQuickWebViewPrivate::loadDidCommit):
(QQuickWebViewPrivate::didFinishFirstNonEmptyLayout):
(QQuickWebViewPrivate::didChangeContentsSize):
(QQuickWebViewPrivate::didChangeViewportProperties):
(QQuickWebViewPrivate::pageDidRequestScroll):
(QQuickWebViewPrivate::updateVisibleContentRectAndScale):
(QQuickWebViewPrivate::PostTransitionState::apply):
(QQuickWebViewPrivate::setUseTraditionalDesktopBehaviour):
(QQuickWebViewExperimental::setUseTraditionalDesktopBehaviour):
(QQuickWebViewExperimental::useTraditionalDesktopBehaviour):
(QQuickWebView::geometryChanged):
(QQuickWebView::focusInEvent):
(QQuickWebView::focusOutEvent):
* UIProcess/API/qt/qquickwebview_p.h:
* UIProcess/API/qt/qquickwebview_p_p.h:
* UIProcess/API/qt/qwebviewportinfo.cpp:
(QWebViewportInfo::contentsSize):
* UIProcess/API/qt/tests/qquickwebview/tst_qquickwebview.cpp:
(tst_QQuickWebView::scrollRequest):
* UIProcess/qt/QtPinchGestureRecognizer.cpp:
(WebKit::QtPinchGestureRecognizer::recognize):
* UIProcess/qt/QtViewportInteractionEngine.cpp:
(WebKit::QtViewportInteractionEngine::QtViewportInteractionEngine):
(WebKit::QtViewportInteractionEngine::setItemRectVisible):
(WebKit::QtViewportInteractionEngine::animateItemRectVisible):
(WebKit::QtViewportInteractionEngine::event):
(WebKit::QtViewportInteractionEngine::wheelEvent):
(WebKit::QtViewportInteractionEngine::pagePositionRequest):
(WebKit::QtViewportInteractionEngine::computePosRangeForItemAtScale):
(WebKit::QtViewportInteractionEngine::ensureContentWithinViewportBoundary):
(WebKit::QtViewportInteractionEngine::applyConstraints):
(WebKit::QtViewportInteractionEngine::currentCSSScale):
(WebKit::QtViewportInteractionEngine::panGestureStarted):
(WebKit::QtViewportInteractionEngine::panGestureRequestUpdate):
(WebKit::QtViewportInteractionEngine::panGestureEnded):
(WebKit::QtViewportInteractionEngine::pinchGestureStarted):
(WebKit::QtViewportInteractionEngine::pinchGestureRequestUpdate):
(WebKit::QtViewportInteractionEngine::scaleContent):
* UIProcess/qt/QtViewportInteractionEngine.h:
* UIProcess/qt/QtWebPageEventHandler.cpp:
(QtWebPageEventHandler::handleEvent):
(QtWebPageEventHandler::handleMouseMoveEvent):
(QtWebPageEventHandler::handleMousePressEvent):
(QtWebPageEventHandler::handleMouseReleaseEvent):
(QtWebPageEventHandler::handleWheelEvent):
(QtWebPageEventHandler::handleHoverLeaveEvent):
(QtWebPageEventHandler::handleHoverMoveEvent):
(QtWebPageEventHandler::handleDragEnterEvent):
(QtWebPageEventHandler::handleDragMoveEvent):
(QtWebPageEventHandler::handleDropEvent):
(QtWebPageEventHandler::handleSingleTapEvent):
(QtWebPageEventHandler::handleDoubleTapEvent):
(QtWebPageEventHandler::touchEvent):
* UIProcess/qt/QtWebPageEventHandler.h:

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

8 years ago[Qt] Introduce new qmake variable 'WEBKIT' for signaling dependencies
vestbo@webkit.org [Wed, 4 Jan 2012 14:21:10 +0000 (14:21 +0000)]
[Qt] Introduce new qmake variable 'WEBKIT' for signaling dependencies

The custom qmake variable 'WEBKIT' is used for signaling that a
target depends in some way on other subproject of the WebKit
project. For now this is limited to the set of intermediate
libraries: wtf, javascriptcore, webcore, and webkit2.

This replaces the previous convension of using load(foo) for
just include paths, and CONFIG += foo to also link against foo.

Adding a dependency results in additional include paths being
available, and potentially linking to the library. This is
decided by the build system based on conditions such as what
kind of target is being built and the general build config.

An advantage to his approach is that it simplifies the individual
foo.prf files, for example by allowing us to use INCLUDEPATH +=
and LIBS += as normal instead of prepending.

Reviewed by Simon Hausmann.

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

8 years ago[Chromium] Re-use TestShellLinux.cpp for Android
peter@chromium.org [Wed, 4 Jan 2012 14:19:49 +0000 (14:19 +0000)]
[Chromium] Re-use TestShellLinux.cpp for Android
https://bugs.webkit.org/show_bug.cgi?id=75169

Reviewed by Tony Chang.

TestShellLinux.cpp can be re-used for the test-shell on the WebKit
Chromium port for Android. Most custom inclusions for the DumpRenderTree
target are done in Tools/DumpRenderTree.gypi, but since *Linux.cpp files
are being excluded by a global rule on sources it has to be later in
the project generation process.

* WebKit.gyp:

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

8 years ago[Qt] Add UI for JavaScript Prompt dialog in the Qt MiniBrowser
commit-queue@webkit.org [Wed, 4 Jan 2012 14:04:52 +0000 (14:04 +0000)]
[Qt] Add UI for JavaScript Prompt dialog in the Qt MiniBrowser
https://bugs.webkit.org/show_bug.cgi?id=75488

Patch by Alexander Færøy <ahf@0x90.dk> on 2012-01-04
Reviewed by Tor Arne Vestbø.

* MiniBrowser/qt/MiniBrowser.qrc:
* MiniBrowser/qt/qml/BrowserWindow.qml:
* MiniBrowser/qt/qml/Dialog.qml:
* MiniBrowser/qt/qml/DialogLineInput.qml: Copied from Tools/MiniBrowser/qt/qml/Dialog.qml.
* MiniBrowser/qt/qml/PromptDialog.qml: Copied from Tools/MiniBrowser/qt/qml/Dialog.qml.

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

8 years agoNot reviewed. Update Chromium port test expectations.
hclam@chromium.org [Wed, 4 Jan 2012 13:45:15 +0000 (13:45 +0000)]
Not reviewed. Update Chromium port test expectations.

http/tests/appcache/interrupted-update.html is crashing on Win7, mark it so.

* platform/chromium/test_expectations.txt:

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

8 years agoNot reviewed. Update Chromium port test expectations.
hclam@chromium.org [Wed, 4 Jan 2012 13:36:00 +0000 (13:36 +0000)]
Not reviewed. Update Chromium port test expectations.

* platform/chromium-cg-mac-leopard/compositing/visibility/visibility-image-layers-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/compositing/visibility/visibility-image-layers-expected.png: Added.
* platform/chromium-linux/compositing/visibility/visibility-image-layers-expected.png: Added.
* platform/chromium-mac-leopard/compositing/visibility/visibility-image-layers-expected.png: Added.
* platform/chromium-mac-snowleopard/compositing/visibility/visibility-image-layers-expected.png: Added.
* platform/chromium-win/compositing/visibility/visibility-image-layers-expected.png: Added.
* platform/chromium/test_expectations.txt:

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

8 years ago[Qt][WK2] Unreviewed gardening.
ossy@webkit.org [Wed, 4 Jan 2012 13:27:57 +0000 (13:27 +0000)]
[Qt][WK2] Unreviewed gardening.

* platform/qt-wk2/Skipped: Skip a failing test.

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

8 years ago[Qt][WK2] Pinch zoom should affect the page size
abecsi@webkit.org [Wed, 4 Jan 2012 13:26:06 +0000 (13:26 +0000)]
[Qt][WK2] Pinch zoom should affect the page size
https://bugs.webkit.org/show_bug.cgi?id=74601

Patch by Andras Becsi <andras.becsi@nokia.com> on 2012-01-03
Reviewed by Kenneth Rohde Christiansen and Simon Hausmann.

The current implementation uses the scale property of the QQuickWebPage
to scale the page in response to pinch gestures.
However for layout and anchoring to work correctly in QML, pinching needs
to change the page size.
This patch applies the pinch scale to the page size and to the transformation
matrix of the drawing area.
Thus the page item's coordinate system is no longer a direct representation
of the WebCore::Page coordinate system and it is no longer suitable as
an inertial frame of reference for input events. The event propagation had
to be moved to the QQuickWebView and the positions translated to content
coordinates when NativeWebEvents are created.

* Shared/NativeWebMouseEvent.h:
* Shared/NativeWebTouchEvent.h:
* Shared/NativeWebWheelEvent.h:
* Shared/qt/NativeWebMouseEventQt.cpp:
(WebKit::NativeWebMouseEvent::NativeWebMouseEvent):
* Shared/qt/NativeWebTouchEventQt.cpp:
(WebKit::NativeWebTouchEvent::NativeWebTouchEvent):
* Shared/qt/NativeWebWheelEventQt.cpp:
(WebKit::NativeWebWheelEvent::NativeWebWheelEvent):
* Shared/qt/WebEventFactoryQt.cpp:
(WebKit::WebEventFactory::createWebMouseEvent):
(WebKit::WebEventFactory::createWebWheelEvent):
(WebKit::WebEventFactory::createWebTouchEvent):
* Shared/qt/WebEventFactoryQt.h:
* UIProcess/API/qt/qquickwebpage.cpp:
(QQuickWebPage::geometryChanged):
(QQuickWebPagePrivate::QQuickWebPagePrivate):
(QQuickWebPagePrivate::paintToCurrentGLContext):
(QQuickWebPage::usesTraditionalDesktopBehaviour):
(QQuickWebPage::setUsesTraditionalDesktopBehaviour):
(QQuickWebPage::eventHandler):
(QQuickWebPage::setContentSize):
(QQuickWebPage::contentSize):
(QQuickWebPage::setContentScale):
(QQuickWebPage::contentScale):
(QQuickWebPage::transformFromItem):
(QQuickWebPage::transformToItem):
(QQuickWebPagePrivate::updateSize):
* UIProcess/API/qt/qquickwebpage_p.h:
* UIProcess/API/qt/qquickwebpage_p_p.h:
* UIProcess/API/qt/qquickwebview.cpp:
(QQuickWebViewPrivate::enableMouseEvents):
(QQuickWebViewPrivate::disableMouseEvents):
(QQuickWebViewPrivate::loadDidCommit):
(QQuickWebViewPrivate::didFinishFirstNonEmptyLayout):
(QQuickWebViewPrivate::didChangeContentsSize):
(QQuickWebViewPrivate::didChangeViewportProperties):
(QQuickWebViewPrivate::pageDidRequestScroll):
(QQuickWebViewPrivate::updateVisibleContentRectAndScale):
(QQuickWebViewPrivate::PostTransitionState::apply):
(QQuickWebViewPrivate::setUseTraditionalDesktopBehaviour):
(QQuickWebViewExperimental::setUseTraditionalDesktopBehaviour):
(QQuickWebViewExperimental::useTraditionalDesktopBehaviour):
(QQuickWebView::mapToWebContent):
(QQuickWebView::mapRectToWebContent):
(QQuickWebView::mapFromWebContent):
(QQuickWebView::mapRectFromWebContent):
(QQuickWebView::geometryChanged):
(QQuickWebView::keyPressEvent):
(QQuickWebView::keyReleaseEvent):
(QQuickWebView::inputMethodEvent):
(QQuickWebView::focusInEvent):
(QQuickWebView::focusOutEvent):
(QQuickWebView::touchEvent):
(QQuickWebView::mousePressEvent):
(QQuickWebView::mouseMoveEvent):
(QQuickWebView::mouseReleaseEvent):
(QQuickWebView::mouseDoubleClickEvent):
(QQuickWebView::wheelEvent):
(QQuickWebView::hoverEnterEvent):
(QQuickWebView::hoverMoveEvent):
(QQuickWebView::hoverLeaveEvent):
(QQuickWebView::dragMoveEvent):
(QQuickWebView::dragEnterEvent):
(QQuickWebView::dragLeaveEvent):
(QQuickWebView::dropEvent):
(QQuickWebView::event):
* UIProcess/API/qt/qquickwebview_p.h:
* UIProcess/API/qt/qquickwebview_p_p.h:
* UIProcess/API/qt/qwebviewportinfo.cpp:
(QWebViewportInfo::contentsSize):
* UIProcess/API/qt/tests/qquickwebview/tst_qquickwebview.cpp:
(tst_QQuickWebView::scrollRequest):
* UIProcess/qt/QtPinchGestureRecognizer.cpp:
(WebKit::QtPinchGestureRecognizer::recognize):
* UIProcess/qt/QtViewportInteractionEngine.cpp:
(WebKit::QtViewportInteractionEngine::QtViewportInteractionEngine):
(WebKit::QtViewportInteractionEngine::setItemRectVisible):
(WebKit::QtViewportInteractionEngine::animateItemRectVisible):
(WebKit::QtViewportInteractionEngine::event):
(WebKit::QtViewportInteractionEngine::wheelEvent):
(WebKit::QtViewportInteractionEngine::pagePositionRequest):
(WebKit::QtViewportInteractionEngine::computePosRangeForItemAtScale):
(WebKit::QtViewportInteractionEngine::ensureContentWithinViewportBoundary):
(WebKit::QtViewportInteractionEngine::applyConstraints):
(WebKit::QtViewportInteractionEngine::currentCSSScale):
(WebKit::QtViewportInteractionEngine::panGestureStarted):
(WebKit::QtViewportInteractionEngine::panGestureRequestUpdate):
(WebKit::QtViewportInteractionEngine::panGestureEnded):
(WebKit::QtViewportInteractionEngine::pinchGestureStarted):
(WebKit::QtViewportInteractionEngine::pinchGestureRequestUpdate):
(WebKit::QtViewportInteractionEngine::scaleContent):
* UIProcess/qt/QtViewportInteractionEngine.h:
* UIProcess/qt/QtWebPageEventHandler.cpp:
(QtWebPageEventHandler::handleEvent):
(QtWebPageEventHandler::handleMouseMoveEvent):
(QtWebPageEventHandler::handleMousePressEvent):
(QtWebPageEventHandler::handleMouseReleaseEvent):
(QtWebPageEventHandler::handleWheelEvent):
(QtWebPageEventHandler::handleHoverLeaveEvent):
(QtWebPageEventHandler::handleHoverMoveEvent):
(QtWebPageEventHandler::handleDragEnterEvent):
(QtWebPageEventHandler::handleDragMoveEvent):
(QtWebPageEventHandler::handleDropEvent):
(QtWebPageEventHandler::handleSingleTapEvent):
(QtWebPageEventHandler::handleDoubleTapEvent):
(QtWebPageEventHandler::touchEvent):
* UIProcess/qt/QtWebPageEventHandler.h:

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

8 years ago[Qt] Use rpath for WTR's InjectedBundle to pick up the right QtWebKit
vestbo@webkit.org [Wed, 4 Jan 2012 12:55:36 +0000 (12:55 +0000)]
[Qt] Use rpath for WTR's InjectedBundle to pick up the right QtWebKit

It wasn't really a problem at runtime since the right QtWebKit was
already loaded as a dependency of the web process, but the ldd output
would still be busted.

Reviewed by Simon Hausmann.

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

8 years ago[Qt] Move use of $$qtLibraryTarget() to a single place
vestbo@webkit.org [Wed, 4 Jan 2012 12:55:18 +0000 (12:55 +0000)]
[Qt] Move use of $$qtLibraryTarget() to a single place

Reviewed by Kenneth Rohde Christiansen.

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

8 years ago[Qt] Clean up Qt specific part of editorState()
kenneth@webkit.org [Wed, 4 Jan 2012 11:31:11 +0000 (11:31 +0000)]
[Qt] Clean up Qt specific part of editorState()

Reviewed by Simon Hausmann.

Use unsigned instead of int.
No need to clone the range as we don't modify it.
Support selections which include a composition.
If we are not in editable content make sure to use the document element
as the scope for calculating the positions and lengths.
Remove compositionStart/Length as there cannot be a selection and
composition at the same time.

Only tested manually as we don't have everything in place yet
to properly test this.

* Shared/EditorState.h:
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::editorState):

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

8 years ago[Qt] http/tests/xmlhttprequest/workers/abort-exception-assert.html makes 6 fast/worke...
ossy@webkit.org [Wed, 4 Jan 2012 11:24:04 +0000 (11:24 +0000)]
[Qt] http/tests/xmlhttprequest/workers/abort-exception-assert.html makes 6 fast/workers test fail
https://bugs.webkit.org/show_bug.cgi?id=71695

* platform/qt/Skipped: Unskip http/tests/xmlhttprequest/workers/abort-exception-assert.html,
because the bug was fixed long long time ago by http://trac.webkit.org/changeset/102473.

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

8 years ago[Qt] Unreviewed gardening.
ossy@webkit.org [Wed, 4 Jan 2012 10:23:45 +0000 (10:23 +0000)]
[Qt] Unreviewed gardening.

* platform/qt-mac/Skipped: Skip new failing tests to paint the bot green.

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

8 years ago[Mac]Fix build after changeset 103997
mihnea@adobe.com [Wed, 4 Jan 2012 09:36:57 +0000 (09:36 +0000)]
[Mac]Fix build after changeset 103997
https://bugs.webkit.org/show_bug.cgi?id=75530

Reviewed by Andreas Kling.

Source/WebKit/mac:

* WebView/WebFrame.mm:
* WebView/WebHTMLView.mm:
* WebView/WebPDFView.mm:
* WebView/WebView.mm:

Source/WebKit2:

* UIProcess/API/mac/WKView.mm:

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

8 years ago[EFL] Refactor the way using cairo in ewk_tiled_backing_store.
commit-queue@webkit.org [Wed, 4 Jan 2012 09:26:16 +0000 (09:26 +0000)]
[EFL] Refactor the way using cairo in ewk_tiled_backing_store.
https://bugs.webkit.org/show_bug.cgi?id=74993

Patch by KwangHyuk Kim <hyuki.kim@samsung.com> on 2012-01-04
Reviewed by Nikolas Zimmermann.

For now there are cairo related code scattered around the ewk_tiled_backing_store.
From the point of code complexity view, it doesn't look good and I couldn't notice any benefit of it.
So, this patch will let cairo related code be used only for painting operation.

* ewk/ewk_tiled_backing_store.h:
* ewk/ewk_tiled_matrix.cpp:
(ewk_tile_matrix_tile_new):
* ewk/ewk_tiled_model.cpp:
(ewk_tile_new):
(ewk_tile_free):
* ewk/ewk_view_tiled.cpp:
(_ewk_view_tiled_render_cb):

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

8 years agoEnable DOWNLOAD_ATTRIBUTE in BlackBerry porting
commit-queue@webkit.org [Wed, 4 Jan 2012 09:17:45 +0000 (09:17 +0000)]
Enable DOWNLOAD_ATTRIBUTE in BlackBerry porting
https://bugs.webkit.org/show_bug.cgi?id=75238

Patch by Mary Wu <mary.wu@torchmobile.com.cn> on 2012-01-04
Reviewed by Antonio Gomes.

.:

* Source/cmakeconfig.h.cmake: Modified to add a new cmakedefine ENABLE_DOWNLOAD_ATTRIBUTE.

Tools:

Add ENABLE_DOWNLOAD_ATTRIBUTE webkit feature into the build script so that
it could initiate download directly if it has the download attribute in the link
and doesn't need to open new blank page for the target="_blank". Enabling this
feature in the BlackBerry porting also prepares for later blob feature implementation.

* Scripts/build-webkit: Modified to handle ENABLE_DOWNLOAD_ATTRIBUTE. Make it default on
for the BlackBerry porting.

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

8 years agoRemove unnecessary [Custom] attribute in CanvasRenderingContext2D.idl
commit-queue@webkit.org [Wed, 4 Jan 2012 08:48:41 +0000 (08:48 +0000)]
Remove unnecessary [Custom] attribute in CanvasRenderingContext2D.idl
https://bugs.webkit.org/show_bug.cgi?id=75376

Patch by Raymond Liu <raymond.liu@intel.com> on 2012-01-04
Reviewed by Adam Barth.

* canvas/philip/tests/2d.pattern.image.string-expected.txt:
* canvas/philip/tests/2d.pattern.image.undefined-expected.txt:
* platform/chromium/test_expectations.txt:
* platform/gtk/Skipped:
* platform/mac/canvas/philip/tests/2d.missingargs-expected.txt:
* platform/qt/Skipped:

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

8 years ago[GTK] Fix a runtime warning when hovering hyperlink auditing setting in MiniBroweser...
carlosgc@webkit.org [Wed, 4 Jan 2012 07:37:49 +0000 (07:37 +0000)]
[GTK] Fix a runtime warning when hovering hyperlink auditing setting in MiniBroweser settings dialog
https://bugs.webkit.org/show_bug.cgi?id=75475

Reviewed by Martin Robinson.

The problem is that the property blurb contains <a ping> and tree
view uses gtk_tooltip_set_markup() internally, so we need to
escape the text.

* MiniBrowser/gtk/BrowserSettingsDialog.c:
(browserSettingsDialogConstructed): Escape property blurb before
storing it in the GtkTreeModel.

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

8 years ago[GTK] Scrollbars are drawn behind the window resize grip
carlosgc@webkit.org [Wed, 4 Jan 2012 07:35:21 +0000 (07:35 +0000)]
[GTK] Scrollbars are drawn behind the window resize grip
https://bugs.webkit.org/show_bug.cgi?id=75384

Reviewed by Martin Robinson.

* UIProcess/API/gtk/WebKitWebViewBase.cpp:
(webkitWebViewBaseNotifyResizerSizeForWindow): Get the size of the
main window resize grip and send it to the page proxy if it
overlaps with the view.
(toplevelWindowResizeGripVisibilityChanged): Call
webkitWebViewBaseNotifyResizerSizeForWindow().
(webkitWebViewBaseRealize): Get the toplevel window and connect to
notify::resize-grip-visible signal.
(webkitWebViewBaseSizeAllocate): Call
webkitWebViewBaseNotifyResizerSizeForWindow().

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

8 years agoDFG: The assertion that a double-voted variable cannot become double-unvoted is wrong
fpizlo@apple.com [Wed, 4 Jan 2012 07:26:42 +0000 (07:26 +0000)]
DFG: The assertion that a double-voted variable cannot become double-unvoted is wrong
https://bugs.webkit.org/show_bug.cgi?id=75516
<rdar://problem/10640266>

Source/JavaScriptCore:

Reviewed by Gavin Barraclough.

Removed the offending assertion, since it was wrong.  Also hardened the code to make
this case less likely by first having the propagator fixpoint converge, and then doing
double voting combined with a second fixpoint.  This is neutral on benchmarks and
fixes the assertion in a fairly low-risk way (i.e. we won't vote a variable double
until we've converged to the conclusion that it really is double).

* dfg/DFGPropagator.cpp:
(JSC::DFG::Propagator::propagatePredictions):
* dfg/DFGVariableAccessData.h:
(JSC::DFG::VariableAccessData::tallyVotesForShouldUseDoubleFormat):

LayoutTests:

Reviewed by Andy Estes.

Created a fuzzer that produces sufficiently awkward data flow that includes variables
that become either double, or integer, or mix of double and integer only after multiple
iterations of a fixpoint. This crashes the compiler prior to this patch, but works with
this patch.

* fast/js/dfg-double-vote-fuzz-expected.txt: Added.
* fast/js/dfg-double-vote-fuzz.html: Added.
* fast/js/script-tests/dfg-double-vote-fuzz.js: Added.

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

8 years agoHTMLConstructionSite::attach shouldn't return a value
abarth@webkit.org [Wed, 4 Jan 2012 07:05:36 +0000 (07:05 +0000)]
HTMLConstructionSite::attach shouldn't return a value
https://bugs.webkit.org/show_bug.cgi?id=75520

Reviewed by Eric Seidel.

We used to return a value to avoid some refchurn, but now that we're
using tasks, we always need to take that reference.  Removing the
return value lets us remove the template parameter, which is a boon.
This patch has no impact on the html-parser.html benchmark.

* html/parser/HTMLConstructionSite.cpp:
(WebCore::HTMLConstructionSite::attachLater):
(WebCore::HTMLConstructionSite::insertHTMLHtmlStartTagBeforeHTML):
(WebCore::HTMLConstructionSite::insertHTMLHtmlStartTagInBody):
(WebCore::HTMLConstructionSite::insertDoctype):
(WebCore::HTMLConstructionSite::insertComment):
(WebCore::HTMLConstructionSite::insertCommentOnDocument):
(WebCore::HTMLConstructionSite::insertCommentOnHTMLHtmlElement):
(WebCore::HTMLConstructionSite::insertHTMLHeadElement):
(WebCore::HTMLConstructionSite::insertHTMLBodyElement):
(WebCore::HTMLConstructionSite::insertHTMLFormElement):
(WebCore::HTMLConstructionSite::insertHTMLElement):
(WebCore::HTMLConstructionSite::insertSelfClosingHTMLElement):
(WebCore::HTMLConstructionSite::insertScriptElement):
(WebCore::HTMLConstructionSite::insertForeignElement):
(WebCore::HTMLConstructionSite::insertTextNode):
(WebCore::HTMLConstructionSite::reconstructTheActiveFormattingElements):
(WebCore::HTMLConstructionSite::fosterParent):
* html/parser/HTMLConstructionSite.h:

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

8 years agoFix assert when foster parenting self-closing elements
abarth@webkit.org [Wed, 4 Jan 2012 07:03:47 +0000 (07:03 +0000)]
Fix assert when foster parenting self-closing elements
https://bugs.webkit.org/show_bug.cgi?id=75527

Unreviewed.

Source/WebCore:

* html/parser/HTMLConstructionSite.cpp:
(WebCore::HTMLConstructionSite::fosterParent):
    - We can't execute this task immediately because the code for
      self-closing elements wants to set the self-closing flag.
      Instead, we queue the task.

LayoutTests:

Add a test case that used to case an assert.

* html5lib/resources/webkit02.dat:

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

8 years ago[BlackBerry] Need to support credentials in the URL
commit-queue@webkit.org [Wed, 4 Jan 2012 06:43:32 +0000 (06:43 +0000)]
[BlackBerry] Need to support credentials in the URL
https://bugs.webkit.org/show_bug.cgi?id=75341

Patch by Charles Wei <charles.wei@torchmobile.com.cn> on 2012-01-03
Reviewed by George Staikos.

No new tests required.

* platform/network/blackberry/NetworkJob.cpp:
(WebCore::NetworkJob::sendRequestWithCredentials):

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

8 years agoReplace clearLocalStorage.js with localStorage.clear() now that it's implemented
jochen@chromium.org [Wed, 4 Jan 2012 06:24:42 +0000 (06:24 +0000)]
Replace clearLocalStorage.js with localStorage.clear() now that it's implemented
https://bugs.webkit.org/show_bug.cgi?id=75484

Reviewed by Daniel Bates.

* storage/domstorage/localstorage/delete-removal.html:
* storage/domstorage/localstorage/enumerate-storage.html:
* storage/domstorage/localstorage/enumerate-with-length-and-key.html:
* storage/domstorage/localstorage/index-get-and-set.html:
* storage/domstorage/localstorage/missing-arguments.html:
* storage/domstorage/localstorage/private-browsing-affects-storage.html:
* storage/domstorage/localstorage/resources/clearLocalStorage.js: Removed.
* storage/domstorage/localstorage/simple-usage.html:
* storage/domstorage/localstorage/string-conversion.html:
* storage/domstorage/localstorage/window-open.html:

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

8 years agoFix ChangeLog
abarth@webkit.org [Wed, 4 Jan 2012 06:22:18 +0000 (06:22 +0000)]
Fix ChangeLog

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

8 years ago[chromium] Use data decoding swizzle for turbo JPEG grayscale images
noel.gordon@gmail.com [Wed, 4 Jan 2012 06:09:11 +0000 (06:09 +0000)]
[chromium] Use data decoding swizzle for turbo JPEG grayscale images
https://bugs.webkit.org/show_bug.cgi?id=75189

Reviewed by Adam Barth.

No new tests.  Covered by exiting tests, in particular for grayscale
images that were corrupted by earlier versions on libjpeg-turbo:

tables/mozilla/bugs/bug29314.html
tables/mozilla/bugs/bug13169.html
tables/mozilla/bugs/bug10565.html
tables/mozilla/bugs/bug11026.html
fast/repaint/backgroundSizeRepaint.html
fast/repaint/block-layout-inline-children-replaced.html
fast/repaint/clipped-relative.html
fast/repaint/selected-replaced.html
tables/mozilla/bugs/bug12908-1.html

* platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
(WebCore::JPEGImageReader::decode):  Use a data decoding swizzle for
JCS_GRAYSCALE images.

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

8 years agoMinor speed improvement in HTML parser
abarth@webkit.org [Wed, 4 Jan 2012 05:51:02 +0000 (05:51 +0000)]
Minor speed improvement in HTML parser
https://bugs.webkit.org/show_bug.cgi?id=75517

Reviewed by Eric Seidel.

This improves the html-parser.html benchmark by 0.3%.  I don't think
that's actually anything to write home about, but this patch makes me
feel better about my life.

* html/parser/HTMLFormattingElementList.cpp:
(WebCore::HTMLFormattingElementList::tryToEnsureNoahsArkConditionQuickly):

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

8 years agoRemove temporary code that we've inserted to implement the [Supplemental] IDL increme...
haraken@chromium.org [Wed, 4 Jan 2012 05:40:45 +0000 (05:40 +0000)]
Remove temporary code that we've inserted to implement the [Supplemental] IDL incrementally
https://bugs.webkit.org/show_bug.cgi?id=75510

Reviewed by Adam Barth.

Now all build systems support the [Supplemental] IDL. This patch removes all
temporary code that we've inserted to implement the [Supplemental] IDL.

No tests. No change in behavior. Confirm that all builds pass.

* bindings/js/JSDOMWindowCustom.cpp:
* bindings/scripts/CodeGeneratorJS.pm:
(GenerateHeader):
* bindings/scripts/generate-bindings.pl:
* page/DOMWindow.idl: Removed all attributes with a temporal [Supplemented] IDL.

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

8 years agoMake fast/multicol/huge-column-count.html dumpAsText
noel.gordon@gmail.com [Wed, 4 Jan 2012 05:28:46 +0000 (05:28 +0000)]
Make fast/multicol/huge-column-count.html dumpAsText
https://bugs.webkit.org/show_bug.cgi?id=75513

Reviewed by Adam Barth.

Test added in r83470: convert it to dumpAsText, update expectations.

* fast/multicol/huge-column-count-expected.txt: Added.
* fast/multicol/huge-column-count.html:
* platform/chromium/test_expectations.txt:
* platform/efl/fast/multicol/huge-column-count-expected.png: Removed.
* platform/efl/fast/multicol/huge-column-count-expected.txt: Removed.
* platform/gtk/fast/multicol/huge-column-count-expected.txt: Removed.
* platform/mac/fast/multicol/huge-column-count-expected.txt: Removed.
* platform/qt/fast/multicol/huge-column-count-expected.png: Removed.
* platform/qt/fast/multicol/huge-column-count-expected.txt: Removed.

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

8 years agohtml-parser.html takes too long to run
abarth@webkit.org [Wed, 4 Jan 2012 04:39:04 +0000 (04:39 +0000)]
html-parser.html takes too long to run
https://bugs.webkit.org/show_bug.cgi?id=75515

Reviewed by Eric Seidel.

In working on runner.js, we introduced a factor of 10 increase to the
running time of this benchmark.  This patch dials down the number of
iterations to something more user-friendly.

* Parser/html-parser.html:

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

8 years agoGive embedders a chance to handle postMessage calls
commit-queue@webkit.org [Wed, 4 Jan 2012 04:38:42 +0000 (04:38 +0000)]
Give embedders a chance to handle postMessage calls
https://bugs.webkit.org/show_bug.cgi?id=73883

Source/WebCore:

To support cross-process postMessage calls in Chromium (bug 73337), we need to intercept
postMessage calls to proxy windows. Originally we were just going to add a native event
listener on the Chromium side, but that required more changes to WebKit and was a bit of
a hack. See bug 73359 for a discuss about moving to this approach.

Patch by Karl Koscher <supersat@chromium.org> on 2012-01-03
Reviewed by Adam Barth.

Test: platform/chromium/fast/events/intercept-postmessage.html

* loader/FrameLoaderClient.h:
(WebCore::FrameLoaderClient::willCheckAndDispatchPostMessage): new method to allow the
    embedder to intercept postMessage calls
* page/DOMWindow.cpp:
(WebCore::DOMWindow::postMessageTimerFired): add a call to
    FrameLoaderClient::willCheckAndDispatchPostMessage

Source/WebKit/chromium:

Patch by Karl Koscher <supersat@chromium.org> on 2012-01-03
Reviewed by Adam Barth.

* public/WebFrameClient.h:
(WebKit::WebFrameClient::willCheckAndDispatchMessageEvent):
    interface to give the embedder a chance to handle this postMessage call
* src/FrameLoaderClientImpl.cpp:
(WebKit::FrameLoaderClientImpl::willCheckAndDispatchMessageEvent): Call
    willCheckAndDispatchMessageEvent on WebFrameClient
* src/FrameLoaderClientImpl.h:

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

8 years agoscript-in-svg-in-HTML doesn't run
abarth@webkit.org [Wed, 4 Jan 2012 03:54:35 +0000 (03:54 +0000)]
script-in-svg-in-HTML doesn't run
https://bugs.webkit.org/show_bug.cgi?id=75233

Reviewed by Daniel Bates.

Add a test to make sure that we run scripts in SVG.

* fast/parser/script-in-svg-runs-expected.txt: Added.
* fast/parser/script-in-svg-runs.html: Added.

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

8 years ago[chromium] Prevent crashing due to NULL texture updater.
commit-queue@webkit.org [Wed, 4 Jan 2012 03:39:11 +0000 (03:39 +0000)]
[chromium] Prevent crashing due to NULL texture updater.
https://bugs.webkit.org/show_bug.cgi?id=75288

Patch by Eric Penner <epenner@google.com> on 2012-01-03
Reviewed by James Robinson.

* platform/graphics/chromium/ContentLayerChromium.cpp:
* platform/graphics/chromium/ContentLayerChromium.h:
* platform/graphics/chromium/ImageLayerChromium.cpp:
* platform/graphics/chromium/ImageLayerChromium.h:

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

8 years ago[chromium] CCLayerSorter accidentally reverses order of some layers.
commit-queue@webkit.org [Wed, 4 Jan 2012 03:36:46 +0000 (03:36 +0000)]
[chromium] CCLayerSorter accidentally reverses order of some layers.
https://bugs.webkit.org/show_bug.cgi?id=75046

Patch by Shawn Singh <shawnsingh@chromium.org> on 2012-01-03
Reviewed by James Robinson.

Source/WebCore:

Unit test added to CCLayerSorterTest.cpp

Fixes two related bugs that were causing z-ordering problems in
layers when preserves3D triggers the need for layer sorting.

The first problem was that CCLayerSorter accidentally reversed the
order of layers when there was no sorting dependency between them.

The second problem was that zDiff had numerical precision problems
that forced sorting dependencies that were sometimes incorrect,
when the dependencies should not have existed.

* platform/graphics/chromium/cc/CCLayerSorter.cpp:
(WebCore::CCLayerSorter::checkOverlap):
(WebCore::CCLayerSorter::sort):

Source/WebKit/chromium:

* tests/CCLayerSorterTest.cpp:
(WebCore::TEST):

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

8 years ago[BlackBerry] Add support of blob form data to the BlackBerry port
leo.yang@torchmobile.com.cn [Wed, 4 Jan 2012 03:34:18 +0000 (03:34 +0000)]
[BlackBerry] Add support of blob form data to the BlackBerry port
https://bugs.webkit.org/show_bug.cgi?id=75218

Pass FormDataElement::encodedBlob type of form data to the BlackBerry
platform request to support blob data and blob file range.

Reviewed by George Staikos.

The port can't be built now, no new tests so far.

* platform/network/blackberry/ResourceRequestBlackBerry.cpp:
(WebCore::ResourceRequest::initializePlatformRequest):

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

8 years agoTwo null crashes in Treebuilder
abarth@webkit.org [Wed, 4 Jan 2012 02:57:43 +0000 (02:57 +0000)]
Two null crashes in Treebuilder
https://bugs.webkit.org/show_bug.cgi?id=66101

Reviewed by Eric Seidel.

Source/WebCore:

The underly issue with causing the crash is that we're re-entering the
tree builder.  We've done a bunch of point fixes around tree builder
re-entrancy, but neither the implementation nor the specification are
really designed to handle re-entrancy.

Firefox avoids this problem by putting the parser on its own thread.  I
don't think we're quite ready to do that yet (although we will
eventually, presumably, as computers become ever more parallel).  The
approach in this patch is to queue up the DOM mutations and actually
perform them on a shallower stack.  That's essentially the approach
we've used for executing <scripts>.

This patch queues up DOM modifications and executes them from a clean
call stack, stopping us from re-entering the tree builder.  We might
need to experiment with exactly where to kick off the queue, but this
location seems reasonable and fixes the crash.

Test: fast/parser/re-enter-and-crash.html

* html/parser/HTMLConstructionSite.cpp:
(WebCore::executeTask):
    - Add a helper function for actually executing a queue DOM
      mutation.
(WebCore::HTMLConstructionSite::attach):
    - Instead of actually attaching the element to the DOM, this
      function now queues the element for attachment.  In a follow-up
      patch, I plan to change this function to return void (and I'll
      probably rename it to something that makes it clear that it only
      queues the attachment).
(WebCore::HTMLConstructionSite::executeQueuedTasks):
(WebCore::HTMLConstructionSite::insertDoctype):
    - Setting the compatmode from the Doctype requires the doctype to
      actually be in the DOM, so we need to execute our queued tasks
      synchronously.  We can likely improve this function by passing
      the Doctype element explicitly in a follow-up patch.
(WebCore::HTMLConstructionSite::insertSelfClosingHTMLElement):
(WebCore::HTMLConstructionSite::insertTextNode):
(WebCore::HTMLConstructionSite::findFosterSite):
(WebCore::HTMLConstructionSite::fosterParent):
* html/parser/HTMLConstructionSite.h:
(WebCore::HTMLConstructionSiteTask::HTMLConstructionSiteTask):
    - Add a task object that holds on to the relevant elements.  We
      define some vector traits for this object to match the traits on
      RefPtr (which make Vector operations faster by explaining that
      this type is moveable without having to churn reference counts).
* html/parser/HTMLElementStack.cpp:
(WebCore::HTMLElementStack::pushCommon):
    - We delay the "begin parsing" call until we actually attach the
      element to the DOM.  That splits the responsibility for calling
      begin/finished, which is less than ideal, but I didn't see
      another solution.
* html/parser/HTMLTreeBuilder.cpp:
(WebCore::HTMLTreeBuilder::constructTreeFromAtomicToken):
    - Kick off the queued mutations.

LayoutTests:

Test that we no longer crash on this test case.

* fast/parser/re-enter-and-crash-expected.txt: Added.
* fast/parser/re-enter-and-crash.html: Added.

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

8 years agoview-source doesn't colorize </script> correctly
abarth@webkit.org [Wed, 4 Jan 2012 02:41:57 +0000 (02:41 +0000)]
view-source doesn't colorize </script> correctly
https://bugs.webkit.org/show_bug.cgi?id=62971

Reviewed by Eric Seidel.

Source/WebCore:

The reason these tags weren't colorized correctly was because the
characters for the end tags where consumed by the tokenizer at the same
time as it consumed the text of the script tag.  These characters are
buffered internally by the tokenizer because the tokenizer is searching
for "an appropriate end tag", which is "</script>" in this case.

I tried a number of different approaches to fixing this bug.  The
approach in this patch adds an accessor to the tokenizer to read out
the buffered characters.  This approach makes it easier for the
HTMLSourceTracker to get exactly the right value for these buffered
characters without having to do a complicated simulation of the
buffering itself.

Tests: fast/frames/viewsource-plain-text-tags.html:

* html/parser/HTMLViewSourceParser.cpp:
(WebCore::HTMLViewSourceParser::pumpTokenizer):
* html/parser/HTMLDocumentParser.cpp:
(WebCore::HTMLDocumentParser::pumpTokenizer):
  - Give the HTMLSourceTracker a pointer to the tokenizer so it can ask
    for the buffered characters.
* html/parser/HTMLSourceTracker.cpp:
(WebCore::HTMLSourceTracker::start):
  - The idea here is to treat characters buffered internally by the
    tokenizer the same way we treat characters that were contained in a
    previous segment of source.  We copy them into our accumulation
    buffer and adjust the token base offset to account for the extra
    characters.
(WebCore::HTMLSourceTracker::end):
  - Don't consier the character buffered by the tokenizer to be part of
    the token we've just finished.
(WebCore::HTMLSourceTracker::sourceForToken):
  - Remove the assumption that all of the m_previousSource is contained
    in the source for the current token.  Because we now understand
    that the tokenizer can buffer some characters internally, we might
    not exhaust the m_previousSource.
* html/parser/HTMLSourceTracker.h:
  - Rename m_sourceFromPreviousSegments to m_previousSource and changed
    to a SegementedString to avoid extra mallocs we keep appending tiny
    segments.
  - Rename m_source to m_currentSource to contrast nicely with
    m_previousSource.
* html/parser/HTMLTokenizer.cpp:
(WebCore::HTMLTokenizer::flushBufferedEndTag):
(WebCore::HTMLTokenizer::nextToken):
  - Previously, we cleared the temporary buffer lazily when we needed
    to add new characters to it.  Now we clear it eagerly so that it's
    length tells us whether we're currently using it to store
    characters.
  - Previously, we weren't storing the character that we used to
    terminate the appropriate end tag (e.g., the > in </script>)
    because we didn't need to "unbuffer" that character into the
    HTMLToken::appendToCharacter.  Now, we do store that character in
    the temporary buffer so that the HTMLSourceTracker can see that
    character.
(WebCore::HTMLTokenizer::bufferedCharacters):
* html/parser/HTMLTokenizer.h:
(WebCore::HTMLTokenizer::numberOfBufferedCharacters):
  - Add accessor methods to copy out the buffered characters.
  - Also, unrelated to the rest of this patch, I made the constructor
    for HTMLTokenizer explicit because it takes only a single
    paramater, per the style guide.
* platform/text/SegmentedString.cpp:
(WebCore::SegmentedString::clear):
  - SegmentedString::clear wasn't clearing all of its state.  I don't
    think this issue was actually observable, but I noticed it when
    working on this patch, so I fixed it.

LayoutTests:

* fast/frames/viewsource-plain-text-tags.html:

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

8 years agoUnreviewed: fast/filesystem/workers/file-writer-events.html crash suppressed on Linux
dslomov@google.com [Wed, 4 Jan 2012 02:28:37 +0000 (02:28 +0000)]
Unreviewed: fast/filesystem/workers/file-writer-events.html crash suppressed on Linux
due to BUGCR108798.

* platform/chromium/test_expectations.txt:

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

8 years agoExclude Mac's PlatformEventFactory from iOS
commit-queue@webkit.org [Wed, 4 Jan 2012 02:26:11 +0000 (02:26 +0000)]
Exclude Mac's PlatformEventFactory from iOS
https://bugs.webkit.org/show_bug.cgi?id=75493

Patch by Benjamin Poulain <bpoulain@apple.com> on 2012-01-03
Reviewed by Sam Weinig.

Move PlatformEventFactory.(h|cpp) to PlatformEventFactoryMac(h|cpp) and exclude the file
from iOS build.

* Configurations/WebCore.xcconfig: Also exclude EventHandlerMac for consistency.
* WebCore.xcodeproj/project.pbxproj:
* page/mac/EventHandlerMac.mm:
* platform/mac/PlatformEventFactoryMac.h: Renamed from Source/WebCore/platform/mac/PlatformEventFactory.h.
* platform/mac/PlatformEventFactoryMac.mm: Renamed from Source/WebCore/platform/mac/PlatformEventFactory.mm.
(WebCore::globalPoint):
(WebCore::globalPointForEvent):
(WebCore::pointForEvent):
(WebCore::mouseButtonForEvent):
(WebCore::mouseEventTypeForEvent):
(WebCore::clickCountForEvent):
(WebCore::momentumPhaseForEvent):
(WebCore::phaseForEvent):
(WebCore::gestureEventTypeForEvent):
(WebCore::textFromEvent):
(WebCore::unmodifiedTextFromEvent):
(WebCore::keyIdentifierForKeyEvent):
(WebCore::isKeypadEvent):
(WebCore::windowsKeyCodeForKeyEvent):
(WebCore::isKeyUpEvent):
(WebCore::modifiersForEvent):
(WebCore::PlatformMouseEventBuilder::PlatformMouseEventBuilder):
(WebCore::PlatformEventFactory::createPlatformMouseEvent):
(WebCore::PlatformWheelEventBuilder::PlatformWheelEventBuilder):
(WebCore::PlatformEventFactory::createPlatformWheelEvent):
(WebCore::PlatformKeyboardEventBuilder::PlatformKeyboardEventBuilder):
(WebCore::PlatformEventFactory::createPlatformKeyboardEvent):
(WebCore::PlatformGestureEventBuilder::PlatformGestureEventBuilder):
(WebCore::PlatformEventFactory::createPlatformGestureEvent):

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

8 years ago[chromium] LocalFileSystemChromium needs some thread safety fixes.
levin@chromium.org [Wed, 4 Jan 2012 02:25:56 +0000 (02:25 +0000)]
[chromium] LocalFileSystemChromium needs some thread safety fixes.
https://bugs.webkit.org/show_bug.cgi?id=75494

Reviewed by Dmitry Titov.

This is essentially the same fix as r102894 except in slightly different code.

The important part of this fix is the removal of AllowCrossThreadAccess so
that ref counting happens appropriately.

Minor clean up throughout: Removed unnecessary WTF prefix in many
of these places and unnecessary String().

* src/LocalFileSystemChromium.cpp: See r102894 since this
is basically the same thing.

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

8 years agoUnreviewed: filed CR109077 and updated expectations for http/tests/inspector/appcache...
dslomov@google.com [Wed, 4 Jan 2012 01:45:00 +0000 (01:45 +0000)]
Unreviewed: filed CR109077 and updated expectations for http/tests/inspector/appcache/appcache-swap.html.

* platform/chromium/test_expectations.txt:

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

8 years agoOptimize AudioBufferSourceNode process by avoiding interpolation when pitchRate==1
commit-queue@webkit.org [Wed, 4 Jan 2012 01:28:26 +0000 (01:28 +0000)]
Optimize AudioBufferSourceNode process by avoiding interpolation when pitchRate==1
https://bugs.webkit.org/show_bug.cgi?id=74592

Patch by Wei James <james.wei@intel.com> on 2012-01-03
Reviewed by Kenneth Russell.

Covered by existing webaudio layout tests, especially webaudio/audiobuffersource-playbackrate.html

* webaudio/AudioBufferSourceNode.cpp:
(WebCore::AudioBufferSourceNode::renderSilenceAndFinishIfNotLooping):
(WebCore::AudioBufferSourceNode::renderFromBuffer):
* webaudio/AudioBufferSourceNode.h:

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

8 years ago<http://webkit.org/b/75504> Web Inspector: Access to Node Highlighting info without...
joepeck@webkit.org [Wed, 4 Jan 2012 01:18:10 +0000 (01:18 +0000)]
<webkit.org/b/75504> Web Inspector: Access to Node Highlighting info without drawing

Provide a "getHighlight" method alongside "drawHighlight" that
gets most of the important node highlighting information. This
can be used by a port to do its own node highlighting or provide
extra content without interfering with the highlight rects.

Reviewed by Timothy Hatcher.

* WebCore.xcodeproj/project.pbxproj:
Privately expose the Highlight struct in DOMNodeHighlighter.h.

* inspector/DOMNodeHighlighter.cpp:
(WebCore::DOMNodeHighlighter::drawHighlight):
(WebCore::DOMNodeHighlighter::getHighlight):
* inspector/DOMNodeHighlighter.h:
Reuse the existing draw code to instead populate
the Highlight struct with the information it is
about to draw, and only draw if there is a context.

* inspector/InspectorController.cpp:
(WebCore::InspectorController::getHighlight):
* inspector/InspectorController.h:
* inspector/InspectorDOMAgent.cpp:
(WebCore::InspectorDOMAgent::getHighlight):
* inspector/InspectorDOMAgent.h:
Get highlight information by going through getHighlight
in InspectorController. This is alongside drawHighlight.

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

8 years agoClear localStorage before making assumption about its contents
jochen@chromium.org [Wed, 4 Jan 2012 01:10:54 +0000 (01:10 +0000)]
Clear localStorage before making assumption about its contents
https://bugs.webkit.org/show_bug.cgi?id=75469

Reviewed by Daniel Bates.

* platform/chromium/permissionclient/storage-permission.html:

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

8 years ago[chromium] Push drawsContent and contentsVisible into accelerated compositor
commit-queue@webkit.org [Wed, 4 Jan 2012 00:53:45 +0000 (00:53 +0000)]
[chromium] Push drawsContent and contentsVisible into accelerated compositor
https://bugs.webkit.org/show_bug.cgi?id=71209

Patch by Shawn Singh <shawnsingh@chromium.org> on 2012-01-03
Reviewed by James Robinson.

Source/WebCore:

Tests: compositing/visibility/visibility-simple-canvas2d-layer.html
       compositing/visibility/visibility-simple-video-layer.html
       compositing/visibility/visibility-simple-webgl-layer.html

Rebaselined compositing/visibility/visibility-image-layers.html

The CSS visibility property was not being properly obeyed by many
specialized layer types in the accelerated compositor. The root of
the problem was that drawsContent and contentsVisible flags were
not properly propagated into the compositor. This patch removes
the drawsContent() callback, and instead makes sure that
drawsContent and contentsVisible are "pushed" through the
accelerated compositor.

* platform/graphics/chromium/Canvas2DLayerChromium.cpp:
(WebCore::Canvas2DLayerChromium::drawsContent):
* platform/graphics/chromium/ContentLayerChromium.cpp:
* platform/graphics/chromium/ContentLayerChromium.h:
* platform/graphics/chromium/GraphicsLayerChromium.cpp:
(WebCore::GraphicsLayerChromium::setDrawsContent):
(WebCore::GraphicsLayerChromium::setContentsVisible):
(WebCore::GraphicsLayerChromium::setContentsToImage):
(WebCore::GraphicsLayerChromium::setContentsToCanvas):
(WebCore::GraphicsLayerChromium::setContentsToMedia):
(WebCore::GraphicsLayerChromium::updateLayerIsDrawable):
(WebCore::GraphicsLayerChromium::setupContentsLayer):
* platform/graphics/chromium/GraphicsLayerChromium.h:
* platform/graphics/chromium/LayerChromium.cpp:
(WebCore::LayerChromium::LayerChromium):
(WebCore::LayerChromium::setIsDrawable):
* platform/graphics/chromium/LayerChromium.h:
(WebCore::LayerChromium::drawsContent):
* platform/graphics/chromium/PluginLayerChromium.h:
* platform/graphics/chromium/TiledLayerChromium.cpp:
(WebCore::TiledLayerChromium::drawsContent):
* platform/graphics/chromium/VideoLayerChromium.h:
* platform/graphics/chromium/WebGLLayerChromium.cpp:
(WebCore::WebGLLayerChromium::drawsContent):
* platform/graphics/chromium/cc/CCLayerImpl.cpp:
(WebCore::CCLayerImpl::dumpLayerProperties):

Source/WebKit/chromium:

* src/WebContentLayerImpl.cpp:
(WebKit::WebContentLayerImpl::WebContentLayerImpl):
(WebKit::WebContentLayerImpl::setDrawsContent):
* src/WebContentLayerImpl.h:
* src/WebExternalTextureLayerImpl.cpp:
(WebKit::WebExternalTextureLayerImpl::drawsContent):
* src/WebLayerImpl.cpp:
(WebKit::WebLayerImpl::WebLayerImpl):
* src/WebLayerImpl.h:
* tests/CCLayerTreeHostTest.cpp:
(WTF::ContentLayerChromiumWithUpdateTracking::ContentLayerChromiumWithUpdateTracking):
* tests/Canvas2DLayerChromiumTest.cpp:
* tests/LayerChromiumTest.cpp:
* tests/TiledLayerChromiumTest.cpp:
(WTF::FakeTiledLayerChromium::FakeTiledLayerChromium):

LayoutTests:

* compositing/visibility/visibility-image-layers-expected.png:
* compositing/visibility/visibility-image-layers-expected.txt: Renamed from LayoutTests/platform/mac/compositing/visibility/visibility-image-layers-expected.txt.
* compositing/visibility/visibility-simple-canvas2d-layer-expected.png: Added.
* compositing/visibility/visibility-simple-canvas2d-layer-expected.txt: Added.
* compositing/visibility/visibility-simple-canvas2d-layer.html: Added.
* compositing/visibility/visibility-simple-video-layer-expected.png: Added.
* compositing/visibility/visibility-simple-video-layer-expected.txt: Added.
* compositing/visibility/visibility-simple-video-layer.html: Added.
* compositing/visibility/visibility-simple-webgl-layer-expected.png: Added.
* compositing/visibility/visibility-simple-webgl-layer-expected.txt: Added.
* compositing/visibility/visibility-simple-webgl-layer.html: Added.
* platform/chromium-mac-snowleopard/compositing/visibility/visibility-image-layers-expected.png: Removed.
* platform/chromium-win/compositing/visibility/visibility-image-layers-expected.png: Removed.
* platform/chromium/test_expectations.txt:

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

8 years ago[chromium] Make sure root damage rect gets passed to renderer
commit-queue@webkit.org [Wed, 4 Jan 2012 00:34:05 +0000 (00:34 +0000)]
[chromium] Make sure root damage rect gets passed to renderer
https://bugs.webkit.org/show_bug.cgi?id=74893

Patch by Shawn Singh <shawnsingh@chromium.org> on 2012-01-03
Reviewed by James Robinson.

Source/WebCore:

Unit test added to CCLayerTreeHostImplTest.cpp

* platform/graphics/chromium/LayerRendererChromium.cpp:
(WebCore::LayerRendererChromium::swapBuffers):
* platform/graphics/chromium/LayerRendererChromium.h:
* platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
(WebCore::CCLayerTreeHostImpl::calculateRenderPasses):
(WebCore::CCLayerTreeHostImpl::swapBuffers):
* platform/graphics/chromium/cc/CCLayerTreeHostImpl.h:

Source/WebKit/chromium:

* tests/CCLayerTreeHostImplTest.cpp:
(WebKit::TEST_F):
(WebKit::PartialSwapTrackerContext::initialize):
(WebKit::PartialSwapTrackerContext::postSubBufferCHROMIUM):
(WebKit::PartialSwapTrackerContext::getString):
(WebKit::PartialSwapTrackerContext::partialSwapRect):

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

8 years ago[chromium] Unreviewed, svg/carto.net/selectionlist.svg appears to
tony@chromium.org [Wed, 4 Jan 2012 00:29:02 +0000 (00:29 +0000)]
[chromium] Unreviewed, svg/carto.net/selectionlist.svg appears to
just need a rebaseline on Linux.

* platform/chromium-linux/svg/carto.net/selectionlist-expected.png:
* platform/chromium/test_expectations.txt:

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

8 years agoUnreviewed: files bug CR109068 for appcache/interrupted-update.html crash.
dslomov@google.com [Wed, 4 Jan 2012 00:25:44 +0000 (00:25 +0000)]
Unreviewed: files bug CR109068 for appcache/interrupted-update.html crash.

* platform/chromium/test_expectations.txt:

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

8 years agoIncrement the code-review.js version number to bust browser
ojan@chromium.org [Wed, 4 Jan 2012 00:23:55 +0000 (00:23 +0000)]
Increment the code-review.js version number to bust browser
caches.

* PrettyPatch/PrettyPatch.rb:

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

8 years agoWhen showing results.html pass a correct URL to webbrowser.open
jochen@chromium.org [Wed, 4 Jan 2012 00:18:27 +0000 (00:18 +0000)]
When showing results.html pass a correct URL to webbrowser.open
https://bugs.webkit.org/show_bug.cgi?id=75438

Reviewed by Adam Barth.

* Scripts/webkitpy/common/system/filesystem.py:
(file_path_as_url):
* Scripts/webkitpy/common/system/filesystem_mock.py:
(file_path_as_url):
* Scripts/webkitpy/common/system/filesystem_unittest.py:
(test_file_path_as_url):
* Scripts/webkitpy/layout_tests/port/base.py:
(show_results_html_file):
* Scripts/webkitpy/layout_tests/port/win_unittest.py:
(test_show_results_html_file):
* Scripts/webkitpy/layout_tests/run_webkit_tests_integrationtest.py:
(test_results_directory_relative):

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

8 years agoshrink the header on the flakiness dashboard
ojan@chromium.org [Wed, 4 Jan 2012 00:16:42 +0000 (00:16 +0000)]
shrink the header on the flakiness dashboard
https://bugs.webkit.org/show_bug.cgi?id=65153

Reviewed by Adam Roben.

Move some of the "show" links to be to the right of the header
instead of below the header when they content they're showing
is hidden. That way we don't waste vertical space on them.

No new tests. This code is covered by existing tests.

* TestResultServer/static-dashboards/flakiness_dashboard.html:

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

8 years agoREGRESSION (r98196-98236): Incorrect layout of iGoogle with RSS feeds
fpizlo@apple.com [Wed, 4 Jan 2012 00:06:42 +0000 (00:06 +0000)]
REGRESSION (r98196-98236): Incorrect layout of iGoogle with RSS feeds
https://bugs.webkit.org/show_bug.cgi?id=75303
<rdar://problem/10633533>

Source/JavaScriptCore:

Reviewed by Gavin Barraclough.

The this argument was not being kept alive in some cases during inlining and intrinsic
optimizations.

* dfg/DFGByteCodeParser.cpp:
(JSC::DFG::ByteCodeParser::handleCall):
(JSC::DFG::ByteCodeParser::emitFunctionCheck):
(JSC::DFG::ByteCodeParser::handleInlining):

LayoutTests:

Reviewed by Gavin Barraclough.

* fast/js/dfg-inline-unused-this-expected.txt: Added.
* fast/js/dfg-inline-unused-this-method-check-expected.txt: Added.
* fast/js/dfg-inline-unused-this-method-check.html: Added.
* fast/js/dfg-inline-unused-this.html: Added.
* fast/js/dfg-intrinsic-unused-this-expected.txt: Added.
* fast/js/dfg-intrinsic-unused-this-method-check-expected.txt: Added.
* fast/js/dfg-intrinsic-unused-this-method-check.html: Added.
* fast/js/dfg-intrinsic-unused-this.html: Added.
* fast/js/script-tests/dfg-inline-unused-this-method-check.js: Added.
(foo):
(bar):
(baz):
* fast/js/script-tests/dfg-inline-unused-this.js: Added.
(foo):
(bar):
(baz):
* fast/js/script-tests/dfg-intrinsic-unused-this-method-check.js: Added.
(bar):
(baz):
* fast/js/script-tests/dfg-intrinsic-unused-this.js: Added.
(bar):
(baz):

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

8 years ago[chromium] Fix compilation with clang and the shared build
tony@chromium.org [Tue, 3 Jan 2012 23:59:01 +0000 (23:59 +0000)]
[chromium] Fix compilation with clang and the shared build
https://bugs.webkit.org/show_bug.cgi?id=75492

Reviewed by Ojan Vafai.

* WebKit.gyp: Turn off -Wglobal-constructors because test files using
GTEST have global constructors.
* tests/InnerGestureRecognizerTest.cpp:
(TEST_F): Move global into test function.

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

8 years agov8 binding: npCreateV8ScriptObject() should not returned an existing V8NPObject if...
commit-queue@webkit.org [Tue, 3 Jan 2012 23:40:09 +0000 (23:40 +0000)]
v8 binding: npCreateV8ScriptObject() should not returned an existing V8NPObject if the rootObject doesn't match
https://bugs.webkit.org/show_bug.cgi?id=74515

Patch by Yuzhu Shen <yzshen@chromium.org> on 2012-01-03
Reviewed by Nate Chapin.

Source/WebCore:

Test: http/tests/plugins/create-v8-script-objects.html

* bindings/v8/NPV8Object.cpp:
(WebCore::freeV8NPObject):
(WebCore::npCreateV8ScriptObject):

LayoutTests:

* http/tests/plugins/create-v8-script-objects-expected.txt: Added.
* http/tests/plugins/create-v8-script-objects.html: Added.
* http/tests/plugins/resources/create-v8-script-objects-iframe.html: Added.

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

8 years ago[chromium] Revert accidentally removed chrome client compositing check
enne@google.com [Tue, 3 Jan 2012 23:39:13 +0000 (23:39 +0000)]
[chromium] Revert accidentally removed chrome client compositing check
https://bugs.webkit.org/show_bug.cgi?id=75500

Reviewed by James Robinson.

This check was overzealously removed in r103968 as a part of
re-enabling compositing for RTL pages. Add it back.

* src/ChromeClientImpl.cpp:
(WebKit::ChromeClientImpl::allowedCompositingTriggers):

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

8 years agoWindows build fix.
barraclough@apple.com [Tue, 3 Jan 2012 23:31:25 +0000 (23:31 +0000)]
Windows build fix.

* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def:

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

8 years agoLeak of WebNotificationClient when page is destroyed
jonlee@apple.com [Tue, 3 Jan 2012 23:27:26 +0000 (23:27 +0000)]
Leak of WebNotificationClient when page is destroyed
https://bugs.webkit.org/show_bug.cgi?id=74980
<rdar://problem/10611231>

Reviewed by Mark Rowe.

Source/WebCore:

* notifications/NotificationController.cpp:
(WebCore::NotificationController::~NotificationController): Notify the client
that the controller has been destroyed.
* notifications/NotificationPresenter.h: Add notificationControllerDestroyed()
callback to the client interface.

Source/WebKit:

* blackberry/WebCoreSupport/NotificationPresenterImpl.cpp:
(WebKit::NotificationPresenterImpl::notificationControllerDestroyed): Empty implementation, because ownership
model differs.
* blackberry/WebCoreSupport/NotificationPresenterImpl.h:

Source/WebKit/chromium:

* src/NotificationPresenterImpl.cpp:
(WebKit::NotificationPresenterImpl::notificationControllerDestroyed): Empty implementation because ownership
model differs.
* src/NotificationPresenterImpl.h:

Source/WebKit/efl:

* WebCoreSupport/NotificationPresenterClientEfl.cpp:
(WebCore::NotificationPresenterClientEfl::notificationControllerDestroyed): Stub implementation, because
the notification presenter is unimplemented.
* WebCoreSupport/NotificationPresenterClientEfl.h:

Source/WebKit/mac:

* WebCoreSupport/WebNotificationClient.h:
* WebCoreSupport/WebNotificationClient.mm:
(WebNotificationClient::notificationControllerDestroyed): Remove the instance.

Source/WebKit/qt:

* WebCoreSupport/NotificationPresenterClientQt.cpp:
(WebCore::NotificationPresenterClientQt::notificationControllerDestroyed): Empty implementation, because
ownership model differs.
* WebCoreSupport/NotificationPresenterClientQt.h:

Source/WebKit2:

* WebProcess/WebCoreSupport/WebNotificationClient.cpp:
(WebKit::WebNotificationClient::notificationControllerDestroyed): Delete the instance.
* WebProcess/WebCoreSupport/WebNotificationClient.h:

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

8 years agogetComputedStyle for list-style is not implemented.
alexis.menard@openbossa.org [Tue, 3 Jan 2012 23:20:43 +0000 (23:20 +0000)]
getComputedStyle for list-style is not implemented.
https://bugs.webkit.org/show_bug.cgi?id=75443

Reviewed by Tony Chang.

Source/WebCore:

Implement getComputedStyle for list-style.

Test: fast/css/getComputedStyle/getComputedStyle-list-style-shorthand.html

* css/CSSComputedStyleDeclaration.cpp:
(WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):

LayoutTests:

Add new tests to make sure we return the correct values.

* fast/css/getComputedStyle/getComputedStyle-list-style-shorthand-expected.txt: Added.
* fast/css/getComputedStyle/getComputedStyle-list-style-shorthand.html: Added.

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

8 years ago[chromium] Unreviewed, rebaseline of svg/hixie/text/003.html. It
tony@chromium.org [Tue, 3 Jan 2012 23:13:52 +0000 (23:13 +0000)]
[chromium] Unreviewed, rebaseline of svg/hixie/text/003.html.  It
doesn't look flaky on the flakiness dashboard.

* platform/chromium-linux/svg/hixie/text/003-expected.png: Added.
* platform/chromium-mac-leopard/svg/hixie/text/003-expected.png: Added.
* platform/chromium-mac-snowleopard/svg/hixie/text/003-expected.png: Added.
* platform/chromium-mac/svg/hixie/text/003-expected.png: Removed.
* platform/chromium-win/svg/hixie/text/003-expected.png: Added.
* platform/chromium-win/svg/hixie/text/003-expected.txt: Added.
* platform/chromium/test_expectations.txt:

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

8 years ago[chromium] Remove unneeded content vs. layer space distinction in tiled layers
enne@google.com [Tue, 3 Jan 2012 23:07:32 +0000 (23:07 +0000)]
[chromium] Remove unneeded content vs. layer space distinction in tiled layers
https://bugs.webkit.org/show_bug.cgi?id=75498

Reviewed by James Robinson.

Long ago, before scrollbars became their own layers, tiled layers had
a distinction between content space (what's mostly called layer space
elsewhere) and layer space (the transformed content space). It seemed
like this transform could get reused for supporting RTL pages, but as
that's not the case, it should be eradicated.

Tiled layers now deal with everything in "layer space", which is a 2d
rectangle starting at (0, 0) in the top left of the layer and
extending to contentBounds() in the bottom right.

As no code actually set the tiler position, this change should be a
no-op.

Test: LayoutTests/compositing/

* platform/graphics/chromium/TiledLayerChromium.cpp:
(WebCore::UpdatableTile::isDirty):
(WebCore::UpdatableTile::clearDirty):
(WebCore::TiledLayerChromium::updateCompositorResources):
(WebCore::TiledLayerChromium::createTile):
(WebCore::TiledLayerChromium::invalidateRect):
(WebCore::TiledLayerChromium::protectTileTextures):
(WebCore::TiledLayerChromium::prepareToUpdateTiles):
(WebCore::TiledLayerChromium::prepareToUpdate):
(WebCore::TiledLayerChromium::prepareToUpdateIdle):
(WebCore::TiledLayerChromium::needsIdlePaint):
(WebCore::TiledLayerChromium::idlePaintRect):
* platform/graphics/chromium/TiledLayerChromium.h:
* platform/graphics/chromium/cc/CCLayerTilingData.cpp:
(WebCore::CCLayerTilingData::operator=):
(WebCore::CCLayerTilingData::layerRectToTileIndices):
(WebCore::CCLayerTilingData::tileRect):
* platform/graphics/chromium/cc/CCLayerTilingData.h:
* platform/graphics/chromium/cc/CCTiledLayerImpl.cpp:
(WebCore::CCTiledLayerImpl::appendQuads):

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

8 years ago[chromium] Remove WebLayerClient
jamesr@google.com [Tue, 3 Jan 2012 22:33:16 +0000 (22:33 +0000)]
[chromium] Remove WebLayerClient
https://bugs.webkit.org/show_bug.cgi?id=75481

Reviewed by Darin Fisher.

* WebKit.gyp:
* public/platform/WebContentLayer.h:
* public/platform/WebExternalTextureLayer.h:
* public/platform/WebLayer.h:
* public/platform/WebLayerClient.h: Removed.
* src/WebContentLayer.cpp:
* src/WebExternalTextureLayer.cpp:
* src/WebLayer.cpp:

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

8 years agoWindows build fix.
barraclough@apple.com [Tue, 3 Jan 2012 22:33:02 +0000 (22:33 +0000)]
Windows build fix.

* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def:

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

8 years ago[chromium] Support RTL pages and elements in the compositor
enne@google.com [Tue, 3 Jan 2012 22:13:15 +0000 (22:13 +0000)]
[chromium] Support RTL pages and elements in the compositor
https://bugs.webkit.org/show_bug.cgi?id=56591

Reviewed by James Robinson.

Source/WebKit/chromium:

As the noncomposited content host layer is created and managed by the
Chromium compositor, adjust its transform appropriately in the layer
tree and at paint time to handle the offset required due to the
initial containing block of RTL pages.

* src/ChromeClientImpl.cpp:
(WebKit::ChromeClientImpl::allowedCompositingTriggers):
* src/NonCompositedContentHost.cpp:
(WebKit::NonCompositedContentHost::setViewport):
(WebKit::NonCompositedContentHost::paintContents):
* src/NonCompositedContentHost.h:
* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::updateLayerTreeViewport):

LayoutTests:

Re-enable RTL tests for Chromium.

* platform/chromium/test_expectations.txt:

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

8 years agohttps://bugs.webkit.org/show_bug.cgi?id=75140
barraclough@apple.com [Tue, 3 Jan 2012 21:45:56 +0000 (21:45 +0000)]
https://bugs.webkit.org/show_bug.cgi?id=75140

Reviewed by Sam Weinig.

Rewrite JSArray::putSlowCase to be much cleaner & simpler.

This rewrite only significantly changes behaviour for sparse array, specifically
in how sparse arrays are reified back to vector form. This does not affect arrays
with less than 10000 entries (since these always use a vector). The more common
cases of sparse array behavior (though large sparse arrays are rare) - arrays that
always remain sparse, and arrays that are filled in reverse sequential order -
should be just as fast or faster (since reification is simpler & no longer
requires map lookups) after these changes.

Simplifying this code allows all cases of putByIndex that need to grow the vector
to do so via increaseVectorLength, which means that this method can encapsulate
the policy of determining how the vector should be grown.

No performance impact.

* runtime/JSArray.cpp:
(JSC::isDenseEnoughForVector):
    - any array of length <= MIN_SPARSE_ARRAY_INDEX is dense enough for a vector.
(JSC::JSArray::putByIndex):
    - simplify & comment.
(JSC::JSArray::putByIndexBeyondVectorLength):
    - Re-written to be much clearer & simpler.
(JSC::JSArray::increaseVectorLength):
(JSC::JSArray::increaseVectorPrefixLength):
    - add explicit checks against MAX_STORAGE_VECTOR_LENGTH, so clients do not need do so.
(JSC::JSArray::push):
    - simplify & comment.
* runtime/JSArray.h:
    - removed SparseArrayValueMap::take.

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

8 years agoWindows build fix.
barraclough@apple.com [Tue, 3 Jan 2012 21:37:56 +0000 (21:37 +0000)]
Windows build fix.

* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def:

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

8 years agohttps://bugs.webkit.org/show_bug.cgi?id=75140
barraclough@apple.com [Tue, 3 Jan 2012 21:33:20 +0000 (21:33 +0000)]
https://bugs.webkit.org/show_bug.cgi?id=75140

Reviewed by Sam Weinig.

Simplify JSArray creation - remove ArgsList/JSValue* create methods
(this functionality can be implemented in terms of tryCreateUninitialized).

* JavaScriptCore.exp:
* runtime/ArrayConstructor.cpp:
    - use constructArray/constructEmptyArray instead of calling JSArray::create directly
(JSC::constructArrayWithSizeQuirk):
* runtime/JSArray.cpp:
* runtime/JSArray.h:
    - removed ArgsList/JSValue* create methods
* runtime/JSGlobalObject.h:
(JSC::constructEmptyArray):
(JSC::constructArray):
    - changed to be implemented in terms of JSArray::tryCreateUninitialized

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

8 years agoAdd a tool to analyze change logs
rniwa@webkit.org [Tue, 3 Jan 2012 21:24:49 +0000 (21:24 +0000)]
Add a tool to analyze change logs
https://bugs.webkit.org/show_bug.cgi?id=72243

Reviewed by Eric Seidel.

Add the initial implementation of analyze-changelog command. This version supports parsing multiple changelogs
in a single directory and summarizes the result in json files. It also copies summary.html to the output directory
for visualizing json files.

Usage: webkit-patch analyze-changelog [--changelog-count N] <CHANGELOG_DIR> <OUTPUT_DIR>
where CHANGELOG_DIR is the directory to look for changelogs, OUTPUT_DIR is the directory into which the tool
generates json files, and N is the number of changelogs to parse.

* Scripts/webkitpy/common/config/contributionareas.py: Added names().
* Scripts/webkitpy/common/system/filesystem_mock.py: Added readline and iterator support to ReadableTextFileObject.
* Scripts/webkitpy/tool/commands/__init__.py:
* Scripts/webkitpy/tool/commands/analyzechangelog.py: Added.
* Scripts/webkitpy/tool/commands/analyzechangelog_unittest.py: Added.
* Scripts/webkitpy/tool/commands/data/summary.html: Added.
* Scripts/webkitpy/tool/steps/options.py:

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

8 years agohttps://bugs.webkit.org/show_bug.cgi?id=75429
barraclough@apple.com [Tue, 3 Jan 2012 21:05:46 +0000 (21:05 +0000)]
https://bugs.webkit.org/show_bug.cgi?id=75429
ThrowTypeError should be a singleton object

Reviewed by Sam Weinig.

Source/JavaScriptCore:

Per section 13.2.3 of the spec.
We could change setAccessorDescriptor to be able to share the global
GetterSetter object, rather than storing the accessor functions and
creating a new GetterSetter in defineProperty - but this won't be a
small change to PropertyDescriptors (and would probably mean making
GetterSetter objects immutable?) - so I'll leave that for another
patch.

* JavaScriptCore.exp:
    - don't export setAccessorDescriptor
* runtime/Arguments.cpp:
(JSC::Arguments::createStrictModeCallerIfNecessary):
(JSC::Arguments::createStrictModeCalleeIfNecessary):
    - call throwTypeErrorGetterSetter instead of createTypeErrorFunction
* runtime/Error.cpp:
* runtime/Error.h:
    - remove createTypeErrorFunction
* runtime/JSFunction.cpp:
* runtime/JSFunction.h:
    - remove unused createDescriptorForThrowingProperty
* runtime/JSGlobalObject.cpp:
(JSC::JSGlobalObject::reset):
(JSC::JSGlobalObject::visitChildren):
    - removed m_strictModeTypeErrorFunctionStructure.
* runtime/JSGlobalObject.h:
(JSC::JSGlobalObject::internalFunctionStructure):
    - removed m_strictModeTypeErrorFunctionStructure.
* runtime/PropertyDescriptor.cpp:
(JSC::PropertyDescriptor::setAccessorDescriptor):
    - changed to take a GetterSetter
* runtime/PropertyDescriptor.h:
    - changed to take a GetterSetter

LayoutTests:

Per section 13.2.3 of the spec.

* fast/js/basic-strict-mode-expected.txt:
    - ThrowTypeError is a singleton, so cannot generate
      property-specific error messages.
* fast/js/script-tests/strict-throw-type-error.js: Added.
* fast/js/strict-throw-type-error-expected.txt: Added.
* fast/js/strict-throw-type-error.html: Added.
    - added test case that ThrowTypeError is a singleton

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

8 years ago<http://webkit.org/b/59951> Implement Date and Time Input Value Sanitization
joepeck@webkit.org [Tue, 3 Jan 2012 20:21:44 +0000 (20:21 +0000)]
<webkit.org/b/59951> Implement Date and Time Input Value Sanitization

Source/WebCore:

Sanitize non-parsable incoming strings to the empty string.

Reviewed by Kent Tamura.

Covered by existing tests.

* html/BaseDateAndTimeInputType.h:
* html/BaseDateAndTimeInputType.cpp:
(WebCore::BaseDateAndTimeInputType::sanitizeValue): check if the
incoming string is valid. If not just return the empty string.

LayoutTests:

Update ValidityState typeMismatch tests for date types, since
setting an invalid value now sanitized to the empty string.
So, what used to be an invalid value with a typeMismatch is
now a valid empty string and there is never a typeMismatch.

  - for rangeOverflow / rangeUnderflow tests update the
    test to point out when a value was sanitized.
  - for typeMismatch tests, typeMismatch can no longer
    happen for sanitized values. Change the test to output
    if the value was sanitized or not and ensure that
    we are never in a typeMismatch state. Disabled inputs
    are also sanitized when their value changes.

Reviewed by Kent Tamura.

* fast/forms/date/ValidityState-rangeOverflow-date-expected.txt:
* fast/forms/date/ValidityState-rangeOverflow-date.html:
* fast/forms/date/ValidityState-rangeUnderflow-date-expected.txt:
* fast/forms/date/ValidityState-rangeUnderflow-date.html:
* fast/forms/date/ValidityState-typeMismatch-date-expected.txt:
* fast/forms/date/ValidityState-typeMismatch-date.html:
* fast/forms/datetime/ValidityState-rangeOverflow-datetime-expected.txt:
* fast/forms/datetime/ValidityState-rangeOverflow-datetime.html:
* fast/forms/datetime/ValidityState-rangeUnderflow-datetime-expected.txt:
* fast/forms/datetime/ValidityState-rangeUnderflow-datetime.html:
* fast/forms/datetime/ValidityState-typeMismatch-datetime-expected.txt:
* fast/forms/datetime/ValidityState-typeMismatch-datetime.html:
* fast/forms/datetimelocal/ValidityState-rangeOverflow-datetimelocal-expected.txt:
* fast/forms/datetimelocal/ValidityState-rangeOverflow-datetimelocal.html:
* fast/forms/datetimelocal/ValidityState-rangeUnderflow-datetimelocal-expected.txt:
* fast/forms/datetimelocal/ValidityState-rangeUnderflow-datetimelocal.html:
* fast/forms/datetimelocal/ValidityState-typeMismatch-datetimelocal-expected.txt:
* fast/forms/datetimelocal/ValidityState-typeMismatch-datetimelocal.html:
* fast/forms/month/ValidityState-rangeOverflow-month-expected.txt:
* fast/forms/month/ValidityState-rangeOverflow-month.html:
* fast/forms/month/ValidityState-rangeUnderflow-month-expected.txt:
* fast/forms/month/ValidityState-rangeUnderflow-month.html:
* fast/forms/month/ValidityState-typeMismatch-month-expected.txt:
* fast/forms/month/ValidityState-typeMismatch-month.html:
* fast/forms/time/ValidityState-rangeOverflow-time-expected.txt:
* fast/forms/time/ValidityState-rangeOverflow-time.html:
* fast/forms/time/ValidityState-rangeUnderflow-time-expected.txt:
* fast/forms/time/ValidityState-rangeUnderflow-time.html:
* fast/forms/time/ValidityState-typeMismatch-time-expected.txt:
* fast/forms/time/ValidityState-typeMismatch-time.html:
* fast/forms/week/ValidityState-rangeOverflow-week-expected.txt:
* fast/forms/week/ValidityState-rangeOverflow-week.html:
* fast/forms/week/ValidityState-rangeUnderflow-week-expected.txt:
* fast/forms/week/ValidityState-rangeUnderflow-week.html:
* fast/forms/week/ValidityState-typeMismatch-week-expected.txt:
* fast/forms/week/ValidityState-typeMismatch-week.html:

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

8 years agoRemove unnecessary forward declaration of Function
weinig@apple.com [Tue, 3 Jan 2012 20:19:48 +0000 (20:19 +0000)]
Remove unnecessary forward declaration of Function
https://bugs.webkit.org/show_bug.cgi?id=75485

Reviewed by Dan Bernstein.

* Platform/WorkQueue.h:

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

8 years agoRenderLayer::backgroundClipRect should not check parent()
jchaffraix@webkit.org [Tue, 3 Jan 2012 20:08:14 +0000 (20:08 +0000)]
RenderLayer::backgroundClipRect should not check parent()
https://bugs.webkit.org/show_bug.cgi?id=73731

Reviewed by Simon Fraser.

Clean-up only, no expected change in behavior.

* rendering/RenderLayer.cpp:
(WebCore::backgroundClipRectForPosition): Changed RenderObject::isPositioned() to
a check for AbsolutePosition for consistency but also as this is equivalent due to:
- the previous check for FixedPosition.
- RenderView, which is positioned, will never goes to this code as it has no parent().

(WebCore::RenderLayer::backgroundClipRect): Removed the parent() check. While at
it, also moved the inline initialization of |backgroundClipRect| to its own function
and removed a |view| check as the associated ASSERT seems to never have been reached.

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

8 years ago <rdar://problem/10637779> REGRESSION (r102247): Focus ring is not drawn aroun...
ap@apple.com [Tue, 3 Jan 2012 20:02:51 +0000 (20:02 +0000)]
    <rdar://problem/10637779> REGRESSION (r102247): Focus ring is not drawn around a button

        Rubber-stamped by Dan Bernstein.

        * platform/mac/ThemeMac.mm: (WebCore::updateStates): Flip an incorrect conditional, this code
        should run on Snow Leopard and Lion.

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

8 years agoSource/WebCore: getComputedStyle should return shorthands property with the minimum...
alexis.menard@openbossa.org [Tue, 3 Jan 2012 19:56:48 +0000 (19:56 +0000)]
Source/WebCore: getComputedStyle should return shorthands property with the minimum number of sides possible.
https://bugs.webkit.org/show_bug.cgi?id=75434

Reviewed by Tony Chang.

As stated in http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSS2Properties we should
return shorthands properties with the minimum number of sides possible.

Existing tests have been updated accordingly.

* css/CSSComputedStyleDeclaration.cpp:
(WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
(WebCore::CSSComputedStyleDeclaration::getCSSPropertyValuesForSidesShorthand):
* css/CSSComputedStyleDeclaration.h:

LayoutTests: getComputedStyle should return shorthands properties with the minimum number of sides possible.
https://bugs.webkit.org/show_bug.cgi?id=75434

Reviewed by Tony Chang.

As stated in http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSS2Properties we should
return shorthands properties with the minimum number of sides possible.

* fast/css/getComputedStyle/getComputedStyle-border-color-shorthand-expected.txt:
* fast/css/getComputedStyle/getComputedStyle-border-color-shorthand.html:
* fast/css/getComputedStyle/getComputedStyle-border-style-shorthand-expected.txt:
* fast/css/getComputedStyle/getComputedStyle-border-style-shorthand.html:
* fast/css/getComputedStyle/getComputedStyle-border-width-expected.txt:
* fast/css/getComputedStyle/getComputedStyle-border-width.html:

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

8 years agoMake Port subclasses override the operating_system method rather than setting an...
aroben@apple.com [Tue, 3 Jan 2012 19:53:50 +0000 (19:53 +0000)]
Make Port subclasses override the operating_system method rather than setting an attribute

Without this patch, any use of Port.operating_system() within a port's __init__ method would
return the default value ("mac"). This was confusing the version-checking logic inside
ApplePort.__init__ on Windows.

Fixes <http://webkit.org/b/75479> <rdar://problem/10637385> REGRESSION (r102161): NRWT
crashes on launch on Windows 7 SP1

Reviewed by Eric Seidel.

* Scripts/webkitpy/layout_tests/port/apple.py:
(ApplePort.__init__): Replaced uses of self._operating_system with self.operating_system().

* Scripts/webkitpy/layout_tests/port/base.py:
(Port.__init__): Removed code that set the self._operating_system attribute. Subclasses
should now override the operating_system method instead.
(Port.operating_system): Changed to always return "mac". Subclasses should override to
return something else.

* Scripts/webkitpy/layout_tests/port/chromium_linux.py:
(ChromiumLinuxPort.__init__):
(ChromiumLinuxPort.operating_system):
* Scripts/webkitpy/layout_tests/port/chromium_mac.py:
(ChromiumMacPort.__init__):
(ChromiumMacPort.operating_system):
* Scripts/webkitpy/layout_tests/port/chromium_win.py:
(ChromiumWinPort.__init__):
(ChromiumWinPort.operating_system):
* Scripts/webkitpy/layout_tests/port/mac.py:
(MacPort.__init__):
(MacPort.operating_system):
* Scripts/webkitpy/layout_tests/port/win.py:
(WinPort.__init__):
(WinPort.operating_system):
Changed to override the operating_system method rather than setting the _operating_system
attribute, since setting the attribute isn't sufficient for code inside __init__ methods.

* Scripts/webkitpy/layout_tests/port/qt.py:
(QtPort.__init__):
(QtPort._path_to_webcore_library):
Changed to use self.operating_system() instead of self._operating_system, for consistency
with other Port-related code.

(QtPort.operating_system): Added this override of Port.operating_system that returns the
value we determined in our __init__ method.

* Scripts/webkitpy/layout_tests/port/test.py:
(TestPort.operating_system): Added this override of Port.operating_system that returns the
value we determined in our __init__ method.

* Scripts/webkitpy/layout_tests/port/base_unittest.py:
(PortTest.test_operating_system):
* Scripts/webkitpy/layout_tests/port/chromium_linux_unittest.py:
(ChromiumLinuxPortTest.test_operating_system):
* Scripts/webkitpy/layout_tests/port/chromium_mac_unittest.py:
(ChromiumMacPortTest.test_operating_system):
* Scripts/webkitpy/layout_tests/port/chromium_win_unittest.py:
(ChromiumWinPortTest.test_operating_system):
* Scripts/webkitpy/layout_tests/port/mac_unittest.py:
(MacPortTest.test_operating_system):
* Scripts/webkitpy/layout_tests/port/qt_unittest.py:
(QtPortTest.test_operating_system):
* Scripts/webkitpy/layout_tests/port/win_unittest.py:
(WinPortTest.test_operating_system):
Test that all ports return the expected operating system string.

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

8 years ago[GTK] GTK+ 3 theming code does not use the GtkOrientable style class
commit-queue@webkit.org [Tue, 3 Jan 2012 19:51:30 +0000 (19:51 +0000)]
[GTK] GTK+ 3 theming code does not use the GtkOrientable style class
https://bugs.webkit.org/show_bug.cgi?id=72789

Patch by Martin Robinson <mrobinson@igalia.com> on 2012-01-03
Reviewed by Philippe Normand.

No new tests. Testing GTK+ theming is quite difficult
because no two distributions have the same set of themes.
Current tests prevent regressions.

* platform/gtk/RenderThemeGtk3.cpp:
(WebCore::applySliderStyleContextClasses): Added this helper that
properly handles the orientable style class.
(WebCore::RenderThemeGtk::paintSliderTrack): Use the new helper.
(WebCore::RenderThemeGtk::paintSliderThumb): Ditto.
* platform/gtk/ScrollbarThemeGtk3.cpp:
(WebCore::applyScrollbarStyleContextClasses): Added this helper that
properly handles the orientable style class.
(WebCore::ScrollbarThemeGtk::paintTrackBackground): Use the new helper.
(WebCore::ScrollbarThemeGtk::paintScrollbarBackground): Ditto.
(WebCore::ScrollbarThemeGtk::paintThumb): Ditto.
(WebCore::ScrollbarThemeGtk::paintButton): Ditto.

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

8 years agoNULL ptr in WebCore::SVGStyledTransformableElement::animatedLocalTransform
commit-queue@webkit.org [Tue, 3 Jan 2012 19:33:09 +0000 (19:33 +0000)]
NULL ptr in WebCore::SVGStyledTransformableElement::animatedLocalTransform
https://bugs.webkit.org/show_bug.cgi?id=75227

Patch by Florin Malita <fmalita@google.com> on 2012-01-03
Reviewed by Dirk Schulze.

Source/WebCore:

Test: svg/custom/webkit-transform-crash.html

* svg/SVGStyledTransformableElement.cpp:
(WebCore::SVGStyledTransformableElement::animatedLocalTransform):
Add a null-renderer check.

LayoutTests:

* svg/custom/webkit-transform-crash-expected.txt: Added.
* svg/custom/webkit-transform-crash.html: Added.

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

8 years agoFixed a typo in the change log
mitz@apple.com [Tue, 3 Jan 2012 19:29:09 +0000 (19:29 +0000)]
Fixed a typo in the change log

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

8 years agogetComputedStyle for border is not implemented.
alexis.menard@openbossa.org [Tue, 3 Jan 2012 19:13:48 +0000 (19:13 +0000)]
getComputedStyle for border is not implemented.
https://bugs.webkit.org/show_bug.cgi?id=75319

Reviewed by Tony Chang.

Source/WebCore:

Implement getComputedStyle for border.

fast/css/getComputedStyle/getComputedStyle-border-shorthand.html was extented.

* css/CSSComputedStyleDeclaration.cpp:
(WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):

LayoutTests:

Extend existing test to cover that we return correct values.

* fast/css/getComputedStyle/getComputedStyle-border-shorthand-expected.txt:
* fast/css/getComputedStyle/getComputedStyle-border-shorthand.html:

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

8 years agoSort the WebCore XCode project file
alexis.menard@openbossa.org [Tue, 3 Jan 2012 19:03:37 +0000 (19:03 +0000)]
Sort the WebCore XCode project file

Reviewed by Dimitri Glazkov.

* WebCore.xcodeproj/project.pbxproj:

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

8 years ago[chromium] Set tiler bounds explicitly rather than growing them
enne@google.com [Tue, 3 Jan 2012 18:59:13 +0000 (18:59 +0000)]
[chromium] Set tiler bounds explicitly rather than growing them
https://bugs.webkit.org/show_bug.cgi?id=75331

Reviewed by James Robinson.

Rather than only growing bounds, make the bounds on the tiler be set
explicitly by TiledLayerChromium. This patch now properly invalidates
regions when the bounds change.

* platform/graphics/chromium/TiledLayerChromium.cpp:
(WebCore::TiledLayerChromium::updateBounds):
(WebCore::TiledLayerChromium::prepareToUpdate):
(WebCore::TiledLayerChromium::prepareToUpdateIdle):
* platform/graphics/chromium/TiledLayerChromium.h:
* platform/graphics/chromium/cc/CCLayerTilingData.cpp:
(WebCore::CCLayerTilingData::setBounds):
(WebCore::CCLayerTilingData::bounds):
* platform/graphics/chromium/cc/CCLayerTilingData.h:

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

8 years ago[GTK] Slider thumb is not centered on the track with the unico theme
commit-queue@webkit.org [Tue, 3 Jan 2012 18:55:11 +0000 (18:55 +0000)]
[GTK] Slider thumb is not centered on the track with the unico theme
https://bugs.webkit.org/show_bug.cgi?id=72802

Patch by Martin Robinson <mrobinson@igalia.com> on 2012-01-03
Reviewed by Philippe Normand.

No new tests. This only applies to certain GTK+ themes.
Existing tests cover the default GTK+ theme.

* platform/gtk/RenderThemeGtk3.cpp:
(WebCore::RenderThemeGtk::paintSliderThumb): Do not resize the
slider thumb by the trough border.

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

8 years ago[chromium] Make tiled layer's tiler always exist
enne@google.com [Tue, 3 Jan 2012 18:48:06 +0000 (18:48 +0000)]
[chromium] Make tiled layer's tiler always exist
https://bugs.webkit.org/show_bug.cgi?id=75329

Reviewed by James Robinson.

Source/WebCore:

TiledLayerChromium has some awkward code to handle lazily creating the
tiler, including lots of null checks and shadowing the tile size.
Instead, always create the tiler up front. As values change that
invalidate all tiles, reset it rather than clear the pointer.

* platform/graphics/chromium/LayerChromium.cpp:
(WebCore::LayerChromium::setIsNonCompositedContent):
* platform/graphics/chromium/LayerChromium.h:
* platform/graphics/chromium/TiledLayerChromium.cpp:
(WebCore::TiledLayerChromium::TiledLayerChromium):
(WebCore::TiledLayerChromium::cleanupResources):
(WebCore::TiledLayerChromium::setTileSize):
(WebCore::TiledLayerChromium::setBorderTexelOption):
(WebCore::TiledLayerChromium::drawsContent):
(WebCore::TiledLayerChromium::updateCompositorResources):
(WebCore::TiledLayerChromium::setTilingOption):
(WebCore::TiledLayerChromium::pushPropertiesTo):
(WebCore::TiledLayerChromium::setIsNonCompositedContent):
(WebCore::TiledLayerChromium::invalidateRect):
(WebCore::TiledLayerChromium::protectTileTextures):
(WebCore::TiledLayerChromium::prepareToUpdate):
(WebCore::TiledLayerChromium::prepareToUpdateIdle):
(WebCore::TiledLayerChromium::needsIdlePaint):
(WebCore::TiledLayerChromium::idlePaintRect):
* platform/graphics/chromium/TiledLayerChromium.h:
* platform/graphics/chromium/cc/CCLayerTilingData.cpp:
(WebCore::CCLayerTilingData::setBorderTexelOption):
* platform/graphics/chromium/cc/CCLayerTilingData.h:
* platform/graphics/gpu/TilingData.cpp:
(WebCore::TilingData::setHasBorderTexels):
* platform/graphics/gpu/TilingData.h:

Source/WebKit/chromium:

Update test due to changing API. Add a test for changing border
texel option on TilingData.

* tests/TiledLayerChromiumTest.cpp:
(WTF::FakeTiledLayerChromium::FakeTiledLayerChromium):
* tests/TilingDataTest.cpp:
(WebCore::TEST):

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

8 years ago[GTK] run-gtk-test should ignore files with names without a "test" or "Test" prefix
mario@webkit.org [Tue, 3 Jan 2012 17:00:13 +0000 (17:00 +0000)]
[GTK] run-gtk-test should ignore files with names without a "test" or "Test" prefix
https://bugs.webkit.org/show_bug.cgi?id=75474

Reviewed by Philippe Normand.

* Scripts/run-gtk-tests: Ignore files whose name does not start
with a "test" (for WK1's API tests) or a "Test" prefix (for WK2).

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

8 years ago[Qt] Add UI for JavaScript Confirmation dialog in the Qt MiniBrowser
commit-queue@webkit.org [Tue, 3 Jan 2012 16:52:30 +0000 (16:52 +0000)]
[Qt] Add UI for JavaScript Confirmation dialog in the Qt MiniBrowser
https://bugs.webkit.org/show_bug.cgi?id=75472

Patch by Alexander Færøy <alexander.faeroy@nokia.com> on 2012-01-03
Reviewed by Tor Arne Vestbø.

* MiniBrowser/qt/MiniBrowser.pro:
* MiniBrowser/qt/MiniBrowser.qrc:
* MiniBrowser/qt/qml/BrowserWindow.qml:
* MiniBrowser/qt/qml/ConfirmDialog.qml: Added.

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

8 years agoAdd Production configuration to gtest Xcode project
ddkilzer@apple.com [Tue, 3 Jan 2012 16:25:10 +0000 (16:25 +0000)]
Add Production configuration to gtest Xcode project
<http://webkit.org/b/75153>

Reviewed by Adam Roben.

* gtest/README.WebKit: Updated.
* gtest/xcode/Config/ProductionProject.xcconfig: Added.
* gtest/xcode/gtest.xcodeproj/project.pbxproj:
- Added Production configuration based on Release configuration.
- Made Production the default configuration.

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

8 years ago[Qt] Add UI for JavaScript Alert dialog in the Qt MiniBrowser
commit-queue@webkit.org [Tue, 3 Jan 2012 16:20:29 +0000 (16:20 +0000)]
[Qt] Add UI for JavaScript Alert dialog in the Qt MiniBrowser
https://bugs.webkit.org/show_bug.cgi?id=75471

Patch by Alexander Færøy <alexander.faeroy@nokia.com> on 2012-01-03
Reviewed by Tor Arne Vestbø.

Add simple UI for JavaScript Alert dialogs. This patch also adds a
simple DialogButton QML type and a Dialog QML type which will be
reusable for other JavaScript dialogs.

* MiniBrowser/qt/MiniBrowser.qrc:
* MiniBrowser/qt/qml/AlertDialog.qml: Added.
* MiniBrowser/qt/qml/BrowserWindow.qml:
* MiniBrowser/qt/qml/Dialog.qml: Added.
* MiniBrowser/qt/qml/DialogButton.qml: Added.

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