1. 19 May, 2013 1 commit
    • andersca@apple.com's avatar
      Remove link prerendering code · a82aee4a
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=116415
      
      Reviewed by Darin Adler.
      
      .:
      
      This code was only used by Chromium and is dead now.
      
      * Source/autotools/SetupWebKitFeatures.m4:
      * Source/cmake/WebKitFeatures.cmake:
      * Source/cmakeconfig.h.cmake:
      
      Source/JavaScriptCore:
      
      This code was only used by Chromium and is dead now.
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebCore:
      
      * Configurations/FeatureDefines.xcconfig:
      * GNUmakefile.list.am:
      * Target.pri:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      * dom/Document.cpp:
      (WebCore::Document::Document):
      * dom/Document.h:
      (WebCore):
      (Document):
      * dom/EventNames.h:
      (WebCore):
      * html/HTMLLinkElement.cpp:
      * html/HTMLLinkElement.h:
      * html/LinkRelAttribute.cpp:
      (WebCore::LinkRelAttribute::LinkRelAttribute):
      * html/LinkRelAttribute.h:
      (LinkRelAttribute):
      * loader/LinkLoader.cpp:
      (WebCore::LinkLoader::~LinkLoader):
      (WebCore::LinkLoader::loadLink):
      (WebCore::LinkLoader::released):
      * loader/LinkLoader.h:
      (WebCore):
      (LinkLoader):
      * loader/LinkLoaderClient.h:
      (LinkLoaderClient):
      * loader/Prerenderer.cpp: Removed.
      * loader/Prerenderer.h: Removed.
      * loader/PrerendererClient.cpp: Removed.
      * loader/PrerendererClient.h: Removed.
      * platform/PrerenderClient.h: Removed.
      * platform/PrerenderHandle.h: Removed.
      
      Source/WebKit/blackberry:
      
      This code was only used by Chromium and is dead now.
      
      * WebCoreSupport/AboutDataEnableFeatures.in:
      
      Source/WebKit/mac:
      
      This code was only used by Chromium and is dead now.
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebKit2:
      
      This code was only used by Chromium and is dead now.
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WTF:
      
      This code was only used by Chromium and is dead now.
      
      * wtf/FeatureDefines.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150356 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a82aee4a
  2. 17 May, 2013 1 commit
    • ch.dumez@sisa.samsung.com's avatar
      Add [EnabledAtRuntime] extended attribute support for global constructors · c1020034
      ch.dumez@sisa.samsung.com authored
      https://bugs.webkit.org/show_bug.cgi?id=116147
      
      Reviewed by Geoffrey Garen.
      
      Add [EnabledAtRuntime] extended attribute support for global constructors.
      This patch adds [EnabledAtRuntime] extended attribute to SharedWorker and
      WebSocket IDL interfaces so that their global constructors on the global
      Window object can now be automatically generated.
      
      The behavior on JavaScript side is unchanged. We simply leverage
      RuntimeEnabledFeatures class and the new [EnabledAtRuntime] IDL extended
      attribute to generate the code for global constructors getters instead
      of using custom code.
      
      No new tests, no behavior change for layout tests.
      
      * GNUmakefile.list.am:
      * Modules/websockets/WebSocket.cpp: Enable WebSockets at runtime by default.
      * Modules/websockets/WebSocket.idl:
      * Target.pri:
      * UseJSC.cmake:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      * bindings/js/JSBindingsAllInOne.cpp:
      * bindings/js/JSDOMWindowCustom.cpp:
      (WebCore):
      * bindings/js/JSDOMWindowWebSocketCustom.cpp: Removed.
      * bindings/scripts/CodeGeneratorJS.pm:
      (ToMethodName):
      (GetRuntimeEnableFunctionName):
      (GenerateImplementation):
      * bindings/scripts/IDLAttributes.txt:
      * page/DOMWindow.idl:
      * workers/SharedWorker.idl:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150276 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c1020034
  3. 16 May, 2013 1 commit
    • andersca@apple.com's avatar
      Remove SystemTime header and implementations · ef140d3b
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=116200
      
      Reviewed by Alexey Proskuryakov.
      
      SystemTim just had a single function that's not called anymore. Remove it.
      
      * GNUmakefile.list.am:
      * PlatformBlackBerry.cmake:
      * PlatformEfl.cmake:
      * PlatformWinCE.cmake:
      * Target.pri:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      * history/PageCache.cpp:
      * platform/SystemTime.h: Removed.
      * platform/blackberry/SystemTimeBlackBerry.cpp: Removed.
      * platform/efl/SystemTimeEfl.cpp: Removed.
      * platform/graphics/ca/GraphicsLayerCA.cpp:
      * platform/mac/SystemTimeMac.cpp: Removed.
      * platform/qt/TemporaryLinkStubsQt.cpp:
      * platform/win/SystemTimeWin.cpp: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150216 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ef140d3b
  4. 15 May, 2013 3 commits
    • andersca@apple.com's avatar
      Move HTTPRequest class to WebKit2 · f7f77664
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=116192
      
      Reviewed by Darin Adler.
      
      Source/WebCore:
      
      HTTPRequest is only used by the "remote inspector" feature in WebKit2,
      so there's no need to have it in WebCore.
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * Target.pri:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      
      Source/WebKit2:
      
      Move HTTPRequest to WebKit2 and put it in the WebKit namespace.
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * Target.pri:
      * UIProcess/InspectorServer/HTTPRequest.cpp: Renamed from Source/WebCore/platform/network/HTTPRequest.cpp.
      * UIProcess/InspectorServer/HTTPRequest.h: Renamed from Source/WebCore/platform/network/HTTPRequest.h.
      * UIProcess/InspectorServer/WebInspectorServer.cpp:
      * UIProcess/InspectorServer/WebInspectorServer.h:
      (WebInspectorServer):
      * UIProcess/InspectorServer/WebSocketServerClient.h:
      (WebKit::WebSocketServerClient::didReceiveUnrecognizedHTTPRequest):
      (WebKit::WebSocketServerClient::didReceiveWebSocketUpgradeHTTPRequest):
      (WebKit::WebSocketServerClient::didEstablishWebSocketConnection):
      * UIProcess/InspectorServer/WebSocketServerConnection.cpp:
      * UIProcess/InspectorServer/WebSocketServerConnection.h:
      (WebKit):
      (WebSocketServerConnection):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150161 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f7f77664
    • andersca@apple.com's avatar
      Remove WebSocketHandshakeResponse class · c8889f09
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=116190
      
      Reviewed by Andreas Kling.
      
      Just use ResourceResponse instead of WebSocketHandshakeResponse.
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * Modules/websockets/WebSocketHandshake.cpp:
      (WebCore::WebSocketHandshake::readServerHandshake):
      (WebCore::WebSocketHandshake::serverWebSocketProtocol):
      (WebCore::WebSocketHandshake::serverSetCookie):
      (WebCore::WebSocketHandshake::serverSetCookie2):
      (WebCore::WebSocketHandshake::serverUpgrade):
      (WebCore::WebSocketHandshake::serverConnection):
      (WebCore::WebSocketHandshake::serverWebSocketAccept):
      (WebCore::WebSocketHandshake::serverHandshakeResponse):
      (WebCore::WebSocketHandshake::readHTTPHeaders):
      * Modules/websockets/WebSocketHandshake.h:
      * Modules/websockets/WebSocketHandshakeResponse.cpp: Removed.
      * Modules/websockets/WebSocketHandshakeResponse.h: Removed.
      * Target.pri:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      * inspector/InspectorInstrumentation.cpp:
      (WebCore):
      (WebCore::InspectorInstrumentation::didReceiveWebSocketHandshakeResponseImpl):
      * inspector/InspectorInstrumentation.h:
      (InspectorInstrumentation):
      (WebCore::InspectorInstrumentation::didReceiveWebSocketHandshakeResponse):
      * inspector/InspectorResourceAgent.cpp:
      (WebCore::InspectorResourceAgent::didReceiveWebSocketHandshakeResponse):
      * inspector/InspectorResourceAgent.h:
      (WebCore):
      (InspectorResourceAgent):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150154 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c8889f09
    • andersca@apple.com's avatar
      Remove WebSocketHandshakeRequest class · 5e670f60
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=116178
      
      Reviewed by Andreas Kling.
      
      Turns out WebSocketHandshakeRequest is just used by the web inspector, and there's no reason
      why we can't just use a ResourceRequest instead.
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * Modules/websockets/WebSocketChannel.cpp:
      (WebCore::WebSocketChannel::didOpenSocketStream):
      * Modules/websockets/WebSocketHandshake.cpp:
      (WebCore::WebSocketHandshake::clientHandshakeRequest):
      * Modules/websockets/WebSocketHandshake.h:
      (WebCore):
      * Modules/websockets/WebSocketHandshakeRequest.cpp: Removed.
      * Modules/websockets/WebSocketHandshakeRequest.h: Removed.
      * Target.pri:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      * inspector/InspectorInstrumentation.cpp:
      (WebCore):
      (WebCore::InspectorInstrumentation::willSendWebSocketHandshakeRequestImpl):
      * inspector/InspectorInstrumentation.h:
      (InspectorInstrumentation):
      (WebCore::InspectorInstrumentation::willSendWebSocketHandshakeRequest):
      * inspector/InspectorResourceAgent.cpp:
      (WebCore::InspectorResourceAgent::willSendWebSocketHandshakeRequest):
      * inspector/InspectorResourceAgent.h:
      (WebCore):
      (InspectorResourceAgent):
      * platform/network/HTTPRequest.cpp:
      (WebCore):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150142 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5e670f60
  5. 13 May, 2013 3 commits
    • benjamin@webkit.org's avatar
      Remove platform/graphic's Generator · be3e8666
      benjamin@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=116084
      
      Patch by Benjamin Poulain <bpoulain@apple.com> on 2013-05-13
      Reviewed by Darin Adler.
      
      The Generator no longer abstract anything useful, its only
      implementation is Gradient.
      
      * GNUmakefile.list.am:
      * WebCore.exp.in:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      * platform/graphics/GeneratedImage.h:
      * platform/graphics/Generator.h: Removed.
      * platform/graphics/GeneratorGeneratedImage.cpp:
      (WebCore::GeneratorGeneratedImage::draw):
      (WebCore::GeneratorGeneratedImage::drawPattern):
      * platform/graphics/GeneratorGeneratedImage.h:
      (WebCore::GeneratorGeneratedImage::create):
      (WebCore::GeneratorGeneratedImage::GeneratorGeneratedImage):
      (GeneratorGeneratedImage):
      * platform/graphics/Gradient.h:
      (WebCore):
      (Gradient):
      * platform/graphics/GraphicsContext.cpp:
      (WebCore::GraphicsContext::fillRect):
      * platform/graphics/GraphicsContext.h:
      (WebCore):
      (GraphicsContext):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150053 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      be3e8666
    • ch.dumez@sisa.samsung.com's avatar
      Rename BarInfo to BarProp and remove [NoInterfaceObject] · aeca17a4
      ch.dumez@sisa.samsung.com authored
      https://bugs.webkit.org/show_bug.cgi?id=116027
      
      Reviewed by Andreas Kling.
      
      Source/WebCore:
      
      Rename BarInfo to BarProp and remove [NoInterfaceObject] extended attribute from
      the IDL interface to match the specification:
      http://www.w3.org/html/wg/drafts/html/master/browsers.html#barprop
      
      The new behavior also matches Firefox and Blink.
      
      No new tests, covered by LayoutTests/fast/js/global-constructors-attributes.html.
      
      * CMakeLists.txt:
      * DerivedSources.cpp:
      * DerivedSources.make:
      * DerivedSources.pri:
      * GNUmakefile.list.am:
      * Target.pri:
      * WebCore.order:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      * bindings/gobject/GNUmakefile.am:
      * page/BarProp.cpp: Renamed from Source/WebCore/page/BarInfo.cpp.
      * page/BarProp.h: Renamed from Source/WebCore/page/BarInfo.h.
      * page/BarProp.idl: Renamed from Source/WebCore/page/BarInfo.idl.
      * page/DOMWindow.cpp:
      * page/DOMWindow.h:
      * page/DOMWindow.idl:
      
      LayoutTests:
      
      Rebaseline fast/js/global-constructors-attributes.html now that there is a new
      'BarProp' global constructor.
      
      Rebaseline a few other tests now that BarInfo was renamed to BarProp.
      
      * fast/dom/Window/window-lookup-precedence-expected.txt:
      * fast/js/global-constructors-attributes-expected.txt:
      * fast/loader/window-properties-restored-from-page-cache-expected.txt:
      * http/tests/security/cross-frame-access-put-expected.txt:
      * platform/efl/fast/js/global-constructors-attributes-expected.txt:
      * platform/gtk/fast/dom/Window/window-lookup-precedence-expected.txt:
      * platform/gtk/fast/js/global-constructors-attributes-expected.txt:
      * platform/mac-lion/fast/js/global-constructors-attributes-expected.txt:
      * platform/mac/fast/dom/Window/window-lookup-precedence-expected.txt:
      * platform/qt/fast/js/global-constructors-attributes-expected.txt:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150045 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      aeca17a4
    • commit-queue@webkit.org's avatar
      Web Inspector: Remove unused references from projects in Visual Studio · 9fe1265c
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=116002
      
      Patch by Seokju Kwon <seokju.kwon@gmail.com> on 2013-05-13
      Reviewed by Csaba Osztrogonác.
      
      nativeMemoryProfiler.css and NativeMemorySnapshotView.js were removed in r149807.
      
      No new tests, no behavior change.
      
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150000 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9fe1265c
  6. 10 May, 2013 3 commits
    • andersca@apple.com's avatar
      Remove EventTracer · 3895cc0e
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=115916
      
      Reviewed by Sam Weinig.
      
      EventTracer is dead code, remove it.
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * Target.pri:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      * platform/EventTracer.cpp: Removed.
      * platform/EventTracer.h: Removed.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149888 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3895cc0e
    • andersca@apple.com's avatar
      Remove MemoryUsageSupport class · 526c552a
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=115913
      
      Reviewed by Andreas Kling.
      
      MemoryUsageSupport was just used by a single call site in InspectorTimelineAgent,
      and the function called always returns zero on all platforms! Remove it.
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * Target.pri:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      * inspector/InspectorMemoryAgent.cpp:
      * inspector/InspectorTimelineAgent.cpp:
      (WebCore):
      (WebCore::InspectorTimelineAgent::setNativeHeapStatistics):
      * platform/MemoryUsageSupport.cpp: Removed.
      * platform/MemoryUsageSupport.h: Removed.
      * platform/qt/MemoryUsageSupportQt.cpp: Removed.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149882 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      526c552a
    • andersca@apple.com's avatar
      Remove ScriptInstance.h · c9e8eb3f
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=115900
      
      Reviewed by Andreas Kling.
      
      Remove yet another abstraction now that we don't support V8.
      
      * GNUmakefile.list.am:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      * bindings/js/ScriptController.h:
      (Bindings):
      (ScriptController):
      * bindings/js/ScriptControllerMac.mm:
      (WebCore::ScriptController::createScriptInstanceForWidget):
      * bindings/js/ScriptInstance.h: Removed.
      * html/HTMLPlugInElement.cpp:
      (WebCore::HTMLPlugInElement::getInstance):
      * html/HTMLPlugInElement.h:
      (Bindings):
      (HTMLPlugInElement):
      * platform/graphics/wince/MediaPlayerProxy.h:
      (WebMediaPlayerProxy):
      * rendering/RenderEmbeddedObject.cpp:
      * rendering/RenderSnapshottedPlugIn.cpp:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149871 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c9e8eb3f
  7. 07 May, 2013 2 commits
    • antti@apple.com's avatar
      Remove SelectRuleFeatureSet · d77f33af
      antti@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=115757
      
      Reviewed by Benjamin Poulain.
      
      This is dead code.
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * Target.pri:
      * WebCore.exp.in:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.xcodeproj/project.pbxproj:
      * dom/Element.cpp:
      (WebCore::Element::attributeChanged):
      (WebCore):
      (WebCore::Element::didAffectSelector):
      * dom/Element.h:
      (Element):
      * dom/ElementShadow.h:
      (WebCore::ElementShadow::invalidateDistribution):
      * html/shadow/ContentDistributor.cpp:
      (WebCore::ContentDistributor::ContentDistributor):
      (WebCore):
      * html/shadow/ContentDistributor.h:
      (ContentDistributor):
      * html/shadow/InsertionPoint.cpp:
      (WebCore::InsertionPoint::insertedInto):
      (WebCore::InsertionPoint::removedFrom):
      * html/shadow/InsertionPoint.h:
      (InsertionPoint):
      * html/shadow/SelectRuleFeatureSet.cpp: Removed.
      * html/shadow/SelectRuleFeatureSet.h: Removed.
      * testing/Internals.cpp:
      (WebCore):
      * testing/Internals.idl:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149708 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d77f33af
    • andersca@apple.com's avatar
      Remove AlwaysInline.h from WTF · bf475cae
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=115727
      
      Reviewed by Brent Fulgham.
      
      The macro that used to be in AlwaysInline.h is now in Compiler.h so there's no reason
      to keep AlwaysInline.h around anymore.
      
      Source/JavaScriptCore:
      
      * jit/JSInterfaceJIT.h:
      * parser/Lexer.h:
      * runtime/JSCJSValue.h:
      * runtime/SymbolTable.h:
      
      Source/WebCore:
      
      * WebCore.vcproj/WebCore.vcproj:
      * bindings/js/JSDOMWindowCustom.h:
      * bindings/scripts/CodeGeneratorJS.pm:
      (GenerateHeader):
      * platform/graphics/filters/FEConvolveMatrix.h:
      * rendering/InlineIterator.h:
      * rendering/InlineTextBox.cpp:
      * rendering/RenderBlockLineLayout.cpp:
      * rendering/RenderText.cpp:
      
      Source/WTF:
      
      * WTF.vcproj/WTF.vcproj:
      * WTF.vcxproj/WTF.vcxproj:
      * WTF.vcxproj/WTF.vcxproj.filters:
      * WTF.xcodeproj/project.pbxproj:
      * wtf/AlwaysInline.h: Removed.
      * wtf/BloomFilter.h:
      * wtf/FastMalloc.cpp:
      * wtf/PassRefPtr.h:
      * wtf/dtoa.cpp:
      * wtf/gobject/GRefPtr.h:
      
      Tools:
      
      * DumpRenderTree/qt/DumpRenderTreeMain.cpp:
      * WebKitTestRunner/InjectedBundle/qt/InjectedBundleQt.cpp:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149673 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bf475cae
  8. 04 May, 2013 1 commit
  9. 03 May, 2013 1 commit
    • antti@apple.com's avatar
      Remove HTMLShadowElement · 5c894cda
      antti@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=115555
      
      Reviewed by Andreas Kling.
      
      This is not used internally.
      
      * CMakeLists.txt:
      * DerivedSources.cpp:
      * DerivedSources.make:
      * DerivedSources.pri:
      * GNUmakefile.list.am:
      * Target.pri:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      * dom/ComposedShadowTreeWalker.cpp:
      * dom/NodeRenderingContext.cpp:
      * html/HTMLElementsAllInOne.cpp:
      * html/HTMLTagNames.in:
      * html/InputType.cpp:
      (WebCore::InputType::destroyShadowSubtree):
      * html/shadow/ContentDistributor.cpp:
      (WebCore::ContentDistributor::distribute):
      * html/shadow/HTMLShadowElement.cpp: Removed.
      * html/shadow/HTMLShadowElement.h: Removed.
      * html/shadow/HTMLShadowElement.idl: Removed.
      * page/DOMWindow.idl:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149525 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5c894cda
  10. 02 May, 2013 2 commits
  11. 29 Apr, 2013 1 commit
    • andersca@apple.com's avatar
      Get rid of StorageTask · 41d72935
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=115313
      
      Reviewed by Andreas Kling.
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * Target.pri:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      * storage/StorageSyncManager.cpp:
      * storage/StorageTask.cpp: Removed.
      * storage/StorageTask.h: Removed.
      * storage/StorageThread.cpp:
      (WebCore::StorageThread::threadEntryPoint):
      (WebCore::StorageThread::dispatch):
      (WebCore::StorageThread::terminate):
      * storage/StorageThread.h:
      (StorageThread):
      * storage/StorageTracker.cpp:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149297 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      41d72935
  12. 22 Apr, 2013 1 commit
    • benjamin@webkit.org's avatar
      Remove the memory instrumentation code · 9d72cb0b
      benjamin@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=114931
      
      Reviewed by Andreas Kling.
      
      .: 
      
      * Source/autotools/symbols.filter:
      
      Source/JavaScriptCore: 
      
      * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCoreExports.def:
      * JavaScriptCore.vcxproj/JavaScriptCoreExportGenerator/JavaScriptCoreExports.def.in:
      
      Source/WebCore: 
      
      The Memory Instrumentation code is unfinished and has already
      become out of sync the objects it is supposed to represent.
      
      The current approach does not seem maintainable, it is better to
      remove it before someone gets hurt.
      
      By removing the code, the binary become 1240976 bytes smaller.
      Yep, almost 1 Mb, bringing WebCore to the size it has 5 months ago :)
      
      * MostWebCoreFiles: remove the support for memory instrumentation.
      
      Source/WebKit: 
      
      * WebKit.vcxproj/WebKitExportGenerator/WebKitExports.def.in:
      
      Source/WebKit/mac: 
      
      * WebView/WebRenderLayer.mm:
      
      Source/WebKit/win: 
      
      * WebKit.vcproj/WebKitExports.def.in:
      
      Source/WTF: 
      
      On Mac x86_64, the code removal cause the binary to be
      9224 bytes smaller.
      
      * GNUmakefile.list.am:
      * WTF.pro:
      * WTF.vcproj/WTF.vcproj:
      * WTF.vcxproj/WTF.vcxproj:
      * WTF.vcxproj/WTF.vcxproj.filters:
      * WTF.xcodeproj/project.pbxproj:
      * wtf/CMakeLists.txt:
      * wtf/Forward.h:
      * wtf/ListHashSet.h:
      (ListHashSet):
      (ListHashSetNodeAllocator):
      (WTF::ListHashSetNodeAllocator::pool):
      (WTF::ListHashSetNodeAllocator::pastPool):
      * wtf/MemoryInstrumentation.cpp: Removed.
      * wtf/MemoryInstrumentation.h: Removed.
      * wtf/MemoryInstrumentationArrayBufferView.h: Removed.
      * wtf/MemoryInstrumentationHashCountedSet.h: Removed.
      * wtf/MemoryInstrumentationHashMap.h: Removed.
      * wtf/MemoryInstrumentationHashSet.h: Removed.
      * wtf/MemoryInstrumentationListHashSet.h: Removed.
      * wtf/MemoryInstrumentationSequence.h: Removed.
      * wtf/MemoryInstrumentationString.h: Removed.
      * wtf/MemoryInstrumentationVector.h: Removed.
      * wtf/MemoryObjectInfo.h: Removed.
      * wtf/text/AtomicString.h:
      * wtf/text/StringImpl.h:
      (WTF::StringImpl::isASCIILiteral):
      * wtf/text/WTFString.h:
      
      Tools: 
      
      * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
      * TestWebKitAPI/Tests/WTF/MemoryInstrumentationTest.cpp: Removed.
      
      LayoutTests: 
      
      * inspector/profiler/memory-instrumentation-cached-images-expected.txt: Removed.
      * inspector/profiler/memory-instrumentation-cached-images.html: Removed.
      * inspector/profiler/memory-instrumentation-canvas-expected.txt: Removed.
      * inspector/profiler/memory-instrumentation-canvas.html: Removed.
      * inspector/profiler/memory-instrumentation-external-array-expected.txt: Removed.
      * inspector/profiler/memory-instrumentation-external-array.html: Removed.
      * inspector/profiler/memory-instrumentation-external-string-expected.txt: Removed.
      * inspector/profiler/memory-instrumentation-external-string.html: Removed.
      * inspector/profiler/memory-instrumentation-test.js: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148921 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9d72cb0b
  13. 21 Apr, 2013 1 commit
    • krit@webkit.org's avatar
      [Part 4] Parse the custom() function in -webkit-filter: parse the matN() functions · efd4ebf1
      krit@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=71444
      
      Reviewed by Dean Jackson.
      
      Source/WebCore:
      
      Custom filter parameters should support mat2 to mat4 value functions. Added parsing
      and style resolving bits to support the matrix function values. A later patch will
      add the matrices to the shader program.
      
      https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html#custom-filter-parameters
      
      Modified existing tests to cover changes.
      
      * GNUmakefile.list.am: Added WebKitCSSMatFunctionValue to individual build systems.
      * Target.pri:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      * css/CSSComputedStyleDeclaration.cpp:
      (WebCore::valueForCustomFilterMatParameter):
      (WebCore):
      (WebCore::valueForCustomFilterParameter):
      * css/CSSParser.cpp:
      (WebCore::CSSParser::parseTransform):
      (WebCore::CSSParser::parseMatValue):
      (WebCore):
      (WebCore::CSSParser::parseCustomFilterParameters):
      * css/CSSParser.h:
      (WebCore):
      * css/CSSValue.cpp:
      (WebCore::CSSValue::reportMemoryUsage):
      (WebCore::CSSValue::equals):
      (WebCore::CSSValue::cssText):
      (WebCore::CSSValue::destroy):
      (WebCore::CSSValue::cloneForCSSOM):
      * css/CSSValue.h:
      (WebCore::CSSValue::isWebKitCSSMatFunctionValue):
      * css/StyleResolver.cpp:
      (WebCore::StyleResolver::parseCustomFilterArrayParameter):
      (WebCore::StyleResolver::parseCustomFilterParameter):
      * css/StyleResolver.h:
      (StyleResolver):
      * css/WebKitCSSMatFunctionValue.cpp:
      (WebCore::WebKitCSSMatFunctionValue::WebKitCSSMatFunctionValue):
      (WebCore::WebKitCSSMatFunctionValue::customCssText):
      (WebCore::WebKitCSSMatFunctionValue::cloneForCSSOM):
      (WebCore::WebKitCSSMatFunctionValue::equals):
      (WebCore::WebKitCSSMatFunctionValue::reportDescendantMemoryUsage):
      * css/WebKitCSSMatFunctionValue.h:
      (WebKitCSSMatFunctionValue):
      (WebCore::WebKitCSSMatFunctionValue::create):
      * platform/graphics/filters/CustomFilterArrayParameter.h:
      (WebCore::CustomFilterArrayParameter::create):
      (WebCore::CustomFilterArrayParameter::CustomFilterArrayParameter):
      * platform/graphics/filters/CustomFilterParameter.h:
      (CustomFilterParameter):
      * platform/graphics/filters/CustomFilterRenderer.cpp:
      (WebCore::CustomFilterRenderer::bindProgramParameters):
      
      LayoutTests:
      
      Added tests for mat2 to mat4 parameter functions on custom fiter function and
      parameter descriptor.
      
      * css3/filters/custom-with-at-rule-syntax/parsing-custom-function-invalid-expected.txt:
      * css3/filters/custom-with-at-rule-syntax/parsing-custom-function-valid-expected.txt:
      * css3/filters/custom-with-at-rule-syntax/parsing-parameters-property-invalid-expected.txt:
      * css3/filters/custom-with-at-rule-syntax/parsing-parameters-property-valid-expected.txt:
      * css3/filters/custom-with-at-rule-syntax/script-tests/parsing-custom-function-invalid.js:
      * css3/filters/custom-with-at-rule-syntax/script-tests/parsing-custom-function-valid.js:
      * css3/filters/custom-with-at-rule-syntax/script-tests/parsing-parameters-property-invalid.js:
      * css3/filters/custom-with-at-rule-syntax/script-tests/parsing-parameters-property-valid.js:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148852 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      efd4ebf1
  14. 20 Apr, 2013 1 commit
    • krit@webkit.org's avatar
      [Part 5] Parse color value for custom() function parameters · e6947f2c
      krit@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=114902
      
      Reviewed by Dean Jackson.
      
      Source/WebCore:
      
      Custom filter parameters should support color values. Added parsing
      and style resolving bits to support color values. A later patch will
      add the color values to the shader program.
      
      https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html#custom-filter-parameters
      
      Modified existing tests to cover changes.
      
      * GNUmakefile.list.am: Added CustomFilterColorParameter to support color values
          as custom filter parameters.
      * Target.pri:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      * css/CSSComputedStyleDeclaration.cpp:
      (WebCore::valueForCustomFilterColorParameter):
      (WebCore):
      (WebCore::valueForCustomFilterParameter):
      * css/CSSParser.cpp:
      (WebCore::CSSParser::parseCustomFilterParameters):
      * css/StyleResolver.cpp:
      (WebCore::StyleResolver::parseCustomFilterColorParameter):
      (WebCore):
      (WebCore::StyleResolver::parseCustomFilterParameter):
      * css/StyleResolver.h:
      (StyleResolver):
      * platform/graphics/filters/CustomFilterColorParameter.h: Added.
      (WebCore):
      (WebCore::blendFunc):
      (CustomFilterColorParameter):
      (WebCore::CustomFilterColorParameter::create):
      (WebCore::CustomFilterColorParameter::blend):
      (WebCore::CustomFilterColorParameter::color):
      (WebCore::CustomFilterColorParameter::setColor):
      (WebCore::CustomFilterColorParameter::operator==):
      (WebCore::CustomFilterColorParameter::CustomFilterColorParameter):
      (WebCore::CustomFilterColorParameter::~CustomFilterColorParameter):
      * platform/graphics/filters/CustomFilterParameter.h:
      (CustomFilterParameter):
      * platform/graphics/filters/CustomFilterRenderer.cpp:
      (WebCore::CustomFilterRenderer::bindProgramParameters):
      
      LayoutTests:
      
      Added tests for color parameters on custom fiter function and parameter descriptor.
      
      * css3/filters/custom-with-at-rule-syntax/parsing-custom-function-invalid-expected.txt:
      * css3/filters/custom-with-at-rule-syntax/parsing-custom-function-valid-expected.txt:
      * css3/filters/custom-with-at-rule-syntax/parsing-parameters-property-invalid-expected.txt:
      * css3/filters/custom-with-at-rule-syntax/parsing-parameters-property-valid-expected.txt:
      * css3/filters/custom-with-at-rule-syntax/script-tests/parsing-custom-function-invalid.js:
      * css3/filters/custom-with-at-rule-syntax/script-tests/parsing-custom-function-valid.js:
      * css3/filters/custom-with-at-rule-syntax/script-tests/parsing-parameters-property-invalid.js:
      * css3/filters/custom-with-at-rule-syntax/script-tests/parsing-parameters-property-valid.js:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148802 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e6947f2c
  15. 19 Apr, 2013 2 commits
    • commit-queue@webkit.org's avatar
      Add interfaces and stubs for audio and video tracks · 159869e5
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=113965
      
      Patch by Brendan Long <b.long@cablelabs.com> on 2013-04-19
      Reviewed by Jer Noble.
      
      No new tests because there's no implementations, so there's nothing
      interesting to test.
      
      * CMakeLists.txt: Add AudioTrack, VideoTrack, AudioTrackList and VideoTrackList.
      * DerivedSources.cpp: Same.
      * DerivedSources.make: Same.
      * DerivedSources.pri: Same.
      * GNUmakefile.list.am: Same.
      * Target.pri: Same.
      * UseJSC.cmake: Same.
      * WebCore.vcproj/WebCore.vcproj: Same.
      * WebCore.xcodeproj/project.pbxproj: Same.
      * bindings/gobject/GNUmakefile.am: Same.
      * bindings/js/JSAudioTrackCustom.cpp: Added, based on JSTestTrackCustom
      * bindings/js/JSAudioTrackListCustom.cpp: Same.
      * bindings/js/JSBindingsAllInOne.cpp: Add AudioTrack, VideoTrack, AudioTrackList and VideoTrackList.
      * bindings/js/JSVideoTrackCustom.cpp: Added, based on JSTestTrackCustom
      * bindings/js/JSVideoTrackListCustom.cpp: Same.
      * dom/EventTarget.h: Make AudioTrackList and VideoTrackList event targets.
      * dom/EventTargetFactory.in: Same.
      * html/HTMLMediaElement.cpp:
      (WebCore::HTMLMediaElement::HTMLMediaElement): Add m_audioTracks and m_videoTracks
      (WebCore::HTMLMediaElement::~HTMLMediaElement): Clear clients for audio and video tracks
      (WebCore::HTMLMediaElement::audioTrackEnabledChanged): Added.
      (WebCore::HTMLMediaElement::videoTrackSelectedChanged): Added.
      (WebCore::HTMLMediaElement::mediaPlayerDidAddAudioTrack): Added, based on mediaPlayerDidAddTextTrack
      (WebCore::HTMLMediaElement::mediaPlayerDidAddVideoTrack): Same.
      (WebCore::HTMLMediaElement::mediaPlayerDidRemoveAudioTrack): Added, based on mediaPlayerDidRemoveTextTrack
      (WebCore::HTMLMediaElement::mediaPlayerDidRemoveVideoTrack): Same.
      (WebCore::HTMLMediaElement::addAudioTrack): Added, based on addTextTrack
      (WebCore::HTMLMediaElement::addVideoTrack): Same.
      (WebCore::HTMLMediaElement::removeAudioTrack): Added, based on removeTextTrack
      (WebCore::HTMLMediaElement::removeVideoTrack): Added, based on removeTextTrack
      (WebCore::HTMLMediaElement::removeAllInbandTracks): Remove audio and video tracks too
      (WebCore::HTMLMediaElement::audioTracks): Added, based on textTracks
      (WebCore::HTMLMediaElement::videoTracks): Added, based on textTracks
      (WebCore::HTMLMediaElement::reportMemoryUsage): Add audio and video tracks
      * html/HTMLMediaElement.h: Add audioTracks and videoTracks and related functions
      * html/HTMLMediaElement.idl: Add audioTracks and videoTracks
      * html/track/AudioTrack.cpp: Added, based on TextTrack and InbandTextTrack.
      * html/track/AudioTrack.h: Same.
      * html/track/AudioTrack.idl: Added.
      * html/track/AudioTrackList.cpp: Added, based on TextTrackList
      * html/track/AudioTrackList.h: Same.
      * html/track/AudioTrackList.idl: Added.
      * html/track/TextTrackList.h: Add missing OVERRIDE on interfaceName()
      * html/track/VideoTrack.cpp: Added, based on TextTrack and InbandTextTrack.
      * html/track/VideoTrack.h: Same.
      * html/track/VideoTrack.idl: Added.
      * html/track/VideoTrackList.cpp: Added, based on TextTrackList
      * html/track/VideoTrackList.h: Same.
      * html/track/VideoTrackList.idl: Added.
      * platform/graphics/AudioTrackPrivate.h: Added, based on InbandTextTrackPrivate.h
      * platform/graphics/MediaPlayer.cpp:
      (WebCore::MediaPlayer::addAudioTrack): Added, based on addTextTrack
      (WebCore::MediaPlayer::removeAudioTrack): Added, based on removeTextTrack
      (WebCore::MediaPlayer::addVideoTrack): Added, based on addTextTrack
      (WebCore::MediaPlayer::removeVideoTrack): Added, based on removeTextTrack
      * platform/graphics/MediaPlayer.h:
      (WebCore::MediaPlayerClient::mediaPlayerDidAddAudioTrack): Added, based on mediaPlayerDidAddTextTrack
      (WebCore::MediaPlayerClient::mediaPlayerDidAddVideoTrack): Same
      (WebCore::MediaPlayerClient::mediaPlayerDidRemoveAudioTrack): Added, based on mediaPlayerDidRemoveTextTrack
      (WebCore::MediaPlayerClient::mediaPlayerDidRemoveVideoTrack): Same
      * platform/graphics/VideoTrackPrivate.h: Added, based on InbandTextTrackPrivate.h
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148785 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      159869e5
    • krit@webkit.org's avatar
      Refactor transform code in StyleResolver · d0eaf727
      krit@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=114874
      
      Reviewed by Andreas Kling.
      
      Move transform code frome StyleResolver into own files.
      
      Refactoring, no changes in functionality.
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * Target.pri:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      * css/StyleResolver.cpp:
      (WebCore::StyleResolver::applyProperty):
      (WebCore::StyleResolver::parseCustomFilterTransformParameter):
      * css/StyleResolver.h:
      * css/TransformFunctions.cpp: Added.
      (WebCore):
      (WebCore::transformOperationType):
      (WebCore::convertToFloatLength):
      (WebCore::transformsForValue):
      * css/TransformFunctions.h: Added.
      (WebCore):
      * css/WebKitCSSMatrix.cpp:
      (WebCore::WebKitCSSMatrix::setMatrixValue):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148753 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d0eaf727
  16. 17 Apr, 2013 1 commit
  17. 13 Apr, 2013 1 commit
    • krit@webkit.org's avatar
      Rename StyleBuilder to DeprecatedStyleBuilder · 7df5d5f9
      krit@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=114532
      
      Reviewed by Benjamin Poulain.
      
      The StyleBuilder code is hard to read and maintain. People should
      not add new properties to this class. To make this clear, this
      patch renames the class to DeprecatedStyleBuilder.
      
      Pure refactoring, no change in functionality.
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * Target.pri:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      * css/CSSAllInOne.cpp:
      * css/DeprecatedStyleBuilder.cpp: Renamed from Source/WebCore/css/StyleBuilder.cpp.
      * css/DeprecatedStyleBuilder.h: Renamed from Source/WebCore/css/StyleBuilder.h.
      * css/StyleResolver.cpp:
      (WebCore::StyleResolver::StyleResolver):
      (WebCore::StyleResolver::applyProperty):
      (WebCore::StyleResolver::reportMemoryUsage):
      * css/StyleResolver.h:
      (StyleResolver):
      * rendering/style/RenderStyle.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148363 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7df5d5f9
  18. 12 Apr, 2013 3 commits
    • commit-queue@webkit.org's avatar
      Refactor TextTrack and TextTrackList to make it easier to add audio and video tracks · 06a8de7f
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=114330
      
      Patch by Brendan Long <b.long@cablelabs.com> on 2013-04-12
      Reviewed by Jer Noble.
      
      No new tests because this doesn't add new functionality.
      
      * CMakeLists.txt: Only compile text track files if ENABLE(VIDEO_TRACK), and add TrackListBase
      * Target.pri: Add TrackListBase
      * WebCore.vcproj/WebCore.vcproj: Correct InbandTextTrackPrivate.h's location and add TrackListBase
      * WebCore.xcodeproj/project.pbxproj: Add TrackListBase
      * html/HTMLMediaElement.cpp: Renamed "track" functions to "textTrack"
      (WebCore::HTMLMediaElement::mediaPlayerDidAddTextTrack): Renamed.
      (WebCore::HTMLMediaElement::mediaPlayerDidRemoveTextTrack): Renamed.
      (WebCore::HTMLMediaElement::addTextTrack): Renamed.
      (WebCore::HTMLMediaElement::removeTextTrack): Renamed.
      (WebCore::HTMLMediaElement::removeAllInbandTracks): Use renamed functions.
      (WebCore::HTMLMediaElement::didAddTextTrack): Renamed.
      (WebCore::HTMLMediaElement::didRemoveTextTrack): Renamed.
      * html/HTMLMediaElement.h:
      Renamed "track" functions to "textTrack" and only forward-declare TextTrackList if ENABLE(VIDEO_TRACK)
      * html/HTMLTrackElement.cpp: Renamed "track" functions to "textTrack"
      (WebCore::HTMLTrackElement::insertedInto):
      (WebCore::HTMLTrackElement::removedFrom):
      * html/track/TextTrack.cpp:
      Move media element, label, language and kind into TrackBase and move EventTarget functions into TextTrack.
      (WebCore::TextTrack::TextTrack): Added.
      (WebCore::TextTrack::interfaceName): Added.
      (WebCore::TextTrack::scriptExecutionContext): Added.
      (WebCore::TextTrack::eventTargetData): Added.
      (WebCore::TextTrack::ensureEventTargetData): Added.
      (WebCore::TextTrack::isValidKind): Added to support TrackBase::setKind()
      (WebCore::TextTrack::setKind): Override to support textTrackKindChanged()
      (WebCore::TextTrack::isRendered): Use kind(), label() and language() instead of m_kind, etc.
      (WebCore::TextTrack::platformTextTrack): Ditto.
      (WebCore::TextTrack::isMainProgramContent): Ditto.
      * html/track/TextTrack.h:
      Same as TextTrack.cpp, plus added defaultKindKeyword() so TrackBase::setKind() will work and added
      toTextTrack().
      * html/track/TextTrackList.cpp:
      Move functionality into TrackListBase, add toTextTrack() casts, use
      TrackBase where necesssary and use owner() instead of m_owner.
      
      Moved EventTarget functions into TrackListBase.
      (TextTrackList::TextTrackList):
      (TextTrackList::getTrackIndexRelativeToRenderedTracks):
      (TextTrackList::item):
      (TextTrackList::invalidateTrackIndexesAfterTrack):
      (TextTrackList::append):
      (TextTrackList::remove):
      (TextTrackList::contains):
      * html/track/TextTrackList.h:
      Move EventTarget, RefCounted and m_inbandTracks into TrackListBase.
      Override length(), contains() and remove().
      * html/track/TrackBase.cpp: Remove EventTarget functions.
      (WebCore::TrackBase::TrackBase):
      Remove EventTarget, add label and language
      (WebCore::TrackBase::setKind): Added
      * html/track/TrackBase.h:
      Don't extend EventTarget (AudioTrack and VideoTrack aren't). Handle
      kind, label, language and media element.
      (WebCore::TrackBase::setMediaElement): Added.
      (WebCore::TrackBase::mediaElement): Added.
      (WebCore::TrackBase::kind): Added.
      (WebCore::TrackBase::label): Added.
      (WebCore::TrackBase::setLabel): Added.
      (WebCore::TrackBase::language): Added.
      (WebCore::TrackBase::setLanguage): Added.
      * html/track/TrackListBase.cpp:
      Added. Handles functionality common to TextTrackList, AudioTrackList and
      VideoTrackList.
      (TrackListBase::TrackListBase): Added.
      (TrackListBase::~TrackListBase): Added.
      (TrackListBase::length): Added.
      (TrackListBase::remove): Added.
      (TrackListBase::contains): Added.
      (TrackListBase::scheduleAddTrackEvent): Added.
      (TrackListBase::scheduleRemoveTrackEvent): Added.
      (TrackListBase::scheduleChangeEvent): Added.
      (TrackListBase::asyncEventTimerFired): Added.
      * html/track/TrackListBase.h:
      Copied from Source/WebCore/html/track/TextTrackList.h. Handles
      functionality common to TextTrackList, AudioTrackList and VideoTrackList.
      (WebCore::TrackListBase::scriptExecutionContext): Added.
      (WebCore::TrackListBase::clearOwner): Added.
      (WebCore::TrackListBase::owner): Added.
      (WebCore::TrackListBase::isFiringEventListeners): Added.
      * platform/graphics/MediaPlayer.cpp:
      (WebCore::MediaPlayer::addTextTrack): Renamed (was addTrack)
      (WebCore::MediaPlayer::removeTextTrack): Renamed (was removeTrack)
      * platform/graphics/MediaPlayer.h:
      (WebCore::MediaPlayerClient::mediaPlayerDidAddTextTrack): Renamed (was mediaPlayerDidAddTrack)
      (WebCore::MediaPlayerClient::mediaPlayerDidRemoveTextTrack): Renamed (was mediaPlayerDidRemoveTrack)
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148305 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      06a8de7f
    • ap@apple.com's avatar
      Move CachedRawResourceClient into a separate file · cb953664
      ap@apple.com authored
              https://bugs.webkit.org/show_bug.cgi?id=114491
      
              Reviewed by Mark Rowe.
      
              * GNUmakefile.list.am:
              * Target.pri:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.vcxproj/WebCore.vcxproj:
              * WebCore.vcxproj/WebCore.vcxproj.filters:
              * WebCore.xcodeproj/project.pbxproj:
              * loader/DocumentLoader.cpp:
              * loader/DocumentLoader.h:
              * loader/DocumentThreadableLoader.h:
              * loader/archive/cf/LegacyWebArchive.cpp:
              * loader/cache/CachedRawResource.cpp:
              * loader/cache/CachedRawResource.h:
              * loader/cache/CachedRawResourceClient.h: Added.
              * loader/icon/IconLoader.h:
              * platform/graphics/avfoundation/objc/WebCoreAVFResourceLoader.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148265 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cb953664
    • ap@apple.com's avatar
      Reduce includes of CachedSVGDocument.h · 07c37ba8
      ap@apple.com authored
              https://bugs.webkit.org/show_bug.cgi?id=114489
      
              Reviewed by Jon Honeycutt.
      
              * loader/cache/CachedSVGDocumentReference.cpp: Added.
              * loader/cache/CachedSVGDocumentReference.h:
              Moved function implementations to newly added .cpp file, and removed an include
              of CachedSVGDocument.h.
      
              * css/WebKitCSSSVGDocumentValue.h: Just removed an unnecessary include.
      
              * CMakeLists.txt:
              * GNUmakefile.list.am:
              * Target.pri:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.vcxproj/WebCore.vcxproj:
              * WebCore.vcxproj/WebCore.vcxproj.filters:
              * WebCore.xcodeproj/project.pbxproj:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148263 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      07c37ba8
  19. 11 Apr, 2013 1 commit
    • rniwa@webkit.org's avatar
      Remove ResourceLoadInfo · fbdf3b6d
      rniwa@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=113302
      
      Reviewed by Benjamin Poulain.
      
      Co-authored by Christophe Dumez.
      
      Removed ResourceLoadInfo since it had been only used by Chromium port.
      
      * GNUmakefile.list.am:
      * Target.pri:
      * WebCore.order:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      * inspector/InspectorResourceAgent.cpp:
      (WebCore::buildObjectForResourceResponse):
      * loader/FrameLoader.cpp:
      (WebCore::FrameLoader::loadResourceSynchronously):
      * platform/network/ResourceLoadInfo.h: Removed.
      * platform/network/ResourceResponseBase.cpp:
      (WebCore):
      (WebCore::ResourceResponseBase::reportMemoryUsage):
      * platform/network/ResourceResponseBase.h:
      (ResourceResponseBase):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148256 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fbdf3b6d
  20. 08 Apr, 2013 1 commit
  21. 06 Apr, 2013 3 commits
  22. 05 Apr, 2013 1 commit
    • commit-queue@webkit.org's avatar
      REGRESSION(r145279): Build fails while linking when MEDIA_STREAM is enabled · 6394346e
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=113294
      
      Patch by Carlos Garcia Campos <cgarcia@igalia.com> on 2013-04-05
      Reviewed by Xan Lopez.
      
      In r145279 NamedGetter extended attribute is added to
      RTCStatsResponse.idl which makes the code generator to add
      prototypes for JSRTCStatsResponse::nameGetter and
      JSRTCStatsResponse::canGetItemsForName to the generated
      JSRTCStatsResponse header, but they are not implemented
      anywhere. We need to provide a JSRTCStatsResponseCustom file with
      the implementation of both functions.
      
      * GNUmakefile.list.am: Add JSRTCStatsResponseCustom.cpp to
      compilation.
      * Target.pri: Ditto.
      * UseJSC.cmake: Ditto.
      * WebCore.vcproj/WebCore.vcproj: Ditto.
      * WebCore.vcxproj/WebCore.vcxproj: Ditto.
      * WebCore.vcxproj/WebCore.vcxproj.filters: Ditto.
      * bindings/js/JSRTCStatsResponseCustom.cpp: Added.
      (WebCore):
      (WebCore::JSRTCStatsResponse::canGetItemsForName):
      (WebCore::JSRTCStatsResponse::nameGetter):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147731 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6394346e
  23. 04 Apr, 2013 1 commit
    • ch.dumez@sisa.samsung.com's avatar
      [Cairo] Fix canvas drawing of SVG-based patterns and remove NativeImageCairo · 2e39cc2b
      ch.dumez@sisa.samsung.com authored
      https://bugs.webkit.org/show_bug.cgi?id=113929
      
      Reviewed by Martin Robinson.
      
      Source/WebCore:
      
      Make (Pass)NativeImagePtr typedefs to (Pass)RefPtr<cairo_surface_t> instead
      of NativeImageCairo*. Now that we switch to using smart pointers,
      NativeImageCairo is removed as it made no sense to make it ref counted when
      it merely held a single ref counted member.
      
      Now that Cairo is using smart pointers for (Pass)NativeImagePtr, this patch
      also enables the implementation of SVGImage::nativeImageForCurrentFrame()
      for USE(CAIRO) as well. This effectively fixes canvas drawing of SVG-based
      patterns for Cairo-based ports.
      
      No new tests, covered by svg/canvas/canvas-pattern-svg.html.
      
      * GNUmakefile.list.am: Remove NativeImageCairo.* for GTK.
      
      * PlatformEfl.cmake: Remove NativeImageCairo.* for EFL.
      
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      Remove NativeImageCairo.* for Win.
      
      * platform/graphics/BitmapImage.cpp:
      (WebCore::FrameData::reportMemoryUsage):
      Update MemoryClassInfo::addRawBuffer() call now that m_frame is a RefPtr
      for USE(CAIRO).
      
      * platform/graphics/BitmapImage.h:
      (BitmapImage):
      Remove factory method taking a cairo_surface_t* in argument. This is useless
      now that PassNativeImagePtr is a typedef to PassRefPtr<cairo_surface_t> and
      there is already a factory method taking a PassNativeImagePtr in argument.
      
      * platform/graphics/NativeImagePtr.h:
      (WebCore):
      Make PassNativeImagePtr a typedef to PassRefPtr<cairo_surface_t> and
      NativeImagePtr a typedef to RefPtr<cairo_surface_t>, instead of
      NativeImageCairo*. Moving to smart pointers is needed to enable implementation
      of SVGImage::nativeImageForCurrentFrame() for Cairo.
      
      * platform/graphics/cairo/BitmapImageCairo.cpp:
      (WebCore::BitmapImage::BitmapImage):
      (WebCore::BitmapImage::draw):
      (WebCore::BitmapImage::checkForSolidColor):
      (WebCore::FrameData::clear):
      * platform/graphics/cairo/GraphicsContext3DCairo.cpp:
      (WebCore::GraphicsContext3D::ImageExtractor::extractImage):
      * platform/graphics/cairo/ImageCairo.cpp:
      (WebCore::Image::drawPattern):
      Update Cairo graphics code to reflect the (Pass)NativeImagePtr type changes.
      
      * platform/graphics/cairo/NativeImageCairo.cpp: Removed.
      * platform/graphics/cairo/NativeImageCairo.h: Removed.
      
      * platform/graphics/cairo/PatternCairo.cpp:
      (WebCore::Pattern::createPlatformPattern):
      * platform/graphics/efl/GraphicsContext3DEfl.cpp:
      (WebCore::GraphicsContext3D::ImageExtractor::extractImage):
      * platform/graphics/efl/ImageEfl.cpp:
      (WebCore::BitmapImage::getEvasObject):
      * platform/graphics/gtk/ImageGtk.cpp:
      (WebCore::BitmapImage::getGdkPixbuf):
      * platform/graphics/texmap/TextureMapperGL.cpp:
      (WebCore::BitmapTextureGL::updateContents):
      * platform/graphics/win/ImageCairoWin.cpp:
      (WebCore::BitmapImage::create):
      (WebCore::BitmapImage::drawFrameMatchingSourceSize):
      * platform/gtk/DragImageGtk.cpp:
      (WebCore::createDragImageFromImage):
      * platform/image-decoders/cairo/ImageDecoderCairo.cpp:
      (WebCore::ImageFrame::asNewNativeImage):
      * platform/win/DragImageCairoWin.cpp:
      (WebCore::createDragImageFromImage):
      Update code to reflect the (Pass)NativeImagePtr type changes.
      
      * svg/graphics/SVGImage.cpp:
      (WebCore):
      * svg/graphics/SVGImage.h:
      Enable SVGImage::nativeImageForCurrentFrame() for USE(CAIRO).
      
      Source/WebKit:
      
      Remove outdated symbols now that NativeImageCairo was removed.
      
      * WebKit.vcxproj/WebKitExportGenerator/WebKitExports.def.in:
      
      Source/WebKit/efl:
      
      Update code now that PassNativeImagePtr is now a typedef to PassRefPtr<cairo_surface_t>
      instead of NativeImageCairo*.
      
      * ewk/ewk_history.cpp:
      (ewk_history_item_icon_surface_get):
      (ewk_history_item_icon_object_add):
      * ewk/ewk_settings.cpp:
      (ewk_settings_icon_database_icon_surface_get):
      (ewk_settings_icon_database_icon_object_get):
      
      Source/WebKit/gtk:
      
      Update code now that PassNativeImagePtr is now a typedef to PassRefPtr<cairo_surface_t>
      instead of NativeImageCairo*.
      
      * webkit/webkitfavicondatabase.cpp:
      (getIconPixbufSynchronously):
      
      Source/WebKit/win:
      
      Remove outdated symbols now that NativeImageCairo was removed.
      
      * WebKit.vcproj/WebKitExports.def.in:
      
      Source/WebKit2:
      
      Update code now that PassNativeImagePtr is now a typedef to PassRefPtr<cairo_surface_t>
      instead of NativeImageCairo*.
      
      * Shared/gtk/ArgumentCodersGtk.cpp:
      (CoreIPC::decodeImage):
      * UIProcess/API/C/cairo/WKIconDatabaseCairo.cpp:
      (WKIconDatabaseTryGetCairoSurfaceForURL):
      * UIProcess/API/gtk/WebKitFaviconDatabase.cpp:
      (getIconSurfaceSynchronously):
      
      LayoutTests:
      
      Add EFL / GTK pixels results for svg/canvas/canvas-pattern-svg.html now that
      the test passes for cairo-based ports.
      
      * platform/efl/svg/canvas/canvas-pattern-svg-expected.png: Added.
      * platform/gtk/svg/canvas/canvas-pattern-svg-expected.png: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147643 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2e39cc2b
  24. 29 Mar, 2013 1 commit
    • commit-queue@webkit.org's avatar
      When releasing a CGImage, we should also remove it from the subimage cache. · 3abaf74f
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=102453
      
      Patch by Yongjun Zhang <yongjun_zhang@apple.com> on 2013-03-29
      Reviewed by Simon Fraser.
      
      When we release an image(CGImageRef) from BitmapImage's cachedFrames, if the image was already
      cached in subimage cache, it's ref count won't drop to 0 and the image won't be deleted.  Usually,
      the subimage cache will clear the whole cache in a timer with 1 sec delay.  However, if WebCore has
      to paint another subimage (not necessarily from the same CGImageRef) before this timer fires, we
      will restart the timer and images inside the cache will stay longer than they should.
      
      This patch does two things:
          - move SubimageCacheWithTimer and related helper struct into a separate file.
          - remove the image from subimage cache when we releasing the CGImageRef, this prevent subimage
      cache holding the image after we released it.
      
      No new tests, manually verified the CGImageRef is also removed from subimage cache
      when we releasing the image from FrameData::clear.
      
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.xcodeproj/project.pbxproj:
      * platform/graphics/cg/BitmapImageCG.cpp:
      (WebCore::FrameData::clear): remove the image from subimage cache before we releasing it.
      * platform/graphics/cg/GraphicsContextCG.cpp:
      (WebCore):
      (WebCore::GraphicsContext::drawNativeImage):
      * platform/graphics/cg/SubimageCacheWithTimer.cpp: Added.
      (WebCore):
      (SubimageRequest):
      (WebCore::SubimageRequest::SubimageRequest):
      (WebCore::SubimageCacheAdder::hash):
      (SubimageCacheAdder):
      (WebCore::SubimageCacheAdder::equal):
      (WebCore::SubimageCacheAdder::translate):
      (WebCore::SubimageCacheWithTimer::SubimageCacheWithTimer):
      (WebCore::SubimageCacheWithTimer::invalidateCacheTimerFired):
      (WebCore::SubimageCacheWithTimer::getSubimage):
      (WebCore::SubimageCacheWithTimer::clearImage):
      (WebCore::subimageCache):
      * platform/graphics/cg/SubimageCacheWithTimer.h: Added.
      (WebCore):
      (SubimageCacheWithTimer): Added a data member m_images to record which image and its subimages are cached.
      (SubimageCacheEntry):
      (SubimageCacheEntryTraits):
      (WebCore::SubimageCacheWithTimer::SubimageCacheEntryTraits::isEmptyValue):
      (WebCore::SubimageCacheWithTimer::SubimageCacheEntryTraits::constructDeletedValue):
      (WebCore::SubimageCacheWithTimer::SubimageCacheEntryTraits::isDeletedValue):
      (WebCore::SubimageCacheWithTimer::SubimageCacheHash::hash):
      (WebCore::SubimageCacheWithTimer::SubimageCacheHash::equal):
      (SubimageCacheHash):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147265 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3abaf74f
  25. 28 Mar, 2013 1 commit
    • caseq@chromium.org's avatar
      Web Inspector: factor out node search controller from inspector.js · 60f0dce4
      caseq@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=112689
      
      Reviewed by Pavel Feldman.
      
      This just extracts the existing logic of toggling node search
      from inspector.js into a class of its own, InspectElementModeController.
      Drive-by: add CtrlOrMeta+Shift+C to help screen.
      
      * English.lproj/localizedStrings.js:
      * WebCore.gypi:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * inspector/compile-front-end.py:
      * inspector/front-end/InspectElementModeController.js: Added.
      (WebInspector.InspectElementModeController):
      (WebInspector.InspectElementModeController.createShortcut):
      (WebInspector.InspectElementModeController.prototype.enabled):
      (WebInspector.InspectElementModeController.prototype.disable):
      (WebInspector.InspectElementModeController.prototype.toggleSearch.callback):
      (WebInspector.InspectElementModeController.prototype.toggleSearch):
      (WebInspector.InspectElementModeController.prototype.handleShortcut):
      * inspector/front-end/InspectorFrontendAPI.js:
      (InspectorFrontendAPI.enterInspectElementMode):
      * inspector/front-end/WebKit.qrc:
      * inspector/front-end/inspector.html:
      * inspector/front-end/inspector.js:
      (WebInspector._createGlobalStatusBarItems):
      (WebInspector._registerShortcuts):
      (WebInspector.documentKeyDown):
      (WebInspector._updateFocusedNode):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147105 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      60f0dce4
  26. 26 Mar, 2013 1 commit
    • ch.dumez@sisa.samsung.com's avatar
      Code duplication between HTTPParsers and HTTPValidation · 3855a916
      ch.dumez@sisa.samsung.com authored
      https://bugs.webkit.org/show_bug.cgi?id=113283
      
      Reviewed by Alexey Proskuryakov.
      
      Source/WebCore:
      
      Merged isValidHTTPToken() from HTTPValidation.h and isRFC2616Token() from
      HTTPParsers.h. They were doing exactly the same thing and their
      implementation was almost the same.
      
      Removed HTTPValidation.* and moved remaining code to HTTPParsers.* as this
      seems like the proper place and it seems odd to keep HTTPValidation for
      just one function.
      
      No new tests, no behavior change for layout tests.
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * Target.pri:
      * WebCore.gypi:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      * platform/network/HTTPParsers.cpp:
      (WebCore::isValidHTTPHeaderValue):
      (WebCore):
      (WebCore::isValidHTTPToken): Implementation is slightly simplified based on
      isValidHTTPToken() from HTTPValidation.cpp. (c >= 0x80 || c == 0x7F) is
      replaced by (c >= 0x7F). (c <= 0x1F ||  c == ' ' || c == '\t') is replaced
      by (c <= 0x20). Those expressions are shorter but equivalent.
      (WebCore::contentDispositionType):
      * platform/network/HTTPParsers.h:
      * platform/network/HTTPValidation.cpp: Removed.
      * platform/network/HTTPValidation.h: Removed.
      * xml/XMLHttpRequest.cpp: Stop including HTTPValidation.h.
      
      Source/WebKit/chromium:
      
      * src/AssociatedURLLoader.cpp: Include HTTPParsers.h instead
      of HTTPValidation.h to use isValidHTTPToken().
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146908 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3855a916
  27. 25 Mar, 2013 1 commit