1. 22 Nov, 2011 1 commit
  2. 18 Nov, 2011 1 commit
    • commit-queue@webkit.org's avatar
      IDL changes for gamepad support · 0ef17682
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=71753
      
      Patch by Scott Graham <scottmg@chromium.org> on 2011-11-18
      Reviewed by Adam Barth.
      
      Source/WebCore:
      
      IDL changes and associated plumbing to expose list of gamepad objects
      on navigator object (per current spec). Full patch is
      https://bugs.webkit.org/show_bug.cgi?id=69451. Only basic existence
      test until more plumbing in future patches.
      
      Test: gamepad/gamepad-api.html
      
      * WebCore.gypi:
      * bindings/generic/RuntimeEnabledFeatures.h:
      (WebCore::RuntimeEnabledFeatures::setWebkitGamepadsEnabled):
      (WebCore::RuntimeEnabledFeatures::webkitGamepadsEnabled):
      * page/Gamepad.cpp: Added.
      (WebCore::Gamepad::Gamepad):
      (WebCore::Gamepad::axes):
      (WebCore::Gamepad::buttons):
      (WebCore::Gamepad::~Gamepad):
      * page/Gamepad.h: Added.
      * page/Gamepad.idl: Added.
      * page/GamepadList.cpp: Added.
      (WebCore::GamepadList::~GamepadList):
      (WebCore::GamepadList::set):
      (WebCore::GamepadList::length):
      (WebCore::GamepadList::item):
      * page/GamepadList.h: Added.
      (WebCore::GamepadList::create):
      (WebCore::GamepadList::GamepadList):
      * page/GamepadList.idl: Added.
      * page/Navigator.cpp:
      (WebCore::Navigator::webkitGamepads):
      * page/Navigator.h:
      * page/Navigator.idl:
      
      Source/WebKit/chromium:
      
      Update to use vendor-prefixed enable.
      
      * src/WebRuntimeFeatures.cpp:
      (WebKit::WebRuntimeFeatures::enableGamepad):
      (WebKit::WebRuntimeFeatures::isGamepadEnabled):
      
      Tools:
      
      Runtime enable gamepad in chromium test shell.
      
      * DumpRenderTree/chromium/TestShell.cpp:
      (TestShell::TestShell):
      
      LayoutTests:
      
      Add basic api existence test.
      
      * gamepad/gamepad-api-expected.txt: Added.
      * gamepad/gamepad-api.html: Added.
      * gamepad/gamepad-test.js: Added.
      (logConsole):
      (testExpected):
      (reportExpected):
      (waitForEventAndEnd):
      (waitForEvent._eventCallback):
      (waitForEvent):
      (waitForEventAndTest._eventCallback):
      (waitForEventAndTest):
      (waitForEventTestAndEnd):
      (endTest):
      (logResult):
      (consoleWrite):
      * platform/chromium/fast/dom/navigator-detached-no-crash-expected.txt:
      * platform/efl/Skipped:
      * platform/gtk/Skipped:
      * platform/mac/Skipped:
      * platform/qt/Skipped:
      * platform/win/Skipped:
      * platform/wincairo/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@100833 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0ef17682
  3. 15 Nov, 2011 4 commits
  4. 09 Nov, 2011 1 commit
    • commit-queue@webkit.org's avatar
      Internals.markerRangeForNode should be able to take markers by specifying a marker type. · 35045abe
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=71792
      
      Patch by Shinya Kawanaka <shinyak@google.com> on 2011-11-09
      Reviewed by Hajime Morita.
      
      .:
      
      * Source/autotools/symbols.filter: Exposed necessary symbols.
      
      Source/WebCore:
      
      Test: editing/spelling/markers.html
      
      * WebCore.exp.in:
      * dom/DocumentMarkerController.cpp:
      (WebCore::DocumentMarkerController::markersFor):
        Takes marker types to get only necessary markers.
      * dom/DocumentMarkerController.h:
      * testing/Internals.cpp:
      (WebCore::markerTypesFrom): Added.
      (WebCore::Internals::markerCountForNode):
        Takes marker types to get only necessary markers.
      (WebCore::Internals::markerRangeForNode): ditto.
      * testing/Internals.h:
      * testing/Internals.idl:
      
      Source/WebKit2:
      
      * win/WebKit2.def: Exposed necessary references.
      * win/WebKit2CFLite.def: ditto.
      
      LayoutTests:
      
      * editing/spelling/markers.html: Added.
      * editing/spelling/spelling-insert-html.html: Fixed function usage.
      * platform/chromium/test_expectations.txt: Skipped chromium test.
      * platform/gtk/Skipped: Skipped gtk test.
      * platform/qt/Skipped: Skipped qt test.
      * platform/win/Skipped: Skeipped win test.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99814 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      35045abe
  5. 07 Nov, 2011 2 commits
    • commit-queue@webkit.org's avatar
      Add layout test for locale-based font selection · 7ef66463
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=67019
      
      This test relies on overridePreference("WebKit*FontMap"...) which is
      implemented only on Chromium DumpRenderTree so far.
      
      Patch by Matt Falkenhagen <falken@chromium.org> on 2011-11-07
      Reviewed by Kent Tamura.
      
      * fast/text/international/locale-sensitive-fonts.html: Added.
      * platform/chromium/test_expectations.txt:
      * platform/efl/Skipped: Added skip for non-Chromium ports.
      * platform/gtk-wk2/Skipped:
      * platform/gtk/Skipped:
      * platform/mac/Skipped:
      * platform/qt/Skipped:
      * platform/win/Skipped:
      * platform/wincairo/Skipped:
      * platform/wk2/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99517 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7ef66463
    • pfeldman@chromium.org's avatar
      Web Inspector: split script-formatter test into multiple tests. · 657ef0a9
      pfeldman@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=71607
      
      Patch by Pavel Feldman <pfeldman@chromium.org> on 2011-11-07
      Reviewed by Yury Semikhatsky.
      
      Source/WebCore:
      
      Tests: inspector/debugger/script-formatter-breakpoints.html
             inspector/debugger/script-formatter-console.html
      
      * inspector/front-end/ScriptsPanel.js:
      (WebInspector.ScriptsPanel.prototype._removeSourceFrame):
      
      LayoutTests:
      
      * inspector/debugger/script-formatter-breakpoints-expected.txt: Added.
      * inspector/debugger/script-formatter-breakpoints.html: Added.
      * inspector/debugger/script-formatter-console-expected.txt: Added.
      * inspector/debugger/script-formatter-console.html: Added.
      * inspector/debugger/script-formatter-expected.txt:
      * inspector/debugger/script-formatter.html:
      * platform/mac/Skipped:
      * platform/qt/Skipped:
      * platform/win/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99405 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      657ef0a9
  6. 04 Nov, 2011 3 commits
    • commit-queue@webkit.org's avatar
      Crash in ScrollAnimator.cpp · f190377e
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=69865
      
      The code in ScrollAnimator assumes that horizontal per-page mouse
      wheel events cannot happen, which is not true. This patch adds layout
      tests for all paging wheel event situations and fixes the broken
      horizontal case.
      
      Source/WebCore:
      
      Patch by Stephen Chenney <schenney@chromium.org> on 2011-11-04
      Reviewed by Anders Carlsson
      
      Tests: fast/events/platform-wheelevent-paging-x-in-non-scrolling-div.html
             fast/events/platform-wheelevent-paging-x-in-non-scrolling-page.html
             fast/events/platform-wheelevent-paging-x-in-scrolling-div.html
             fast/events/platform-wheelevent-paging-x-in-scrolling-page.html
             fast/events/platform-wheelevent-paging-xy-in-scrolling-div.html
             fast/events/platform-wheelevent-paging-xy-in-scrolling-page.html
             fast/events/platform-wheelevent-paging-y-in-non-scrolling-div.html
             fast/events/platform-wheelevent-paging-y-in-non-scrolling-page.html
             fast/events/platform-wheelevent-paging-y-in-scrolling-div.html
             fast/events/platform-wheelevent-paging-y-in-scrolling-page.html
      
      * platform/PlatformWheelEvent.h: Modify the comment to reflect the new
      reality.
      * platform/ScrollAnimator.cpp:
      (WebCore::ScrollAnimator::handleWheelEvent): Modified the code to handle the
      horizontal per-page wheel event case.
      
      Tools:
      
      Patch by Stephen Chenney <schenney@chromium.org> on 2011-11-04
      Reviewed by Anders Carlsson
      
      * DumpRenderTree/chromium/EventSender.cpp:
      (EventSender::handleMouseWheel): Added the ability to specify that a
      mouse wheel event should be paging.
      
      LayoutTests:
      
      Patch by Stephen Chenney <schenney@chromium.org> on 2011-11-04
      Reviewed by Anders Carlsson
      
      * fast/events/platform-wheelevent-paging-x-in-non-scrolling-div-expected.txt: Added.
      * fast/events/platform-wheelevent-paging-x-in-non-scrolling-div.html: Added.
      * fast/events/platform-wheelevent-paging-x-in-non-scrolling-page-expected.txt: Added.
      * fast/events/platform-wheelevent-paging-x-in-non-scrolling-page.html: Added.
      * fast/events/platform-wheelevent-paging-x-in-scrolling-div-expected.txt: Added.
      * fast/events/platform-wheelevent-paging-x-in-scrolling-div.html: Added.
      * fast/events/platform-wheelevent-paging-x-in-scrolling-page-expected.txt: Added.
      * fast/events/platform-wheelevent-paging-x-in-scrolling-page.html: Added.
      * fast/events/platform-wheelevent-paging-xy-in-scrolling-div-expected.txt: Added.
      * fast/events/platform-wheelevent-paging-xy-in-scrolling-div.html: Added.
      * fast/events/platform-wheelevent-paging-xy-in-scrolling-page-expected.txt: Added.
      * fast/events/platform-wheelevent-paging-xy-in-scrolling-page.html: Added.
      * fast/events/platform-wheelevent-paging-y-in-non-scrolling-div-expected.txt: Added.
      * fast/events/platform-wheelevent-paging-y-in-non-scrolling-div.html: Added.
      * fast/events/platform-wheelevent-paging-y-in-non-scrolling-page-expected.txt: Added.
      * fast/events/platform-wheelevent-paging-y-in-non-scrolling-page.html: Added.
      * fast/events/platform-wheelevent-paging-y-in-scrolling-div-expected.txt: Added.
      * fast/events/platform-wheelevent-paging-y-in-scrolling-div.html: Added.
      * fast/events/platform-wheelevent-paging-y-in-scrolling-page-expected.txt: Added.
      * fast/events/platform-wheelevent-paging-y-in-scrolling-page.html: Added.
      * platform/chromium-mac/fast/events/platform-wheelevent-paging-x-in-scrolling-page-expected.txt: Added.
      * platform/chromium-mac/fast/events/platform-wheelevent-paging-xy-in-scrolling-page-expected.txt: Added.
      * platform/chromium-mac/fast/events/platform-wheelevent-paging-y-in-scrolling-page-expected.txt: Added.
      * platform/mac/Skipped: Added skip for the new tests, as the platform
      does not support it.
      * platform/win/Skipped: Added skip for the new tests, as the platform
      does not support it.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99339 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f190377e
    • noel.gordon@gmail.com's avatar
      [Chromium] Implement canvas.toDataURL("image/webp") · f00d37a5
      noel.gordon@gmail.com authored
      https://bugs.webkit.org/show_bug.cgi?id=70172
      
      Reviewed by Adam Barth.
      
      Source/WebCore:
      
      Add a webp image encoder for the chromium skia ports, add it to the canvas
      element toDataURL() flow with support for an optional quality [0.0-1.0].
      Use a webp compression method (3) that provides good speed and compression
      performance for this image format, and works well for various input image
      types: line-art, screen-shots, and photographic images.
      
      Test: fast/canvas/canvas-toDataURL-webp.html
      
      * WebCore.gypi:
      * platform/chromium/MIMETypeRegistryChromium.cpp:
      (WebCore::MIMETypeRegistry::isSupportedImageMIMETypeForEncoding):
      * platform/graphics/skia/ImageBufferSkia.cpp:
      (WebCore::ImageToDataURL):
      * platform/image-encoders/skia/WEBPImageEncoder.cpp: Added.
      (WebCore::writeOutput):
      (WebCore::importPicture):
      (WebCore::importPictureBGRA):
      (WebCore::importPictureRGBA):
      (WebCore::encodePixels):
      (WebCore::WEBPImageEncoder::encode):
      * platform/image-encoders/skia/WEBPImageEncoder.h: Added.
      
      LayoutTests:
      
      * fast/canvas/canvas-toDataURL-webp-expected.txt: Added.
      * fast/canvas/canvas-toDataURL-webp.html: Added.
      * platform/chromium/test_expectations.txt: skip test on MAC CPU-CG (CoreGraphics)
      * platform/gtk/Skipped:
      * platform/mac/Skipped:
      * platform/qt/Skipped:
      * platform/win/Skipped:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99319 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f00d37a5
    • pfeldman@chromium.org's avatar
      2011-11-04 Pavel Feldman <pfeldman@chromium.org> · 22a06ed9
      pfeldman@chromium.org authored
              Not reviewed: marked inspector/debugger/script-formatter.html
              as skipped for now - sorting it out.
      
              * platform/mac/Skipped:
              * platform/win/Skipped:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99309 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      22a06ed9
  7. 03 Nov, 2011 1 commit
    • eric.carlson@apple.com's avatar
      Add TrackEvent · c86bdf75
      eric.carlson@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=71178
      
      Reviewed by Sam Weinig.
      
      Source/WebCore: 
      
      Test: fast/events/constructors/track-event-constructor.html
      
      * CMakeLists.txt: Add new files for TrackEvent.
      * CodeGenerators.pri: Ditto.
      * DerivedSources.cpp: Ditto.
      * DerivedSources.make: Ditto.
      * GNUmakefile.am: Ditto.
      * GNUmakefile.list.am: Ditto.
      * WebCore.gypi: Ditto.
      * WebCore.pro: Ditto.
      * WebCore.xcodeproj/project.pbxproj: Ditto.
      * bindings/generic/EventConstructors.h: Ditto.
      * bindings/gobject/GNUmakefile.am: Ditto.
      * bindings/gobject/WebKitHTMLElementWrapperFactory.cpp: Ditto.
      * bindings/js/JSBindingsAllInOne.cpp: Ditto.
      
      * bindings/js/JSDictionary.cpp:
      (WebCore::JSDictionary::convertValue): Add method to convert to a Track.
      * bindings/js/JSDictionary.h:
      
      * bindings/js/JSEventConstructors.cpp:  Add new files for TrackEvent.
      
      * bindings/js/JSTrackCustom.cpp: Added. 
      (WebCore::toTrack): New, convert from a JSValue to a Track.
      (WebCore::toJS): New, return a JS wrapper for a Track.
      * bindings/js/JSTrackCustom.h: Added.
      
      * bindings/js/JSTrackEventCustom.cpp: Added.
      (WebCore::JSTrackEvent::track): New, returns a TextEvent's 'track' attribute.
      
      * bindings/v8/OptionsObject.cpp:
      (WebCore::OptionsObject::get): Returns RefPtr<TrackBase>.
      
      * bindings/v8/custom/V8EventConstructors.cpp: Add Track initializing constructor.
      
      * bindings/v8/custom/V8TrackEventCustom.cpp: Added.
      (WebCore::V8TrackEvent::trackAccessorGetter): New, returns a TextEvent's 'track' attribute.
      
      * dom/EventFactory.in: Add TrackEvent.
      
      * dom/EventNames.h: Add 'addtrack' event.
      
      * html/TextTrack.cpp:
      (WebCore::TextTrack::TextTrack): Call new base class constructor.
      * html/TextTrack.h: Now derive from BaseTrack for the day we implement VideoTrack and AudioTrack.
      
      * html/track/TrackBase.cpp: Added.
      (WebCore::TrackBase::TrackBase):
      (WebCore::TrackBase::~TrackBase):
      * html/track/TrackBase.h: Added.
      (WebCore::TrackBase::type): Return the track type.
      
      * html/track/TrackEvent.cpp: Added.
      (WebCore::TrackEventInit::TrackEventInit):
      (WebCore::TrackEvent::TrackEvent):
      (WebCore::TrackEvent::~TrackEvent):
      (WebCore::TrackEvent::interfaceName):
      * html/track/TrackEvent.h: Added.
      (WebCore::TrackEvent::create):
      (WebCore::TrackEvent::isTrackEvent):
      (WebCore::TrackEvent::track):
      * html/track/TrackEvent.idl: Added.
      
      * page/DOMWindow.idl: Add TrackEvent.
      
      LayoutTests: 
      
      * fast/events/constructors/track-event-constructor-expected.txt: Added.
      * fast/events/constructors/track-event-constructor.html: Added.
      * platform/chromium/test_expectations.txt:
      * platform/gtk/fast/dom/Window/window-properties-expected.txt:
      * platform/gtk/fast/js/global-constructors-expected.txt:
      * platform/mac/Skipped:
      * platform/win/Skipped:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99261 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c86bdf75
  8. 02 Nov, 2011 2 commits
    • arv@chromium.org's avatar
      Add new StorageInfo test to the respective skip lists. · 19e409c0
      arv@chromium.org authored
      Unreviewed.
      
      * platform/gtk/Skipped:
      * platform/mac/Skipped:
      * platform/qt/Skipped:
      * platform/win/Skipped:
      * platform/wincairo/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99131 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      19e409c0
    • annacc@chromium.org's avatar
      Remove <track>-related LayoutTests that don't actually work yet. · 292741b7
      annacc@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=71378
      
      Reviewed by Eric Carlson.
      
      * media/track/track-mutable-expected.txt: Removed.
      * media/track/track-mutable.html: Removed.
      * media/track/track-text-track-cue-list-expected.txt: Removed.
      * media/track/track-text-track-cue-list.html: Removed.
      * media/track/track-text-track-expected.txt: Removed.
      * media/track/track-text-track.html: Removed.
      * media/track/track-webvtt-tc000-empty-expected.txt: Removed.
      * media/track/track-webvtt-tc000-empty.html: Removed.
      * media/track/track-webvtt-tc001-utf8-expected.txt: Removed.
      * media/track/track-webvtt-tc001-utf8.html: Removed.
      * media/track/track-webvtt-tc002-bom-expected.txt: Removed.
      * media/track/track-webvtt-tc002-bom.html: Removed.
      * media/track/track-webvtt-tc003-newlines-expected.txt: Removed.
      * media/track/track-webvtt-tc003-newlines.html: Removed.
      * media/track/track-webvtt-tc004-magic-header-expected.txt: Removed.
      * media/track/track-webvtt-tc004-magic-header.html: Removed.
      * media/track/track-webvtt-tc005-header-comment-expected.txt: Removed.
      * media/track/track-webvtt-tc005-header-comment.html: Removed.
      * media/track/track-webvtt-tc006-cue-identifiers-expected.txt: Removed.
      * media/track/track-webvtt-tc006-cue-identifiers.html: Removed.
      * media/track/track-webvtt-tc007-cue-no-id-expected.txt: Removed.
      * media/track/track-webvtt-tc007-cue-no-id.html: Removed.
      * media/track/track-webvtt-tc008-timings-no-hours-expected.txt: Removed.
      * media/track/track-webvtt-tc008-timings-no-hours.html: Removed.
      * media/track/track-webvtt-tc009-timings-hour-expected.txt: Removed.
      * media/track/track-webvtt-tc009-timings-hour.html: Removed.
      * media/track/track-webvtt-tc010-no-timings-expected.txt: Removed.
      * media/track/track-webvtt-tc010-no-timings.html: Removed.
      * media/track/track-webvtt-tc011-blank-lines-expected.txt: Removed.
      * media/track/track-webvtt-tc011-blank-lines.html: Removed.
      * media/track/track-webvtt-tc012-out-of-order-expected.txt: Removed.
      * media/track/track-webvtt-tc012-out-of-order.html: Removed.
      * media/track/track-webvtt-tc013-settings-expected.txt: Removed.
      * media/track/track-webvtt-tc013-settings.html: Removed.
      * media/track/track-webvtt-tc014-alignment-expected.txt: Removed.
      * media/track/track-webvtt-tc014-alignment.html: Removed.
      * media/track/track-webvtt-tc015-positioning-expected.txt: Removed.
      * media/track/track-webvtt-tc015-positioning.html: Removed.
      * media/track/track-webvtt-tc016-align-positioning-expected.txt: Removed.
      * media/track/track-webvtt-tc016-align-positioning.html: Removed.
      * media/track/track-webvtt-tc017-line-position-expected.txt: Removed.
      * media/track/track-webvtt-tc017-line-position.html: Removed.
      * media/track/track-webvtt-tc018-align-text-line-position-expected.txt: Removed.
      * media/track/track-webvtt-tc018-align-text-line-position.html: Removed.
      * media/track/track-webvtt-tc019-cue-size-expected.txt: Removed.
      * media/track/track-webvtt-tc019-cue-size.html: Removed.
      * media/track/track-webvtt-tc020-cue-size-align-expected.txt: Removed.
      * media/track/track-webvtt-tc020-cue-size-align.html: Removed.
      * media/track/track-webvtt-tc021-valign-expected.txt: Removed.
      * media/track/track-webvtt-tc021-valign.html: Removed.
      * media/track/track-webvtt-tc022-entities-expected.txt: Removed.
      * media/track/track-webvtt-tc022-entities.html: Removed.
      * media/track/track-webvtt-tc023-markup-expected.txt: Removed.
      * media/track/track-webvtt-tc023-markup.html: Removed.
      * media/track/track-webvtt-tc024-timestamp-expected.txt: Removed.
      * media/track/track-webvtt-tc024-timestamp.html: Removed.
      * media/track/track-webvtt-tc025-class-markup-expected.txt: Removed.
      * media/track/track-webvtt-tc025-class-markup.html: Removed.
      * media/track/track-webvtt-tc026-voice-expected.txt: Removed.
      * media/track/track-webvtt-tc026-voice.html: Removed.
      * media/track/track-webvtt-tc027-empty-cue-expected.txt: Removed.
      * media/track/track-webvtt-tc027-empty-cue.html: Removed.
      * media/track/track-webvtt-tc028-unsupported-markup-expected.txt: Removed.
      * media/track/track-webvtt-tc028-unsupported-markup.html: Removed.
      
      * platform/chromium/test_expectations.txt: Remove all, remaining tests currently pass.
      * platform/gtk/Skipped: Remove all, remaining tests currently pass.
      * platform/mac/Skipped: Make sure all are skipped, <track> not enabled.
      * platform/qt/Skipped: Remove all, remaining tests currently pass.
      * platform/win/Skipped: Make sure all are skipped, <track> not enabled.
      * platform/wk2/Skipped: Remove all, remaining tests currently pass.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99110 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      292741b7
  9. 01 Nov, 2011 1 commit
    • annacc@chromium.org's avatar
      Makes [Reflect] work for constants. · 7cc58fe3
      annacc@chromium.org authored
      This is needed to avoid platform-specific define conflicts, specifically
      TextTrack::ERROR conflicts with a windows define.
      https://bugs.webkit.org/show_bug.cgi?id=70951
      
      Reviewed by Darin Adler.
      
      Source/WebCore:
      
      Test: media/track/track-constants.html
      
      * bindings/scripts/CodeGenerator.pm:
      (GenerateCompileTimeCheckForEnumsIfNeeded):
          Check for [Reflect] and assign name accordingly.
      
      * bindings/scripts/test/CPP/WebDOMTestObj.h:  Update test file.
      * bindings/scripts/test/JS/JSTestObj.cpp:  Update test file.
      (WebCore::jsTestObjCONST_JAVASCRIPT):
      * bindings/scripts/test/JS/JSTestObj.h:  Update test file.
      * bindings/scripts/test/ObjC/DOMTestObj.h:  Update test file.
      * bindings/scripts/test/TestObj.idl:  Update test file.
      * bindings/scripts/test/V8/V8TestObj.cpp:  Update test file.
      
      * html/LoadableTextTrack.cpp: Use new DOM const name.
      (WebCore::LoadableTextTrack::cueLoadingStarted):
      (WebCore::LoadableTextTrack::cueLoadingCompleted):
      * html/TextTrack.cpp:  Use new DOM const name.
      (WebCore::TextTrack::TextTrack):
      (WebCore::TextTrack::setMode):
      * html/TextTrack.h:  Use new DOM const name.
      * html/TextTrack.idl:  Use Reflect for ERROR, but leave other DOM const names.
      
      LayoutTests:
      
      * media/track/track-constants-expected.txt: Added.
      * media/track/track-constants.html: Added.
      * media/track/track-load-error-readyState.html:  Updated with new const name.
      * media/track/track-load-from-element-readyState.html:  Updated with new const name.
      * media/track/track-load-from-src-readyState.html:  Updated with new const name.
      
      VIDEO_TRACK is not enabled on these ports, so skipping this test:
      * platform/mac/Skipped:
      * platform/win/Skipped:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99027 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7cc58fe3
  10. 31 Oct, 2011 1 commit
    • annacc@chromium.org's avatar
      Implement load notification and events for <track>. · b6ae44b9
      annacc@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=71054
      
      Reviewed by Eric Carlson.
      
      Source/WebCore:
      
      Tests: media/track/track-load-error-readyState.html
             media/track/track-load-from-element-readyState.html
             media/track/track-load-from-src-readyState.html
      
      * html/HTMLMediaElement.cpp:
      (WebCore::HTMLMediaElement::trackWasAdded):
      (WebCore::HTMLMediaElement::trackWillBeRemoved):
      (WebCore::HTMLMediaElement::trackSourceChanged):
      * html/HTMLMediaElement.h:
      * html/HTMLTrackElement.cpp:
      (WebCore::HTMLTrackElement::insertedIntoTree):
      (WebCore::HTMLTrackElement::willRemove):
      (WebCore::HTMLTrackElement::parseMappedAttribute):
      (WebCore::HTMLTrackElement::attributeChanged):
      * html/HTMLTrackElement.h:
      * html/LoadableTextTrack.cpp:
      (WebCore::LoadableTextTrack::cueLoadingCompleted):
      
      LayoutTests:
      
      * media/track/track-load-error-readyState-expected.txt: Added.
      * media/track/track-load-error-readyState.html: Added.
      * media/track/track-load-from-element-readyState-expected.txt: Added.
      * media/track/track-load-from-element-readyState.html: Added.
      * media/track/track-load-from-src-readyState-expected.txt: Added.
      * media/track/track-load-from-src-readyState.html: Added.
      * platform/mac/Skipped:
      * platform/win/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@98860 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b6ae44b9
  11. 29 Oct, 2011 1 commit
  12. 28 Oct, 2011 1 commit
  13. 27 Oct, 2011 2 commits
  14. 14 Oct, 2011 1 commit
    • rniwa@webkit.org's avatar
      Microdata: Basic implementation of document.getItems() method. · 43f105ff
      rniwa@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=68610
      
      Patch by Arko Saha <arko@motorola.com> on 2011-10-13
      Reviewed by Ryosuke Niwa.
      
      .: 
      
      Added ENABLE(MICRODATA) feature flag.
      
      * configure.ac:
      
      Source/WebCore: 
      
      Added ENABLE(MICRODATA) feature flag. Implement document.getItems() DOM API.
      Spec: http://www.whatwg.org/specs/web-apps/current-work/complete/microdata.html
      
      Tests: fast/dom/MicroData/001.html
             fast/dom/MicroData/002.html
             fast/dom/MicroData/003.html
             fast/dom/MicroData/004.html
             fast/dom/MicroData/005.html
             fast/dom/MicroData/006.html
             fast/dom/MicroData/007.html
             fast/dom/MicroData/008.html
             fast/dom/MicroData/009.html
      
      * CMakeLists.txt:
      * DerivedSources.make:
      * GNUmakefile.am:
      * GNUmakefile.list.am:
      * WebCore.gypi:
      * WebCore.pro:
      * WebCore.vcproj/WebCore.vcproj:
      * dom/Document.cpp:
      (WebCore::Document::getItems): Returns NodeList of the element in the Document that
      create items, that are not part of other items, and that are of one of the types
      given in the argument. If no tokens specified/undefined in the argument, then
      return a NodeList containing all top level microdata items.
      (WebCore::Document::removeCachedMicroDataItemList): Remove Microdata item node list
      from cache.
      * dom/Document.h:
      * dom/Document.idl: Added getItems() microdata DOM API.
      * dom/MicroDataItemList.cpp: Added.
      (WebCore::MicroDataItemList::MicroDataItemList):
      (WebCore::MicroDataItemList::~MicroDataItemList):
      (WebCore::MicroDataItemList::nodeMatches):
      * dom/MicroDataItemList.h: Added.
      (WebCore::MicroDataItemList::create):
      * dom/Node.cpp:
      (WebCore::Node::itemTypeAttributeChanged): It is responsible to invalidate the Microdata
      item node cache when itemType attribute changes.
      (WebCore::NodeListsNodeData::invalidateCachesThatDependOnAttributes):
      (WebCore::NodeListsNodeData::invalidateMicrodataItemListCaches): Invalidate Microdata item
      list cache.
      (WebCore::NodeListsNodeData::isEmpty):
      * dom/Node.h:
      * dom/NodeRareData.h:
      * features.pri:
      * html/HTMLAttributeNames.in: Added itemid, itemprop, itemscope, itemtype attributes.
      * html/HTMLElement.cpp:
      (WebCore::HTMLElement::parseMappedAttribute): Handle itemtype attribute change.
      * html/HTMLElement.idl: Added itemid, itemprop, itemscope, itemtypes microdata attributes.
      
      Source/WebKit/chromium: 
      
      Added ENABLE(MICRODATA) feature flag. Implement document.getItems() DOM API.
      Spec : http://www.whatwg.org/specs/web-apps/current-work/complete/microdata.html
      
      * features.gypi:
      
      Tools: 
      
      Added ENABLE(MICRODATA) feature flag. Implement document.getItems() DOM API.
      Spec : http://www.whatwg.org/specs/web-apps/current-work/complete/microdata.html
      
      * Scripts/build-webkit:
      
      WebKitLibraries: 
      
      Added ENABLE(MICRODATA) feature flag. Implement document.getItems() DOM API.
      Spec: http://www.whatwg.org/specs/web-apps/current-work/complete/microdata.html
      
      * win/tools/vsprops/FeatureDefines.vsprops:
      * win/tools/vsprops/FeatureDefinesCairo.vsprops:
      
      LayoutTests: 
      
      Added test-cases for document.getItems() method.
      Spec: http://www.whatwg.org/specs/web-apps/current-work/complete/microdata.html
      Skipping test-cases for now as Microdata DOM API is not yet enabled.
      
      * fast/dom/MicroData: Added.
      * fast/dom/MicroData/001-expected.txt: Added.
      * fast/dom/MicroData/001.html: Added.
      * fast/dom/MicroData/002-expected.txt: Added.
      * fast/dom/MicroData/002.html: Added.
      * fast/dom/MicroData/003-expected.txt: Added.
      * fast/dom/MicroData/003.html: Added.
      * fast/dom/MicroData/004-expected.txt: Added.
      * fast/dom/MicroData/004.html: Added.
      * fast/dom/MicroData/005-expected.txt: Added.
      * fast/dom/MicroData/005.html: Added.
      * fast/dom/MicroData/006-expected.txt: Added.
      * fast/dom/MicroData/006.html: Added.
      * fast/dom/MicroData/007-expected.txt: Added.
      * fast/dom/MicroData/007.html: Added.
      * fast/dom/MicroData/008-expected.txt: Added.
      * fast/dom/MicroData/008.html: Added.
      * fast/dom/MicroData/009-expected.txt: Added.
      * fast/dom/MicroData/009.html: Added.
      * fast/dom/MicroData/resources: Added.
      * fast/dom/MicroData/resources/microdata-common.js: Added.
      (createElem):
      (runTest):
      * platform/win/Skipped:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97471 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      43f105ff
  15. 13 Oct, 2011 1 commit
    • bdakin@apple.com's avatar
      https://bugs.webkit.org/show_bug.cgi?id=70050 · 758dc7c2
      bdakin@apple.com authored
      DRT and WRT should have HiDPI testing capabilities
      
      Reviewed by Darin Adler.
      
      Source/WebKit/mac: 
      
      New method _backingScaleFactor matches SPI of a similar name that I added 
      recently to WKPage in WebKit2. Equivalent functionality is needed for 
      DumpRenderTree's HiDPI support.
      * WebView/WebView.mm:
      (-[WebView _backingScaleFactor]):
      * WebView/WebViewPrivate.h:
      
      Tools: 
      
      New layoutTestController function setBackingScaleFactor takes a double for a scale 
      factor and a callback function to call once the backing scale factor has 
      successfully been set for the view.
      * DumpRenderTree/LayoutTestController.cpp:
      (setBackingScaleFactorCallback):
      (LayoutTestController::staticFunctions):
      
      On Mac, setBackingScaleFactor calls WebView _setCustomBackingScaleFactor. Other 
      platforms do nothing.
      * DumpRenderTree/LayoutTestController.h:
      * DumpRenderTree/mac/LayoutTestControllerMac.mm:
      (LayoutTestController::setBackingScaleFactor):
      * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
      (LayoutTestController::setBackingScaleFactor):
      * DumpRenderTree/win/LayoutTestControllerWin.cpp:
      (LayoutTestController::setBackingScaleFactor):
      
      Reset the backing scale factor by calling _setCutsomBackingScaleFactor with a 
      value of 0, which resets to the system default.
      * DumpRenderTree/mac/DumpRenderTree.mm:
      (resetWebViewToConsistentStateBeforeTesting):
      
      When generating the pixel dump, create a Bitmap of the appropriate size based on 
      the backing scale factor. If it is a HiDPI view, paint into the context using 
      displayRectIgnoringOpacity.
      * DumpRenderTree/mac/PixelDumpSupportMac.mm:
      (createBitmapContextFromWebView):
      
      And now the same stuff for WK2. Again, new layoutTestController function 
      setBackingScaleFactor takes a double for a scale factor and a callback function. 
      * WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl:
      * WebKitTestRunner/InjectedBundle/LayoutTestController.cpp:
      (WTR::LayoutTestController::setBackingScaleFactor):
      (WTR::LayoutTestController::callSetBackingScaleFactorCallback):
      * WebKitTestRunner/InjectedBundle/LayoutTestController.h:
      
      The InjectedBundle sends a message to the UI process to set the backing scale 
      factor. It also processes a message the UI process will send back once it 
      completes this task, and at that time, the InjectedBundle calls the callback.
      * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
      (WTR::InjectedBundle::didReceiveMessage):
      (WTR::InjectedBundle::postSetBackingScaleFactor):
      * WebKitTestRunner/InjectedBundle/InjectedBundle.h:
      
      Again, reset the backing scale factor by calling WKPageSetCustomBackingScaleFactor 
      with a value of 0, which resets to the system default.
      * WebKitTestRunner/TestController.cpp:
      (WTR::TestController::resetStateToConsistentValues):
      
      Upon receiving the SetBackingScaleFactor message, call 
      WKPageSetCustomBackingScaleFactor to the given scale factor, and post a message 
      back to InjectedBundle to say it has been done.
      * WebKitTestRunner/TestInvocation.cpp:
      (WTR::TestInvocation::didReceiveMessageFromInjectedBundle):
              
      Don't use window snapshotting for the HiDPI tests. We don't have a way to fake a 
      window's scale factor so we have to avoid that.
      * WebKitTestRunner/cg/TestInvocationCG.cpp:
      (WTR::TestInvocation::dumpPixelsAndCompareWithExpected):
      
      LayoutTests: 
      
      New HiDPI tests and results. These should be skipped on all non-Lion platforms.
      * fast/hidpi: Added.
      * fast/hidpi/broken-image-icon-hidpi.html: Added.
      * fast/hidpi/broken-image-with-size-hidpi.html: Added.
      * fast/hidpi/clip-text-in-hidpi.html: Added.
      * fast/hidpi/resize-corner-hidpi.html: Added.
      * fast/hidpi/video-controls-in-hidpi.html: Added.
      * platform/gtk-wk2/Skipped:
      * platform/gtk/Skipped:
      * platform/mac-leopard/Skipped:
      * platform/mac-snowleopard/Skipped:
      * platform/mac/fast/hidpi: Added.
      * platform/mac/fast/hidpi/broken-image-icon-hidpi-expected.png: Added.
      * platform/mac/fast/hidpi/broken-image-icon-hidpi-expected.txt: Added.
      * platform/mac/fast/hidpi/broken-image-with-size-hidpi-expected.png: Added.
      * platform/mac/fast/hidpi/broken-image-with-size-hidpi-expected.txt: Added.
      * platform/mac/fast/hidpi/clip-text-in-hidpi-expected.png: Added.
      * platform/mac/fast/hidpi/clip-text-in-hidpi-expected.txt: Added.
      * platform/mac/fast/hidpi/resize-corner-hidpi-expected.png: Added.
      * platform/mac/fast/hidpi/resize-corner-hidpi-expected.txt: Added.
      * platform/mac/fast/hidpi/video-controls-in-hidpi-expected.png: Added.
      * platform/mac/fast/hidpi/video-controls-in-hidpi-expected.txt: Added.
      * platform/qt-mac/Skipped:
      * platform/qt-wk2/Skipped:
      * platform/qt/Skipped:
      * platform/win-wk2/Skipped:
      * platform/win/Skipped:
      * platform/wincairo/Skipped:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97407 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      758dc7c2
  16. 11 Oct, 2011 1 commit
    • adamk@chromium.org's avatar
      [MutationObservers] Add stub implementation of WebKitMutationObserver · 136a5cf8
      adamk@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=68949
      
      Reviewed by Ryosuke Niwa, Oliver Hunt, and Dimitri Glazkov.
      
      Source/WebCore:
      
      See https://bugs.webkit.org/show_bug.cgi?id=68729 for the metabug.
      
      This patch adds a stub WebKitMutationObserver and its supporting classes
      MutationCallback and MutationObserverOptions.
      No implementation is provided for the all-important observe() and
      disconnect() methods.
      
      Note that WebKitMutationObserver is vendor-prefixed since it has a
      constructor exposed on DOMWindow.  None of the rest of the API needs
      prefixing, as it's only available via a call through a MutationObserver
      callback (created by instantiating WebKitMutationObserver).
      
      Given the number of files required to get just the stub up and running,
      it seems reasonable to leave the actual implementation for the next
      patch (or more likely several patches).  I've left FIXMEs in all the places
      that'll need augmentation.
      
      Tests: fast/mutation/mutation-observer-constructor.html
             fast/mutation/observe-exceptions.html
      
      * CMakeLists.txt:
      * DerivedSources.cpp:
      * DerivedSources.make:
      * GNUmakefile.list.am:
      * UseJSC.cmake:
      * WebCore.gypi:
      * WebCore.pro:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.xcodeproj/project.pbxproj:
      * bindings/js/JSDictionary.h:
      (WebCore::JSDictionary::tryGetProperty):
      * bindings/js/JSMutationCallbackCustom.cpp: Added.
      (WebCore::JSMutationCallback::handleEvent):
      * bindings/js/JSWebKitMutationObserverCustom.cpp: Added.
      (WebCore::JSWebKitMutationObserverConstructor::constructJSWebKitMutationObserver):
      (WebCore::JSWebKitMutationObserver::observe):
      * bindings/v8/custom/V8MutationCallbackCustom.cpp: Added.
      (WebCore::V8MutationCallback::handleEvent):
      * bindings/v8/custom/V8WebKitMutationObserverCustom.cpp: Added.
      (WebCore::V8WebKitMutationObserver::constructorCallback):
      (WebCore::V8WebKitMutationObserver::observeCallback):
      * dom/MutationCallback.h: Added.
      (WebCore::MutationCallback::~MutationCallback):
      * dom/MutationCallback.idl: Added.
      * dom/MutationObserverOptions.h: Added.
      (WebCore::MutationObserverOptions::create):
      (WebCore::MutationObserverOptions::childList):
      (WebCore::MutationObserverOptions::setChildList):
      (WebCore::MutationObserverOptions::attributes):
      (WebCore::MutationObserverOptions::setAttributes):
      (WebCore::MutationObserverOptions::characterData):
      (WebCore::MutationObserverOptions::setCharacterData):
      (WebCore::MutationObserverOptions::subtree):
      (WebCore::MutationObserverOptions::setSubtree):
      (WebCore::MutationObserverOptions::attributeOldValue):
      (WebCore::MutationObserverOptions::setAttributeOldValue):
      (WebCore::MutationObserverOptions::characterDataOldValue):
      (WebCore::MutationObserverOptions::setCharacterDataOldValue):
      (WebCore::MutationObserverOptions::MutationObserverOptions):
      * dom/WebKitMutationObserver.cpp: Added.
      (WebCore::WebKitMutationObserver::create):
      (WebCore::WebKitMutationObserver::WebKitMutationObserver):
      (WebCore::WebKitMutationObserver::~WebKitMutationObserver):
      (WebCore::WebKitMutationObserver::observe):
      (WebCore::WebKitMutationObserver::disconnect):
      * dom/WebKitMutationObserver.h: Added.
      * dom/WebKitMutationObserver.idl: Added.
      * page/DOMWindow.idl:
      
      Source/WebKit/chromium:
      
      * features.gypi: Added 'enable_mutation_observers' variable.
      
      LayoutTests:
      
      Add basic tests and skip them in all ports for now.
      
      * fast/mutation/mutation-observer-constructor-expected.txt: Added.
      * fast/mutation/mutation-observer-constructor.html: Added.
      * fast/mutation/observe-exceptions-expected.txt: Added.
      * fast/mutation/observe-exceptions.html: Added.
      * platform/chromium/test_expectations.txt:
      * platform/gtk/Skipped:
      * platform/mac/Skipped:
      * platform/qt/Skipped:
      * platform/win/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97159 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      136a5cf8
  17. 10 Oct, 2011 1 commit
  18. 07 Oct, 2011 2 commits
    • rniwa@webkit.org's avatar
      Re-enable a test fixed by r93529. · e25ab654
      rniwa@webkit.org authored
      * platform/win/Skipped:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96981 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e25ab654
    • tkent@chromium.org's avatar
      Move <input type=file> tests to fast/forms/file/ · f537bc98
      tkent@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=69504
      
      Reviewed by Hajime Morita.
      
      * fast/forms/file-input-change-event-expected.txt: Removed.
      * fast/forms/file-input-change-event.html: Removed.
      * fast/forms/file-input-direction.html: Removed.
      * fast/forms/file-input-disabled.html: Removed.
      * fast/forms/file-input-hit-test-expected.txt: Removed.
      * fast/forms/file-input-hit-test.html: Removed.
      * fast/forms/file-input-reset-expected.html: Removed.
      * fast/forms/file-input-reset.html: Removed.
      * fast/forms/file/file-input-change-event-expected.txt: Copied from LayoutTests/fast/forms/file-input-change-event-expected.txt.
      * fast/forms/file/file-input-change-event.html: Copied from LayoutTests/fast/forms/file-input-change-event.html.
      * fast/forms/file/file-input-direction.html: Copied from LayoutTests/fast/forms/file-input-direction.html.
      * fast/forms/file/file-input-disabled.html: Copied from LayoutTests/fast/forms/file-input-disabled.html.
      * fast/forms/file/file-input-hit-test-expected.txt: Copied from LayoutTests/fast/forms/file-input-hit-test-expected.txt.
      * fast/forms/file/file-input-hit-test.html: Copied from LayoutTests/fast/forms/file-input-hit-test.html.
      * fast/forms/file/file-input-reset-expected.html: Copied from LayoutTests/fast/forms/file-input-reset-expected.html.
      * fast/forms/file/file-input-reset.html: Copied from LayoutTests/fast/forms/file-input-reset.html.
      * fast/forms/file/get-file-upload-expected.txt: Copied from LayoutTests/fast/forms/get-file-upload-expected.txt.
      * fast/forms/file/get-file-upload.html: Copied from LayoutTests/fast/forms/get-file-upload.html.
      * fast/forms/file/hidden-input-file-expected.html: Copied from LayoutTests/fast/forms/hidden-input-file.html.
      * fast/forms/file/hidden-input-file.html: Copied from LayoutTests/fast/forms/hidden-input-file.html.
      * fast/forms/file/input-file-directory-upload-expected.txt: Copied from LayoutTests/fast/forms/input-file-directory-upload-expected.txt.
      * fast/forms/file/input-file-directory-upload.html: Copied from LayoutTests/fast/forms/input-file-directory-upload.html.
      * fast/forms/file/input-file-label-expected.txt: Copied from LayoutTests/fast/forms/input-file-label-expected.txt.
      * fast/forms/file/input-file-label.html: Copied from LayoutTests/fast/forms/input-file-label.html.
      * fast/forms/file/input-file-not-open-without-gesture-expected.txt: Copied from LayoutTests/fast/forms/input-file-not-open-without-gesture-expected.txt.
      * fast/forms/file/input-file-not-open-without-gesture.html: Copied from LayoutTests/fast/forms/input-file-not-open-without-gesture.html.
      * fast/forms/file/input-file-re-render.html: Copied from LayoutTests/fast/forms/input-file-re-render.html.
      * fast/forms/get-file-upload-expected.txt: Removed.
      * fast/forms/get-file-upload.html: Removed.
      * fast/forms/hidden-input-file.html: Removed.
      * fast/forms/input-file-directory-upload-expected.txt: Removed.
      * fast/forms/input-file-directory-upload.html: Removed.
      * fast/forms/input-file-label-expected.txt: Removed.
      * fast/forms/input-file-label.html: Removed.
      * fast/forms/input-file-not-open-without-gesture-expected.txt: Removed.
      * fast/forms/input-file-not-open-without-gesture.html: Removed.
      * fast/forms/input-file-re-render.html: Removed.
      * platform/chromium-cg-mac-leopard/fast/forms/file: Added.
      * platform/chromium-cg-mac-leopard/fast/forms/file-input-direction-expected.png: Removed.
      * platform/chromium-cg-mac-leopard/fast/forms/file/file-input-direction-expected.png: Copied from LayoutTests/platform/chromium-cg-mac-leopard/fast/forms/file-input-direction-expected.png.
      * platform/chromium-cg-mac-leopard/fast/forms/file/input-file-re-render-expected.png: Copied from LayoutTests/platform/chromium-cg-mac-leopard/fast/forms/input-file-re-render-expected.png.
      * platform/chromium-cg-mac-leopard/fast/forms/input-file-re-render-expected.png: Removed.
      * platform/chromium-cg-mac/fast/forms/file: Added.
      * platform/chromium-cg-mac/fast/forms/file-input-direction-expected.png: Removed.
      * platform/chromium-cg-mac/fast/forms/file-input-direction-expected.txt: Removed.
      * platform/chromium-cg-mac/fast/forms/file-input-disabled-expected.png: Removed.
      * platform/chromium-cg-mac/fast/forms/file/file-input-direction-expected.png: Copied from LayoutTests/platform/chromium-cg-mac/fast/forms/file-input-direction-expected.png.
      * platform/chromium-cg-mac/fast/forms/file/file-input-direction-expected.txt: Copied from LayoutTests/platform/chromium-cg-mac/fast/forms/file-input-direction-expected.txt.
      * platform/chromium-cg-mac/fast/forms/file/file-input-disabled-expected.png: Copied from LayoutTests/platform/chromium-cg-mac/fast/forms/file-input-disabled-expected.png.
      * platform/chromium-cg-mac/fast/forms/file/input-file-re-render-expected.png: Copied from LayoutTests/platform/chromium-cg-mac/fast/forms/input-file-re-render-expected.png.
      * platform/chromium-cg-mac/fast/forms/hidden-input-file-expected.txt: Removed.
      * platform/chromium-cg-mac/fast/forms/input-file-re-render-expected.png: Removed.
      * platform/chromium-linux/fast/forms/file: Added.
      * platform/chromium-linux/fast/forms/file-input-direction-expected.png: Removed.
      * platform/chromium-linux/fast/forms/file-input-direction-expected.txt: Removed.
      * platform/chromium-linux/fast/forms/file-input-disabled-expected.png: Removed.
      * platform/chromium-linux/fast/forms/file-input-disabled-expected.txt: Removed.
      * platform/chromium-linux/fast/forms/file/file-input-direction-expected.png: Copied from LayoutTests/platform/chromium-linux/fast/forms/file-input-direction-expected.png.
      * platform/chromium-linux/fast/forms/file/file-input-direction-expected.txt: Copied from LayoutTests/platform/chromium-linux/fast/forms/file-input-direction-expected.txt.
      * platform/chromium-linux/fast/forms/file/file-input-disabled-expected.png: Copied from LayoutTests/platform/chromium-linux/fast/forms/file-input-disabled-expected.png.
      * platform/chromium-linux/fast/forms/file/file-input-disabled-expected.txt: Copied from LayoutTests/platform/chromium-linux/fast/forms/file-input-disabled-expected.txt.
      * platform/chromium-linux/fast/forms/file/input-file-re-render-expected.png: Copied from LayoutTests/platform/chromium-linux/fast/forms/input-file-re-render-expected.png.
      * platform/chromium-linux/fast/forms/file/input-file-re-render-expected.txt: Copied from LayoutTests/platform/chromium-linux/fast/forms/input-file-re-render-expected.txt.
      * platform/chromium-linux/fast/forms/hidden-input-file-expected.png: Removed.
      * platform/chromium-linux/fast/forms/hidden-input-file-expected.txt: Removed.
      * platform/chromium-linux/fast/forms/input-file-re-render-expected.png: Removed.
      * platform/chromium-linux/fast/forms/input-file-re-render-expected.txt: Removed.
      * platform/chromium-mac/fast/forms/file: Added.
      * platform/chromium-mac/fast/forms/file-input-direction-expected.png: Removed.
      * platform/chromium-mac/fast/forms/file-input-direction-expected.txt: Removed.
      * platform/chromium-mac/fast/forms/file/file-input-direction-expected.png: Copied from LayoutTests/platform/chromium-mac/fast/forms/file-input-direction-expected.png.
      * platform/chromium-mac/fast/forms/file/file-input-direction-expected.txt: Copied from LayoutTests/platform/chromium-mac/fast/forms/file-input-direction-expected.txt.
      * platform/chromium-mac/fast/forms/file/input-file-re-render-expected.png: Copied from LayoutTests/platform/chromium-mac/fast/forms/input-file-re-render-expected.png.
      * platform/chromium-mac/fast/forms/hidden-input-file-expected.png: Removed.
      * platform/chromium-mac/fast/forms/hidden-input-file-expected.txt: Removed.
      * platform/chromium-mac/fast/forms/input-file-re-render-expected.png: Removed.
      * platform/chromium-win/fast/forms/file: Added.
      * platform/chromium-win/fast/forms/file-input-direction-expected.png: Removed.
      * platform/chromium-win/fast/forms/file-input-direction-expected.txt: Removed.
      * platform/chromium-win/fast/forms/file-input-disabled-expected.png: Removed.
      * platform/chromium-win/fast/forms/file-input-disabled-expected.txt: Removed.
      * platform/chromium-win/fast/forms/file/file-input-direction-expected.png: Copied from LayoutTests/platform/chromium-win/fast/forms/file-input-direction-expected.png.
      * platform/chromium-win/fast/forms/file/file-input-direction-expected.txt: Copied from LayoutTests/platform/chromium-win/fast/forms/file-input-direction-expected.txt.
      * platform/chromium-win/fast/forms/file/file-input-disabled-expected.png: Copied from LayoutTests/platform/chromium-win/fast/forms/file-input-disabled-expected.png.
      * platform/chromium-win/fast/forms/file/file-input-disabled-expected.txt: Copied from LayoutTests/platform/chromium-win/fast/forms/file-input-disabled-expected.txt.
      * platform/chromium-win/fast/forms/file/input-file-re-render-expected.png: Copied from LayoutTests/platform/chromium-win/fast/forms/input-file-re-render-expected.png.
      * platform/chromium-win/fast/forms/file/input-file-re-render-expected.txt: Copied from LayoutTests/platform/chromium-win/fast/forms/input-file-re-render-expected.txt.
      * platform/chromium-win/fast/forms/hidden-input-file-expected.png: Removed.
      * platform/chromium-win/fast/forms/hidden-input-file-expected.txt: Removed.
      * platform/chromium-win/fast/forms/input-file-re-render-expected.png: Removed.
      * platform/chromium-win/fast/forms/input-file-re-render-expected.txt: Removed.
      * platform/chromium/test_expectations.txt:
      * platform/gtk/Skipped:
      * platform/gtk/fast/forms/file: Added.
      * platform/gtk/fast/forms/file-input-direction-expected.png: Removed.
      * platform/gtk/fast/forms/file-input-direction-expected.txt: Removed.
      * platform/gtk/fast/forms/file-input-disabled-expected.png: Removed.
      * platform/gtk/fast/forms/file-input-disabled-expected.txt: Removed.
      * platform/gtk/fast/forms/file/file-input-direction-expected.png: Copied from LayoutTests/platform/gtk/fast/forms/file-input-direction-expected.png.
      * platform/gtk/fast/forms/file/file-input-direction-expected.txt: Copied from LayoutTests/platform/gtk/fast/forms/file-input-direction-expected.txt.
      * platform/gtk/fast/forms/file/file-input-disabled-expected.png: Copied from LayoutTests/platform/gtk/fast/forms/file-input-disabled-expected.png.
      * platform/gtk/fast/forms/file/file-input-disabled-expected.txt: Copied from LayoutTests/platform/gtk/fast/forms/file-input-disabled-expected.txt.
      * platform/gtk/fast/forms/file/input-file-re-render-expected.png: Copied from LayoutTests/platform/gtk/fast/forms/input-file-re-render-expected.png.
      * platform/gtk/fast/forms/file/input-file-re-render-expected.txt: Copied from LayoutTests/platform/gtk/fast/forms/input-file-re-render-expected.txt.
      * platform/gtk/fast/forms/hidden-input-file-expected.png: Removed.
      * platform/gtk/fast/forms/hidden-input-file-expected.txt: Removed.
      * platform/gtk/fast/forms/input-file-re-render-expected.png: Removed.
      * platform/gtk/fast/forms/input-file-re-render-expected.txt: Removed.
      * platform/mac-leopard/fast/forms/file: Added.
      * platform/mac-leopard/fast/forms/file-input-direction-expected.png: Removed.
      * platform/mac-leopard/fast/forms/file-input-disabled-expected.png: Removed.
      * platform/mac-leopard/fast/forms/file-input-disabled-expected.txt: Removed.
      * platform/mac-leopard/fast/forms/file/file-input-direction-expected.png: Copied from LayoutTests/platform/mac-leopard/fast/forms/file-input-direction-expected.png.
      * platform/mac-leopard/fast/forms/file/file-input-disabled-expected.png: Copied from LayoutTests/platform/mac-leopard/fast/forms/file-input-disabled-expected.png.
      * platform/mac-leopard/fast/forms/file/file-input-disabled-expected.txt: Copied from LayoutTests/platform/mac-leopard/fast/forms/file-input-disabled-expected.txt.
      * platform/mac-leopard/fast/forms/file/input-file-re-render-expected.png: Copied from LayoutTests/platform/mac-leopard/fast/forms/input-file-re-render-expected.png.
      * platform/mac-leopard/fast/forms/hidden-input-file-expected.png: Removed.
      * platform/mac-leopard/fast/forms/input-file-re-render-expected.png: Removed.
      * platform/mac/Skipped:
      * platform/mac/fast/forms/file: Added.
      * platform/mac/fast/forms/file-input-direction-expected.png: Removed.
      * platform/mac/fast/forms/file-input-direction-expected.txt: Removed.
      * platform/mac/fast/forms/file-input-disabled-expected.png: Removed.
      * platform/mac/fast/forms/file-input-disabled-expected.txt: Removed.
      * platform/mac/fast/forms/file/file-input-direction-expected.png: Copied from LayoutTests/platform/mac/fast/forms/file-input-direction-expected.png.
      * platform/mac/fast/forms/file/file-input-direction-expected.txt: Copied from LayoutTests/platform/mac/fast/forms/file-input-direction-expected.txt.
      * platform/mac/fast/forms/file/file-input-disabled-expected.png: Copied from LayoutTests/platform/mac/fast/forms/file-input-disabled-expected.png.
      * platform/mac/fast/forms/file/file-input-disabled-expected.txt: Copied from LayoutTests/platform/mac/fast/forms/file-input-disabled-expected.txt.
      * platform/mac/fast/forms/file/input-file-re-render-expected.png: Copied from LayoutTests/platform/mac/fast/forms/input-file-re-render-expected.png.
      * platform/mac/fast/forms/file/input-file-re-render-expected.txt: Copied from LayoutTests/platform/mac/fast/forms/input-file-re-render-expected.txt.
      * platform/mac/fast/forms/hidden-input-file-expected.png: Removed.
      * platform/mac/fast/forms/hidden-input-file-expected.txt: Removed.
      * platform/mac/fast/forms/input-file-re-render-expected.png: Removed.
      * platform/mac/fast/forms/input-file-re-render-expected.txt: Removed.
      * platform/qt/Skipped:
      * platform/qt/fast/forms/file: Added.
      * platform/qt/fast/forms/file-input-direction-expected.txt: Removed.
      * platform/qt/fast/forms/file-input-disabled-expected.txt: Removed.
      * platform/qt/fast/forms/file/file-input-direction-expected.txt: Copied from LayoutTests/platform/qt/fast/forms/file-input-direction-expected.txt.
      * platform/qt/fast/forms/file/file-input-disabled-expected.txt: Copied from LayoutTests/platform/qt/fast/forms/file-input-disabled-expected.txt.
      * platform/qt/fast/forms/hidden-input-file-expected.txt: Removed.
      * platform/win/Skipped:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96918 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f537bc98
  19. 06 Oct, 2011 1 commit
    • rniwa@webkit.org's avatar
      Windows rebaseline after r96870. Also skip... · 551cb751
      rniwa@webkit.org authored
      Windows rebaseline after r96870. Also skip editing/pasteboard/smart-paste-008.html because it's a real failure
      (tracked by the bug 69587).
      
      * platform/win/Skipped:
      * platform/win/editing/deleting/delete-br-010-expected.txt:
      * platform/win/editing/deleting/regional-indicators-expected.txt: Removed.
      * platform/win/editing/inserting/insert-3907422-fix-expected.txt: Copied from LayoutTests/editing/inserting/insert-3907422-fix-expected.txt.
      * platform/win/editing/pasteboard/paste-text-002-expected.txt: Copied from LayoutTests/editing/pasteboard/paste-text-002-expected.txt.
      * platform/win/editing/pasteboard/paste-text-004-expected.txt: Copied from LayoutTests/platform/mac/editing/pasteboard/paste-text-004-expected.txt.
      * platform/win/editing/pasteboard/paste-text-005-expected.txt: Copied from LayoutTests/platform/mac/editing/pasteboard/paste-text-005-expected.txt.
      * platform/win/editing/pasteboard/paste-text-008-expected.txt: Copied from LayoutTests/platform/mac/editing/pasteboard/paste-text-008-expected.txt.
      * platform/win/editing/spelling/spelling-backspace-between-lines-expected.txt:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96898 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      551cb751
  20. 05 Oct, 2011 1 commit
    • tkent@chromium.org's avatar
      Introduce feature flags for incomplete input types · dfc91a45
      tkent@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=68971
      
      Reviewed by Hajime Morita.
      
      Source/JavaScriptCore:
      
      * Configurations/FeatureDefines.xcconfig:
      Add ENABLE_INPUT_TYPE_* flags. They are enabled only for iOS.
      
      Source/WebCore:
      
      * Configurations/FeatureDefines.xcconfig:
       Add ENABLE_INPUT_TYPE_* flags. They are enabled only for iOS.
      * html/DateInputType.cpp: Wrapped with ENABLE(INPUT_TYPE_DATE)
      * html/DateInputType.h: ditto.
      * html/DateTimeInputType.cpp: Wrapped with ENABLE(INPUT_TYPE_DATETIME)
      * html/DateTimeInputType.h: ditto.
      * html/DateTimeLocalInputType.cpp: Wrapped with ENABLE(INPUT_TYPE_DATETIMELOCAL)
      * html/DateTimeLocalInputType.h: ditto.
      * html/InputType.cpp:
      (WebCore::createInputTypeFactoryMap):
       Recognizes type attribute value only if it is enabled by ENABLE(INPUT_TYPE_*).
      * html/MonthInputType.cpp: Wrapped with ENABLE(INPUT_TYPE_MONTH)
      * html/MonthInputType.h: ditto.
      * html/TimeInputType.cpp: Wrapped with ENABLE(INPUT_TYPE_TIME)
      * html/TimeInputType.h: ditto.
      * html/WeekInputType.cpp: Wrapped with ENABLE(INPUT_TYPE_WEEK)
      * html/WeekInputType.h: ditto.
      
      Source/WebKit/chromium:
      
      * features.gypi: Add disabled ENABLE_INPUT_TYPE_* flags.
      
      Source/WebKit/mac:
      
      * Configurations/FeatureDefines.xcconfig:
      Add ENABLE_INPUT_TYPE_* flags. They are enabled only for iOS.
      
      Source/WebKit2:
      
      * Configurations/FeatureDefines.xcconfig:
      Add ENABLE_INPUT_TYPE_* flags. They are enabled only for iOS.
      
      Tools:
      
      * Scripts/build-webkit:
      Add --input-type-{date,datetime,datetimelocal,month,time,week} flags.
      They are disabled by default.
      
      WebKitLibraries:
      
      * win/tools/vsprops/FeatureDefines.vsprops:
      Add ENABLE_INPUT_TYPE_* flags. They are disabled by default.
      * win/tools/vsprops/FeatureDefinesCairo.vsprops: ditto.
      
      LayoutTests:
      
      Skip fast/forms/{date,datetime,datetimelocal,month,time,week}.
      
      * platform/chromium/test_expectations.txt:
      * platform/gtk/Skipped:
      * platform/mac/Skipped:
      * platform/qt/Skipped:
      * platform/win/Skipped:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96678 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dfc91a45
  21. 04 Oct, 2011 1 commit
  22. 26 Sep, 2011 1 commit
  23. 21 Sep, 2011 1 commit
  24. 19 Sep, 2011 1 commit
  25. 15 Sep, 2011 1 commit
    • haraken@google.com's avatar
      A single line must not be split into two pages. · 89fcc858
      haraken@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=65005
      
      Reviewed by David Hyatt.
      
      When the document width of a page is overflowed, the last line of the page can be
      split into the next page. This is the regression caused by r88737. r88737 tried to
      fix rounding errors in rendering calculations by expanding and shrinking a page
      using one common method, resizePageRectsKeepingRatio(), but overlooked the case where
      a document width gets overflowed.
      
      Source/WebCore:
      
      This patch fixes the problem by also using resizePageRectsKeepingRatio() for the case
      where the document width gets overflowed.
      
      Test: printing/single-line-must-not-be-split-into-two-pages.html
      
      * WebCore.exp.in: Updated the signature of forceLayoutForPagination().
      * page/Frame.cpp:
      (WebCore::Frame::setPrinting): Added a new argument |originalPageSize|, which is an original page size before being expanded or shrunk.
      * page/Frame.h:
      * page/FrameView.cpp:
      (WebCore::FrameView::forceLayoutForPagination): Uses resizePageRectsKeepingRatio() in the case where the document width gets overflowed.
      * page/FrameView.h:
      * page/PrintContext.cpp:
      (WebCore::PrintContext::begin): Passes an original page size to setPrinting().
      (WebCore::PrintContext::end): Ditto.
      
      Source/WebKit/mac:
      
      Test: printing/single-line-must-not-be-split-into-two-pages.html
      
      * WebView/WebHTMLView.mm:
      (-[WebHTMLView _web_setPrintingModeRecursive]): Passes an original page size to setPrinting().
      (-[WebHTMLView _web_clearPrintingModeRecursive]): Ditto.
      (-[WebHTMLView _web_setPrintingModeRecursiveAndAdjustViewSize]): Ditto.
      (-[WebHTMLView _beginPrintModeWithMinimumPageWidth:height:maximumPageWidth:]): Ditto.
      (-[WebHTMLView _beginPrintModeWithPageWidth:height:shrinkToFit:]): Ditto.
      (-[WebHTMLView _endPrintMode]): Ditto.
      (-[WebHTMLView _beginScreenPaginationModeWithPageSize:shrinkToFit:]): Ditto.
      (-[WebHTMLView _endScreenPaginationMode]): Ditto.
      (-[WebHTMLView layoutToMinimumPageWidth:height:originalPageWidth:originalPageHeight:maximumShrinkRatio:adjustingViewSize:]): Ditto.
      (-[WebHTMLView layout]): Ditto.
      (-[WebHTMLView _setPrinting:minimumPageLogicalWidth:logicalHeight:originalPageWidth:originalPageHeight:maximumShrinkRatio:adjustViewSize:paginateScreenContent:]): Ditto.
      (-[WebHTMLView adjustPageHeightNew:top:bottom:limit:]): Ditto.
      (-[WebHTMLView setPageWidthForPrinting:]): Ditto.
      
      Source/WebKit/win:
      
      Test: printing/single-line-must-not-be-split-into-two-pages.html
      
      * WebFrame.cpp:
      (WebFrame::setPrinting): Passes an original page size to setPrinting().
      (WebFrame::setInPrintingMode): Ditto.
      * WebFrame.h:
      
      LayoutTests:
      
      The added test checks if the last line does not split across pages.
      
      * platform/chromium/test_expectations.txt: Skipped the added test since setPrinting() is not yet implemented.
      * platform/gtk/Skipped: Ditto.
      * platform/mac/printing/single-line-must-not-be-split-into-two-pages-expected.txt: Added.
      * platform/qt/Skipped: Ditto.
      * platform/win/Skipped: Ditto.
      * platform/wk2/Skipped: Ditto.
      * printing/single-line-must-not-be-split-into-two-pages.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@95249 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      89fcc858
  26. 02 Sep, 2011 3 commits
    • yutak@chromium.org's avatar
      WebSocket: Send Blob as WebSocket binary message · 7fe8a733
      yutak@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=67465
      
      Reviewed by Kent Tamura.
      
      Re-lands r94399 with a fix for Leopard builds.
      
      Source/WebCore:
      
      * bindings/js/JSWebSocketCustom.cpp:
      (WebCore::JSWebSocket::send):
      * bindings/v8/custom/V8WebSocketCustom.cpp:
      (WebCore::V8WebSocket::sendCallback):
      * websockets/ThreadableWebSocketChannel.h:
      * websockets/WebSocket.cpp:
      (WebCore::WebSocket::send):
      * websockets/WebSocket.h:
      * websockets/WebSocket.idl:
      * websockets/WebSocketChannel.cpp:
      (WebCore::WebSocketChannel::send):
      * websockets/WebSocketChannel.h:
      * websockets/WorkerThreadableWebSocketChannel.cpp:
      (WebCore::WorkerThreadableWebSocketChannel::send):
      (WebCore::WorkerThreadableWebSocketChannel::Peer::send):
      (WebCore::WorkerThreadableWebSocketChannel::mainThreadSendBlob):
      (WebCore::WorkerThreadableWebSocketChannel::Bridge::send):
      * websockets/WorkerThreadableWebSocketChannel.h:
      
      LayoutTests:
      
      * http/tests/websocket/tests/hixie76/send-empty-expected.txt: Added.
      * http/tests/websocket/tests/hixie76/send-empty.html: Added.
      * http/tests/websocket/tests/hixie76/send-object-expected.txt: Added.
      * http/tests/websocket/tests/hixie76/send-object.html: Added.
      * http/tests/websocket/tests/hybi/bufferedAmount-after-close-expected.txt:
      * http/tests/websocket/tests/hybi/bufferedAmount-after-close.html:
      * http/tests/websocket/tests/hybi/send-blob-expected.txt: Added.
      * http/tests/websocket/tests/hybi/send-blob.html: Added.
      * http/tests/websocket/tests/hybi/send-blob_wsh.py: Added.
      * http/tests/websocket/tests/hybi/send-empty-expected.txt: Added.
      * http/tests/websocket/tests/hybi/send-empty.html: Added.
      * http/tests/websocket/tests/hybi/send-file-blob-expected.txt: Added.
      * http/tests/websocket/tests/hybi/send-file-blob-fail-expected.txt: Added.
      * http/tests/websocket/tests/hybi/send-file-blob-fail.html: Added.
      * http/tests/websocket/tests/hybi/send-file-blob.html: Added.
      * http/tests/websocket/tests/hybi/send-file-blob_wsh.py: Added.
      * http/tests/websocket/tests/hybi/workers/resources/send-blob.js: Added.
      * http/tests/websocket/tests/hybi/workers/resources/send-blob_wsh.py: Added.
      * http/tests/websocket/tests/hybi/workers/send-blob-expected.txt: Added.
      * http/tests/websocket/tests/hybi/workers/send-blob.html: Added.
      * platform/gtk/Skipped:
      * platform/mac/Skipped:
      * platform/qt/Skipped:
      * platform/win/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94405 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7fe8a733
    • commit-queue@webkit.org's avatar
      Unreviewed, rolling out r94399. · df47c988
      commit-queue@webkit.org authored
      http://trac.webkit.org/changeset/94399
      https://bugs.webkit.org/show_bug.cgi?id=67471
      
      Broke Leopard build (Requested by yutak on #webkit).
      
      Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2011-09-02
      
      Source/WebCore:
      
      * bindings/js/JSWebSocketCustom.cpp:
      * bindings/v8/custom/V8WebSocketCustom.cpp:
      * websockets/ThreadableWebSocketChannel.h:
      * websockets/WebSocket.cpp:
      * websockets/WebSocket.h:
      * websockets/WebSocket.idl:
      * websockets/WebSocketChannel.cpp:
      (WebCore::WebSocketChannel::send):
      * websockets/WebSocketChannel.h:
      * websockets/WorkerThreadableWebSocketChannel.cpp:
      * websockets/WorkerThreadableWebSocketChannel.h:
      
      LayoutTests:
      
      * http/tests/websocket/tests/hixie76/send-empty-expected.txt: Removed.
      * http/tests/websocket/tests/hixie76/send-empty.html: Removed.
      * http/tests/websocket/tests/hixie76/send-object-expected.txt: Removed.
      * http/tests/websocket/tests/hixie76/send-object.html: Removed.
      * http/tests/websocket/tests/hybi/bufferedAmount-after-close-expected.txt:
      * http/tests/websocket/tests/hybi/bufferedAmount-after-close.html:
      * http/tests/websocket/tests/hybi/send-blob-expected.txt: Removed.
      * http/tests/websocket/tests/hybi/send-blob.html: Removed.
      * http/tests/websocket/tests/hybi/send-blob_wsh.py: Removed.
      * http/tests/websocket/tests/hybi/send-empty-expected.txt: Removed.
      * http/tests/websocket/tests/hybi/send-empty.html: Removed.
      * http/tests/websocket/tests/hybi/send-file-blob-expected.txt: Removed.
      * http/tests/websocket/tests/hybi/send-file-blob-fail-expected.txt: Removed.
      * http/tests/websocket/tests/hybi/send-file-blob-fail.html: Removed.
      * http/tests/websocket/tests/hybi/send-file-blob.html: Removed.
      * http/tests/websocket/tests/hybi/send-file-blob_wsh.py: Removed.
      * http/tests/websocket/tests/hybi/workers/resources/send-blob.js: Removed.
      * http/tests/websocket/tests/hybi/workers/resources/send-blob_wsh.py: Removed.
      * http/tests/websocket/tests/hybi/workers/send-blob-expected.txt: Removed.
      * http/tests/websocket/tests/hybi/workers/send-blob.html: Removed.
      * platform/gtk/Skipped:
      * platform/mac/Skipped:
      * platform/qt/Skipped:
      * platform/win/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94402 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      df47c988
    • yutak@chromium.org's avatar
      WebSocket: Send Blob as WebSocket binary message · 729efea7
      yutak@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=67465
      
      Reviewed by Kent Tamura.
      
      Source/WebCore:
      
      Tests: http/tests/websocket/tests/hixie76/send-empty.html
             http/tests/websocket/tests/hixie76/send-object.html
             http/tests/websocket/tests/hybi/send-blob.html
             http/tests/websocket/tests/hybi/send-empty.html
             http/tests/websocket/tests/hybi/send-file-blob-fail.html
             http/tests/websocket/tests/hybi/send-file-blob.html
             http/tests/websocket/tests/hybi/workers/send-blob.html
             http/tests/websocket/tests/hybi/bufferedAmount-after-close.html (updated)
      
      * bindings/js/JSWebSocketCustom.cpp:
      (WebCore::JSWebSocket::send):
      * bindings/v8/custom/V8WebSocketCustom.cpp:
      (WebCore::V8WebSocket::sendCallback):
      * websockets/ThreadableWebSocketChannel.h:
      * websockets/WebSocket.cpp:
      (WebCore::WebSocket::send):
      * websockets/WebSocket.h:
      * websockets/WebSocket.idl:
      Fixing code generator did not sound easy, because there are some classes depending on
      broken behavior of current code generator (one such example is CanvasRenderingContext2D).
      As a temporary workaround, new custom handlers for send() are added.
      * websockets/WebSocketChannel.cpp:
      (WebCore::WebSocketChannel::send):
      * websockets/WebSocketChannel.h:
      * websockets/WorkerThreadableWebSocketChannel.cpp:
      (WebCore::WorkerThreadableWebSocketChannel::send):
      (WebCore::WorkerThreadableWebSocketChannel::Peer::send):
      (WebCore::WorkerThreadableWebSocketChannel::mainThreadSendBlob):
      A Blob can be deserialized from url, type and size.
      (WebCore::WorkerThreadableWebSocketChannel::Bridge::send):
      KURL, String and long long (corresponding to url, type and size, respectively) can be passed
      safely across threads.
      * websockets/WorkerThreadableWebSocketChannel.h:
      
      LayoutTests:
      
      * http/tests/websocket/tests/hixie76/send-empty-expected.txt: Added.
      * http/tests/websocket/tests/hixie76/send-empty.html: Added.
      * http/tests/websocket/tests/hixie76/send-object-expected.txt: Added.
      * http/tests/websocket/tests/hixie76/send-object.html: Added.
      * http/tests/websocket/tests/hybi/bufferedAmount-after-close-expected.txt:
      * http/tests/websocket/tests/hybi/bufferedAmount-after-close.html:
      Updated. Added tests to send Blobs.
      * http/tests/websocket/tests/hybi/send-blob-expected.txt: Added.
      * http/tests/websocket/tests/hybi/send-blob.html:
      Added. Send three Blobs each of which contains a small binary message.
      * http/tests/websocket/tests/hybi/send-blob_wsh.py:
      Added. receive_message() returns a unicode value if the received message was text, or
      a str value if the message was binary.
      * http/tests/websocket/tests/hybi/send-empty-expected.txt: Added.
      * http/tests/websocket/tests/hybi/send-empty.html: Added.
      * http/tests/websocket/tests/hybi/send-file-blob-expected.txt: Added.
      * http/tests/websocket/tests/hybi/send-file-blob-fail-expected.txt: Added.
      * http/tests/websocket/tests/hybi/send-file-blob-fail.html:
      Added. If we delete a file before reading it, FileReaderLoader reliably fails.
      * http/tests/websocket/tests/hybi/send-file-blob.html:
      Added. Create a File and try to send it as a Blob.
      * http/tests/websocket/tests/hybi/send-file-blob_wsh.py: Added.
      * http/tests/websocket/tests/hybi/workers/resources/send-blob.js:
      Added. Same as send-blob.html above.
      * http/tests/websocket/tests/hybi/workers/resources/send-blob_wsh.py:
      Added. Same as send-blob_wsh.py above.
      * http/tests/websocket/tests/hybi/workers/send-blob-expected.txt: Added.
      * http/tests/websocket/tests/hybi/workers/send-blob.html: Added.
      * platform/gtk/Skipped:
      send-file-blob.html and send-file-blob-fail.html depend on availability of File API.
      * platform/mac/Skipped: Ditto.
      * platform/qt/Skipped: Ditto.
      * platform/win/Skipped: Ditto.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94399 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      729efea7
  27. 30 Aug, 2011 2 commits
    • commit-queue@webkit.org's avatar
      Add MediaSource API to HTMLMediaElement · 7b352317
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=64731
      
      Patch by Aaron Colwell <acolwell@chromium.org> on 2011-08-30
      Reviewed by Eric Carlson.
      
      .:
      
      * configure.ac:
      
      Source/JavaScriptCore:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebCore:
      
      Tests: http/tests/media/media-source/webm/video-media-source-errors.html
             http/tests/media/media-source/webm/video-media-source-play.html
             http/tests/media/media-source/webm/video-media-source-seek.html
             http/tests/media/media-source/webm/video-media-source-state-changes.html
      
      * Configurations/FeatureDefines.xcconfig:
      * GNUmakefile.am:
      * dom/EventNames.h:
      * features.pri:
      * html/HTMLMediaElement.cpp:
      (WebCore::HTMLMediaElement::HTMLMediaElement): Added initializers for new member variables.
      (WebCore::HTMLMediaElement::prepareForLoad): Close the media source before starting a new load.
      (WebCore::HTMLMediaElement::loadResource):
          Fail loading if the media source url from another media element is used.
      (WebCore::HTMLMediaElement::mediaEngineError):
          Make sure the source is in the closed state before firing an emptied event.
      (WebCore::HTMLMediaElement::mediaPlayerSourceOpened):
          New method called by WebCore::MediaPlayer to signal when the source is open.
      (WebCore::HTMLMediaElement::mediaPlayerSourceURL):
          New method called by the WebCore::MediaPlayer to determine what the media source URL is for this
          HTMLMediaElement instance.
      (WebCore::HTMLMediaElement::seek):
          Disabled noSeekRequired optimization if a media source is open and resets the source state to SOURCE_OPEN if
          it was in the SOURCE_ENDED state when seek() was called.
      (WebCore::HTMLMediaElement::webkitSourceAppend):
          New method for passing media data from JavaScript to the WebCore::MediaPlayer.
      (WebCore::HTMLMediaElement::webkitSourceEndOfStream):
          New method that allows JavaScript to signal the end of the stream.
      (WebCore::HTMLMediaElement::webkitSourceState): New method allowing JavaScript to read the current source state.
      (WebCore::HTMLMediaElement::setSourceState): New method for updating the current source state.
      (WebCore::HTMLMediaElement::userCancelledLoad):
          Transitions an open source to the closed state before firing an emptied event.
      * html/HTMLMediaElement.h:
      (WebCore::HTMLMediaElement::webkitMediaSourceURL):
          New method providing the media source URL to JavaScript for this HTMLMediaElement instance.
      * html/HTMLMediaElement.idl: Added new methods, attributes, and constants for the media source api.
      * platform/graphics/MediaPlayer.cpp:
      (WebCore::NullMediaPlayerPrivate::sourceAppend):
          Stub implementation of new WebCore::MediaPlayerPrivateInterface::sourceAppend.
      (WebCore::NullMediaPlayerPrivate::sourceEndOfStream):
          Stub implementation of new WebCore::MediaPlayerPrivateInterface::sourceEndOfStream.
      (WebCore::MediaPlayer::sourceAppend): New method for receiving media data from WebCore::HTMLMediaElement.
      (WebCore::MediaPlayer::sourceEndOfStream): New method for receiving end of stream from WebCore::HTMLMediaElement.
      (WebCore::MediaPlayer::sourceOpened):
          New method called by the MediaPlayerPrivate object to notify the MediaPlayer when the source has opened.
      (WebCore::MediaPlayer::sourceURL):
          New method called by the MediaPlayerPrivate implementation to get the media source URL from the MediaPlayer.
      * platform/graphics/MediaPlayer.h:
      (WebCore::MediaPlayerClient::mediaPlayerSourceOpened):
          Interface method used by the MediaPlayer to tell the HTMLMediaElement when the media source has been opened.
      (WebCore::MediaPlayerClient::mediaPlayerSourceURL):
          Interface method used by the MediaPlayer to get the media source URL from the HTMLMediaElement.
      * platform/graphics/MediaPlayerPrivate.h:
      (WebCore::MediaPlayerPrivateInterface::sourceAppend):
          Interface method used by the MediaPlayer to pass media data to the MediaPlayerPrivate object.
      (WebCore::MediaPlayerPrivateInterface::sourceEndOfStream):
          Interface method used by the MediaPlayer to pass end of stream information to the MediaPlayerPrivate object.
      
      Source/WebKit/chromium:
      
      * public/WebMediaPlayer.h:
      (WebKit::WebMediaPlayer::sourceAppend):
      (WebKit::WebMediaPlayer::sourceEndOfStream):
      * public/WebMediaPlayerClient.h:
      * src/WebMediaPlayerClientImpl.cpp:
      (WebKit::WebMediaPlayerClientImpl::sourceOpened):
      (WebKit::WebMediaPlayerClientImpl::sourceURL):
      (WebKit::WebMediaPlayerClientImpl::sourceAppend):
      (WebKit::WebMediaPlayerClientImpl::sourceEndOfStream):
      * src/WebMediaPlayerClientImpl.h:
      
      Source/WebKit/mac:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebKit2:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Tools:
      
      * Scripts/build-webkit:
      
      WebKitLibraries:
      
      * win/tools/vsprops/FeatureDefines.vsprops:
      * win/tools/vsprops/FeatureDefinesCairo.vsprops:
      
      LayoutTests:
      
      * http/tests/media/media-source/webm/video-media-source-errors-expected.txt: Added.
      * http/tests/media/media-source/webm/video-media-source-errors.html: Added.
      * http/tests/media/media-source/webm/video-media-source-play-expected.txt: Added.
      * http/tests/media/media-source/webm/video-media-source-play.html: Added.
      * http/tests/media/media-source/webm/video-media-source-seek-expected.txt: Added.
      * http/tests/media/media-source/webm/video-media-source-seek.html: Added.
      * http/tests/media/media-source/webm/video-media-source-state-changes-expected.txt: Added.
      * http/tests/media/media-source/webm/video-media-source-state-changes.html: Added.
      * http/tests/media/media-source/webm/webm-media-source.js: Added.
      (getData):
      (getHeaders):
      (getClusterCount):
      (getCluster):
      (getClusterTimeForIndex):
      (getClusterIndexForTimestamp):
      (setSrcToMediaSourceURL):
      (appendHeaders):
      (appendCluster):
      (appendUntilEndOfStream):
      (logSourceState):
      (getSourceStateName):
      (expectSourceState):
      * http/tests/media/resources/media-source/webm/test.webm: Added.
      * http/tests/media/resources/media-source/webm/test.webm.cluster-0: Added.
      * http/tests/media/resources/media-source/webm/test.webm.cluster-1: Added.
      * http/tests/media/resources/media-source/webm/test.webm.cluster-10: Added.
      * http/tests/media/resources/media-source/webm/test.webm.cluster-11: Added.
      * http/tests/media/resources/media-source/webm/test.webm.cluster-12: Added.
      * http/tests/media/resources/media-source/webm/test.webm.cluster-13: Added.
      * http/tests/media/resources/media-source/webm/test.webm.cluster-14: Added.
      * http/tests/media/resources/media-source/webm/test.webm.cluster-15: Added.
      * http/tests/media/resources/media-source/webm/test.webm.cluster-2: Added.
      * http/tests/media/resources/media-source/webm/test.webm.cluster-3: Added.
      * http/tests/media/resources/media-source/webm/test.webm.cluster-4: Added.
      * http/tests/media/resources/media-source/webm/test.webm.cluster-5: Added.
      * http/tests/media/resources/media-source/webm/test.webm.cluster-6: Added.
      * http/tests/media/resources/media-source/webm/test.webm.cluster-7: Added.
      * http/tests/media/resources/media-source/webm/test.webm.cluster-8: Added.
      * http/tests/media/resources/media-source/webm/test.webm.cluster-9: Added.
      * http/tests/media/resources/media-source/webm/test.webm.headers: Added.
      * platform/chromium/test_expectations.txt:
      * platform/gtk/Skipped:
      * platform/mac/Skipped:
      * platform/qt/Skipped:
      * platform/win/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94121 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7b352317
    • caio.oliveira@openbossa.org's avatar
      Emit last progress notification before calling dispatchDidFinishLoad · 93e017d7
      caio.oliveira@openbossa.org authored
      https://bugs.webkit.org/show_bug.cgi?id=28851
      
      Reviewed by Adam Barth.
      
      Source/WebCore:
      
      Original patch by Xan Lopez. Change FrameLoader to dispatch the notifications in
      a more natural sequence.
      
      Test: http/tests/loading/progress-finished-callback.html
      
      * loader/FrameLoader.cpp:
      (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
      
      Source/WebKit/qt:
      
      Add infrastructure to dump progressFinishedNotification callback in DRT.
      
      * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
      (DumpRenderTreeSupportQt::dumpProgressFinishedCallback):
      * WebCoreSupport/DumpRenderTreeSupportQt.h:
      * WebCoreSupport/FrameLoaderClientQt.cpp:
      (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
      * WebCoreSupport/FrameLoaderClientQt.h:
      
      Tools:
      
      Implement dumpProgressFinishedCallback() in the layoutTestController for Qt,
      Chromium and GTK ports. The first two were simple changes.
      
      Some refactoring was needed in GTK port to assure that the dumps are emitted
      correctly and the processing after the page load finished is in the right place.
      
      To detect the load finished, we use the callback for the "load-status" notifier
      signal of the top loading frame. And we use the deprecated "load-finished" signal
      for dumping (if enabled) the progress finished expected output.
      
      * DumpRenderTree/LayoutTestController.cpp:
      (LayoutTestController::LayoutTestController):
      (dumpProgressFinishedCallbackCallback):
      (LayoutTestController::staticFunctions):
      * DumpRenderTree/LayoutTestController.h:
      (LayoutTestController::dumpProgressFinishedCallback):
      (LayoutTestController::setDumpProgressFinishedCallback):
      * DumpRenderTree/chromium/LayoutTestController.cpp:
      (LayoutTestController::LayoutTestController):
      (LayoutTestController::dumpProgressFinishedCallback):
      (LayoutTestController::reset):
      * DumpRenderTree/chromium/LayoutTestController.h:
      (LayoutTestController::shouldDumpProgressFinishedCallback):
      (LayoutTestController::setShouldDumpProgressFinishedCallback):
      * DumpRenderTree/chromium/WebViewHost.cpp:
      (WebViewHost::didStopLoading):
      * DumpRenderTree/gtk/DumpRenderTree.cpp:
      (webViewLoadFinished):
      (topLoadingFrameLoadFinished):
      (webFrameLoadStatusNotified):
      * DumpRenderTree/qt/LayoutTestControllerQt.cpp:
      (LayoutTestController::reset):
      (LayoutTestController::dumpProgressFinishedCallback):
      * DumpRenderTree/qt/LayoutTestControllerQt.h:
      
      LayoutTests:
      
      Keep track of the order expected for the progressFinishedNotification, which is
      before the didFinishLoadForFrame.
      
      * http/tests/loading/progress-finished-callback-expected.txt: Added.
      * http/tests/loading/progress-finished-callback.html: Added.
      * platform/mac/Skipped:
      * platform/win/Skipped:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94105 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      93e017d7
  28. 29 Aug, 2011 1 commit