- 19 Aug, 2011 40 commits
-
-
adamk@chromium.org authored
https://bugs.webkit.org/show_bug.cgi?id=66575 Reviewed by Tony Chang. * public/WebApplicationCacheHost.h: (WebKit::WebApplicationCacheHost::willStartMainResourceRequest): * public/WebFrame.h: * public/WebFrameClient.h: (WebKit::WebFrameClient::didReceiveTitle): * public/WebVideoFrame.h: git-svn-id: svn://svn.chromium.org/blink/trunk@93449 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
tony@chromium.org authored
on win and run plugin-initiate-popup-window on mac/linux to get results. * platform/chromium-win/plugins/plugin-initiate-popup-window-expected.txt: Removed. * platform/chromium/test_expectations.txt: * platform/win/plugins/plugin-javascript-access-expected.txt: Renamed from LayoutTests/platform/chromium-win/plugins/plugin-javascript-access-expected.txt. git-svn-id: svn://svn.chromium.org/blink/trunk@93448 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
andersca@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=62245 Reviewed by Sam Weinig. This is to prepare the infrastructure for supporting the updated Cocoa text input model for plug-ins. * PluginProcess/PluginControllerProxy.cpp: * PluginProcess/PluginControllerProxy.h: * PluginProcess/mac/PluginControllerProxyMac.mm: (WebKit::PluginControllerProxy::setComplexTextInputState): (WebKit::PluginControllerProxy::compositingRenderServerPort): * Shared/Plugins/mac: Added. * Shared/Plugins/mac/PluginComplexTextInputState.h: Added. (WebKit::isValidPluginComplexTextInputState): * UIProcess/API/mac/PageClientImpl.h: * UIProcess/API/mac/PageClientImpl.mm: (WebKit::PageClientImpl::setPluginComplexTextInputState): * UIProcess/API/mac/WKView.mm: (-[WKView _setPluginComplexTextInputState:WebKit::pluginComplexTextInputIdentifier:]): * UIProcess/API/mac/WKViewInternal.h: * UIProcess/PageClient.h: * UIProcess/WebPageProxy.h: * UIProcess/WebPageProxy.messages.in: * UIProcess/mac/WebPageProxyMac.mm: (WebKit::WebPageProxy::setPluginComplexTextInputState): * WebKit2.xcodeproj/project.pbxproj: * WebProcess/Plugins/Netscape/NetscapePlugin.cpp: (WebKit::NetscapePlugin::NetscapePlugin): * WebProcess/Plugins/Netscape/NetscapePlugin.h: * WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm: (WebKit::NetscapePlugin::platformSetFocus): (WebKit::NetscapePlugin::windowFocusChanged): (WebKit::NetscapePlugin::setComplexTextInputEnabled): * WebProcess/Plugins/Netscape/mac/PluginProxyMac.mm: (WebKit::PluginProxy::setComplexTextInputState): * WebProcess/Plugins/PluginController.h: * WebProcess/Plugins/PluginProxy.cpp: * WebProcess/Plugins/PluginProxy.h: * WebProcess/Plugins/PluginProxy.messages.in: * WebProcess/Plugins/PluginView.cpp: (WebKit::PluginView::~PluginView): (WebKit::PluginView::setComplexTextInputState): (WebKit::PluginView::compositingRenderServerPort): * WebProcess/Plugins/PluginView.h: git-svn-id: svn://svn.chromium.org/blink/trunk@93447 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
jamesr@google.com authored
Remove = CRASH expectations for tests fixed by r93441. * platform/chromium/test_expectations.txt: git-svn-id: svn://svn.chromium.org/blink/trunk@93446 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
bdakin@apple.com authored
Re-name scrollbar painter types Reviewed by Sam Weinig. Source/JavaScriptCore: WTF_USE_WK_SCROLLBAR_PAINTER is now WTF_USE_SCROLLBAR_PAINTER since WK no longer applies. * wtf/Platform.h: Source/WebCore: Names changed to remove references to WebKitSystemInterface since the implementation is now in WebCore. And the type names changed to be more Objective- Cish instead of C++ish WTF_USE_WK_SCROLLBAR_PAINTER -> WTF_USE_SCROLLBAR_PAINTER WKScrollbarPainterRef -> ScrollbarPainter WKScrollbarPainterControllerRef -> ScrollbarPainterController * platform/mac/NSScrollerImpDetails.h: * platform/mac/ScrollAnimatorMac.h: * platform/mac/ScrollAnimatorMac.mm: (-[ScrollbarPartAnimation initWithScrollbarPainter:part:WebCore::scrollAnimator:WebCore::animateAlphaTo:duration:]): (-[ScrollbarPainterDelegate setUpAnimation:scrollerPainter:part:WebCore::animateAlphaTo:duration:]): (-[ScrollbarPainterDelegate scrollerImp:animateKnobAlphaTo:duration:]): (-[ScrollbarPainterDelegate scrollerImp:animateTrackAlphaTo:duration:]): (WebCore::ScrollAnimatorMac::ScrollAnimatorMac): (WebCore::ScrollAnimatorMac::~ScrollAnimatorMac): (WebCore::ScrollAnimatorMac::notifyPositionChanged): (WebCore::ScrollAnimatorMac::contentAreaWillPaint): (WebCore::ScrollAnimatorMac::mouseEnteredContentArea): (WebCore::ScrollAnimatorMac::mouseExitedContentArea): (WebCore::ScrollAnimatorMac::mouseMovedInContentArea): (WebCore::ScrollAnimatorMac::willStartLiveResize): (WebCore::ScrollAnimatorMac::contentsResized): (WebCore::ScrollAnimatorMac::willEndLiveResize): (WebCore::ScrollAnimatorMac::contentAreaDidShow): (WebCore::ScrollAnimatorMac::contentAreaDidHide): (WebCore::ScrollAnimatorMac::didBeginScrollGesture): (WebCore::ScrollAnimatorMac::didEndScrollGesture): (WebCore::ScrollAnimatorMac::didAddVerticalScrollbar): (WebCore::ScrollAnimatorMac::willRemoveVerticalScrollbar): (WebCore::ScrollAnimatorMac::didAddHorizontalScrollbar): (WebCore::ScrollAnimatorMac::willRemoveHorizontalScrollbar): (WebCore::ScrollAnimatorMac::cancelAnimations): (WebCore::ScrollAnimatorMac::setIsActive): (WebCore::ScrollAnimatorMac::updateScrollerStyle): * platform/mac/ScrollViewMac.mm: (WebCore::ScrollView::platformSetScrollbarOverlayStyle): * platform/mac/ScrollbarThemeMac.h: * platform/mac/ScrollbarThemeMac.mm: (+[ScrollbarPrefsObserver appearancePrefsChanged:]): (WebCore::updateArrowPlacement): (WebCore::ScrollbarThemeMac::registerScrollbar): (WebCore::ScrollbarThemeMac::setNewPainterForScrollbar): (WebCore::ScrollbarThemeMac::painterForScrollbar): (WebCore::ScrollbarThemeMac::scrollbarThickness): (WebCore::ScrollbarThemeMac::usesOverlayScrollbars): (WebCore::ScrollbarThemeMac::updateScrollbarOverlayStyle): (WebCore::ScrollbarThemeMac::hasThumb): (WebCore::ScrollbarThemeMac::minimumThumbLength): (WebCore::ScrollbarThemeMac::updateEnabledState): (WebCore::scrollbarPainterPaint): (WebCore::ScrollbarThemeMac::paint): git-svn-id: svn://svn.chromium.org/blink/trunk@93445 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
jamesr@google.com authored
[chromium] Chromium GPU layout tests should use the normal process number selection, not force 1 worker https://bugs.webkit.org/show_bug.cgi?id=66603 Reviewed by Dirk Pranke. The various ChromiumGpu ports should use the same child worker selection logic as other ports so they can run with full parallelization on multicore systems. * Scripts/webkitpy/layout_tests/port/chromium_gpu.py: * Scripts/webkitpy/layout_tests/port/chromium_gpu_unittest.py: git-svn-id: svn://svn.chromium.org/blink/trunk@93444 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
commit-queue@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=66499 Patch by Van Lam <vanlam@google.com> on 2011-08-19 Reviewed by Ryosuke Niwa. Renamed VisiblePosition::honorEditableBoundary* to honorEditingBoundary. * editing/VisiblePosition.cpp: (WebCore::VisiblePosition::next): (WebCore::VisiblePosition::previous): (WebCore::VisiblePosition::left): (WebCore::VisiblePosition::right): (WebCore::VisiblePosition::honorEditingBoundaryAtOrBefore): (WebCore::VisiblePosition::honorEditingBoundaryAtOrAfter): * editing/VisiblePosition.h: * editing/visible_units.cpp: (WebCore::previousWordPosition): (WebCore::nextWordPosition): (WebCore::startOfLine): (WebCore::endOfLine): (WebCore::previousSentencePosition): (WebCore::nextSentencePosition): (WebCore::logicalStartOfLine): (WebCore::logicalEndOfLine): (WebCore::leftWordPosition): (WebCore::rightWordPosition): git-svn-id: svn://svn.chromium.org/blink/trunk@93443 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
tony@chromium.org authored
changed after r93428. * platform/chromium-cg-mac-leopard/fast/repaint/japanese-rl-selection-repaint-in-regions-expected.png: * platform/chromium-cg-mac/fast/repaint/japanese-rl-selection-repaint-in-regions-expected.png: * platform/mac/fast/repaint/japanese-rl-selection-repaint-in-regions-expected.txt: git-svn-id: svn://svn.chromium.org/blink/trunk@93442 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
jamesr@google.com authored
https://bugs.webkit.org/show_bug.cgi?id=65063 Reviewed by Darin Fisher. Fixes crashes due to a bad cast from Image to BitmapImage on skia ports that use BitmapImageSingleFrameSkia. In the skia port Image::isBitmapImage() returning true does not necessarily mean that Image is of type BitmapImage. Covered by fast/canvas/canvas-as-image.html and many other canvas tests. Patch originally by Tom Hudson. * platform/graphics/BitmapImage.h: (WebCore::BitmapImage::currentFrameHasAlpha): (WebCore::BitmapImage::notSolidColor): * platform/graphics/Image.cpp: (WebCore::Image::drawTiled): * platform/graphics/Image.h: (WebCore::Image::currentFrameHasAlpha): (WebCore::Image::notSolidColor): * platform/graphics/skia/BitmapImageSingleFrameSkia.h: (WebCore::BitmapImageSingleFrameSkia::currentFrameHasAlpha): (WebCore::BitmapImageSingleFrameSkia::notSolidColor): * rendering/RenderImage.cpp: (WebCore::RenderImage::backgroundIsObscured): git-svn-id: svn://svn.chromium.org/blink/trunk@93441 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
eae@chromium.org authored
https://bugs.webkit.org/show_bug.cgi?id=66586 Reviewed by Eric Seidel. No new tests as no new functionality. * rendering/svg/RenderSVGForeignObject.h: * rendering/svg/RenderSVGGradientStop.h: (WebCore::RenderSVGGradientStop::clippedOverflowRectForRepaint): * rendering/svg/RenderSVGHiddenContainer.h: (WebCore::RenderSVGHiddenContainer::clippedOverflowRectForRepaint): * rendering/svg/RenderSVGInline.cpp: (WebCore::RenderSVGInline::clippedOverflowRectForRepaint): (WebCore::RenderSVGInline::computeRectForRepaint): * rendering/svg/RenderSVGInline.h: * rendering/svg/RenderSVGModelObject.cpp: (WebCore::RenderSVGModelObject::clippedOverflowRectForRepaint): (WebCore::RenderSVGModelObject::computeRectForRepaint): * rendering/svg/RenderSVGModelObject.h: * rendering/svg/RenderSVGText.cpp: (WebCore::RenderSVGText::clippedOverflowRectForRepaint): (WebCore::RenderSVGText::computeRectForRepaint): * rendering/svg/RenderSVGText.h: * svg/SVGSVGElement.cpp: (WebCore::SVGSVGElement::localCoordinateSpaceTransform): * svg/SVGSVGElement.h: (WebCore::SVGSVGElement::setContainerSize): (WebCore::SVGSVGElement::containerSize): * svg/graphics/SVGImage.cpp: (WebCore::SVGImageChromeClient::invalidateContentsAndWindow): (WebCore::SVGImage::setContainerSize): * svg/graphics/SVGImage.h: git-svn-id: svn://svn.chromium.org/blink/trunk@93440 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
commit-queue@webkit.org authored
http://trac.webkit.org/changeset/93425 https://bugs.webkit.org/show_bug.cgi?id=66591 "The newly-added ASSERT is being triggered on several bots" (Requested by jchaffraix on #webkit). Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2011-08-19 Source/WebCore: * html/HTMLLinkElement.cpp: (WebCore::HTMLLinkElement::HTMLLinkElement): (WebCore::HTMLLinkElement::setDisabled): (WebCore::HTMLLinkElement::sheetLoaded): (WebCore::HTMLLinkElement::disabled): * html/HTMLLinkElement.h: (WebCore::HTMLLinkElement::isEnabledViaScript): LayoutTests: * fast/css/link-disabled-attr-expected.txt: * fast/css/stylesheet-enable-first-alternate-expected.txt: Removed. * fast/css/stylesheet-enable-first-alternate-on-load-expected.txt: Removed. * fast/css/stylesheet-enable-first-alternate-on-load.html: Removed. * fast/css/stylesheet-enable-first-alternate.html: Removed. * fast/css/stylesheet-enable-second-alternate-expected.txt: Removed. * fast/css/stylesheet-enable-second-alternate-on-load-expected.txt: Removed. * fast/css/stylesheet-enable-second-alternate-on-load.html: Removed. * fast/css/stylesheet-enable-second-alternate.html: Removed. * http/tests/css/link-css-disabled-value-with-slow-loading-sheet-expected.txt: Removed. * http/tests/css/link-css-disabled-value-with-slow-loading-sheet-in-error-expected.txt: Removed. * http/tests/css/link-css-disabled-value-with-slow-loading-sheet-in-error.html: Removed. * http/tests/css/link-css-disabled-value-with-slow-loading-sheet.html: Removed. * http/tests/css/resources/link-css-disabled-value-with-slow-loading-sheet-in-error.js: Removed. * http/tests/css/resources/link-css-disabled-value-with-slow-loading-sheet.js: Removed. * http/tests/css/resources/slow-loading-sheet-in-error.php: Removed. * http/tests/css/resources/slow-loading-sheet.php: Removed. git-svn-id: svn://svn.chromium.org/blink/trunk@93439 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
enne@google.com authored
https://bugs.webkit.org/show_bug.cgi?id=66432 Reviewed by James Robinson. Covered by existing tests. * platform/graphics/chromium/Canvas2DLayerChromium.cpp: (WebCore::Canvas2DLayerChromium::updateCompositorResources): * platform/graphics/chromium/Canvas2DLayerChromium.h: * platform/graphics/chromium/LayerChromium.h: (WebCore::LayerChromium::updateCompositorResources): * platform/graphics/chromium/LayerRendererChromium.cpp: (WebCore::LayerRendererChromium::updateCompositorResources): * platform/graphics/chromium/TiledLayerChromium.cpp: (WebCore::TiledLayerChromium::updateCompositorResources): * platform/graphics/chromium/TiledLayerChromium.h: * platform/graphics/chromium/VideoLayerChromium.cpp: (WebCore::VideoLayerChromium::updateCompositorResources): * platform/graphics/chromium/VideoLayerChromium.h: * platform/graphics/chromium/WebGLLayerChromium.cpp: (WebCore::WebGLLayerChromium::updateCompositorResources): * platform/graphics/chromium/WebGLLayerChromium.h: git-svn-id: svn://svn.chromium.org/blink/trunk@93438 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
vrk@chromium.org authored
https://bugs.webkit.org/show_bug.cgi?id=66414 Reviewed by Eric Carlson. Source/WebCore: Test: media/video-load-preload-none.html * html/HTMLMediaElement.cpp: (WebCore::HTMLMediaElement::load): LayoutTests: * media/video-load-preload-none-expected.txt: Added. * media/video-load-preload-none.html: Added. git-svn-id: svn://svn.chromium.org/blink/trunk@93437 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
eae@chromium.org authored
https://bugs.webkit.org/show_bug.cgi?id=66502 Reviewed by Eric Seidel. Convert RenderBlock to new layout abstraction. Leave m_lineHight as a 30 bit int for now to avoid unnecessarily increasing the memory usage. No new tests as no new functionality. * rendering/RenderBlock.cpp: * rendering/RenderBlock.h: git-svn-id: svn://svn.chromium.org/blink/trunk@93436 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
eae@chromium.org authored
https://bugs.webkit.org/show_bug.cgi?id=66534 Reviewed by Eric Seidel. Convert RenderBoxModelObject to new layout abstraction. No new tests as no new functionality. * rendering/RenderBoxModelObject.cpp: (WebCore::ImageQualityController::set): (WebCore::ImageQualityController::shouldPaintAtLowQuality): (WebCore::RenderBoxModelObject::shouldPaintAtLowQuality): (WebCore::backgroundRectAdjustedForBleedAvoidance): (WebCore::RenderBoxModelObject::paintFillLayerExtended): (WebCore::RenderBoxModelObject::calculateFillTileSize): (WebCore::RenderBoxModelObject::BackgroundImageGeometry::useFixedAttachment): (WebCore::RenderBoxModelObject::calculateBackgroundImageGeometry): (WebCore::RenderBoxModelObject::paintNinePieceImage): (WebCore::borderWillArcInnerEdge): (WebCore::RenderBoxModelObject::paintOneBorderSide): (WebCore::RenderBoxModelObject::paintBorderSides): (WebCore::RenderBoxModelObject::paintBorder): (WebCore::RenderBoxModelObject::drawBoxSideFromPath): (WebCore::RenderBoxModelObject::clipBorderSidePolygon): (WebCore::areaCastingShadowInHole): (WebCore::RenderBoxModelObject::paintBoxShadow): (WebCore::RenderBoxModelObject::containingBlockLogicalWidthForContent): * rendering/RenderBoxModelObject.h: git-svn-id: svn://svn.chromium.org/blink/trunk@93435 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
fsamuel@chromium.org authored
https://bugs.webkit.org/show_bug.cgi?id=66568 Reviewed by Darin Fisher. * public/WebView.h: * src/WebViewImpl.cpp: (WebKit::WebViewImpl::isFixedLayoutModeEnabled): (WebKit::WebViewImpl::enableFixedLayoutMode): (WebKit::WebViewImpl::fixedLayoutSize): (WebKit::WebViewImpl::setFixedLayoutSize): * src/WebViewImpl.h: git-svn-id: svn://svn.chromium.org/blink/trunk@93434 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
alokp@chromium.org authored
https://bugs.webkit.org/show_bug.cgi?id=66570 Reviewed by Mihai Parparita. * DumpRenderTree/chromium/WebThemeControlDRTWin.cpp: (WebThemeControlDRTWin::draw): (WebThemeControlDRTWin::drawTextField): (WebThemeControlDRTWin::drawProgressBar): * DumpRenderTree/chromium/WebThemeControlDRTWin.h: git-svn-id: svn://svn.chromium.org/blink/trunk@93433 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
commit-queue@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=66566 Patch by Mihnea Ovidenie <mihnea@adobe.com> on 2011-08-19 Reviewed by David Hyatt. When in printing or the repaint rectangle is empty, there is no need to iterate the render flow regions in order to repaint. Covered by existing tests. * rendering/RenderFlowThread.cpp: (WebCore::RenderFlowThread::shouldRepaint): (WebCore::RenderFlowThread::repaintRectangleInRegions): * rendering/RenderFlowThread.h: git-svn-id: svn://svn.chromium.org/blink/trunk@93432 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
tony@chromium.org authored
* platform/chromium/test_expectations.txt: git-svn-id: svn://svn.chromium.org/blink/trunk@93431 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
commit-queue@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=66559 Patch by Mihnea Ovidenie <mihnea@adobe.com> on 2011-08-19 Reviewed by David Hyatt. Source/WebCore: * css/CSSComputedStyleDeclaration.cpp: (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): * css/CSSMutableStyleDeclaration.cpp: * css/CSSParser.cpp: (WebCore::CSSParser::parseValue): * css/CSSPropertyNames.in: * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::applyProperty): * rendering/style/RenderStyle.h: (WebCore::InheritedFlags::regionBreakBefore): (WebCore::InheritedFlags::regionBreakInside): (WebCore::InheritedFlags::regionBreakAfter): (WebCore::InheritedFlags::setRegionBreakBefore): (WebCore::InheritedFlags::setRegionBreakInside): (WebCore::InheritedFlags::setRegionBreakAfter): * rendering/style/StyleRareNonInheritedData.cpp: (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData): (WebCore::StyleRareNonInheritedData::operator==): * rendering/style/StyleRareNonInheritedData.h: LayoutTests: * fast/css/getComputedStyle/computed-style-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * svg/css/getComputedStyle-basic-expected.txt: git-svn-id: svn://svn.chromium.org/blink/trunk@93430 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
eae@chromium.org authored
https://bugs.webkit.org/show_bug.cgi?id=66507 Reviewed by Eric Seidel. Convert RenderLayer to new layout abstraction. No new tests as no new functionality. * rendering/LayoutTypes.h: (WebCore::flooredLayoutSize): * rendering/RenderLayer.cpp: * rendering/RenderLayer.h: * rendering/RenderLayerBacking.cpp: * rendering/RenderLayerBacking.h: * rendering/RenderLayerCompositor.cpp: * rendering/RenderLayerCompositor.h: git-svn-id: svn://svn.chromium.org/blink/trunk@93429 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
commit-queue@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=66459 Patch by Mihnea Ovidenie <mihnea@adobe.com> on 2011-08-19 Reviewed by Darin Adler. Source/WebCore: Initially, when creating the style for the RenderFlowThread, overflowX and overflowY were both set to hidden, so that RenderView did not display scrollbars when a RenderFlowThread exists. However, this allowed the possibility of scrolling the content displayed in region. Now, the RenderFlowThread objects are ignored in RenderBlock::insertPositionedObject and the style of the RenderFlowThread can be set to visible, thus preventing scrolling of the content displayed in regions. Test: fast/regions/content-flowed-into-regions-no-scroll.html * rendering/RenderFlowThread.cpp: (WebCore::RenderFlowThread::createFlowThreadStyle): LayoutTests: * fast/regions/content-flowed-into-regions-no-scroll-expected.txt: Added. * fast/regions/content-flowed-into-regions-no-scroll.html: Added. git-svn-id: svn://svn.chromium.org/blink/trunk@93428 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
caio.oliveira@openbossa.org authored
https://bugs.webkit.org/show_bug.cgi?id=65920 Reviewed by Benjamin Poulain. This patch makes QDesktopWebView delegate the decision of whether a navigation should proceed to a slot in QML. The user of the DesktopWebView must implement a 'navigationPolicyForUrl()' if it wants to use the feature. Such feature is useful for implementing opening links in "new tab" by using a specific mouse button or mouse button plus keyboard modifiers. The patch introduces a internal Qt-level interface called PolicyInterface, that is used by QtWebPageProxy to delegate policy calls. A concrete implementation is provided for QDesktopWebView. * Shared/qt/WebCoreArgumentCodersQt.cpp: (CoreIPC::::encode): (CoreIPC::::decode): Implement the serialization of the Request URL, which is the only data we exposing from the Request. * WebKit2.pro: * UIProcess/qt/PolicyInterface.h: Added. * UIProcess/qt/QtWebPageProxy.cpp: (QtWebPageProxy::QtWebPageProxy): (QtWebPageProxy::init): * UIProcess/qt/QtWebPageProxy.h: Register a Policy Client in the WK2 C API only if there's a PolicyInterface available. * UIProcess/qt/ClientImpl.h: * UIProcess/qt/ClientImpl.cpp: (toPolicyInterface): (toQtMouseButton): (toQtKeyboardModifiers): (qt_wk_decidePolicyForNavigationAction): Implement the callback for the Page Policy Client. It will translate the arguments to Qt jargon and call PolicyInterface. * UIProcess/qt/qdesktopwebpageproxy.cpp: (QDesktopWebPageProxy::QDesktopWebPageProxy): * UIProcess/API/qt/qdesktopwebview.h: * UIProcess/API/qt/qdesktopwebview_p.h: * UIProcess/API/qt/qdesktopwebview.cpp: (toPolicyAction): (hasMetaMethod): (QDesktopWebViewPrivate::navigationPolicyForURL): The concrete implementation for QDesktopWebView. Its private object implements the PolicyInterface and try to call a possible function defined in QML (so return value and arguments all QVariants). If there's no such a function, returns the default UsePolicy, like if we haven't registered a PolicyClient in WK2 C API. * UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_navigationPolicyForUrl.qml: Added. * UIProcess/API/qt/tests/qmltests/common/test2.html: Added. * UIProcess/API/qt/tests/qmltests/qmltests.pro: Add a test for DesktopWebView QML element making use of a button and a modifier to ignore a navigation. * UIProcess/qt/qtouchwebpageproxy.cpp: (QTouchWebPageProxy::QTouchWebPageProxy): For now, we don't have a PolicyInterface for QTouchWebView. git-svn-id: svn://svn.chromium.org/blink/trunk@93427 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
dslomov@google.com authored
https://bugs.webkit.org/show_bug.cgi?id=66521 This patch ensures that gtest uses new and delete operators that are defined in JavaScriptCore. Reviewed by David Levin. * gtest/include/gtest/internal/gtest-port.h: * gtest/msvc/gtest-md.vcproj: * gtest/README.WebKit: * gtest/xcode/Config/General.xcconfig: * gtest/xcode/gtest.xcodeproj/project.pbxproj: Tools: This patch ensures that gtest uses new and delete operators that are defined in JavaScriptCore. https://bugs.webkit.org/show_bug.cgi?id=66521 Reviewed by David Levin. * TestWebKitAPI/Tests/WTF/StringOperators.cpp: Removed redefinition of JS_EXPORTDATA. git-svn-id: svn://svn.chromium.org/blink/trunk@93426 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
jchaffraix@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=65140 <rdar://problem/9835905> Reviewed by Antti Koivisto. Source/WebCore: Tests: fast/css/stylesheet-enable-first-alternate-on-load.html fast/css/stylesheet-enable-first-alternate.html fast/css/stylesheet-enable-second-alternate-on-load.html fast/css/stylesheet-enable-second-alternate.html http/tests/css/link-css-disabled-value-with-slow-loading-sheet-in-error.html http/tests/css/link-css-disabled-value-with-slow-loading-sheet.html The gist of the issue is that we were ignoring calls to HTMLLinkElement::setDisabled that would enable a style sheet when we were loading a stylesheet (m_sheet was 0 and thus ignored the call per the spec). FF goes against the CSS OM spec in this case and always keep an associated sheet as long as 'rel' hints at a stylesheet link and href is present. Instead of siding with FF, I continued to follow the specification and store the enabled via javascript state into m_scriptState (renamed from m_isEnabledViaScript). This information gets merged back into the style sheet disabled state when it is available. While debugging the case at hand, I found some cases that were not properly handled and were fixed as part of this change. * html/HTMLLinkElement.cpp: (WebCore::HTMLLinkElement::HTMLLinkElement): Updated after m_isEnabledViaScript rename. (WebCore::HTMLLinkElement::setDisabled): Always call setIsEnabledViaScript so that the information is properly stored (either for recalcStyleSelector or just to store the state during loading). (WebCore::HTMLLinkElement::sheetLoaded): Merge back the state from m_scriptState to the sheet's disabled state. (WebCore::HTMLLinkElement::disabled): Account for the temporary state and return the right value. It matches FF and what people would expect. (WebCore::HTMLLinkElement::areDisabledAndScriptStatesConsistent): Debug only method that checks that disabled() and isEnabledViaScript() are consistent with each other (under some circumstances). * html/HTMLLinkElement.h: (WebCore::HTMLLinkElement::isEnabledViaScript): Updated after m_isEnabledViaScript rename. (WebCore::HTMLLinkElement::setIsEnabledViaScript): Added setter. LayoutTests: * fast/css/link-disabled-attr-expected.txt: This change is a progression, but we are still not handling updates to the selected style set properly (already covered by bug 62407). * fast/css/stylesheet-enable-first-alternate-expected.txt: Added. * fast/css/stylesheet-enable-first-alternate-on-load-expected.txt: Added. * fast/css/stylesheet-enable-first-alternate-on-load.html: Added. * fast/css/stylesheet-enable-first-alternate.html: Added. * fast/css/stylesheet-enable-second-alternate-expected.txt: Added. * fast/css/stylesheet-enable-second-alternate-on-load-expected.txt: Added. * fast/css/stylesheet-enable-second-alternate-on-load.html: Added. * fast/css/stylesheet-enable-second-alternate.html: Added. Those are a variation on the same theme: we disable some stylesheet and enable others, either directly or later. * http/tests/css/link-css-disabled-value-with-slow-loading-sheet-expected.txt: Added. * http/tests/css/link-css-disabled-value-with-slow-loading-sheet-in-error-expected.txt: Added. * http/tests/css/link-css-disabled-value-with-slow-loading-sheet-in-error.html: Added. * http/tests/css/link-css-disabled-value-with-slow-loading-sheet.html: Added. * http/tests/css/resources/link-css-disabled-value-with-slow-loading-sheet-in-error.js: Added. (onSheetLoaded): (testWhenLoaded): * http/tests/css/resources/link-css-disabled-value-with-slow-loading-sheet.js: Added. (onSheetLoaded): (testWhenLoaded): * http/tests/css/resources/slow-loading-sheet-in-error.php: Added. * http/tests/css/resources/slow-loading-sheet.php: Added. Those 2 test cases relies on a slow loading stylesheet so that we can test the disabled() value while the alternate sheet is asynchronously loading and then check them again once the sheet is loaded. git-svn-id: svn://svn.chromium.org/blink/trunk@93425 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
enne@google.com authored
https://bugs.webkit.org/show_bug.cgi?id=66065 Reviewed by James Robinson. Source/WebCore: Covered by existing tests. LayerTilerChromium is renamed to be CCLayerTilingData. Invalidation and paint functionality is pushed into TiledLayerChromium and drawing with GL is pushed into CCTiledLayerImpl. During tree synchronization, the tiler properties and texture IDs are synchronized into CCTiledLayerImpl. * WebCore.gypi: * platform/graphics/chromium/ContentLayerChromium.cpp: (WebCore::ContentLayerChromium::paintContentsIfDirty): (WebCore::ContentLayerChromium::createTextureUpdaterIfNeeded): * platform/graphics/chromium/ContentLayerChromium.h: * platform/graphics/chromium/ImageLayerChromium.cpp: (WebCore::ImageLayerChromium::paintContentsIfDirty): * platform/graphics/chromium/LayerRendererChromium.cpp: (WebCore::LayerRendererChromium::bestTextureFormat): (WebCore::LayerRendererChromium::initializeSharedObjects): (WebCore::LayerRendererChromium::tilerProgram): (WebCore::LayerRendererChromium::tilerProgramSwizzle): (WebCore::LayerRendererChromium::tilerProgramAA): (WebCore::LayerRendererChromium::tilerProgramSwizzleAA): * platform/graphics/chromium/LayerRendererChromium.h: * platform/graphics/chromium/LayerTextureUpdater.h: * platform/graphics/chromium/LayerTilerChromium.cpp: Removed. * platform/graphics/chromium/ManagedTexture.h: (WebCore::ManagedTexture::textureId): * platform/graphics/chromium/TiledLayerChromium.cpp: (WebCore::UpdatableTile::UpdatableTile): (WebCore::UpdatableTile::texture): (WebCore::UpdatableTile::dirty): (WebCore::UpdatableTile::clearDirty): (WebCore::TiledLayerChromium::TiledLayerChromium): (WebCore::TiledLayerChromium::cleanupResources): (WebCore::TiledLayerChromium::drawsContent): (WebCore::TiledLayerChromium::createTilerIfNeeded): (WebCore::TiledLayerChromium::updateCompositorResources): (WebCore::TiledLayerChromium::pushPropertiesTo): (WebCore::TiledLayerChromium::dumpLayerProperties): (WebCore::TiledLayerChromium::textureManager): (WebCore::TiledLayerChromium::tileAt): (WebCore::TiledLayerChromium::createTile): (WebCore::TiledLayerChromium::invalidateTiles): (WebCore::TiledLayerChromium::invalidateRect): (WebCore::TiledLayerChromium::protectVisibleTileTextures): (WebCore::TiledLayerChromium::protectTileTextures): (WebCore::TiledLayerChromium::prepareToUpdate): * platform/graphics/chromium/TiledLayerChromium.h: * platform/graphics/chromium/cc/CCLayerTilingData.cpp: Added. (WebCore::CCLayerTilingData::create): (WebCore::CCLayerTilingData::CCLayerTilingData): (WebCore::CCLayerTilingData::setTileSize): (WebCore::CCLayerTilingData::operator=): (WebCore::CCLayerTilingData::addTile): (WebCore::CCLayerTilingData::takeTile): (WebCore::CCLayerTilingData::tileAt): (WebCore::CCLayerTilingData::reset): (WebCore::CCLayerTilingData::contentRectToTileIndices): (WebCore::CCLayerTilingData::contentRectToLayerRect): (WebCore::CCLayerTilingData::layerRectToContentRect): (WebCore::CCLayerTilingData::tileContentRect): (WebCore::CCLayerTilingData::tileLayerRect): (WebCore::CCLayerTilingData::setLayerPosition): (WebCore::CCLayerTilingData::growLayerToContain): * platform/graphics/chromium/cc/CCLayerTilingData.h: Renamed from Source/WebCore/platform/graphics/chromium/LayerTilerChromium.h. (WebCore::CCLayerTilingData::numTiles): (WebCore::CCLayerTilingData::numTilesX): (WebCore::CCLayerTilingData::numTilesY): (WebCore::CCLayerTilingData::tileBounds): (WebCore::CCLayerTilingData::textureOffset): (WebCore::CCLayerTilingData::tileSize): (WebCore::CCLayerTilingData::hasBorderTexels): (WebCore::CCLayerTilingData::isEmpty): (WebCore::CCLayerTilingData::Tile::Tile): (WebCore::CCLayerTilingData::Tile::i): (WebCore::CCLayerTilingData::Tile::j): (WebCore::CCLayerTilingData::Tile::moveTo): (WebCore::CCLayerTilingData::TileMapKeyTraits::emptyValue): (WebCore::CCLayerTilingData::TileMapKeyTraits::constructDeletedValue): (WebCore::CCLayerTilingData::TileMapKeyTraits::isDeletedValue): (WebCore::CCLayerTilingData::tiles): * platform/graphics/chromium/cc/CCTiledLayerImpl.cpp: (WebCore::DrawableTile::DrawableTile): (WebCore::DrawableTile::textureId): (WebCore::DrawableTile::setTextureId): (WebCore::CCTiledLayerImpl::CCTiledLayerImpl): (WebCore::CCTiledLayerImpl::bindContentsTexture): (WebCore::CCTiledLayerImpl::tileAt): (WebCore::CCTiledLayerImpl::createTile): (WebCore::CCTiledLayerImpl::draw): (WebCore::CCTiledLayerImpl::setTilingData): (WebCore::CCTiledLayerImpl::syncTextureId): (WebCore::isCCW): (WebCore::computeEdge): (WebCore::intersect): (WebCore::CCTiledLayerImpl::drawTiles): * platform/graphics/chromium/cc/CCTiledLayerImpl.h: (WebCore::CCTiledLayerImpl::setSkipsDraw): (WebCore::CCTiledLayerImpl::setTextureOrientation): (WebCore::CCTiledLayerImpl::setSampledTexelFormat): * platform/graphics/gpu/TilingData.h: Source/WebKit/chromium: Add a test for assignment and copy constructor for TilingData. * tests/TilingDataTest.cpp: (WebCore::TEST): git-svn-id: svn://svn.chromium.org/blink/trunk@93424 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
vitalyr@chromium.org authored
[chromium] Cleaning up test expectations. Unreviewed. * platform/chromium/test_expectations.txt: git-svn-id: svn://svn.chromium.org/blink/trunk@93423 bbb929c8-8fbe-4397-9dbb-9b2b20218538 -
tony@chromium.org authored
* platform/chromium-cg-mac-leopard/editing/pasteboard/merge-end-list-expected.png: Added. git-svn-id: svn://svn.chromium.org/blink/trunk@93422 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
mitz@apple.com authored
* rendering/RenderBlockLineLayout.cpp: (WebCore::RenderBlock::LineBreaker::nextLineBreak): Use WTF::Unicode wrapper instead of ICU. git-svn-id: svn://svn.chromium.org/blink/trunk@93421 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
andersca@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=66508 <rdar://problem/9828476> Reviewed by Mark Rowe. * mac/MainMac.cpp: (closeUnusedFileDescriptors): Check if a file descriptor is a kqueue and don't close it if that is the case. While this isn't a complete fix, (it won't work if other initializers end up creating non-kqueue file descriptors) it's good enough for Snow Leopard. For Lion, we should use the new posix_spawn API that lets you whitelist file descriptors from the parent process. git-svn-id: svn://svn.chromium.org/blink/trunk@93420 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
podivilov@chromium.org authored
https://bugs.webkit.org/show_bug.cgi?id=54720 Reviewed by Pavel Feldman. * inspector/front-end/ScriptsPanel.js: (WebInspector.ScriptsPanel.prototype.evaluateInSelectedCallFrame): git-svn-id: svn://svn.chromium.org/blink/trunk@93419 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
aroben@apple.com authored
* TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: git-svn-id: svn://svn.chromium.org/blink/trunk@93418 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
aroben@apple.com authored
Fixes <http://webkit.org/b/66565> TestWebKitAPI needs a way to override instance methods of NSScreen Reviewed by Anders Carlsson. * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: Added new files. * TestWebKitAPI/Tests/TestWebKitAPI/mac/InstanceMethodSwizzler.mm: Added. (-[SimpleObject setValue:]): Original implementation. (TestWebKitAPI::setValue2): (TestWebKitAPI::setValue3): Swizzled implementations. (TestWebKitAPI::TEST): Test that we can swizzle and re-swizzle and un-swizzle an ObjC instance method. * TestWebKitAPI/mac/InstanceMethodSwizzler.h: Added. * TestWebKitAPI/mac/InstanceMethodSwizzler.mm: Added. (TestWebKitAPI::InstanceMethodSwizzler::InstanceMethodSwizzler): Swizzle the method. (TestWebKitAPI::InstanceMethodSwizzler::~InstanceMethodSwizzler): Unswizzle the method. git-svn-id: svn://svn.chromium.org/blink/trunk@93417 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
commit-queue@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=66486 Patch by Tom Zakrajsek <tomz@codeaurora.org> on 2011-08-19 Reviewed by Ryosuke Niwa. * Scripts/webkitpy/layout_tests/port/webkit.py: git-svn-id: svn://svn.chromium.org/blink/trunk@93416 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
podivilov@chromium.org authored
https://bugs.webkit.org/show_bug.cgi?id=66224 Reviewed by Pavel Feldman. Source/WebCore: Test: inspector/debugger/breakpoint-manager.html * WebCore.gypi: * WebCore.vcproj/WebCore.vcproj: * inspector/front-end/BreakpointManager.js: Added. (WebInspector.BreakpointManager): (WebInspector.BreakpointManager.prototype.uiSourceCodeAdded): (WebInspector.BreakpointManager.prototype.breakpointsForUISourceCode): (WebInspector.BreakpointManager.prototype.setBreakpoint): (WebInspector.BreakpointManager.prototype.removeBreakpoint): (WebInspector.BreakpointManager.prototype._materializeBreakpoint): (WebInspector.BreakpointManager.prototype._breakpointDebuggerLocationChanged): (WebInspector.BreakpointManager.prototype._addBreakpointToUI): (WebInspector.BreakpointManager.prototype._deleteBreakpointFromUI): (WebInspector.BreakpointManager.prototype._moveBreakpointInUI): (WebInspector.BreakpointManager.prototype._breakpoints): (WebInspector.BreakpointManager.prototype._breakpoint): (WebInspector.BreakpointManager.prototype._forEachBreakpoint): (WebInspector.BreakpointManager.prototype._setBreakpointInDebugger): (WebInspector.BreakpointManager.prototype._removeBreakpointFromDebugger): (WebInspector.BreakpointManager.prototype._breakpointResolved): (WebInspector.BreakpointManager.prototype.serializeBreakpoints): (WebInspector.BreakpointManager.prototype.reset): (WebInspector.BreakpointManager.prototype.debuggerReset): (WebInspector.Breakpoint): (WebInspector.Breakpoint.prototype.serialize): (WebInspector.Breakpoint.deserialize): * inspector/front-end/DebuggerModel.js: (WebInspector.DebuggerModel.prototype.setBreakpointByScriptLocation): * inspector/front-end/SourceFile.js: (WebInspector.RawSourceCode.prototype.get rawSourceCode): * inspector/front-end/WebKit.qrc: * inspector/front-end/inspector.html: LayoutTests: * inspector/debugger/breakpoint-manager-expected.txt: Added. * inspector/debugger/breakpoint-manager.html: Added. git-svn-id: svn://svn.chromium.org/blink/trunk@93415 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
aroben@apple.com authored
* TestWebKitAPI/Tests/WebKit2/win/HideFindIndicator.cpp: Added missing #include. git-svn-id: svn://svn.chromium.org/blink/trunk@93414 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
tonyg@chromium.org authored
https://bugs.webkit.org/show_bug.cgi?id=66552 Also fix line endings in file. No reviewed required. * Scripts/webkitpy/common/config/committers.py: git-svn-id: svn://svn.chromium.org/blink/trunk@93413 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
commit-queue@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=66554 Patch by Amruth Raj <amruthraj@motorola.com> on 2011-08-19 Reviewed by Martin Robinson. * WebKitTestRunner/PixelDumpSupport.cpp: git-svn-id: svn://svn.chromium.org/blink/trunk@93412 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
aroben@apple.com authored
* dom/DOMAllInOne.cpp: git-svn-id: svn://svn.chromium.org/blink/trunk@93411 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
commit-queue@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=65408 Bail out when we fail to allocate an Ewk_Frame_Smart_Data object rather than continuing on as if the allocation had succeeded. Patch by KwangHyuk Kim <hyuki.kim@samsung.com> on 2011-08-19 Reviewed by Adam Roben. * ewk/ewk_frame.cpp: (_ewk_frame_smart_add): git-svn-id: svn://svn.chromium.org/blink/trunk@93410 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-