1. 11 Nov, 2011 40 commits
    • barraclough@apple.com's avatar
      Enable DFG JIT for ARMv7/iOS. · 5f1ccd6c
      barraclough@apple.com authored
      Rubber stamped by Oliver Hunt.
      
      * wtf/Platform.h:
          - enable DFG JIT for ARMv7/iOS.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@100005 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5f1ccd6c
    • scheib@chromium.org's avatar
      Unreviewed, rolling out r99994. · c86a3938
      scheib@chromium.org authored
      http://trac.webkit.org/changeset/99994
      https://bugs.webkit.org/show_bug.cgi?id=72150
      
      Broke chromium windows build
      
      * WebCore.gypi:
      * bindings/generic/RuntimeEnabledFeatures.h:
      (WebCore::RuntimeEnabledFeatures::webkitLockMouseEnabled):
      (WebCore::RuntimeEnabledFeatures::webkitUnlockMouseEnabled):
      (WebCore::RuntimeEnabledFeatures::webkitMouseLockedEnabled):
      * page/MouseLockable.cpp: Removed.
      * page/MouseLockable.h: Removed.
      * page/MouseLockable.idl: Removed.
      * page/Navigator.cpp:
      * page/Navigator.h:
      * page/Navigator.idl:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@100004 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c86a3938
    • adamk@chromium.org's avatar
      [v8] Remove unused V8Proxy::executingScript method · f891b8c3
      adamk@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=72160
      
      Reviewed by Nate Chapin.
      
      * bindings/v8/V8Proxy.cpp:
      * bindings/v8/V8Proxy.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@100003 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f891b8c3
    • rniwa@webkit.org's avatar
      Make ChangeLogEntry's reviewer parsing algorithm support last 4 WebCore change logs · 8e1e3e98
      rniwa@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=72090
      
      Reviewed by Eric Seidel.
      
      Significantly improve ChangeLogEntry's reviewer parsing algorithm. This version can successfully parse
      ChangeLog, ChangeLog-2011-10-19, ChangeLog-2011-06-04, ChangeLog-2011-02-16, and ChangeLog-2010-12-06.
      
      yay! r100002.
      
      * Scripts/webkitpy/common/checkout/changelog.py:
      * Scripts/webkitpy/common/checkout/changelog_unittest.py:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@100002 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8e1e3e98
    • beidson@apple.com's avatar
      Rubberstamped by Andy Estes · 5adbb721
      beidson@apple.com authored
      100,000!
      Congratulations WebKit, and here's to hundreds of thousands more!
              
      * ChangeLog: Point out revision 100,000.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@100001 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5adbb721
    • ossy@webkit.org's avatar
      100,000 !!! · 4274c9a0
      ossy@webkit.org authored
      Reviewed by Zoltan Herczeg.
      
      * ChangeLog: Point out revision 100,000.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@100000 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4274c9a0
    • ddkilzer@apple.com's avatar
      <http://webkit.org/b/71921> Remove use of strcpy in KURL · 54f44506
      ddkilzer@apple.com authored
      Reviewed by Antti Koivisto.
      
      * platform/KURL.cpp:
      (WebCore::KURL::init): Replace strcpy() with strncpy().
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99999 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      54f44506
    • tony@chromium.org's avatar
      Remove --force from gclient sync. The bots seem to have made it past · b7d30543
      tony@chromium.org authored
      the update step.
      
      * Scripts/update-webkit:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99998 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b7d30543
    • mhahnenberg@apple.com's avatar
      De-virtualize supportsProfiling, supportsRichSourceInfo, shouldInterruptScript in JSGlobalObject · bc3cc922
      mhahnenberg@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=72035
      
      Reviewed by Geoffrey Garen.
      
      Source/JavaScriptCore: 
      
      De-virtualized the methods through the use of a new method table just for JSGlobalObject and subclasses.
      
      * JavaScriptCore.exp:
      * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def:
      * bytecompiler/BytecodeGenerator.cpp: Changed call sites to use the new GlobalObjectMethodTable.
      (JSC::BytecodeGenerator::BytecodeGenerator):
      * interpreter/Interpreter.cpp: Ditto.
      (JSC::Interpreter::execute):
      * runtime/JSGlobalObject.cpp: Added a static const GlobalObjectMethodTable with the correct function pointers.
      * runtime/JSGlobalObject.h: Added a field in JSGlobalObject to keep track of the current method table.
      (JSC::JSGlobalObject::JSGlobalObject):
      (JSC::JSGlobalObject::globalObjectMethodTable): The new struct to contain the function pointers.
      (JSC::JSGlobalObject::supportsProfiling): Made static to put in the method table.
      (JSC::JSGlobalObject::supportsRichSourceInfo): Ditto.
      (JSC::JSGlobalObject::shouldInterruptScript): Ditto.
      * runtime/TimeoutChecker.cpp: Changed call sites to use the new GlobalObjectMethodTable for lookup.
      (JSC::TimeoutChecker::didTimeOut):
      
      Source/WebCore: 
      
      No new tests.
      
      * bindings/js/JSDOMGlobalObject.cpp: Changed constructor to support passing new GlobalObjectMethodTable pointer to parent class.
      (WebCore::JSDOMGlobalObject::JSDOMGlobalObject):
      * bindings/js/JSDOMGlobalObject.h:
      * bindings/js/JSDOMWindowBase.cpp: Added static const GlobalObjectMethodTable and filled it in with the proper function pointers.
      (WebCore::JSDOMWindowBase::JSDOMWindowBase):
      (WebCore::JSDOMWindowBase::supportsProfiling): Changed to static to put in the method table.
      (WebCore::JSDOMWindowBase::supportsRichSourceInfo): Ditto.
      (WebCore::JSDOMWindowBase::shouldInterruptScript): Ditto.
      * bindings/js/JSDOMWindowBase.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99997 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bc3cc922
    • tony@chromium.org's avatar
      Add --force to gclient sync. Once the cq bots cycle, we can remove · 2b0c237d
      tony@chromium.org authored
      this since it slows down the normal sync.
      
      * Scripts/update-webkit:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99996 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2b0c237d
    • ojan@chromium.org's avatar
      Unreviewed, rolling out r99869. · 32aefb57
      ojan@chromium.org authored
      http://trac.webkit.org/changeset/99869
      https://bugs.webkit.org/show_bug.cgi?id=72157
      
      "Caused a ~400% perf regression on the Chromium intl1 page
      cyclers" (Requested by ojan on #webkit).
      
      Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2011-11-11
      
      Source/WebCore:
      
      * dom/Document.cpp:
      (WebCore::Document::Document):
      (WebCore::Document::images):
      (WebCore::Document::applets):
      (WebCore::Document::embeds):
      (WebCore::Document::plugins):
      (WebCore::Document::objects):
      (WebCore::Document::scripts):
      (WebCore::Document::links):
      (WebCore::Document::forms):
      (WebCore::Document::anchors):
      * dom/Document.h:
      * html/CollectionType.h:
      
      LayoutTests:
      
      * fast/dom/gc-9-expected.txt:
      * fast/dom/gc-9.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99995 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      32aefb57
    • scheib@chromium.org's avatar
      Mouse Lock Navigator IDL · 0b5a5231
      scheib@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=72150
      
      Reviewed by Dimitri Glazkov.
      
      Tests require mocking (similar to geolocation) that will be built after this.
      
      * WebCore.gypi:
      * bindings/generic/RuntimeEnabledFeatures.h:
      (WebCore::RuntimeEnabledFeatures::webkitPointerEnabled):
      * page/MouseLockable.cpp: Added.
      (WebCore::MouseLockable::MouseLockable):
      (WebCore::MouseLockable::~MouseLockable):
      (WebCore::MouseLockable::webkitLock):
      (WebCore::MouseLockable::webkitUnlock):
      (WebCore::MouseLockable::webkitIsLocked):
      * page/MouseLockable.h: Added.
      (WebCore::MouseLockable::create):
      * page/MouseLockable.idl: Added.
      * page/Navigator.cpp:
      (WebCore::Navigator::webkitPointer):
      * page/Navigator.h:
      * page/Navigator.idl:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99994 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0b5a5231
    • mhahnenberg@apple.com's avatar
      De-virtualize JSGlobalObject::allowsAccessFrom · b895f407
      mhahnenberg@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=71969
      
      Reviewed by Darin Adler.
      
      Source/JavaScriptCore: 
      
      * runtime/JSGlobalObject.h: Removed allowsAccessFrom from JSGlobalObject since it is exclusive to 
      JSDOMWindowBase and WebScriptObject.
      
      Source/WebCore: 
      
      No new tests.
      
      Since allowsAccessFrom is only used by WebScriptObject, we know that we'll always have a 
      JSDOMWindowBase, so we can simply have allowsAccessFrom to live in JSDOMWindowBase rather 
      than JSGlobalObject.
      
      * bindings/js/JSDOMWindowBase.h: De-virtualized allowsAccessFrom.
      * bindings/objc/WebScriptObject.mm:
      (-[WebScriptObject _isSafeScript]): Added a cast from a JSGlobalObject to a JSDOMWindowBase in 
      order to call the allowsAccessFrom method.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99993 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b895f407
    • adamk@chromium.org's avatar
      [MutationObservers] Support attributeFilter for attribute mutations · ab4f33db
      adamk@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=70860
      
      Patch by Rafael Weinstein <rafaelw@chromium.org> on 2011-11-11
      Reviewed by Dimitri Glazkov.
      
      Source/WebCore:
      
      This patch adds an attributeFilter to the MutationObserverRegistration and
      adds support for only observing attributes whose name are in the provided
      filter set (array of strings).
      
      Test: fast/mutation/observe-attributes.html.
      
      * bindings/js/JSWebKitMutationObserverCustom.cpp:
      (WebCore::JSWebKitMutationObserver::observe):
      * bindings/v8/OptionsObject.cpp:
      (WebCore::OptionsObject::get):
      * bindings/v8/OptionsObject.h:
      * bindings/v8/custom/V8WebKitMutationObserverCustom.cpp:
      (WebCore::V8WebKitMutationObserver::observeCallback):
      * dom/Element.cpp:
      (WebCore::enqueueAttributesMutationRecord):
      * dom/MutationObserverRegistration.cpp:
      (WebCore::MutationObserverRegistration::resetObservation):
      (WebCore::MutationObserverRegistration::shouldReceiveMutationFrom):
      (WebCore::MutationObserverRegistration::caseInsensitiveAttributeFilter):
      * dom/MutationObserverRegistration.h:
      * dom/Node.cpp:
      (WebCore::Node::collectMatchingObserversForMutation):
      (WebCore::Node::getRegisteredMutationObserversOfType):
      * dom/Node.h:
      * dom/WebKitMutationObserver.cpp:
      (WebCore::WebKitMutationObserver::observe):
      * dom/WebKitMutationObserver.h:
      
      LayoutTests:
      
      * fast/mutation/observe-attributes-expected.txt:
      * fast/mutation/observe-attributes.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99992 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ab4f33db
    • tony@chromium.org's avatar
      When --force is used, also use --reset · c016b673
      tony@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=72129
      
      Patch by Marc-Antoine Ruel <maruel@chromium.org> on 2011-11-11
      Reviewed by Dimitri Glazkov.
      
      * Scripts/update-webkit-chromium:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99991 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c016b673
    • tony@chromium.org's avatar
      Speculative fix for a few worker tests. · f6a23cb5
      tony@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=72134
      
      Looking at the recent failures, it looks like the test starts and completes
      before the page is done loading completely (the test output is correct except
      for the HTML on top of the files). So start the tests from an onload callback so
      that the plain HTML text also gets printed correctly.
      
      Patch by Sadrul Habib Chowdhury <sadrul@chromium.org> on 2011-11-11
      Reviewed by Tony Chang.
      
      * fast/workers/resources/worker-replace-self.js:
      (startTest.worker.onmessage):
      (startTest):
      * fast/workers/worker-call.html:
      * fast/workers/worker-close.html:
      * fast/workers/worker-messageport-gc.html:
      * fast/workers/worker-replace-self.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99990 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f6a23cb5
    • tony@chromium.org's avatar
      allow two chromium drivers to run at the same time in NRWT · 6f778323
      tony@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=72067
      
      Reviewed by Dirk Pranke.
      
      * Scripts/webkitpy/layout_tests/port/chromium.py: close_fds=True on
          posix prevents the subprocesses from sharing the same fd for stdin.
          Sharing the same fd prevents us from closing the files unless all references
          to the fd are closed.
      * Scripts/webkitpy/layout_tests/port/chromium_unittest.py: In addition
          to adding a test for this, speed up a test (from 3sec to 0) by fixing
          the timeout override. It looks like it regressed in r95875.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99989 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6f778323
    • vsevik@chromium.org's avatar
      Application cache status indicator gets stuck at DOWNLOADING after a failure · c127750a
      vsevik@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=60793
      
      Reviewed by Pavel Feldman.
      
      Source/WebCore:
      
      Test: http/tests/inspector/resource-tree/appcache-manifest-with-non-existing-file.html
      
      * inspector/InspectorApplicationCacheAgent.cpp:
      (WebCore::InspectorApplicationCacheAgent::InspectorApplicationCacheAgent):
      (WebCore::InspectorApplicationCacheAgent::restore):
      (WebCore::InspectorApplicationCacheAgent::enable):
      * inspector/InspectorApplicationCacheAgent.h:
      * inspector/InspectorController.cpp:
      (WebCore::InspectorController::InspectorController):
      (WebCore::InspectorController::restoreInspectorStateFromCookie):
      * inspector/front-end/ApplicationCacheItemsView.js:
      (WebInspector.ApplicationCacheItemsView):
      (WebInspector.ApplicationCacheItemsView.prototype.updateStatus):
      
      LayoutTests:
      
      * http/tests/inspector/resource-tree/appcache-iframe-manifests-expected.txt:
      * http/tests/inspector/resource-tree/appcache-iframe-manifests.html:
      * http/tests/inspector/resource-tree/appcache-manifest-with-non-existing-file-expected.txt: Added.
      * http/tests/inspector/resource-tree/appcache-manifest-with-non-existing-file.html: Added.
      * http/tests/inspector/resource-tree/appcache-test.js: Added.
      (createAndNavigateIFrame):
      (removeIFrame):
      (navigateIFrame):
      (initialize_ApplicationCacheTest.InspectorTest.createAndNavigateIFrame.frameNavigated):
      (initialize_ApplicationCacheTest.InspectorTest.createAndNavigateIFrame):
      (initialize_ApplicationCacheTest.InspectorTest.navigateIFrame.frameNavigated):
      (initialize_ApplicationCacheTest.InspectorTest.navigateIFrame):
      (initialize_ApplicationCacheTest.InspectorTest.removeIFrame.frameDetached):
      (initialize_ApplicationCacheTest.InspectorTest.removeIFrame):
      (initialize_ApplicationCacheTest.InspectorTest.dumpApplicationCache):
      (initialize_ApplicationCacheTest.InspectorTest.dumpApplicationCacheTree):
      (initialize_ApplicationCacheTest.InspectorTest.frameIdToString):
      (initialize_ApplicationCacheTest.InspectorTest.applicationCacheStatusToString):
      (initialize_ApplicationCacheTest.InspectorTest.dumpApplicationCacheModel.compareFunc):
      (initialize_ApplicationCacheTest.InspectorTest.dumpApplicationCacheModel):
      (initialize_ApplicationCacheTest.InspectorTest.waitForFrameManifestURLAndStatus):
      (initialize_ApplicationCacheTest.InspectorTest.startApplicationCacheStatusesRecording):
      (initialize_ApplicationCacheTest.InspectorTest.ensureFrameManifestStatusEventReceived):
      (initialize_ApplicationCacheTest.InspectorTest.dumpApplicationCacheStatusesRecords.compareFunc):
      (initialize_ApplicationCacheTest.InspectorTest.dumpApplicationCacheStatusesRecords):
      (initialize_ApplicationCacheTest):
      * http/tests/inspector/resource-tree/resources/manifest.php:
      * platform/chromium/http/tests/inspector/resource-tree/appcache-iframe-manifests-expected.txt: Added.
      * platform/chromium/http/tests/inspector/resource-tree/appcache-manifest-with-non-existing-file-expected.txt: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99988 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c127750a
    • tonyg@chromium.org's avatar
      [chromium] failing media/track/tracklist-is-reachable · f9deeb21
      tonyg@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=72149
      
      * platform/chromium/test_expectations.txt: Expect test to fail for now.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99987 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f9deeb21
    • timothy@apple.com's avatar
      Only use the textured window style mask when there is no override inspector page. · ae6d5aff
      timothy@apple.com authored
      https://webkit.org/b/72142
      
      Reviewed by Dan Bernstein.
      
      * UIProcess/mac/WebInspectorProxyMac.mm:
      (WebKit::WebInspectorProxy::platformOpen): Don't set NSTexturedBackgroundWindowMask if
      there is an override inspector page. Make setAutorecalculatesContentBorderThickness:,
      setContentBorderThickness: and WKNSWindowMakeBottomCornersSquare conditional.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99986 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ae6d5aff
    • tonyg@chromium.org's avatar
      Expect chromium to pass this test after r99958. · b21d60de
      tonyg@chromium.org authored
      * platform/chromium/fast/dom/NodeList/nodelist-item-call-as-function-expected.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99985 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b21d60de
    • eric.carlson@apple.com's avatar
      Implement TextTrackList and the textTracks attribute of HTMLMediaElement · 5c26c751
      eric.carlson@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=71123
      
      Reviewed by Sam Weinig.
      
      Source/WebCore: 
      
      Test: media/track/track-add-track.html
            media/track/tracklist-is-reachable.html
      
      * CMakeLists.txt: Add new files for TextTrackList.
      * DerivedSources.cpp: Ditto.
      * DerivedSources.make: Ditto.
      * DerivedSources.pri: Ditto.
      * GNUmakefile.list.am: Ditto.
      * Target.pri: Ditto.
      * WebCore.gypi: Ditto.
      * WebCore.xcodeproj/project.pbxproj: Ditto.
      * bindings/js/JSBindingsAllInOne.cpp: Ditto.
      
      * bindings/js/JSTextTrackListCustom.cpp: Added.
      (WebCore::JSTextTrackListOwner::isReachableFromOpaqueRoots):
      
      * dom/EventTargetFactory.in: Add TextTrackList, conditional on VIDEO_TRACK.
      
      * html/HTMLAudioElement.cpp:
      (WebCore::HTMLAudioElement::createForJSConstructor): Update for scheduleLoad change.
      
      * html/HTMLMediaElement.cpp:
      (WebCore::HTMLMediaElement::~HTMLMediaElement): Update for m_textTracks change from
          generic Vector to TextTrackList.
      (WebCore::HTMLMediaElement::attributeChanged): Ditto.
      (WebCore::HTMLMediaElement::insertedIntoDocument): Update for scheduleLoad change.
      (WebCore::HTMLMediaElement::scheduleLoad): Add a parameter so caller can specify if
          the main resource or a text track should be loaded.
      (WebCore::HTMLMediaElement::loadTimerFired): Update to allow text track loading.
      (WebCore::HTMLMediaElement::loadInternal): Don't call loadTextTracks.
      (WebCore::HTMLMediaElement::isSafeToLoadURL): Log when CSP denies load.
      (WebCore::HTMLMediaElement::playInternal): Update for scheduleLoad change.
      (WebCore::HTMLMediaElement::pauseInternal): Ditto.
      (WebCore::HTMLMediaElement::addTrack): Update for m_textTracks change from
          generic Vector to TextTrackList.
      (WebCore::HTMLMediaElement::addTextTrack): New, add track to m_textTracks and configure.
      (WebCore::HTMLMediaElement::configureTextTracks): New, add comments about what this should
          do eventually.
      (WebCore::HTMLMediaElement::textTracks): New, return TextTrackList.
      (WebCore::HTMLMediaElement::trackWasAdded): Bail if runtime feature is not enabled, schedule
          asynchronous text track load.
      (WebCore::HTMLMediaElement::trackWillBeRemoved): Minor cleanup.
      (WebCore::HTMLMediaElement::selectNextSourceChild): Ditto.
      (WebCore::HTMLMediaElement::sourceWasAdded): Update for scheduleLoad change.
      * html/HTMLMediaElement.h:
      * html/HTMLMediaElement.idl: Add textTracks attribute.
      
      * html/HTMLTrackElement.cpp: 
      (WebCore::HTMLTrackElement::insertedIntoTree): Use new mediaElement() method.
      (WebCore::HTMLTrackElement::willRemove): Ditto.
      (WebCore::HTMLTrackElement::attributeChanged): When 'src' is changed, call scheduleLoad
          instead of HTMLMediaElement
      (WebCore::HTMLTrackElement::isDefault): hasAttribute -> fastHasAttribute.
      (WebCore::HTMLTrackElement::track): Allocate track if necessary.
      (WebCore::HTMLTrackElement::scheduleLoad): New, tell the track to schedule a load.
      (WebCore::HTMLTrackElement::canLoadUrl): New, check security policy to see if it is OK
          to load a text track. If so, dispatch 'beforeload' event to give it a chance to disallow
          load.
      (WebCore::HTMLTrackElement::loadingCompleted): Renamed from textTrackLoadingCompleted.
      (WebCore::HTMLTrackElement::textTrackReadyStateChanged): New, TextTrackLoadingClient interface
          used to inform parent of TextTrack state changes.
      (WebCore::HTMLTrackElement::textTrackModeChanged): Ditto.
      (WebCore::HTMLTrackElement::textTrackAddCues): Ditto.
      (WebCore::HTMLTrackElement::textTrackRemoveCues): Ditto.
      (WebCore::HTMLTrackElement::textTrackAddCue): Ditto.
      (WebCore::HTMLTrackElement::textTrackRemoveCue): Ditto.
      (WebCore::HTMLTrackElement::mediaElement): New, return parent element.
      * html/HTMLTrackElement.h:
      
      * html/LoadableTextTrack.cpp:
      (WebCore::LoadableTextTrack::LoadableTextTrack): Initialize new instance variables.
      (WebCore::LoadableTextTrack::scheduleLoad): New, prime a timer to kick off loading.
      (WebCore::LoadableTextTrack::loadTimerFired): Cancel current load, if any, check to see if
          new url is allowed to load, and start new load.
      (WebCore::LoadableTextTrack::cueLoadingCompleted): 
      * html/LoadableTextTrack.h:
      (WebCore::LoadableTextTrackClient::~LoadableTextTrackClient): TextTrackLoadingClient -> LoadableTextTrackClient
      (WebCore::LoadableTextTrackClient::canLoadUrl): 
      (WebCore::LoadableTextTrackClient::loadingCompleted):
      (WebCore::LoadableTextTrack::create):
      
      * html/TextTrack.cpp:
      (WebCore::TextTrack::TextTrack): setClient(0) -> clearClient().
      * html/TextTrack.h:
      (WebCore::TextTrack::clearClient): Renamed from setClient, because it is only used to clear the client pointer.
      
      * html/TextTrackCueList.cpp:
      (WebCore::TextTrackCueList::add): Get rid of a compiler warning that breaks the OS X build.
      
      * html/track/TextTrackList.cpp: Added. Implement the TextTrackList object.
      (TextTrackList::TextTrackList):
      (TextTrackList::~TextTrackList):
      (TextTrackList::length):
      (TextTrackList::item):
      (TextTrackList::append):
      (TextTrackList::remove):
      (TextTrackList::interfaceName):
      (TextTrackList::scheduleAddTrackEvent):
      (TextTrackList::asyncEventTimerFired):
      * html/track/TextTrackList.h: Added.
      (WebCore::TextTrackList::create):
      (WebCore::TextTrackList::scriptExecutionContext):
      (WebCore::TextTrackList::clearOwner):
      (WebCore::TextTrackList::owner):
      (WebCore::TextTrackList::refEventTarget):
      (WebCore::TextTrackList::derefEventTarget):
      (WebCore::TextTrackList::eventTargetData):
      (WebCore::TextTrackList::ensureEventTargetData):
      * html/track/TextTrackList.idl: Added.
      
      * loader/TextTrackLoader.cpp:
      (WebCore::TextTrackLoader::cancelLoad): New, cancel pending or in progress load and delete loader.
      (WebCore::TextTrackLoader::notifyFinished): Call cancelLoad.
      (WebCore::TextTrackLoader::load): Ditto.
      * loader/TextTrackLoader.h:
      * page/DOMWindow.idl: Add TextTrackList.
      
      LayoutTests: 
      
      * media/track/track-add-track-expected.txt: Added.
      * media/track/track-add-track.html: Added.
      * media/track/tracklist-is-reachable-expected.txt: Added.
      * media/track/tracklist-is-reachable.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99984 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5c26c751
    • pfeldman@chromium.org's avatar
      Web Inspector: reimplement DOM search using no XPath. · 5fe12f2d
      pfeldman@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=72125
      
      Reviewed by Yury Semikhatsky.
      
      * inspector/InspectorDOMAgent.cpp:
      (WebCore::InspectorDOMAgent::performSearch):
      (WebCore::InspectorDOMAgent::buildObjectForNode):
      * inspector/InspectorDOMAgent.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99983 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5fe12f2d
    • gavinp@chromium.org's avatar
      Protect Document during error responses · 4061a945
      gavinp@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=72068
      
      Add a Document protector to the error response code handler, just
      as exists for other ends of requests.
      
      Reviewed by Nate Chapin.
      
      Source/WebCore:
      
      Test: http/tests/misc/xslt-bad-import.html
      
      * loader/cache/CachedResourceRequest.cpp:
      (WebCore::CachedResourceRequest::didReceiveData):
      
      LayoutTests:
      
      * http/tests/misc/resources/xslt-bad-import-uri.xml: Added.
      * http/tests/misc/resources/xslt-bad-import-uri.xsl: Added.
      * http/tests/misc/xslt-bad-import-expected.txt: Added.
      * http/tests/misc/xslt-bad-import.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99982 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4061a945
    • gavinp@chromium.org's avatar
      Unreviewed, rolling out r99979. · 2bcf20b4
      gavinp@chromium.org authored
      http://trac.webkit.org/changeset/99979
      https://bugs.webkit.org/show_bug.cgi?id=72136
      
      bad commit message (Requested by gavinp on #webkit).
      
      Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2011-11-11
      
      * loader/cache/CachedResourceRequest.cpp:
      (WebCore::CachedResourceRequest::didReceiveData):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99981 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2bcf20b4
    • yurys@chromium.org's avatar
      2011-11-11 Yury Semikhatsky <yurys@chromium.org> · db0fc7b9
      yurys@chromium.org authored
              Fixed overlapping expectations.
      
              * platform/chromium/test_expectations.txt:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99980 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      db0fc7b9
    • gavinp@chromium.org's avatar
      Protect Document during error responses · e43c10df
      gavinp@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=72068
      
      Add a Document protector to the error response code handler, just
      as exists for other ends of requests.
      
      Reviewed by NOBODY (OOPS!).
      
      Test: http/tests/misc/xslt-bad-import.html
      
      * loader/cache/CachedResourceRequest.cpp:
      (WebCore::CachedResourceRequest::didReceiveData):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99979 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e43c10df
    • yurys@chromium.org's avatar
      2011-11-11 Yury Semikhatsky <yurys@chromium.org> · 2e430bb4
      yurys@chromium.org authored
              Unreviewed. Mark http/tests/inspector-enabled/dedicated-workers-list.html as timing out on Mac.
      
              * platform/chromium/test_expectations.txt:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99978 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2e430bb4
    • philn@webkit.org's avatar
      [GStreamer] GstCaps and GstPad RefPtr implementation · 72faab66
      philn@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=72023
      
      Reviewed by Martin Robinson.
      
      Smart pointer implementations for GstCaps and GstPad and them
      in the media player code.
      
      * platform/graphics/gstreamer/GRefPtrGStreamer.cpp:
      (WTF::GstPad):
      (WTF::GstCaps):
      * platform/graphics/gstreamer/GRefPtrGStreamer.h:
      * platform/graphics/gstreamer/GStreamerGWorld.cpp:
      (WebCore::GStreamerGWorld::enterFullscreen):
      (WebCore::GStreamerGWorld::exitFullscreen):
      * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
      (WebCore::MediaPlayerPrivateGStreamer::naturalSize):
      (WebCore::MediaPlayerPrivateGStreamer::totalBytes):
      (WebCore::MediaPlayerPrivateGStreamer::createGSTPlayBin):
      * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
      (webkit_web_src_init):
      (StreamingClient::didReceiveResponse):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99977 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      72faab66
    • ossy@webkit.org's avatar
      [Qt] Unreviewed evening gardening. Add platform specific expected results for new passing tests. · ba5a1040
      ossy@webkit.org authored
      * platform/qt/fast/multicol/pagination-h-horizontal-bt-expected.png: Added.
      * platform/qt/fast/multicol/pagination-h-horizontal-bt-expected.txt: Added.
      * platform/qt/fast/multicol/pagination-h-horizontal-tb-expected.png: Added.
      * platform/qt/fast/multicol/pagination-h-horizontal-tb-expected.txt: Added.
      * platform/qt/fast/multicol/pagination-h-vertical-lr-expected.png: Added.
      * platform/qt/fast/multicol/pagination-h-vertical-lr-expected.txt: Added.
      * platform/qt/fast/multicol/pagination-h-vertical-rl-expected.png: Added.
      * platform/qt/fast/multicol/pagination-h-vertical-rl-expected.txt: Added.
      * platform/qt/fast/multicol/pagination-v-horizontal-bt-expected.png: Added.
      * platform/qt/fast/multicol/pagination-v-horizontal-bt-expected.txt: Added.
      * platform/qt/fast/multicol/pagination-v-horizontal-tb-expected.png: Added.
      * platform/qt/fast/multicol/pagination-v-horizontal-tb-expected.txt: Added.
      * platform/qt/fast/multicol/pagination-v-vertical-lr-expected.png: Added.
      * platform/qt/fast/multicol/pagination-v-vertical-lr-expected.txt: Added.
      * platform/qt/fast/multicol/pagination-v-vertical-rl-expected.png: Added.
      * platform/qt/fast/multicol/pagination-v-vertical-rl-expected.txt: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99976 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ba5a1040
    • gavinp@chromium.org's avatar
      Unreviewed, rilling out 99971,99972. · 4209b5aa
      gavinp@chromium.org authored
      They were landed in error in using git-svn by gavinp@chromium.org.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99975 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4209b5aa
    • ossy@webkit.org's avatar
      [Qt] Unreviewed evening gardening. Add platform specific expected results for new passing tests. · 76313184
      ossy@webkit.org authored
      * platform/qt/fast/backgrounds/size/contain-and-cover-zoomed-expected.png: Added.
      * platform/qt/fast/backgrounds/size/contain-and-cover-zoomed-expected.txt: Added.
      * platform/qt/fast/dom/rtl-scroll-to-leftmost-and-resize-expected.png: Added.
      * platform/qt/fast/dom/rtl-scroll-to-leftmost-and-resize-expected.txt: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99974 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      76313184
    • philn@webkit.org's avatar
      Unreviewed, skip 2 failing pasteboard tests after r99924. · 099289ac
      philn@webkit.org authored
      * platform/gtk/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99973 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      099289ac
    • gavinp@chromium.org's avatar
      Moar · f0eefbb4
      gavinp@chromium.org authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99972 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f0eefbb4
    • gavinp@chromium.org's avatar
      first shot yo · 94bf199e
      gavinp@chromium.org authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99971 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      94bf199e
    • ossy@webkit.org's avatar
      [Qt] Unreviewed evening gardening. Add platform specific expected results for new passing tests. · cf85618f
      ossy@webkit.org authored
      * platform/qt/svg/zoom/page/zoom-img-preserveAspectRatio-support-1-expected.png: Added.
      * platform/qt/svg/zoom/page/zoom-img-preserveAspectRatio-support-1-expected.txt: Added.
      * platform/qt/svg/zoom/page/zoom-svg-as-object-expected.png: Added.
      * platform/qt/svg/zoom/page/zoom-svg-as-object-expected.txt: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99970 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cf85618f
    • tonyg@chromium.org's avatar
      Another baseline for contain-and-cover-zoomed that I didn't catch earlier. · 116e1093
      tonyg@chromium.org authored
      * platform/chromium-cg-mac-leopard/fast/backgrounds/size/contain-and-cover-zoomed-expected.txt: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99969 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      116e1093
    • hausmann@webkit.org's avatar
      Unreviewed, rolling out r99964. · 98a533cc
      hausmann@webkit.org authored
      http://trac.webkit.org/changeset/99964
      https://bugs.webkit.org/show_bug.cgi?id=72124
      
      Broke too many Qt tests (Requested by tronical_ on #webkit).
      
      Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2011-11-11
      
      Source/WebCore:
      
      * Target.pri:
      * html/HTMLSelectElement.h:
      (WebCore::HTMLSelectElement::usesMenuList):
      * platform/qt/QtMobileWebStyle.cpp: Added.
      (QtMobileWebStyle::QtMobileWebStyle):
      (drawRectangularControlBackground):
      (QtMobileWebStyle::drawChecker):
      (QtMobileWebStyle::findChecker):
      (QtMobileWebStyle::drawRadio):
      (QtMobileWebStyle::findRadio):
      (QtMobileWebStyle::drawControl):
      (QtMobileWebStyle::drawPrimitive):
      (QtMobileWebStyle::drawMultipleComboButton):
      (QtMobileWebStyle::drawSimpleComboButton):
      (QtMobileWebStyle::getButtonImageSize):
      (QtMobileWebStyle::findComboButton):
      (QtMobileWebStyle::drawComplexControl):
      * platform/qt/QtMobileWebStyle.h: Added.
      * platform/qt/QtStyleOptionWebComboBox.h:
      (WebCore::QtStyleOptionWebComboBox::QtStyleOptionWebComboBox):
      (WebCore::QtStyleOptionWebComboBox::checkMultiple):
      * platform/qt/RenderThemeQStyle.cpp: Removed.
      * platform/qt/RenderThemeQStyle.h: Removed.
      * platform/qt/RenderThemeQt.cpp:
      (WebCore::initStyleOption):
      (WebCore::StylePainter::StylePainter):
      (WebCore::StylePainter::init):
      (WebCore::StylePainter::~StylePainter):
      (WebCore::RenderThemeQt::create):
      (WebCore::RenderTheme::themeForPage):
      (WebCore::RenderThemeQt::RenderThemeQt):
      (WebCore::RenderThemeQt::~RenderThemeQt):
      (WebCore::RenderThemeQt::isControlStyled):
      (WebCore::RenderThemeQt::popupInternalPaddingBottom):
      (WebCore::RenderThemeQt::fallbackStyle):
      (WebCore::RenderThemeQt::qStyle):
      (WebCore::RenderThemeQt::extraDefaultStyleSheet):
      (WebCore::RenderThemeQt::findFrameLineWidth):
      (WebCore::inflateButtonRect):
      (WebCore::RenderThemeQt::adjustRepaintRect):
      (WebCore::RenderThemeQt::minimumMenuListSize):
      (WebCore::RenderThemeQt::computeSizeBasedOnStyle):
      (WebCore::RenderThemeQt::adjustButtonStyle):
      (WebCore::RenderThemeQt::setButtonPadding):
      (WebCore::RenderThemeQt::paintButton):
      (WebCore::RenderThemeQt::adjustTextFieldStyle):
      (WebCore::RenderThemeQt::paintTextField):
      (WebCore::RenderThemeQt::adjustMenuListStyle):
      (WebCore::RenderThemeQt::setPopupPadding):
      (WebCore::RenderThemeQt::paintMenuList):
      (WebCore::RenderThemeQt::adjustMenuListButtonStyle):
      (WebCore::RenderThemeQt::paintMenuListButton):
      (WebCore::RenderThemeQt::animationDurationForProgressBar):
      (WebCore::RenderThemeQt::paintProgressBar):
      (WebCore::RenderThemeQt::paintSliderTrack):
      (WebCore::RenderThemeQt::paintSliderThumb):
      (WebCore::RenderThemeQt::paintSearchFieldCancelButton):
      (WebCore::RenderThemeQt::paintInnerSpinButton):
      (WebCore::RenderThemeQt::setPaletteFromPageClientIfExists):
      (WebCore::RenderThemeQt::initializeCommonQStyleOptions):
      (WebCore::RenderThemeQt::paintMediaFullscreenButton):
      (WebCore::RenderThemeQt::paintMediaMuteButton):
      (WebCore::RenderThemeQt::paintMediaPlayButton):
      (WebCore::RenderThemeQt::paintMediaCurrentTime):
      (WebCore::RenderThemeQt::paintMediaVolumeSliderTrack):
      (WebCore::RenderThemeQt::paintMediaVolumeSliderThumb):
      (WebCore::RenderThemeQt::paintMediaSliderTrack):
      (WebCore::RenderThemeQt::paintMediaSliderThumb):
      (WebCore::RenderThemeQt::adjustSliderThumbSize):
      (WebCore::RenderThemeQt::caretBlinkInterval):
      (WebCore::RenderThemeQt::fileListNameForWidth):
      * platform/qt/RenderThemeQt.h:
      (WebCore::StylePainter::isValid):
      (WebCore::StylePainter::drawPrimitive):
      (WebCore::StylePainter::drawControl):
      (WebCore::StylePainter::drawComplexControl):
      * platform/qt/RenderThemeQtMobile.cpp: Removed.
      * platform/qt/RenderThemeQtMobile.h: Removed.
      * platform/qt/ScrollbarThemeQt.cpp:
      (WebCore::ScrollbarTheme::nativeTheme):
      (WebCore::ScrollbarThemeQt::paint):
      (WebCore::ScrollbarThemeQt::scrollbarThickness):
      (WebCore::ScrollbarThemeQt::paintScrollCorner):
      
      Source/WebKit/qt:
      
      * Api/qwebpage.cpp:
      (QWebPage::swallowContextMenuEvent):
      * tests/tests.pri:
      
      Tools:
      
      * WebKitTestRunner/InjectedBundle/qt/ActivateFontsQt.cpp:
      (WTR::activateFonts):
      * qmake/mkspecs/features/features.prf:
      * qmake/mkspecs/features/webcore.prf:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99968 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      98a533cc
    • pfeldman@chromium.org's avatar
      Not reviewed: fix Snow Leopard build. · fc0368f4
      pfeldman@chromium.org authored
      * inspector/InspectorDOMAgent.cpp:
      (WebCore::InspectorDOMAgent::performSearch):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99967 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fc0368f4
    • hausmann@webkit.org's avatar
      [Qt] Remove dead MeeGoTouch code. · 881a43d5
      hausmann@webkit.org authored
      Reviewed by Tor Arne Vestbø.
      
      * WebProcess/qt/WebProcessMainQt.cpp:
      (WebKit::WebProcessMainQt):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99966 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      881a43d5