- 12 Mar, 2010 40 commits
-
-
enrica@apple.com authored
Added contditional compilation for accelerated compositing. * WebView.cpp: (WebView::deleteBackingStore): (WebView::addToDirtyRegion): (WebView::updateBackingStore): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55947 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
https://bugs.webkit.org/show_bug.cgi?id=34942bdakin@apple.com authored
API naming is inconsistent -and corresponding- <rdar://problem/7729165> Reviewed by Simon Fraser. WebCore: This patch changes all occurrences of "fullScreen" to the more popular "fullscreen." webkitEnterFullScreen and webkitExitFullScreen have been maintained for now for backwards compatibility. * html/HTMLVideoElement.cpp: (WebCore::HTMLVideoElement::webkitEnterFullscreen): (WebCore::HTMLVideoElement::webkitExitFullscreen): * html/HTMLVideoElement.h: (WebCore::HTMLVideoElement::webkitEnterFullScreen): (WebCore::HTMLVideoElement::webkitExitFullScreen): * html/HTMLVideoElement.idl: * platform/graphics/mac/MediaPlayerProxy.h: WebKit/mac: This patch changes all occurrences of "fullScreen" to the more popular "fullscreen." * Plugins/Hosted/NetscapePluginHostProxy.h: (WebKit::NetscapePluginHostProxy::isFullscreenWindowShowing): * Plugins/Hosted/NetscapePluginHostProxy.mm: (WebKit::NetscapePluginHostProxy::NetscapePluginHostProxy): (WebKit::NetscapePluginHostProxy::didEnterFullscreen): (WebKit::NetscapePluginHostProxy::didExitFullscreen): (WebKit::NetscapePluginHostProxy::setFullscreenWindowIsShowing): (WKPCSetFullscreenWindowIsShowing): * Plugins/Hosted/WebKitPluginClient.defs: * Plugins/WebNetscapePluginView.mm: (-[WebNetscapePluginView _workaroundSilverlightFullscreenBug:]): (-[WebNetscapePluginView _createPlugin]): (-[WebNetscapePluginView _destroyPlugin]): * WebView/WebVideoFullscreenHUDWindowController.mm: (-[WebVideoFullscreenHUDWindowController windowDidLoad]): WebKit/win: This patch changes all occurrences of "fullScreen" to the more popular "fullscreen." * FullscreenVideoController.cpp: (FullscreenVideoController::onMouseDown): (FullscreenVideoController::onMouseMove): (FullscreenVideoController::onMouseUp): * FullscreenVideoController.h: (FullscreenVideoController::fullscreenToHUDCoordinates): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55946 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
jamesr@google.com authored
Reviewed by Adam Barth. Add virtual destructor to DOMWrapperWorld https://bugs.webkit.org/show_bug.cgi?id=36077 DOMWrapperWorld is RefCounted<DOMWrapperWorld>. IsolatedWorld inherits from DOMWrapperWorld and has member variables with destructors, so DOMWrapperWorld needs to have a declared virtual d'tor to ensure that its derived class's destructors are called. No new tests, no change in behavior * bindings/v8/DOMWrapperWorld.h: (WebCore::DOMWrapperWorld::~DOMWrapperWorld): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55945 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
barraclough@apple.com authored
Reviewed by NOBODY (build fix). git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55944 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
barraclough@apple.com authored
Reviewed by Oliver Hunt. JavaScriptCore: * API/JSClassRef.cpp: (OpaqueJSClass::~OpaqueJSClass): Classname may be null/empty, and these are an identifer. This is okay, since the null/empty strings are shared across all threads. * JavaScriptCore.exp: * runtime/Identifier.cpp: (JSC::Identifier::add): No need to explicitly hash null reps, this is done in the ststic UStringImpl constructor. (JSC::Identifier::addSlowCase): UStringImpl::empty() handled & checkCurrentIdentifierTable now called in the header. (JSC::Identifier::checkCurrentIdentifierTable): Replaces checkSameIdentifierTable (this no longer checked the rep since the identifierTable pointer was removed from UString::Rep long ago). * runtime/Identifier.h: (JSC::Identifier::add): Replace call to checkSameIdentifierTable with call to checkCurrentIdentifierTable at head of function. * runtime/UStringImpl.cpp: (JSC::UStringImpl::~UStringImpl): Remove call to checkConsistency - this function no longer checks anything interesting. * runtime/UStringImpl.h: (JSC::UStringOrRopeImpl::UStringOrRopeImpl): Set s_refCountFlagIsIdentifier in static constructor. (JSC::UStringImpl::UStringImpl): remove calls to checkConsistency (see above), add new ASSERT to substring constructor. (JSC::UStringImpl::setHash): ASSERT not static (static strings set the hash in their constructor, should not reach this code path). (JSC::UStringImpl::create): Add missing ASSERT. (JSC::UStringImpl::setIsIdentifier): ASSERT !isStatic() (static strings hash set in constructor). WebCore: * platform/text/StringImpl.cpp: (WebCore::StringImpl::~StringImpl): Add ASSERT (WebCore::StringImpl::sharedBuffer): Add ASSERT * platform/text/StringImpl.h: (WebCore::StringImpl::setHash): Add ASSERT (WebCore::StringImpl::isStatic): added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55943 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
https://bugs.webkit.org/show_bug.cgi?id=33739bdakin@apple.com authored
video HUD stays on top when switching to another window (e.g. via Alt-Tab) -and corresponding- <rdar://problem/7547574> Reviewed by Adam Roben. The HUD was always on top because it had the WS_EX_TOPMOST style. So I removed the style and made m_videoWindow the owner of m_hudWindow. This keeps m_hudWindow on top only when m_videoWindow is the focused window. * FullscreenVideoController.cpp: (FullscreenVideoController::exitFullscreen): ASSERT that movie()->exitFullscreen() also destroyed the hud. (FullscreenVideoController::createHUDWindow): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55942 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
enrica@apple.com authored
<rdar://problem/7556244> <https://bugs.webkit.org/show_bug.cgi?id=36027> Reviewed by Simon Fraser. WebCore: There were two problems to solve here: - the incorrect anchoring of the rootChildLayer that was causing the composited content to be positioned incorrectly - the failure to paint the non composited content into the backing store when animating composited content. The first problem has been solved by leaving the original anchor point for the rootChildLayer and splitting the tasks of clipping and scrolling using two separate layers. The second problem has been solved leveraging the knowledge that WebView has of the dirty region of the backing store to pass this information to the layer renderer. This allows the renderer to force a paint into the backing store before moving to the compositing. Tests: compositing/geometry/horizontal-scroll-composited.html compositing/geometry/vertical-scroll-composited.html * manual-tests/win/horizontal-scroll-composited.html: Removed. This is now a layout test. * manual-tests/win/milliondollar.html: Added. * platform/graphics/win/WKCACFLayerRenderer.cpp: (WebCore::WKCACFLayerRenderer::WKCACFLayerRenderer): Added initialization of dirty flag. (WebCore::WKCACFLayerRenderer::setScrollFrame): (WebCore::WKCACFLayerRenderer::updateScrollFrame): Updated to resize and position the clip and scroll layers. (WebCore::WKCACFLayerRenderer::setRootChildLayer): (WebCore::WKCACFLayerRenderer::createRenderer): Added new layer hierarchy. (WebCore::WKCACFLayerRenderer::destroyRenderer): Remove clip layer on destroy. (WebCore::WKCACFLayerRenderer::resize): (WebCore::WKCACFLayerRenderer::paint): Forcing paint massage to trigger paint into the backing store. * platform/graphics/win/WKCACFLayerRenderer.h: (WebCore::WKCACFLayerRenderer::setBackingStoreDirty): Added. WebKit/win: See detailed comments in WebCore/ChangeLog. * WebView.cpp: (WebView::deleteBackingStore): Reset the dirty flag when deleting the backing store. (WebView::addToDirtyRegion): Set the dirty flag when adding dirty rectangles to the backing store dirty region. (WebView::updateBackingStore): Reset the dirty flag after painting into the backing store. (WebView::setAcceleratedCompositing): Removed unnecessary call to updateRootLayerContents. (WebView::updateRootLayerContents): Changed the way we pass parameters to setScrollFrame. We are passing width and height of the view content together with the offset for the scrolling. It was confusing to pass it all as a rectangle, when it is not a rectangle. LayoutTests: * compositing/geometry/horizontal-scroll-composited.html: Added. * compositing/geometry/vertical-scroll-composited.html: Added. * compositing/resources/apple.jpg: Added. * platform/mac/compositing/geometry/horizontal-scroll-composited-expected.checksum: Added. * platform/mac/compositing/geometry/horizontal-scroll-composited-expected.png: Added. * platform/mac/compositing/geometry/horizontal-scroll-composited-expected.txt: Added. * platform/mac/compositing/geometry/vertical-scroll-composited-expected.checksum: Added. * platform/mac/compositing/geometry/vertical-scroll-composited-expected.png: Added. * platform/mac/compositing/geometry/vertical-scroll-composited-expected.txt: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55941 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
dpranke@chromium.org authored
Reviewed by Dimitri Glazkov. Fix typo in websocket_server (path_from_base instead of path_from_chromium_base). https://bugs.webkit.org/show_bug.cgi?id=36074 * Scripts/webkitpy/layout_tests/port/websocket_server.py: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55940 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
robert@webkit.org authored
Not reviewed, build fix. Revert http://trac.webkit.org/projects/webkit/changeset/55374 which broke the !ENABLE(DATABASE) build on all platforms when attempting to fix the --minimal build on Qt. Support for SQLite now seems to be non-negotiable for the Qt build but making it mandatory requires review, so re-break --minimal Qt build for now. Qt build issue now tracked at https://bugs.webkit.org/show_bug.cgi?id=36073 * page/GeolocationPositionCache.cpp: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55939 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
dpranke@chromium.org authored
Reviewed by Adam Barth. new-run-webkit-tests --new-baseline doesn't work at all. It attempts to call a method that isn't defined. To fix it, I removed the unnecessary and unnecessarily confusing 'platform' argument to the test_type constructor and use the Port object that is passed in instead, since we are only ever generating a baseline from the port that is currently executing. https://bugs.webkit.org/show_bug.cgi?id=36046 * Scripts/webkitpy/layout_tests/port/mac.py: * Scripts/webkitpy/layout_tests/rebaseline_chromium_webkit_tests.py: * Scripts/webkitpy/layout_tests/run_webkit_tests.py: * Scripts/webkitpy/layout_tests/test_types/test_type_base.py: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55938 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
dpranke@chromium.org authored
Reviewed by Adam Barth. Fix new-run-webkit-tests --run-singly This script option is currently broken - the script attempts to dereference methods and variables that don't exist, which causes the Chromium Linux valgrind bot to be quite unhappy. This has been broken since r54449 when I renamed Port.start_test_driver to Port.start_driver. https://bugs.webkit.org/show_bug.cgi?id=36042 * Scripts/webkitpy/layout_tests/layout_package/test_shell_thread.py: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55937 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
krit@webkit.org authored
Unreviewed LayoutTest update. Result was not updated with r55930. * platform/mac/svg/custom/dominant-baseline-hanging-expected.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55936 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
rdar://problem/7709115http://www.glom.org/mitz@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=35507 Reviewed by Alexey Proskuryakov. * css/CSSImportRule.cpp: (WebCore::CSSImportRule::setCSSStyleSheet): Extend the change made in <http://trac.webkit.org/changeset/48818> to detect the two variants of KHTMLFixes.css in @import rules as well as in <link> elements. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55935 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
barraclough@apple.com authored
Reviewed by Geoff Garen. r55878 changed UStringImpl::empty()->characters() to be non-null, so TextBreakIteratorQt.cpp now should check the length of strings (previously was assuming all strings with a non-null data pointer had a length of at least 1). * platform/text/qt/TextBreakIteratorQt.cpp: (WebCore::wordBreakIterator): (WebCore::characterBreakIterator): (WebCore::lineBreakIterator): (WebCore::sentenceBreakIterator): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55934 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
abarth@webkit.org authored
Unreiviewed. Fix Chromium Mac build. Last patch did not apply properly. (Garret assures me this patch will actually work.) * src/WebInputEventConversion.cpp: (WebKit::toPlatformTouchEventType): (WebKit::toPlatformTouchPointState): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55933 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
abarth@webkit.org authored
Unreviewed. Fix Chromium Mac build. This time, with actual fixing goodness. * src/WebInputEventConversion.cpp: (WebKit::toPlatformTouchEventType): (WebKit::toPlatformTouchPointState): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55932 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
beidson@apple.com authored
Patch by Andy Estes <aestes@apple.com> on 2010-03-12 Reviewed by Brady Eidson. https://bugs.webkit.org/show_bug.cgi?id=36045 * WebView/WebDocumentPrivate.h: Create a new protocol called WebDocumentPDF. * WebView/WebPDFView.h: Have WebPDFView implement said protocol. * WebView/WebPDFView.mm: (-[WebPDFView PDFDocument]): Expose WebPDFView's underlying PDFDocument by implementing -(PDFDocument*)PDFDocument from WebDocumentPDF. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55931 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
krit@webkit.org authored
Reviewed by Nikolas Zimmermann. SVG fallback color doesn't work for bogus gradients. https://bugs.webkit.org/show_bug.cgi?id=35479 Use a given fallback color on ignored gradients if present. Gradients must be ignored, if one dimension of the objects boundingBox is zero. Test: svg/custom/gradient-with-1d-boundingbox.svg * svg/graphics/SVGPaintServer.cpp: (WebCore::SVGPaintServer::strokePaintServer): * svg/graphics/SVGPaintServerGradient.cpp: (WebCore::SVGPaintServerGradient::setup): 2010-03-12 Dirk Schulze <krit@webkit.org> Reviewed by Nikolas Zimmermann. SVG fallback color doesn't work for bogus gradients. https://bugs.webkit.org/show_bug.cgi?id=35479 We now use a fallback color on ignored gradients for one dimensional objects, either a given fallback color or black as default. This causes a change of one LayoutTest, because it was done manually in the gradient PaintServer, without respecting a given fallback color. * platform/mac/svg/W3C-SVG-1.1/pservers-grad-17-b-expected.txt: * platform/mac/svg/custom/gradient-with-1d-boundingbox-expected.checksum: Added. * platform/mac/svg/custom/gradient-with-1d-boundingbox-expected.png: Added. * platform/mac/svg/custom/gradient-with-1d-boundingbox-expected.txt: Added. * svg/custom/gradient-with-1d-boundingbox.svg: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55930 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
abarth@webkit.org authored
Unreviewed. Fix Chromium Mac build. * src/WebInputEventConversion.cpp: (WebKit::toPlatformTouchEventType): (WebKit::toPlatformTouchPointState): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55929 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hyatt@apple.com authored
Reviewed by Dan Bernstein. Eliminate InlineRunBox. * WebCore.xcodeproj/project.pbxproj: * rendering/InlineFlowBox.cpp: (WebCore::InlineFlowBox::adjustPosition): (WebCore::InlineFlowBox::paintFillLayer): (WebCore::InlineFlowBox::paintBoxDecorations): (WebCore::InlineFlowBox::paintMask): * rendering/InlineFlowBox.h: (WebCore::InlineFlowBox::InlineFlowBox): (WebCore::InlineFlowBox::prevLineBox): (WebCore::InlineFlowBox::nextLineBox): (WebCore::InlineFlowBox::setNextLineBox): (WebCore::InlineFlowBox::setPreviousLineBox): * rendering/InlineRunBox.h: Removed. * rendering/InlineTextBox.h: (WebCore::InlineTextBox::InlineTextBox): (WebCore::InlineTextBox::prevTextBox): (WebCore::InlineTextBox::nextTextBox): (WebCore::InlineTextBox::setNextTextBox): (WebCore::InlineTextBox::setPreviousTextBox): * rendering/RenderBlock.cpp: (WebCore::RenderBlock::destroy): (WebCore::RenderBlock::rightmostPosition): (WebCore::RenderBlock::leftmostPosition): * rendering/RenderInline.cpp: (WebCore::RenderInline::destroy): (WebCore::RenderInline::absoluteRects): (WebCore::RenderInline::absoluteQuads): (WebCore::RenderInline::linesBoundingBox): (WebCore::RenderInline::linesVisibleOverflowBoundingBox): (WebCore::RenderInline::addFocusRingRects): (WebCore::RenderInline::paintOutline): * rendering/RenderLayer.cpp: (WebCore::RenderLayer::localBoundingBox): * rendering/RenderLineBoxList.cpp: (WebCore::RenderLineBoxList::deleteLineBoxTree): (WebCore::RenderLineBoxList::extractLineBox): (WebCore::RenderLineBoxList::attachLineBox): (WebCore::RenderLineBoxList::removeLineBox): (WebCore::RenderLineBoxList::deleteLineBoxes): (WebCore::RenderLineBoxList::dirtyLineBoxes): (WebCore::RenderLineBoxList::paint): (WebCore::RenderLineBoxList::hitTest): (WebCore::RenderLineBoxList::dirtyLinesFromChangedChild): (WebCore::RenderLineBoxList::checkConsistency): * rendering/RenderSVGInline.cpp: (WebCore::RenderSVGInline::absoluteRects): (WebCore::RenderSVGInline::absoluteQuads): * rendering/RenderSVGText.cpp: (WebCore::RenderSVGText::absoluteRects): (WebCore::RenderSVGText::absoluteQuads): (WebCore::RenderSVGText::objectBoundingBox): * rendering/RenderText.cpp: (WebCore::RenderText::extractTextBox): (WebCore::RenderText::attachTextBox): (WebCore::RenderText::removeTextBox): (WebCore::RenderText::createInlineTextBox): (WebCore::RenderText::positionLineBox): * rendering/RootInlineBox.h: (WebCore::RootInlineBox::nextRootBox): (WebCore::RootInlineBox::prevRootBox): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55928 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
kov@webkit.org authored
Reviewed by Eric Carlson. media/video-preload.html fails https://bugs.webkit.org/show_bug.cgi?id=35793 Only effectively load, and start buffering when playing, or when the preload attribute is set. Test: media/video-preload.html * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp: (WebCore::MediaPlayerPrivate::MediaPlayerPrivate): (WebCore::MediaPlayerPrivate::load): (WebCore::MediaPlayerPrivate::commitLoad): (WebCore::MediaPlayerPrivate::prepareToPlay): (WebCore::MediaPlayerPrivate::setPreload): * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55927 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
dimich@chromium.org authored
Reverts 55920 and 55921. Landing for Jian Li. WebCore: * Android.derived.jscbindings.mk: * Android.derived.v8bindings.mk: * DerivedSources.cpp: * DerivedSources.make: * GNUmakefile.am: * WebCore.gypi: * WebCore.pri: * WebCore.vcproj/WebCore.vcproj: * WebCore.xcodeproj/project.pbxproj: * bindings/js/JSDOMFormDataCustom.cpp: Removed. * bindings/js/JSXMLHttpRequestCustom.cpp: (WebCore::JSXMLHttpRequest::send): * bindings/scripts/CodeGeneratorJS.pm: * bindings/v8/V8Index.h: * bindings/v8/custom/V8DOMFormDataCustom.cpp: Removed. * bindings/v8/custom/V8XMLHttpRequestCustom.cpp: (WebCore::V8XMLHttpRequest::sendCallback): * html/DOMFormData.idl: Removed. * page/DOMWindow.idl: LayoutTests: * fast/dom/Window/window-properties-expected.txt: * fast/dom/Window/window-property-descriptors-expected.txt: * fast/dom/constructed-objects-prototypes-expected.txt: * fast/dom/prototype-inheritance-2-expected.txt: * fast/dom/prototype-inheritance-expected.txt: * fast/js/global-constructors-expected.txt: * http/tests/local/resources/send-form-data.js: Removed. * http/tests/local/send-form-data-expected.txt: Removed. * http/tests/local/send-form-data.html: Removed. * http/tests/xmlhttprequest/resources/multipart-post-echo.php: Removed. * platform/gtk/Skipped: * platform/gtk/fast/dom/Window/window-properties-expected.txt: * platform/qt/Skipped: * platform/qt/fast/dom/Window/window-properties-expected.txt: * platform/qt/fast/dom/Window/window-property-descriptors-expected.txt: * platform/qt/fast/dom/prototype-inheritance-expected.txt: * platform/qt/fast/js/global-constructors-expected.txt: * platform/win/Skipped: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55926 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
kov@webkit.org authored
Fix critical being printed to stderr on every test. This is because the jar is only being created when soup hits the HTTP path. We should reconsider the time of its creation. * DumpRenderTree/gtk/DumpRenderTree.cpp: (resetDefaultsToConsistentValues): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55925 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
tonikitoo@webkit.org authored
Make the timeout in 'snav-unit-overflow-and-scroll-in-direction.html' 10x shorter (from 500ms to 50ms) Rubber-stamped by Kenneth Christiansen. Patch by Antonio Gomes <tonikitoo@webkit.org> * fast/events/spatial-navigation/snav-unit-overflow-and-scroll-in-direction.html: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55924 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
jpetsovits@rim.com authored
Reviewed by Dirk Schulze. [OpenVG] Add support for drawing text to PainterOpenVG https://bugs.webkit.org/show_bug.cgi?id=35581 Doesn't come with any actual font classes, as OpenVG by itself doesn't provide any access to platform fonts but just the means to draw glyphs that have been loaded manually before. * platform/graphics/openvg/PainterOpenVG.cpp: (WebCore::PlatformPainterState::PlatformPainterState): (WebCore::PlatformPainterState::copyPaintState): (WebCore::PainterOpenVG::textDrawingMode): (WebCore::PainterOpenVG::setTextDrawingMode): (WebCore::PainterOpenVG::drawText): * platform/graphics/openvg/PainterOpenVG.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55923 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
jpetsovits@rim.com authored
Reviewed by Dirk Schulze. [OpenVG] Use masks to implement non-rectilinear clipping https://bugs.webkit.org/show_bug.cgi?id=35544 Requires some additional context switching logic to make sure the right context is current when dealing with the mask, because we don't store it by ourselves. Initial version of this code was written by Eli Fidler <efidler@rim.com>, I did a couple of bug fixes and efficiency improvements since then. * platform/graphics/openvg/GraphicsContextOpenVG.cpp: (WebCore::GraphicsContext::clipPath): (WebCore::GraphicsContext::clip): (WebCore::GraphicsContext::clipOut): (WebCore::GraphicsContext::clipOutEllipseInRect): (WebCore::GraphicsContext::addInnerRoundedRectClip): * platform/graphics/openvg/PainterOpenVG.cpp: (WebCore::PlatformPainterState::PlatformPainterState): (WebCore::PlatformPainterState::~PlatformPainterState): (WebCore::PlatformPainterState::maskingEnabled): (WebCore::PlatformPainterState::applyState): (WebCore::PlatformPainterState::saveMaskIfNecessary): (WebCore::PainterOpenVG::intersectClipRect): (WebCore::PainterOpenVG::clipPath): (WebCore::PainterOpenVG::save): * platform/graphics/openvg/PainterOpenVG.h: (WebCore::PainterOpenVG::): * platform/graphics/openvg/SurfaceOpenVG.cpp: (WebCore::SurfaceOpenVG::makeCurrent): (WebCore::SurfaceOpenVG::makeCompatibleCurrent): * platform/graphics/openvg/SurfaceOpenVG.h: (WebCore::SurfaceOpenVG::): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55922 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
jianli@chromium.org authored
https://bugs.webkit.org/show_bug.cgi?id=36026 Reviewed by Nate Chapin. Test: http/tests/local/send-form-data.html * WebCore.gypi: * bindings/v8/V8Index.h: * bindings/v8/custom/V8DOMFormDataCustom.cpp: Added. (WebCore::V8DOMFormData::appendCallback): * bindings/v8/custom/V8XMLHttpRequestCustom.cpp: (WebCore::V8XMLHttpRequest::sendCallback): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55921 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
jianli@chromium.org authored
https://bugs.webkit.org/show_bug.cgi?id=36024 Reviewed by Sam Weinig. The implementation is based on XMLHttpRequest 2 spec: http://dev.w3.org/2006/webapi/XMLHttpRequest-2/#formdata Test: http/tests/local/send-form-data.html * Android.derived.jscbindings.mk: * Android.derived.v8bindings.mk: * DerivedSources.cpp: * DerivedSources.make: * GNUmakefile.am: * WebCore.pri: * WebCore.vcproj/WebCore.vcproj: * WebCore.xcodeproj/project.pbxproj: * bindings/js/JSDOMFormDataCustom.cpp: Added. * bindings/js/JSXMLHttpRequestCustom.cpp: (WebCore::JSXMLHttpRequest::send): * bindings/scripts/CodeGeneratorJS.pm: * html/DOMFormData.idl: Added. * page/DOMWindow.idl: LayoutTests: Add DOMFormData.idl to expose FormData interface https://bugs.webkit.org/show_bug.cgi?id=36024 Reviewed by Sam Weinig. Add a layout test to test sending FormData via XMLHttpRequest. Also changed all test results that are affected by exposing FormData. * fast/dom/Window/window-properties-expected.txt: * fast/dom/Window/window-property-descriptors-expected.txt: * fast/dom/constructed-objects-prototypes-expected.txt: * fast/dom/prototype-inheritance-2-expected.txt: * fast/dom/prototype-inheritance-expected.txt: * fast/js/global-constructors-expected.txt: * http/tests/local/resources/send-form-data.js: Added. * http/tests/local/send-form-data-expected.txt: Added. * http/tests/local/send-form-data.html: Added. * http/tests/xmlhttprequest/resources/multipart-post-echo.php: Added. * platform/gtk/Skipped: * platform/gtk/fast/dom/Window/window-properties-expected.txt: * platform/qt/Skipped: * platform/qt/fast/dom/Window/window-properties-expected.txt: * platform/qt/fast/dom/Window/window-property-descriptors-expected.txt: * platform/qt/fast/dom/prototype-inheritance-expected.txt: * platform/qt/fast/js/global-constructors-expected.txt: * platform/win/Skipped: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55920 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
jpetsovits@rim.com authored
Reviewed by Dirk Schulze. [OpenVG] Add a SurfaceOpenVG constructor for EGL client buffer surfaces https://bugs.webkit.org/show_bug.cgi?id=35538 SurfaceOpenVG can now not only encapsulate pbuffer and window surfaces but also VGImage-based ones. * platform/graphics/openvg/EGLDisplayOpenVG.cpp: (WebCore::EGLDisplayOpenVG::createPbufferFromClientBuffer): * platform/graphics/openvg/EGLDisplayOpenVG.h: * platform/graphics/openvg/SurfaceOpenVG.cpp: (WebCore::SurfaceOpenVG::SurfaceOpenVG): * platform/graphics/openvg/SurfaceOpenVG.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55919 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
aroben@apple.com authored
Reviewed by Tim Hatcher. Fixes <http://webkit.org/b/36064> prepare-ChangeLog should extract modified selectors from CSS files * Scripts/prepare-ChangeLog: (get_function_line_ranges): Call get_selector_line_ranges_for_css for .css files. (get_selector_line_ranges_for_css): Added. Finds selectors and their line ranges and returns them. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55918 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
eric@webkit.org authored
Reviewed by Eric Carlson. HTMLMediaElement crash when it is used after resource loading is canceled. https://bugs.webkit.org/show_bug.cgi?id=35992 Adding a test to access the duration property of a video element after resource loading was canceled. * http/tests/media/video-cancel-load-expected.txt: Added. * http/tests/media/video-cancel-load.html: Added. 2010-03-12 Alpha Lam <hclam@chromium.org> Reviewed by Eric Carlson. Fix a crash when resource loading of media element is canceled. https://bugs.webkit.org/show_bug.cgi?id=35992 Use of HTMLMediaElement::duration() after resource loading was canceled will cause a crash. This is because HTMLMediaElement::m_player is used when NULL. Test: http/tests/media/video-cancel-load.html * html/HTMLMediaElement.cpp: (WebCore::HTMLMediaElement::duration): Avoid calling to m_player when it is null. (WebCore::HTMLMediaElement::userCancelledLoad): Set m_readyState to HAVE_NOTHING. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55917 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
eric@webkit.org authored
Reviewed by Eric Seidel. Enable touch events in Chromium features gypi file. https://bugs.webkit.org/show_bug.cgi?id=35994 * features.gypi: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55916 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
kov@webkit.org authored
Rubber-stamped by Kenneth Rohde Christiansen. Misc documentation fixes. Fixes (almost) all warnings emitted by the documentation build process. Only the broken references to JSC objects remain. * webkit/webkitsecurityorigin.cpp: * webkit/webkitwebbackforwardlist.cpp: * webkit/webkitwebdatasource.cpp: * webkit/webkitwebframe.cpp: * webkit/webkitwebhistoryitem.cpp: * webkit/webkitwebinspector.cpp: (webkit_web_inspector_class_init): * webkit/webkitwebsettings.cpp: (webkit_web_settings_class_init): * webkit/webkitwebview.cpp: (DNDContentsRequest::webkit_web_view_class_init): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55915 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
rdar://problem/7725534mitz@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=20069 Reviewed by Darin Adler. No test added, since with the CSS variables feature disabled, the pointer to the freed memory is never dereferenced. * css/CSSPrimitiveValue.cpp: (WebCore::valueOrPropertyName): Changed to return a const AtomicString& from a static table. (WebCore::CSSPrimitiveValue::parserValue): Updated for the above change. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55914 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
ojan@chromium.org authored
Reviewed by David Levin. Tests for smartdelete should only occur after double-click https://bugs.webkit.org/show_bug.cgi?id=35314 Fixes the tests to make selections using the mouse in order to force smart-delete. It also adds/modifies tests to have them correctly identify cases where we are smart-deleting, but shouldn't be. Fixing to smart-delete only on mouse-based selections will be a followup patch. * editing/deleting/5390681-2.html: * editing/deleting/non-smart-delete.html: Added. * editing/deleting/smart-delete-001.html: * editing/deleting/smart-delete-002.html: * editing/deleting/smart-delete-003.html: * editing/deleting/smart-delete-004.html: * editing/editing.js: (doubleClick): (doubleClickAtSelectionStart): * editing/pasteboard/4944770-2.html: * editing/pasteboard/drag-drop-modifies-page.html: * editing/pasteboard/smart-drag-drop.html: Added. * editing/pasteboard/smart-paste-001.html: * editing/pasteboard/smart-paste-002.html: * editing/pasteboard/smart-paste-003.html: * editing/pasteboard/smart-paste-004.html: * editing/pasteboard/smart-paste-005.html: * editing/pasteboard/smart-paste-007.html: * editing/pasteboard/smart-paste-008.html: * editing/selection/delete-word-granularity-text-control-expected.txt: Added. * editing/selection/delete-word-granularity-text-control.html: Added. * editing/selection/script-tests/delete-word-granularity-text-control.js: Added. * editing/style/style-boundary-005.html: * platform/mac/editing/deleting/non-smart-delete-expected.checksum: Added. * platform/mac/editing/deleting/non-smart-delete-expected.png: Added. * platform/mac/editing/deleting/non-smart-delete-expected.txt: Added. * platform/mac/editing/deleting/smart-delete-001-expected.txt: * platform/mac/editing/deleting/smart-delete-002-expected.txt: * platform/mac/editing/deleting/smart-delete-003-expected.txt: * platform/mac/editing/deleting/smart-delete-004-expected.txt: * platform/mac/editing/pasteboard/drag-drop-modifies-page-expected.checksum: * platform/mac/editing/pasteboard/drag-drop-modifies-page-expected.png: * platform/mac/editing/pasteboard/drag-drop-modifies-page-expected.txt: * platform/mac/editing/pasteboard/smart-drag-drop-expected.checksum: Added. * platform/mac/editing/pasteboard/smart-drag-drop-expected.png: Added. * platform/mac/editing/pasteboard/smart-drag-drop-expected.txt: Added. * platform/mac/editing/pasteboard/smart-paste-001-expected.txt: * platform/mac/editing/pasteboard/smart-paste-002-expected.txt: * platform/mac/editing/pasteboard/smart-paste-003-expected.txt: * platform/mac/editing/pasteboard/smart-paste-004-expected.txt: * platform/mac/editing/pasteboard/smart-paste-005-expected.txt: * platform/mac/editing/pasteboard/smart-paste-007-expected.txt: * platform/mac/editing/pasteboard/smart-paste-008-expected.txt: * platform/mac/editing/style/style-boundary-005-expected.checksum: * platform/mac/editing/style/style-boundary-005-expected.png: * platform/mac/editing/style/style-boundary-005-expected.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55913 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
darin@chromium.org authored
Fix Chromium build bustage. Wrap usage of WebPrivatePtr from WebNode.h in a #if WEBKIT_IMPLEMENTATION guard. * public/WebNode.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55912 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
mitz@apple.com authored
* platform/chromium/PlatformKeyboardEventChromium.cpp: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55911 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
ap@apple.com authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55910 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
rdar://problem/7694674mitz@apple.com authored
<rdar://problem/7694674> Hover states not updated when overflow section scrolls under stationary mouse pointer https://bugs.webkit.org/show_bug.cgi?id=35949 Reviewed by Darin Adler. WebCore: Test: fast/events/overflow-scroll-fake-mouse-move.html Soon after an overflow section scrolls under the mouse pointer, dispatch a fake mouse move event. This is similar to how frame scrolling is handled in WebKit, and has the effect of updating hover state, dispatching DOM mouse events, and updating the tool tip. * page/EventHandler.cpp: (WebCore::EventHandler::EventHandler): Initialize m_fakeMouseMoveEventTimer. (WebCore::EventHandler::~EventHandler): Assert that the timer is not active. (WebCore::EventHandler::clear): Stop the timer. (WebCore::EventHandler::handleMousePressEvent): Cancel pending fake mouse move events. (WebCore::EventHandler::handleMouseMoveEvent): Ditto. (WebCore::EventHandler::dispatchFakeMouseMoveEventSoonInQuad): If the mouse is in the passed-in quad, ensure that a fake mouse move event is scheduled to fire soon. (WebCore::EventHandler::cancelFakeMouseMoveEvent): Does what the name says. (WebCore::EventHandler::fakeMouseMoveEventTimerFired): Constructs a PlatformMouseEvent with the current mouse location, modifier key state and time stamp and calls mouseMoved(). * page/EventHandler.h: * platform/PlatformKeyboardEvent.h: Declared getCurrentModifierState(). * platform/android/KeyEventAndroid.cpp: (WebCore::PlatformKeyboardEvent::getCurrentModifierState): Stubbed out. * platform/brew/PlatformKeyboardEventBrew.cpp: (WebCore::PlatformKeyboardEvent::getCurrentModifierState): Ditto. * platform/chromium/PlatformKeyboardEventChromium.cpp: (WebCore::PlatformKeyboardEvent::getCurrentModifierState): Added. * platform/efl/PlatformKeyboardEventEfl.cpp: (WebCore::PlatformKeyboardEvent::getCurrentModifierState): Stubbed out. * platform/gtk/KeyEventGtk.cpp: (WebCore::PlatformKeyboardEvent::getCurrentModifierState): Ditto. * platform/haiku/PlatformKeyboardEventHaiku.cpp: (WebCore::PlatformKeyboardEvent::getCurrentModifierState): Added. * platform/mac/KeyEventMac.mm: (WebCore::PlatformKeyboardEvent::getCurrentModifierState): Ditto. * platform/qt/PlatformKeyboardEventQt.cpp: (WebCore::PlatformKeyboardEvent::getCurrentModifierState): Stubbed out. * platform/win/KeyEventWin.cpp: (WebCore::PlatformKeyboardEvent::getCurrentModifierState): Added. * platform/wx/KeyboardEventWx.cpp: (WebCore::PlatformKeyboardEvent::getCurrentModifierState): Ditto. * rendering/RenderLayer.cpp: (WebCore::RenderLayer::scrollToOffset): Call EventHandler::dispatchFakeMouseMoveEventSoonInQuad(). Moved things around a little to avoid computing the repaint rect twice. LayoutTests: * fast/events/overflow-scroll-fake-mouse-move-expected.txt: Added. * fast/events/overflow-scroll-fake-mouse-move.html: Added. * fast/events/touch/basic-multi-touch-events.html: * fast/events/touch/basic-single-touch-events.html: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55909 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
eric@webkit.org authored
Reviewed by David Levin. [Chromium] Cmd-clicking submit buttons should submit in new tab https://bugs.webkit.org/show_bug.cgi?id=36023 Take modifiers into account when clicking form buttons. E.g. cmd-clicking a submit button will submit in a new background tab, cmd-shift-clicking in a new foreground tab, shift-clicking in a new window. (On windows/linux, it's ctrl instead of cmd.) * src/FrameLoaderClientImpl.cpp: (WebKit::FrameLoaderClientImpl::actionSpecifiesNavigationPolicy): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55908 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-