- 06 Jan, 2011 11 commits
-
-
jamesr@google.com authored
Reviewed by Simon Fraser. Implement mozilla's animationTime property https://bugs.webkit.org/show_bug.cgi?id=51952 Tests for window.webkitAnimationTime. * animations/animation-time-expected.txt: Added. * animations/animation-time.html: Added. * animations/script-tests/animation-time.js: Added. 2011-01-06 James Robinson <jamesr@chromium.org> Reviewed by Simon Fraser. Implement mozilla's animationTime property https://bugs.webkit.org/show_bug.cgi?id=51952 Chromium DRT support for webkitAnimationTime. * DumpRenderTree/chromium/WebViewHost.cpp: (WebViewHost::paintInvalidatedRegion): 2011-01-06 James Robinson <jamesr@chromium.org> Reviewed by Simon Fraser. Implement mozilla's animationTime property https://bugs.webkit.org/show_bug.cgi?id=51952 Implements mozilla's animationTime property as described here: https://developer.mozilla.org/en/DOM/window.mozAnimationStartTime and http://hacks.mozilla.org/2010/08/more-efficient-javascript-animations-with-mozrequestanimationframe/ The property is called webkitAnimationTime as calling it the 'Start' time is not very informative. This property exposes a notion of a 'current' time to use for declarative animations and allows scripts to synchronize imperative animations with declarative ones if they choose to. Once queried this time is saved and used for all declarative animation updates until the embedder paints/composites the next frame and clears it, or 15ms elapse (in case the embedder isn't producing frames, for example if the page is in a background tab). This patch also ensures that all declarative animations started in the same script execution block are synchronized even if some time elapses while script is running. Test: fast/animation/animation-time.html * WebCore.gypi: * page/DOMWindow.cpp: (WebCore::DOMWindow::webkitAnimationTime): * page/DOMWindow.h: * page/DOMWindow.idl: * page/Frame.cpp: (WebCore::Frame::currentAnimationTime): * page/Frame.h: * page/Page.cpp: (WebCore::Page::Page): * page/Page.h: (WebCore::Page::animationTime): * page/animation/AnimationController.cpp: (WebCore::AnimationControllerPrivate::beginAnimationUpdateTime): * page/animation/AnimationTimeController.cpp: Added. (WebCore::AnimationTimeController::AnimationTimeController): (WebCore::AnimationTimeController::~AnimationTimeController): (WebCore::AnimationTimeController::currentAnimationTime): (WebCore::AnimationTimeController::clearCurrentAnimationTime): (WebCore::AnimationTimeController::clearCurrentAnimationTimeTimerFired): * page/animation/AnimationTimeController.h: Added. (WebCore::AnimationTimeController::create): 2011-01-06 James Robinson <jamesr@chromium.org> Reviewed by Simon Fraser. Implement mozilla's animationTime property https://bugs.webkit.org/show_bug.cgi?id=51952 WebKit API support for webkitAnimationTime. * public/WebWidget.h: * src/WebPopupMenuImpl.cpp: (WebKit::WebPopupMenuImpl::clearCurrentAnimationTime): * src/WebPopupMenuImpl.h: * src/WebViewImpl.cpp: (WebKit::WebViewImpl::clearCurrentAnimationTime): * src/WebViewImpl.h: 2011-01-06 James Robinson <jamesr@chromium.org> Reviewed by Simon Fraser. Implement mozilla's animationTime property https://bugs.webkit.org/show_bug.cgi?id=51952 Tells the page to clear the current animation time after producing a frame. * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::drawRect): * WebProcess/WebPage/ChunkedUpdateDrawingArea.cpp: (WebKit::ChunkedUpdateDrawingArea::display): (WebKit::ChunkedUpdateDrawingArea::setSize): * WebProcess/WebPage/mac/LayerBackedDrawingAreaMac.mm: (WebKit::LayerBackedDrawingArea::syncCompositingLayers): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75169 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
inferno@chromium.org authored
Reviewed by Simon Fraser. Null out the parent stylesheet pointer when a css rule is removed. https://bugs.webkit.org/show_bug.cgi?id=51993 Tests: fast/dom/StyleSheet/removed-media-rule-deleted-parent-crash.html fast/dom/StyleSheet/removed-stylesheet-rule-deleted-parent-crash.html * css/CSSRuleList.cpp: (WebCore::CSSRuleList::deleteRule): * css/CSSStyleSheet.cpp: (WebCore::CSSStyleSheet::deleteRule): 2011-01-06 Abhishek Arya <inferno@chromium.org> Reviewed by Simon Fraser. Tests that we do not crash when accessing a deleted parent stylesheet from a removed css rule. https://bugs.webkit.org/show_bug.cgi?id=51993 * fast/dom/StyleSheet/removed-media-rule-deleted-parent-crash-expected.txt: Added. * fast/dom/StyleSheet/removed-media-rule-deleted-parent-crash.html: Added. * fast/dom/StyleSheet/removed-stylesheet-rule-deleted-parent-crash-expected.txt: Added. * fast/dom/StyleSheet/removed-stylesheet-rule-deleted-parent-crash.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75168 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
enne@google.com authored
Reviewed by Kenneth Russell. Add test cases for storing NaN in typed arrays. https://bugs.webkit.org/show_bug.cgi?id=46990 * fast/canvas/webgl/array-unit-tests-expected.txt: * fast/canvas/webgl/array-unit-tests.html: 2011-01-04 Adrienne Walker <enne@google.com> Reviewed by Kenneth Russell. NaN in a TypedArray should be converted to zero only for Float32Array. https://bugs.webkit.org/show_bug.cgi?id=46990 Test: LayoutTests/fast/canvas/webgl/array-unit-tests.html * bindings/js/JSArrayBufferViewHelper.h: (WebCore::convertArrayValue): (WebCore::constructArrayBufferView): * html/canvas/Float32Array.h: (WebCore::Float32Array::set): (WebCore::Float32Array::item): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75167 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
andreip@google.com authored
Unreviewed, build fix. [Chromium] Add elliptical gradient support to GradientSkia https://bugs.webkit.org/show_bug.cgi?id=51841 Marks fast/gradients/css3-radial-gradients3.html as expected to fail. Also marks canvas/philip/tests/2d.shadow.gradient.alpha.html canvas/philip/tests/2d.shadow.gradient.basic.html canvas/philip/tests/2d.shadow.gradient.transparent.2.html as passing on Chromium-mac as a result of r75139. * platform/chromium/test_expectations.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75164 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
andreip@google.com authored
Unreviewed, rolling out r75152. [Chromium] fast/gradients/css3-radial-gradients3.html needs Chromium-specific results https://bugs.webkit.org/show_bug.cgi?id=51988 Rolling out since, on closer inspection, the expectations are wrong and the corresponding test really fails. * platform/chromium-mac/fast/gradients/css3-radial-gradients3-expected.checksum: Removed. * platform/chromium-mac/fast/gradients/css3-radial-gradients3-expected.png: Removed. * platform/chromium-win/fast/gradients/css3-radial-gradients3-expected.checksum: Removed. * platform/chromium-win/fast/gradients/css3-radial-gradients3-expected.png: Removed. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75162 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
yael.aharon@nokia.com authored
https://bugs.webkit.org/show_bug.cgi?id=51231 Reviewed by Darin Adler. Also fixes CSSNthSelector parsing code is illegible and buggy (allows "n3" as a valid selector) https://bugs.webkit.org/show_bug.cgi?id=21815 Add a check in the parser that other than an+b, only "odd" or "even" would be allowed as parameters to nth selector. Tests: fast/css/css3-nth-tokens-script.html fast/css/css3-nth-tokens-style.html * css/CSSGrammar.y: * css/CSSParser.cpp: (WebCore::isValidNthToken): * css/CSSParser.h: LayoutTests: document.querySelector(':nth-child(foo)') should throw a syntax error https://bugs.webkit.org/show_bug.cgi?id=51231 CSSNthSelector parsing code is illegible and buggy (allows "n3" as a valid selector) https://bugs.webkit.org/show_bug.cgi?id=21815 Reviewed by Darin Adler. * fast/css/css3-nth-tokens-script-expected.txt: Added. * fast/css/css3-nth-tokens-script.html: Added. * fast/css/css3-nth-tokens-style-expected.txt: Added. * fast/css/css3-nth-tokens-style.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75158 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
andreip@google.com authored
Unreviewed, build fix. [Chromium] canvas/canvas-fillRect-gradient-shadow.html fails on Chromium. https://bugs.webkit.org/show_bug.cgi?id=51989 Updating the test expectations for the chromium-gpu platform. * platform/chromium-gpu/test_expectations.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75155 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
andreip@google.com authored
Unreviewed, build fix. [Chromium] canvas/canvas-fillRect-gradient-shadow.html fails on Chromium. https://bugs.webkit.org/show_bug.cgi?id=51989 Added suppressions for svg/batik/text/textEffect.svg svg/batik/text/textEffect3.svg svg/css/composite-shadow-text.svg svg/custom/js-late-gradient-and-object-creation.svg svg/custom/js-late-gradient-creation.svg svg/text/selection-background-color.xhtml svg/text/selection-styles.xhtml svg/text/text-gradient-positioning.svg These tests are all failing as a result of the same change: r75153. * platform/chromium/test_expectations.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75154 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
andreip@google.com authored
Unreviewed, build fix. [Chromium] canvas/canvas-fillRect-gradient-shadow.html fails on Chromium. https://bugs.webkit.org/show_bug.cgi?id=51989 Updating Chromium expectations until we find a fix. * platform/chromium/test_expectations.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75153 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
andreip@google.com authored
Unreviewed, build fix. [Chromium] fast/gradients/css3-radial-gradients3.html needs Chromium-specific results https://bugs.webkit.org/show_bug.cgi?id=51988 * platform/chromium-mac/fast/gradients/css3-radial-gradients3-expected.checksum: Added. * platform/chromium-mac/fast/gradients/css3-radial-gradients3-expected.png: Added. * platform/chromium-win/fast/gradients/css3-radial-gradients3-expected.checksum: Added. * platform/chromium-win/fast/gradients/css3-radial-gradients3-expected.png: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75152 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
ossy@webkit.org authored
[Qt] Web Timing related bugs https://bugs.webkit.org/show_bug.cgi?id=51245 * platform/qt/Skipped: Add new tests. - http/tests/misc/webtiming-origins.html - http/tests/misc/webtiming-slow-load.php git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75150 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 05 Jan, 2011 21 commits
-
-
commit-queue@webkit.org authored
Reviewed by Simon Fraser. Shadows are not drawn when filling a rect with a gradient fillStyle on Mac and Chromium-Mac https://bugs.webkit.org/show_bug.cgi?id=51869 GraphicsContext::fillRect(const FloatRect&) is clipping to the rect. The shadow is being drawn, but getting clipped to the rect being filled. The solution is to draw the gradient into a CGLayer (when a shadow is required), then render the layer to the GraphicsContext. This patch also fixes: canvas/philip/tests/2d.shadow.gradient.alpha.html canvas/philip/tests/2d.shadow.gradient.basic.html canvas/philip/tests/2d.shadow.gradient.transparent.2.html New test to ensure that shadows are drawn when fillStyle is a gradient, possibly with some transparency and blur, and specifically using fillRect. * fast/canvas/canvas-fillRect-gradient-shadow-expected.txt: Added. * fast/canvas/canvas-fillRect-gradient-shadow.html: Added. * fast/canvas/script-tests/canvas-fillRect-gradient-shadow.js: Added. 2011-01-05 Helder Correia <helder@sencha.com> Reviewed by Simon Fraser. Shadows are not drawn when filling a rect with a gradient fillStyle on Mac and Chromium-Mac https://bugs.webkit.org/show_bug.cgi?id=51869 GraphicsContext::fillRect(const FloatRect&) is clipping to the rect. The shadow is being drawn, but getting clipped to the rect being filled. The solution is to draw the gradient into a CGLayer (when a shadow is required), then render the layer to the GraphicsContext. This patch also fixes: canvas/philip/tests/2d.shadow.gradient.alpha.html canvas/philip/tests/2d.shadow.gradient.basic.html canvas/philip/tests/2d.shadow.gradient.transparent.2.html Test: fast/canvas/canvas-fillRect-gradient-shadow.html * platform/graphics/Gradient.h: * platform/graphics/cg/GradientCG.cpp: (WebCore::Gradient::paint): * platform/graphics/cg/GraphicsContextCG.cpp: (WebCore::GraphicsContext::fillRect): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75139 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
simon.fraser@apple.com authored
Reviewed by Ariya Hidayat. Directly composited SVG images fail to render https://bugs.webkit.org/show_bug.cgi?id=51975 There was already code, added in r67900, to detect whether an image may be directly composited, by checking to see if it's a bitmap image. However, CachedImage::image() returns the nullImage() if m_image is null, which is a BitmapImage, confusing this test. Test: compositing/images/direct-svg-image.html * loader/cache/CachedImage.cpp: Remove nullImage(), since Image has exactly the same method. (WebCore::CachedImage::image): Use Image::nullImage(). * loader/cache/CachedImage.h: (WebCore::CachedImage::hasImage): New method to ask whether the m_image is non-null. * rendering/RenderLayerBacking.cpp: (WebCore::RenderLayerBacking::isDirectlyCompositedImage): Use hasImage() so that we don't test the nullImage. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75137 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
simon.fraser@apple.com authored
Reviewed by Darin Adler. Fix percentage values in radius of radial gradients https://bugs.webkit.org/show_bug.cgi?id=51979 Handle percentage values for the ending size of radial gradients. Test: fast/gradients/css3-radial-gradients3.html * css/CSSGradientValue.cpp: (WebCore::CSSRadialGradientValue::resolveRadius): Add parameter for height or width, which is non-null if percentage values are allowed, and compute percentage values when we see them. (WebCore::CSSRadialGradientValue::createGradient): Pass height or width down to say that percentages are OK when resolving end radii. * css/CSSGradientValue.h: New parameter for resolveRadius. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75136 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
simonjam@chromium.org authored
Reviewed by Adam Barth. [Web Timing] Zero out some values on cross-origin redirects https://bugs.webkit.org/show_bug.cgi?id=49294 * fast/dom/script-tests/webtiming.js: (checkTimingBeforeLoad): Remove unload. Its behavior depends on prior navigation and is tested separately. (checkTimingWhileDeferred): Ditto. (checkWebTimingOnDOMContentLoaded): Ditto. (checkWebTimingWhileAsync): Ditto. (checkWebTimingOnLoad): Ditto. (checkWebTimingAfterLoad): Ditto. * fast/dom/webtiming-expected.txt: * http/tests/misc/resources/webtiming-cross-origin-and-back-redirect1.php: Added. * http/tests/misc/resources/webtiming-cross-origin-and-back-redirect2.php: Added. * http/tests/misc/resources/webtiming-cross-origin-and-back1.html: Added. * http/tests/misc/resources/webtiming-cross-origin-and-back2.html: Added. * http/tests/misc/resources/webtiming-cross-origin-redirect.html: Added. * http/tests/misc/resources/webtiming-cross-origin-redirect.php: Added. * http/tests/misc/resources/webtiming-no-origin.html: Added. * http/tests/misc/webtiming-origins-expected.txt: Added. * http/tests/misc/webtiming-origins.html: Added. * platform/gtk/Skipped: Skip new web timing test. * platform/mac/Skipped: Ditto. * platform/win/Skipped: Ditto. 2011-01-05 James Simonsen <simonjam@chromium.org> Reviewed by Adam Barth. [Web Timing] Zero out some values on cross-origin redirects https://bugs.webkit.org/show_bug.cgi?id=49294 Tests: http/tests/misc/webtiming-cross-origin-redirect.php http/tests/misc/webtiming-origins.html * loader/DocumentLoadTiming.h: (WebCore::DocumentLoadTiming::DocumentLoadTiming): Add flags for cross-origin redirects and same-origin navigation. * loader/FrameLoader.cpp: (WebCore::FrameLoader::~FrameLoader): (WebCore::FrameLoader::stopLoading): Don't overwrite previous unload times. (WebCore::FrameLoader::completed): (WebCore::FrameLoader::loadWithDocumentLoader): Remember previous URL to see if navigation is same-origin. (WebCore::FrameLoader::commitProvisionalLoad): Set flag if navigation is same-origin. * loader/FrameLoader.h: * loader/MainResourceLoader.cpp: (WebCore::MainResourceLoader::willSendRequest): Set flag on cross-origin redirects. * page/PerformanceNavigation.cpp: (WebCore::PerformanceNavigation::redirectCount): Clear if cross-origin redirect flag is set. * page/PerformanceTiming.cpp: (WebCore::PerformanceTiming::redirectStart): Ditto. (WebCore::PerformanceTiming::redirectEnd): Ditto. (WebCore::PerformanceTiming::unloadEventStart): Clear if cross-origin navigation is set. (WebCore::PerformanceTiming::unloadEventEnd): Ditto. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75129 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
commit-queue@webkit.org authored
Reviewed by Ariya Hidayat. [Qt] Default focus ring is too wide https://bugs.webkit.org/show_bug.cgi?id=51854 This is an intermediate step to solve this bug. Use QPalette::Highlight instead of default half-transparent black as the focus ring color. * platform/qt/editing/selection/caret-and-focus-ring-expected.checksum: Added. * platform/qt/editing/selection/caret-and-focus-ring-expected.png: Added. * platform/qt/editing/selection/caret-and-focus-ring-expected.txt: Added. * platform/qt/fast/css/focus-ring-outline-color-expected.checksum: * platform/qt/fast/css/focus-ring-outline-color-expected.png: * platform/qt/fast/css/focus-ring-outline-offset-expected.checksum: * platform/qt/fast/css/focus-ring-outline-offset-expected.png: * platform/qt/fast/css/focus-ring-outline-width-expected.checksum: * platform/qt/fast/css/focus-ring-outline-width-expected.png: 2011-01-05 Helder Correia <helder@sencha.com> Reviewed by Ariya Hidayat. [Qt] Default focus ring is too wide https://bugs.webkit.org/show_bug.cgi?id=51854 This is an intermediate step to solve this bug. Use QPalette::Highlight instead of default half-transparent black as the focus ring color. * platform/graphics/qt/GraphicsContextQt.cpp: (WebCore::drawFocusRingForPath): * platform/qt/RenderThemeQt.cpp: (WebCore::RenderThemeQt::platformFocusRingColor): * platform/qt/RenderThemeQt.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75126 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
simonjam@chromium.org authored
Reviewed by Darin Fisher. [Web Timing] requestStart and responseStart should be available even if the document is still loading https://bugs.webkit.org/show_bug.cgi?id=51368 * http/tests/misc/webtiming-slow-load-expected.txt: Added. * http/tests/misc/webtiming-slow-load.php: Added. 2011-01-05 James Simonsen <simonjam@chromium.org> Reviewed by Darin Fisher. [Web Timing] requestStart and responseStart should be available even if the document is still loading https://bugs.webkit.org/show_bug.cgi?id=51368 Test: http/tests/misc/webtiming-slow-load.php * page/PerformanceTiming.cpp: (WebCore::getPossiblySkewedTimeInKnownRange): Handle case where response is not yet complete. (WebCore::PerformanceTiming::resourceLoadTimeRelativeToAbsolute): Use full upper bound. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75120 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
tkent@chromium.org authored
Unreviewed, test expectation update. Rebaseline of renderer-destruction-by-invalidateSelection-crash.html * platform/chromium-linux/fast/repaint/renderer-destruction-by-invalidateSelection-crash-expected.checksum: * platform/chromium-linux/fast/repaint/renderer-destruction-by-invalidateSelection-crash-expected.png: * platform/chromium-mac/fast/repaint/renderer-destruction-by-invalidateSelection-crash-expected.checksum: Added. * platform/chromium-mac/fast/repaint/renderer-destruction-by-invalidateSelection-crash-expected.png: Added. * platform/chromium-win/fast/repaint/renderer-destruction-by-invalidateSelection-crash-expected.checksum: * platform/chromium-win/fast/repaint/renderer-destruction-by-invalidateSelection-crash-expected.png: * platform/chromium-win/fast/repaint/renderer-destruction-by-invalidateSelection-crash-expected.txt: * platform/chromium/test_expectations.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75116 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
commit-queue@webkit.org authored
Reviewed by Adam Barth. fast/encoding/parser-tests.html is slow on debug builds https://bugs.webkit.org/show_bug.cgi?id=51721 Break up parser tests to run 10 tests per batch. * fast/encoding/parser-tests-10-expected.txt: Added. * fast/encoding/parser-tests-10.html: Copied from LayoutTests/fast/encoding/parser-tests.html. * fast/encoding/parser-tests-100-expected.txt: Added. * fast/encoding/parser-tests-100.html: Copied from LayoutTests/fast/encoding/parser-tests.html. * fast/encoding/parser-tests-110-expected.txt: Added. * fast/encoding/parser-tests-110.html: Copied from LayoutTests/fast/encoding/parser-tests.html. * fast/encoding/parser-tests-120-expected.txt: Added. * fast/encoding/parser-tests-120.html: Copied from LayoutTests/fast/encoding/parser-tests.html. * fast/encoding/parser-tests-20-expected.txt: Added. * fast/encoding/parser-tests-20.html: Copied from LayoutTests/fast/encoding/parser-tests.html. * fast/encoding/parser-tests-30-expected.txt: Added. * fast/encoding/parser-tests-30.html: Copied from LayoutTests/fast/encoding/parser-tests.html. * fast/encoding/parser-tests-40-expected.txt: Added. * fast/encoding/parser-tests-40.html: Copied from LayoutTests/fast/encoding/parser-tests.html. * fast/encoding/parser-tests-50-expected.txt: Added. * fast/encoding/parser-tests-50.html: Copied from LayoutTests/fast/encoding/parser-tests.html. * fast/encoding/parser-tests-60-expected.txt: Added. * fast/encoding/parser-tests-60.html: Copied from LayoutTests/fast/encoding/parser-tests.html. * fast/encoding/parser-tests-70-expected.txt: Added. * fast/encoding/parser-tests-70.html: Copied from LayoutTests/fast/encoding/parser-tests.html. * fast/encoding/parser-tests-80-expected.txt: Added. * fast/encoding/parser-tests-80.html: Copied from LayoutTests/fast/encoding/parser-tests.html. * fast/encoding/parser-tests-90-expected.txt: Added. * fast/encoding/parser-tests-90.html: Copied from LayoutTests/fast/encoding/parser-tests.html. * fast/encoding/parser-tests-expected.txt: * fast/encoding/parser-tests.html: * fast/encoding/resources/parser-tests.js: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75111 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hans@chromium.org authored
Reviewed by Jeremy Orlow. [Chromium] storage/indexeddb/objectstore-basics.html is flaky after r74266 https://bugs.webkit.org/show_bug.cgi?id=51731 Fix the layout test by using a known-good date value rather than new Date(), which sometimes causes the test to fail. (The underlying reason for failing to store certain Date values should of course be fixed too, but that will come in a later patch.) * platform/chromium/test_expectations.txt: * storage/indexeddb/objectstore-basics-expected.txt: * storage/indexeddb/objectstore-basics.html: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75109 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
senorblanco@chromium.org authored
Unreviewed; test expectations update.. Fix the expectations for the hyphenation tests on chromium-win. * platform/chromium/test_expectations.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75105 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
senorblanco@chromium.org authored
Unreviewed; test expectations fix. * platform/chromium/test_expectations.txt: Add expectations for new tests introduced by r75097. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75104 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
simon.fraser@apple.com authored
Reviewed by Dave Hyatt. Implement repeating CSS3 gradients https://bugs.webkit.org/show_bug.cgi?id=51843 Add support for repeating gradients, via the new gradient functions -webkit-repeating-linear-gradient and -webkit-repeating-radial-gradient. Tests: fast/gradients/css3-repeating-linear-gradients.html fast/gradients/css3-repeating-radial-gradients.html * css/CSSGradientValue.h: (WebCore::CSSGradientValue::isRepeating): Accessor for whethe the gradient repeats. (WebCore::CSSGradientValue::CSSGradientValue): Pass CSSGradientRepeat in. (WebCore::CSSLinearGradientValue::create): Pass CSSGradientRepeat. (WebCore::CSSLinearGradientValue::CSSLinearGradientValue): Ditto (WebCore::CSSRadialGradientValue::create): Ditto. (WebCore::CSSRadialGradientValue::CSSRadialGradientValue): Ditto. * css/CSSGradientValue.cpp: (WebCore::CSSGradientValue::addStops): Pass maxLengthForRepeat, which is used for repeating radial gradients. Add code to repeat the stops, adding stops before the start, and after the end until the 0-N range is covered, where N is large enough to ensure the box is covered. Fix an issue with repeating gradients where if both stops were < 0, it would fail to clamp them to 0. (WebCore::CSSLinearGradientValue::cssText): Output strings for repeating gradients. (WebCore::CSSLinearGradientValue::createGradient): maxExtent for linear gradients is 1, because they are guaranteed to fill the box already. (WebCore::CSSRadialGradientValue::cssText): Output strings for repeating gradients. (WebCore::CSSRadialGradientValue::createGradient): Compute the distance to the furthest corner in order to inform addStops() how much additional extent is required. * css/CSSParser.cpp: (WebCore::CSSParser::parseDeprecatedGradient): Old gradients never repeat. (WebCore::CSSParser::parseLinearGradient): Pass down CSSGradientRepeat. (WebCore::CSSParser::parseRadialGradient): Ditto. (WebCore::CSSParser::isGeneratedImageValue): Add repeating gradient functions. (WebCore::CSSParser::parseGeneratedImage): Ditto. * css/CSSParser.h: Pass CSSGradientRepeat to gradient functions. * platform/graphics/cg/GradientCG.cpp: Remove unused #include. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75097 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
senorblanco@chromium.org authored
Unreviewed; test expectations fix. * platform/chromium/test_expectations.txt: Add a few failing tests to chromium's test expectations file. * platform/chromium-gpu/test_expectations.txt: Mark the shadow-offset tests as crashing on win debug (GPU). Remove a duplicate MAC expectation. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75096 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
senorblanco@chromium.org authored
Unreviewed; test expectations fix. Update chromium GPU test_expectations.txt file to match the layout of the CPU results more closely. * platform/chromium-gpu/test_expectations.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75088 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
mjs@apple.com authored
Reviewed by Anders Carlsson. Remove entries from WebKit2 skipped list that no longer exist https://bugs.webkit.org/show_bug.cgi?id=51936 * platform/mac-wk2/Skipped: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75087 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
bweinstein@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=51912. * platform/win/accessibility/document-role-expected.txt: * platform/win/accessibility/selection-and-focus-expected.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75083 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
inferno@chromium.org authored
Reviewed by Dave Hyatt. Do not merge anonymous blocks when one of them is the one getting removed. https://bugs.webkit.org/show_bug.cgi?id=51919 Test: fast/block/merge-anonymous-block-remove-child-crash.html * rendering/RenderBlock.cpp: (WebCore::RenderBlock::removeChild): 2011-01-05 Abhishek Arya <inferno@chromium.org> Reviewed by Dave Hyatt. Tests that we do not crash when trying to merge two anonymous blocks, one of which is getting removed. https://bugs.webkit.org/show_bug.cgi?id=51919 * fast/block/merge-anonymous-block-remove-child-crash-expected.txt: Added. * fast/block/merge-anonymous-block-remove-child-crash.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75082 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
rdar://problem/8799835mitz@apple.com authored
<rdar://problem/8799835> hyphenate-character: auto should fall back to hyphen-minus if the primary font lacks a hyphen glyph https://bugs.webkit.org/show_bug.cgi?id=51915 Reviewed by Darin Adler. WebCore: This changes the results of existing tests in fast/text. * platform/graphics/Font.h: * platform/graphics/FontFastPath.cpp: (WebCore::Font::primaryFontHasGlyphForCharacter): Added. * rendering/style/RenderStyle.cpp: * platform/graphics/qt/FontQt.cpp: (WebCore::Font::primaryFontHasGlyphForCharacter): Added a stub. (WebCore::RenderStyle::hyphenString): For hyphenate-character: auto, return a hyphen only if the primary font has a hyphen glyph, and otherwise return a hyphen-minus. LayoutTests: * platform/mac/fast/text/basic/014-expected.checksum: * platform/mac/fast/text/basic/014-expected.png: * platform/mac/fast/text/basic/014-expected.txt: * platform/mac/fast/text/capitalize-boundaries-expected.checksum: * platform/mac/fast/text/capitalize-boundaries-expected.png: * platform/mac/fast/text/capitalize-boundaries-expected.txt: * platform/mac/fast/text/midword-break-after-breakable-char-expected.checksum: * platform/mac/fast/text/midword-break-after-breakable-char-expected.png: * platform/mac/fast/text/midword-break-after-breakable-char-expected.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75077 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
commit-queue@webkit.org authored
Reviewed by Dirk Schulze. Malformed SVG causes crash in updateContainerOffset https://bugs.webkit.org/show_bug.cgi?id=44610 Test case for recursive svg <use>. This test case passes if no crash occurs. * svg/custom/recursive-use-expected.txt: Added. * svg/custom/recursive-use.svg: Added. 2011-01-05 Leo Yang <leo.yang@torchmobile.com.cn> Reviewed by Dirk Schulze. Malformed SVG causes crash in updateContainerOffset https://bugs.webkit.org/show_bug.cgi?id=44610 We should check recursive <use> at the begining of WebCore::SVGUseElement::buildInstanceTree instead of at the end of it because the target element's children may cause infinite recursive <use>. Test: svg/custom/recursive-use.svg * svg/SVGUseElement.cpp: (WebCore::SVGUseElement::buildInstanceTree): (WebCore::SVGUseElement::hasCycleUseReferencing): * svg/SVGUseElement.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75059 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
antti@apple.com authored
Update a pixel test result for https://bugs.webkit.org/show_bug.cgi?id=8852. * platform/mac/fast/repaint/renderer-destruction-by-invalidateSelection-crash-expected.checksum: * platform/mac/fast/repaint/renderer-destruction-by-invalidateSelection-crash-expected.png: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75057 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
tkent@chromium.org authored
Unreviewed, test expectation update. insecure-css-in-main-frame.html is flaky on Chromium-linux too. * platform/chromium/test_expectations.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75049 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 04 Jan, 2011 8 commits
-
-
tkent@chromium.org authored
Unreviewed, test expectation update - slow-loading-image-in-pattern.html had a wrong expectation for Chromium-win. - insecure-css-in-main-frame.html is flaky on Chromium-win? * platform/chromium/test_expectations.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75043 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
yael.aharon@nokia.com authored
Reviewed by Darin Adler. CSS3 :nth-child selector and valid whitespace test fails https://bugs.webkit.org/show_bug.cgi?id=36279 * fast/css/css3-nth-space-expected.txt: Added. * fast/css/css3-nth-space.html: Added. 2011-01-04 Yael Aharon <yael.aharon@nokia.com> Reviewed by Darin Adler. CSS3 :nth-child selector and valid whitespace test fails https://bugs.webkit.org/show_bug.cgi?id=36279 Teach the tokenizer to allow white spaces around [+/-] signs in nth constructs. Test: fast/css/css3-nth-space.html * css/tokenizer.flex: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75039 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
tonyg@chromium.org authored
Unreviewed expectations update. Fix text metrics for "You should not see this at all" message https://bugs.webkit.org/show_bug.cgi?id=51909 * http/tests/misc/acid3-expected.checksum: * http/tests/misc/acid3-expected.png: * platform/chromium/test_expectations.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75035 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
cfleizach@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=51859 Reviewed by Sam Weinig. Tools: Use rootObject() method to get top of accessibility tree. * DumpRenderTree/mac/AccessibilityControllerMac.mm: (AccessibilityController::focusedElement): (AccessibilityController::rootElement): WebCore: WK2 doesn't use platform scroll views anymore. Accessibility code needs to have its own scroll views. Test: platform/mac/accessibility/webkit-scrollarea.html * CMakeLists.txt: * GNUmakefile.am: * WebCore.exp.in: * WebCore.gypi: * WebCore.pro: * WebCore.vcproj/WebCore.vcproj: * WebCore.xcodeproj/project.pbxproj: * accessibility/AXObjectCache.cpp: (WebCore::AXObjectCache::AXObjectCache): (WebCore::AXObjectCache::get): (WebCore::AXObjectCache::getOrCreate): (WebCore::AXObjectCache::rootObject): (WebCore::AXObjectCache::remove): (WebCore::AXObjectCache::handleScrollbarUpdate): * accessibility/AXObjectCache.h: (WebCore::AXObjectCache::handleScrollbarUpdate): * accessibility/AccessibilityARIAGrid.h: * accessibility/AccessibilityAllInOne.cpp: * accessibility/AccessibilityImageMapLink.cpp: * accessibility/AccessibilityImageMapLink.h: * accessibility/AccessibilityListBoxOption.cpp: * accessibility/AccessibilityListBoxOption.h: * accessibility/AccessibilityObject.cpp: (WebCore::AccessibilityObject::updateChildrenIfNecessary): (WebCore::AccessibilityObject::elementAccessibilityHitTest): (WebCore::AccessibilityObject::axObjectCache): (WebCore::AccessibilityObject::focusedUIElement): * accessibility/AccessibilityObject.h: (WebCore::AccessibilityObject::isAccessibilityScrollView): (WebCore::AccessibilityObject::isScrollView): (WebCore::AccessibilityObject::canSetNumericValue): (WebCore::AccessibilityObject::scrollBar): (WebCore::AccessibilityObject::size): (WebCore::AccessibilityObject::setValue): * accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::parentObject): (WebCore::AccessibilityRenderObject::accessibilityHitTest): (WebCore::AccessibilityRenderObject::updateChildrenIfNecessary): (WebCore::AccessibilityRenderObject::addChildren): * accessibility/AccessibilityRenderObject.h: * accessibility/AccessibilityScrollView.cpp: Added. (WebCore::AccessibilityScrollView::AccessibilityScrollView): (WebCore::AccessibilityScrollView::create): (WebCore::AccessibilityScrollView::scrollBar): (WebCore::AccessibilityScrollView::children): (WebCore::AccessibilityScrollView::updateChildrenIfNecessary): (WebCore::AccessibilityScrollView::removeChildScrollbar): (WebCore::AccessibilityScrollView::addChildScrollbar): (WebCore::AccessibilityScrollView::addChildren): (WebCore::AccessibilityScrollView::webAreaObject): (WebCore::AccessibilityScrollView::accessibilityHitTest): (WebCore::AccessibilityScrollView::document): (WebCore::AccessibilityScrollView::elementRect): (WebCore::AccessibilityScrollView::parentObject): * accessibility/AccessibilityScrollView.h: Added. (WebCore::AccessibilityScrollView::roleValue): (WebCore::AccessibilityScrollView::scrollView): (WebCore::AccessibilityScrollView::accessibilityIsIgnored): (WebCore::AccessibilityScrollView::isAccessibilityScrollView): (WebCore::toAccessibilityScrollView): * accessibility/AccessibilityScrollbar.cpp: (WebCore::AccessibilityScrollbar::AccessibilityScrollbar): (WebCore::AccessibilityScrollbar::create): (WebCore::AccessibilityScrollbar::elementRect): (WebCore::AccessibilityScrollbar::document): (WebCore::AccessibilityScrollbar::orientation): (WebCore::AccessibilityScrollbar::isEnabled): (WebCore::AccessibilityScrollbar::valueForRange): (WebCore::AccessibilityScrollbar::setValue): * accessibility/AccessibilityScrollbar.h: (WebCore::AccessibilityScrollbar::setParent): (WebCore::AccessibilityScrollbar::canSetValueAttribute): (WebCore::AccessibilityScrollbar::canSetNumericValue): (WebCore::AccessibilityScrollbar::isAccessibilityScrollbar): (WebCore::AccessibilityScrollbar::parentObject): (WebCore::AccessibilityScrollbar::roleValue): * accessibility/mac/AccessibilityObjectMac.mm: (WebCore::AccessibilityObject::accessibilityIgnoreAttachment): * accessibility/mac/AccessibilityObjectWrapper.mm: (-[AccessibilityObjectWrapper accessibilityAttributeNames]): (-[AccessibilityObjectWrapper remoteAccessibilityParentObject]): (-[AccessibilityObjectWrapper position]): (-[AccessibilityObjectWrapper scrollViewParent]): (-[AccessibilityObjectWrapper accessibilityAttributeValue:]): (-[AccessibilityObjectWrapper accessibilityHitTest:]): (-[AccessibilityObjectWrapper accessibilitySetValue:forAttribute:]): * dom/Document.cpp: (WebCore::Document::axObjectCache): * loader/EmptyClients.h: (WebCore::EmptyFrameLoaderClient::accessibilityRemoteObject): * loader/FrameLoaderClient.h: * page/FrameView.cpp: (WebCore::FrameView::~FrameView): (WebCore::FrameView::axObjectCache): * page/FrameView.h: * platform/ScrollView.cpp: (WebCore::ScrollView::setHasHorizontalScrollbar): (WebCore::ScrollView::setHasVerticalScrollbar): * platform/Scrollbar.cpp: (WebCore::Scrollbar::~Scrollbar): (WebCore::Scrollbar::scroll): (WebCore::Scrollbar::axObjectCache): * platform/Scrollbar.h: * platform/Widget.h: (WebCore::Widget::axObjectCache): WebKit/gtk: Use rootObject() method to get top of ax tree. * WebCoreSupport/DumpRenderTreeSupportGtk.cpp: (DumpRenderTreeSupportGtk::getFocusedAccessibleElement): * webkit/webkitwebview.cpp: (webkit_web_view_get_accessible): WebKit/mac: Use rootObject() method to get top of AX tree. * WebCoreSupport/WebFrameLoaderClient.h: (WebFrameLoaderClient::accessibilityRemoteObject): * WebView/WebFrame.mm: (-[WebFrame setAccessibleName:]): (-[WebFrame accessibilityRoot]): * WebView/WebFrameInternal.h: * WebView/WebFramePrivate.h: * WebView/WebHTMLView.mm: (-[WebHTMLView accessibilityAttributeValue:]): (-[WebHTMLView accessibilityFocusedUIElement]): (-[WebHTMLView accessibilityHitTest:]): (-[WebHTMLView _accessibilityParentForSubview:]): WebKit/win: Use rootObject() method to get the top of the AX tree. * AccessibleDocument.cpp: (AccessibleDocument::AccessibleDocument): WebKit2: Implement remote accessibility API to support cross process accessibility on the Mac platform. * Shared/WebProcessCreationParameters.cpp: (WebKit::WebProcessCreationParameters::encode): (WebKit::WebProcessCreationParameters::decode): * Shared/WebProcessCreationParameters.h: * UIProcess/API/mac/PageClientImpl.h: * UIProcess/API/mac/PageClientImpl.mm: (WebKit::PageClientImpl::accessibilityChildTokenReceived): * UIProcess/API/mac/WKView.mm: (-[WKView initWithFrame:contextRef:pageGroupRef:]): (-[WKView _updateWindowAndViewFrames]): (-[WKView _setAccessibilityChildToken:]): (-[WKView accessibilityIsIgnored]): (-[WKView accessibilityHitTest:]): (-[WKView accessibilityAttributeValue:]): * UIProcess/API/mac/WKViewInternal.h: * UIProcess/PageClient.h: * UIProcess/WebContext.cpp: (WebKit::WebContext::ensureWebProcess): * UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::windowAndViewFramesChanged): (WebKit::WebPageProxy::didReceiveAccessibilityPageToken): (WebKit::WebPageProxy::sendAccessibilityPresenterToken): * UIProcess/WebPageProxy.h: * UIProcess/WebPageProxy.messages.in: * WebKit2.xcodeproj/project.pbxproj: * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp: (WebKit::WebFrameLoaderClient::accessibilityRemoteObject): * WebProcess/WebCoreSupport/WebFrameLoaderClient.h: * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::windowAndViewFramesChanged): * WebProcess/WebPage/WebPage.h: (WebKit::WebPage::accessibilityPosition): * WebProcess/WebPage/WebPage.messages.in: * WebProcess/WebPage/mac/AccessibilityWebPageObject.h: Added. * WebProcess/WebPage/mac/AccessibilityWebPageObject.mm: Added. (-[AccessibilityWebPageObject setWebPage:]): (-[AccessibilityWebPageObject setRemoteParent:]): (-[AccessibilityWebPageObject dealloc]): (-[AccessibilityWebPageObject accessibilityIsIgnored]): (-[AccessibilityWebPageObject accessibilityAttributeNames]): (-[AccessibilityWebPageObject accessibilityIsAttributeSettable:]): (-[AccessibilityWebPageObject accessibilitySetValue:forAttribute:]): (-[AccessibilityWebPageObject accessibilityActionNames]): (-[AccessibilityWebPageObject accessibilityChildren]): (-[AccessibilityWebPageObject accessibilityAttributeValue:]): (-[AccessibilityWebPageObject accessibilityShouldUseUniqueId]): (-[AccessibilityWebPageObject accessibilityHitTest:]): (-[AccessibilityWebPageObject accessibilityFocusedUIElement]): * WebProcess/WebPage/mac/WebPageMac.mm: (WebKit::WebPage::platformInitialize): (WebKit::WebPage::sendAccessibilityPresenterToken): (WebKit::WebPage::accessibilityRemoteObject): * WebProcess/WebProcess.cpp: (WebKit::WebProcess::initializeWebProcess): * WebProcess/WebProcess.h: (WebKit::WebProcess::presenterApplicationPid): * WebProcess/mac/WebProcessMainMac.mm: (WebKit::WebProcessMain): LayoutTests: * platform/mac/accessibility/webkit-scrollarea-expected.txt: Added. * platform/mac/accessibility/webkit-scrollarea.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75031 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
tkent@chromium.org authored
Unreviewed, test expectation update. Add home-end-expected.txt for Chromium-win again. It's a platform-dependent text test. * platform/chromium-win/editing/selection/home-end-expected.txt: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75029 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
tkent@chromium.org authored
Unreviewed, test expectation update. * platform/chromium/test_expectations.txt: Fix a syntax error in the previous change git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75025 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
tkent@chromium.org authored
Unreviewed, test expectation update. * platform/chromium-win/editing/selection/home-end-expected.txt: Removed. * platform/chromium/test_expectations.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75024 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
xji@chromium.org authored
Reviewed by Dan Bernstein. Implement sel.modify('move', 'left'/'right', 'lineBoundary'). https://bugs.webkit.org/show_bug.cgi?id=33435 * editing/SelectionController.cpp: (WebCore::SelectionController::modifyMovingRight): (WebCore::SelectionController::modifyMovingLeft): * editing/visible_units.cpp: (WebCore::logicalStartOfLine): (WebCore::logicalEndOfLine): (WebCore::leftBoundaryOfLine): (WebCore::rightBoundaryOfLine): * editing/visible_units.h: 2011-01-04 Xiaomei Ji <xji@chromium.org> Implement sel.modify('move', 'left'/'right', 'lineBoundary'). https://bugs.webkit.org/show_bug.cgi?id=33435 * editing/selection/home-end-expected.txt: * editing/selection/home-end.html: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75018 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-