1. 08 Nov, 2007 40 commits
    • kevino@webkit.org's avatar
      Adding Bakefiles for JSCore, WebCore, and WebKit, and adding wxWebKit implementation. · 56b2f6f1
      kevino@webkit.org authored
      Reviewed by Mark Rowe
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27631 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      56b2f6f1
    • oliver's avatar
      Fix regression caused by earlier bitwise and optimisation. 1 & undefined != 1. · e7f10a33
      oliver authored
      Reviewed by Maciej.
      
      The implementation of JSImmediate::areBothImmediateNumbers relies on
      (JSImmediate::getTag(immediate1) & JSImmediate::getTag(immediate2)) having
      a unique result when both immediate values are numbers.
      
      The regression was due to UndefinedType & NumberType returning NumberType (3 & 1).
      By swapping the value of NumberType and UndefinedType this ceases to be a problem.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27630 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e7f10a33
    • mrowe@apple.com's avatar
      2007-11-08 Justin Haygood <jhaygood@reaktix.com> · 67a6dcd2
      mrowe@apple.com authored
              Reviewed by Mark Rowe.
      
              http://bugs.webkit.org/show_bug.cgi?id=15905
      
              Fix builds with HTML 5 Storage support disabled.
              ENABLE(DATABASE) needs to be added in a few places.
      
              * page/InspectorController.cpp:
              * storage/Database.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27629 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      67a6dcd2
    • sfalken's avatar
      Bump versions for submit · 67ac2525
      sfalken authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27628 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      67ac2525
    • mrowe@apple.com's avatar
      Versioning. · 38e96eb6
      mrowe@apple.com authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27627 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      38e96eb6
    • sfalken's avatar
      Fix typo in ChangeLog. · 37260cda
      sfalken authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27626 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      37260cda
    • sfalken's avatar
      <rdar://problem/5491463> Wrong dates shown in History menu. · 1b4ef284
      sfalken authored
              
              Fix off-by-one error in Windows epoch.
              
              For the Windows DATE type, 1/1/1900 should be 2.0, not 1.0.
              DATE is the number of dates since 12/30/1899.
              
              Reviewed by Ada.
      
              * MarshallingHelpers.cpp:
              (MarshallingHelpers::windowsEpochAbsoluteTime):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27625 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1b4ef284
    • alp@webkit.org's avatar
      2007-11-08 Alp Toker <alp@atoker.com> · 7dfee8c3
      alp@webkit.org authored
              Reviewed by Mark Rowe.
      
              http://bugs.webkit.org/show_bug.cgi?id=15653
              [GTK] Text editor does not handle common keystrokes
      
              Handle more keystrokes in EditorClientGtk. Note that this is a
              temporary measure pending a proper solution using GtkBindingSet (see
              http://bugs.webkit.org/show_bug.cgi?id=15911).
      
              * WebCoreSupport/EditorClientGtk.cpp:
              (WebKit::EditorClient::handleKeypress):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27624 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7dfee8c3
    • darin@apple.com's avatar
      - fix build · d4f97596
      darin@apple.com authored
              * kjs/nodes.h: Add missing parameter name.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27623 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d4f97596
    • eseidel's avatar
      2007-11-08 Eric Seidel <eric@webkit.org> · 93b803fa
      eseidel authored
              Reviewed by darin.
      
              Add ExpressionNode subclass of Node, use it.
      
              * kjs/grammar.y:
              * kjs/nodes.cpp:
              (KJS::ForInNode::ForInNode):
              * kjs/nodes.h:
              (KJS::ExpressionNode::):
              (KJS::NullNode::):
              (KJS::NullNode::precedence):
              (KJS::BooleanNode::):
              (KJS::BooleanNode::precedence):
              (KJS::RegExpNode::):
              (KJS::RegExpNode::precedence):
              (KJS::ThisNode::):
              (KJS::ThisNode::precedence):
              (KJS::ResolveNode::):
              (KJS::ElementNode::):
              (KJS::ArrayNode::):
              (KJS::PropertyNode::):
              (KJS::PropertyNode::precedence):
              (KJS::PropertyNode::name):
              (KJS::PropertyListNode::):
              (KJS::ObjectLiteralNode::):
              (KJS::ObjectLiteralNode::precedence):
              (KJS::BracketAccessorNode::):
              (KJS::DotAccessorNode::):
              (KJS::DotAccessorNode::precedence):
              (KJS::ArgumentListNode::):
              (KJS::ArgumentsNode::):
              (KJS::NewExprNode::):
              (KJS::NewExprNode::precedence):
              (KJS::FunctionCallValueNode::):
              (KJS::FunctionCallValueNode::precedence):
              (KJS::FunctionCallResolveNode::):
              (KJS::FunctionCallBracketNode::):
              (KJS::FunctionCallBracketNode::precedence):
              (KJS::FunctionCallDotNode::):
              (KJS::FunctionCallDotNode::precedence):
              (KJS::PrePostResolveNode::):
              (KJS::PostfixBracketNode::):
              (KJS::PostfixBracketNode::precedence):
              (KJS::PostIncBracketNode::):
              (KJS::PostIncBracketNode::isIncrement):
              (KJS::PostDecBracketNode::):
              (KJS::PostDecBracketNode::isIncrement):
              (KJS::PostfixDotNode::):
              (KJS::PostfixDotNode::precedence):
              (KJS::PostIncDotNode::):
              (KJS::PostIncDotNode::isIncrement):
              (KJS::PostDecDotNode::):
              (KJS::PostDecDotNode::isIncrement):
              (KJS::PostfixErrorNode::):
              (KJS::PostfixErrorNode::precedence):
              (KJS::DeleteResolveNode::):
              (KJS::DeleteBracketNode::):
              (KJS::DeleteBracketNode::precedence):
              (KJS::DeleteDotNode::):
              (KJS::DeleteDotNode::precedence):
              (KJS::DeleteValueNode::):
              (KJS::DeleteValueNode::precedence):
              (KJS::VoidNode::):
              (KJS::VoidNode::precedence):
              (KJS::TypeOfResolveNode::):
              (KJS::TypeOfValueNode::):
              (KJS::PrefixBracketNode::):
              (KJS::PrefixBracketNode::precedence):
              (KJS::PreIncBracketNode::):
              (KJS::PreIncBracketNode::isIncrement):
              (KJS::PreDecBracketNode::):
              (KJS::PreDecBracketNode::isIncrement):
              (KJS::PrefixDotNode::):
              (KJS::PrefixDotNode::precedence):
              (KJS::PreIncDotNode::):
              (KJS::PreIncDotNode::isIncrement):
              (KJS::PreDecDotNode::):
              (KJS::PreDecDotNode::isIncrement):
              (KJS::PrefixErrorNode::):
              (KJS::PrefixErrorNode::precedence):
              (KJS::UnaryPlusNode::):
              (KJS::UnaryPlusNode::precedence):
              (KJS::NegateNode::):
              (KJS::NegateNode::precedence):
              (KJS::BitwiseNotNode::):
              (KJS::BitwiseNotNode::precedence):
              (KJS::LogicalNotNode::):
              (KJS::LogicalNotNode::precedence):
              (KJS::AddNode::):
              (KJS::AddNode::precedence):
              (KJS::LeftShiftNode::):
              (KJS::LeftShiftNode::precedence):
              (KJS::RightShiftNode::):
              (KJS::RightShiftNode::precedence):
              (KJS::UnsignedRightShiftNode::):
              (KJS::UnsignedRightShiftNode::precedence):
              (KJS::LessNode::):
              (KJS::LessNode::precedence):
              (KJS::GreaterNode::):
              (KJS::GreaterNode::precedence):
              (KJS::LessEqNode::):
              (KJS::LessEqNode::precedence):
              (KJS::GreaterEqNode::):
              (KJS::GreaterEqNode::precedence):
              (KJS::InstanceOfNode::):
              (KJS::InstanceOfNode::precedence):
              (KJS::InNode::):
              (KJS::InNode::precedence):
              (KJS::EqualNode::):
              (KJS::EqualNode::precedence):
              (KJS::NotEqualNode::):
              (KJS::NotEqualNode::precedence):
              (KJS::StrictEqualNode::):
              (KJS::StrictEqualNode::precedence):
              (KJS::NotStrictEqualNode::):
              (KJS::NotStrictEqualNode::precedence):
              (KJS::BitAndNode::):
              (KJS::BitAndNode::precedence):
              (KJS::BitOrNode::):
              (KJS::BitOrNode::precedence):
              (KJS::BitXOrNode::):
              (KJS::BitXOrNode::precedence):
              (KJS::LogicalAndNode::):
              (KJS::LogicalAndNode::precedence):
              (KJS::LogicalOrNode::):
              (KJS::LogicalOrNode::precedence):
              (KJS::ConditionalNode::):
              (KJS::ConditionalNode::precedence):
              (KJS::ReadModifyResolveNode::):
              (KJS::ReadModifyResolveNode::precedence):
              (KJS::AssignResolveNode::):
              (KJS::AssignResolveNode::precedence):
              (KJS::ReadModifyBracketNode::):
              (KJS::ReadModifyBracketNode::precedence):
              (KJS::AssignBracketNode::):
              (KJS::AssignBracketNode::precedence):
              (KJS::AssignDotNode::):
              (KJS::AssignDotNode::precedence):
              (KJS::ReadModifyDotNode::):
              (KJS::ReadModifyDotNode::precedence):
              (KJS::AssignErrorNode::):
              (KJS::AssignErrorNode::precedence):
              (KJS::CommaNode::):
              (KJS::CommaNode::precedence):
              (KJS::AssignExprNode::):
              (KJS::AssignExprNode::precedence):
              (KJS::ExprStatementNode::):
              (KJS::IfNode::):
              (KJS::DoWhileNode::):
              (KJS::WhileNode::):
              (KJS::ReturnNode::):
              (KJS::WithNode::):
              (KJS::ThrowNode::):
              (KJS::ParameterNode::):
              (KJS::CaseClauseNode::):
              (KJS::CaseClauseNode::precedence):
              (KJS::ClauseListNode::):
              (KJS::SwitchNode::):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27622 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      93b803fa
    • weinig@apple.com's avatar
      Correct ChangeLogs to reflect that the speedup was 1% not .5%. Turns out you... · 38d24b45
      weinig@apple.com authored
      Correct ChangeLogs to reflect that the speedup was 1% not .5%.  Turns out you are not supposed to test in Debug builds.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27621 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      38d24b45
    • ggaren@apple.com's avatar
      Fixed bug title in old check-in. · cb30a758
      ggaren@apple.com authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27620 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cb30a758
    • sfalken's avatar
      <rdar://problem/5524082> Allow images to be dragged out directly into other apps · aa10ff06
      sfalken authored
              
              We weren't including CF_HDROP in our image drops.  This broke drag of
              images out of the browser window directly into other apps (examples
              include notepad, mspaint, msword).
              
              Reviewed by Oliver, Ada.
      
              * platform/win/ClipboardWin.cpp:
              (WebCore::createGlobalImageFileContent): Removed unused variable.
              (WebCore::createGlobalHDropContent): Added
              (WebCore::writeFileToDataObject): Write HDROP data if available.
              (WebCore::writeImageToDataObject): Write HDROP for dragged images.
              (WebCore::ClipboardWin::writeURL): Don't write HDROP for dragged URLs.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27619 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      aa10ff06
    • alp@webkit.org's avatar
      2007-11-08 Xan Lopez <xan@gnome.org> · af38a64b
      alp@webkit.org authored
              Reviewed by Alp.
      
              http://bugs.webkit.org/show_bug.cgi?id=15908
              Use g_object_ref_sink when available
      
              * platform/gtk/PopupMenuGtk.cpp:
              (WebCore::PopupMenu::show):
              * platform/gtk/ScrollViewGtk.cpp:
              (WebCore::ScrollView::setGtkAdjustments):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27618 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      af38a64b
    • mitz@apple.com's avatar
      WebCore: · 4a05631a
      mitz@apple.com authored
              Reviewed by Beth Dakin.
      
              - fix <rdar://problem/5491922> REGRESSION (Safari 2-3): Flash-based "Cash Optimizer" on etrade.com does not draw completely
      
              Test: fast/dom/length-attribute-mapping.html
      
              * dom/StyledElement.cpp:
              (WebCore::StyledElement::addCSSLength): Changed the garbage-stripping
              logic to stop after the first "%" or "*" in the string. This allows for
              "100%25" to be mapped to "100%" like it is in Firefox and WinIE.
      
      LayoutTests:
      
              Reviewed by Beth Dakin.
      
              - test for <rdar://problem/5491922> REGRESSION (Safari 2-3): Flash-based "Cash Optimizer" on etrade.com does not draw completely
      
              * fast/dom/length-attribute-mapping-expected.txt: Added.
              * fast/dom/length-attribute-mapping.html: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27617 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4a05631a
    • kmccullo's avatar
      WebCore: · 9668227b
      kmccullo authored
              - Build fix.
      
              * loader/FrameLoaderClient.h:
              * platform/graphics/svg/SVGImageEmptyClients.h:
              (WebCore::SVGEmptyFrameLoaderClient::windowObjectCleared):
      
      WebKit/mac:
      
              Build Fix.
      
              * WebCoreSupport/WebFrameLoaderClient.h:
              * WebCoreSupport/WebFrameLoaderClient.mm:
              (WebFrameLoaderClient::windowObjectCleared):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27616 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9668227b
    • oliver's avatar
      Add a fast path for bitwise-and of two immediate numbers for a 0.7%... · 678e6b8c
      oliver authored
      Add a fast path for bitwise-and of two immediate numbers for a 0.7% improvement in SunSpider (4% bitop improvement).
      
      Reviewed by Sam.
      
      This only improves bitwise-and performance, as the additional logic required
      for similar code paths on or, xor, and shifting requires additional operations
      and branches that negate (and in certain cases, regress) any advantage we might
      otherwise receive.
      
      This improves performance on all bitop tests, the cryptography tests, as well as
      the string-base64 and string-unpack-code tests.  No significant degradation on
      any other tests.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27615 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      678e6b8c
    • aroben@apple.com's avatar
      Stop using KJS inside of MathExtras.h · 9fb42da2
      aroben@apple.com authored
               Reviewed by Darin.
      
               * wtf/MathExtras.h: Removed an unused header, and a now-unused
               forward-declaration.
               (wtf_atan2): Use std::numeric_limits intead of KJS.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27614 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9fb42da2
    • kmccullo's avatar
      Reviewed by Sam. · 70eb563f
      kmccullo authored
              - Use the new IWebFrame [local] function signature and get the shared
              server correctly.
      
              * Drosera/win/DebuggerClient.cpp:
              (DebuggerClient::didFinishLoadForFrame):
              * Drosera/win/ServerConnection.cpp:
              (ServerConnection::attemptToCreateServerConnection):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27613 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      70eb563f
    • kmccullo's avatar
      WebCore: · 35bc84a7
      kmccullo authored
              Reviewed by Sam.
      
              - windowObjectCleared() is no longer const.  It needs to setup the
              script debugger and cannot be const to do so.
      
              * loader/FrameLoaderClient.h:
              * platform/graphics/svg/SVGImageEmptyClients.h:
              (WebCore::SVGEmptyFrameLoaderClient::windowObjectCleared):
      
      WebKit/gtk:
      
              Reviewed by Sam.
      
              - windowObjectCleared() is no longer const.  It needs to setup the
              script debugger and cannot be const to do so.
      
              * WebCoreSupport/FrameLoaderClientGtk.cpp:
              (WebKit::FrameLoaderClient::windowObjectCleared):
              * WebCoreSupport/FrameLoaderClientGtk.h:
      
      WebKit/qt:
      
              Reviewed by Sam.
      
              - windowObjectCleared() is no longer const.  It needs to setup the
              script debugger and cannot be const to do so.
      
              * WebCoreSupport/FrameLoaderClientQt.cpp:
              (WebCore::FrameLoaderClientQt::windowObjectCleared):
              * WebCoreSupport/FrameLoaderClientQt.h:
      
      WebKit/win:
      
              Reviewed by Sam.
      
              - With this change Drosera can now get the source of a website and the
              listings of the sources it gets.  This also lays the foundation for
              letting Drosera show the scope chain of the JavaScript stack.
      
              * Interfaces/IWebFrame.idl: Changed the signature of the local function,
              globalContext(), because COM was unable to marshal this object with the
              other signature.
              * Interfaces/IWebScriptDebugServer.idl: Of course adding and removing
              a listener cannot be done in a const function.
              * WebChromeClient.h: Added accessor to the WebView for the new added
              kit() function in WebFrame.
              (WebChromeClient::webView):
              * WebFrame.cpp: Added a script debugger object and the necessary
              functions to attach and communicate with it. Also needed to change the
              local function, globalContext(), because of a COM issue.
              (kit):
              (WebFrame::WebFrame):
              (WebFrame::globalContext):
              (WebFrame::loadData):
              (WebFrame::attachScriptDebugger):
              (WebFrame::detachScriptDebugger):
              (WebFrame::dispatchDidLoadMainResource):
              (WebFrame::windowObjectCleared):
              * WebFrame.h: Ditto.
              * WebHTMLRepresentation.cpp: Implemented documentSource so Drosera has
              some source code to display.
              (WebHTMLRepresentation::WebHTMLRepresentation):
              (WebHTMLRepresentation::documentSource):
              * WebKit.vcproj/WebKit.vcproj: Added the new WebScriptDebugger class.
              * WebScriptCallFrame.cpp: Implemented much of this class' functionality.
              (EnumScopes::EnumScopes): Made an EnumScopes class to create an
              IEnumVARIANT to wrap a ScopeChain for Drosera.
              (EnumScopes::QueryInterface):
              (EnumScopes::AddRef):
              (EnumScopes::Release):
              (EnumScopes::Next):
              (EnumScopes::Skip):
              (EnumScopes::Reset):
              (EnumScopes::Clone):
              (WebScriptCallFrame::caller):
              (WebScriptCallFrame::scopeChain):
              (WebScriptCallFrame::functionName):
              (WebScriptCallFrame::stringByEvaluatingJavaScriptFromString):
              * WebScriptCallFrame.h: Added member data needed for the above functions
              * WebScriptDebugServer.cpp: Began implementing. 
              (WebScriptDebugServer::listenerCount):
              (EnumViews::QueryInterface):
              (EnumViews::AddRef):
              (EnumViews::Release):
              (EnumViews::Next):
              (EnumViews::Skip):
              (EnumViews::Reset):
              (EnumViews::Clone):
              (WebScriptDebugServer::WebScriptDebugServer):
              (WebScriptDebugServer::createInstance):
              (WebScriptDebugServer::sharedWebScriptDebugServer):
              (WebScriptDebugServer::AddRef):
              (WebScriptDebugServer::Release):
              (WebScriptDebugServer::addListener):
              (WebScriptDebugServer::removeListener):
              (WebScriptDebugServer::step):
              (WebScriptDebugServer::pause):
              (WebScriptDebugServer::resume):
              (WebScriptDebugServer::isPaused):
              (WebScriptDebugServer::suspendProcessIfPaused):
              (WebScriptDebugServer::didLoadMainResourceForDataSource):
              (WebScriptDebugServer::didParseSource):
              (WebScriptDebugServer::failedToParseSource):
              (WebScriptDebugServer::didEnterCallFrame):
              (WebScriptDebugServer::willExecuteStatement):
              (WebScriptDebugServer::willLeaveCallFrame):
              (WebScriptDebugServer::exceptionWasRaised):
              * WebScriptDebugServer.h: Began implementing.
              * WebScriptDebugger.cpp: Added.
              (WebScriptDebugger::WebScriptDebugger):
              (WebScriptDebugger::sourceParsed):
              * WebScriptDebugger.h: Added.
              * WebScriptScope.cpp: Make this class use createInstance which is more
              in line with our guidelines.
              (WebScriptScope::WebScriptScope):
              (WebScriptScope::createInstance):
              * WebScriptScope.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27612 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      35bc84a7
    • aroben@apple.com's avatar
      Hopeful Windows build fix · bbbddd91
      aroben@apple.com authored
              * rendering/RenderObject.cpp: Touch this file to make it recompile.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27611 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bbbddd91
    • weinig@apple.com's avatar
      Windows build fix. · 8af3f7c0
      weinig@apple.com authored
              * kjs/date_object.cpp:
              (KJS::DateProtoFuncToLocaleString::callAsFunction): Fix unused arg warning.
              (KJS::DateProtoFuncToLocaleDateString::callAsFunction): ditto
              (KJS::DateProtoFuncToLocaleTimeString::callAsFunction): ditto
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27610 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8af3f7c0
    • mrowe@apple.com's avatar
      2007-11-08 Mark Rowe <mrowe@apple.com> · 027c3977
      mrowe@apple.com authored
              Gtk build fix.
      
              * kjs/lookup.h: Add missing include.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27609 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      027c3977
    • weinig@apple.com's avatar
      JavaScriptCore: · a73c15f5
      weinig@apple.com authored
              Reviewed by Darin.
      
              Convert JavaScript internal function objects to use one class per
              function.  This avoids a switch statement inside what used to be
              the shared function classes and will allow Shark to better analyze
              the code.
      
              To make this switch, the value property of the HashEntry was changed
              to a union of an intptr_t (which is used to continue handle valueGetters)
              and function pointer which points to a static constructor for the
              individual new function objects.
      
              SunSpider claims this is a 0.5% speedup. 
      
              * kjs/array_object.cpp:
              (KJS::ArrayPrototype::getOwnPropertySlot):
              (KJS::getProperty):
              (KJS::ArrayProtoFuncToString::callAsFunction):
              (KJS::ArrayProtoFuncToLocaleString::callAsFunction):
              (KJS::ArrayProtoFuncJoin::callAsFunction):
              (KJS::ArrayProtoFuncConcat::callAsFunction):
              (KJS::ArrayProtoFuncPop::callAsFunction):
              (KJS::ArrayProtoFuncPush::callAsFunction):
              (KJS::ArrayProtoFuncReverse::callAsFunction):
              (KJS::ArrayProtoFuncShift::callAsFunction):
              (KJS::ArrayProtoFuncSlice::callAsFunction):
              (KJS::ArrayProtoFuncSort::callAsFunction):
              (KJS::ArrayProtoFuncSplice::callAsFunction):
              (KJS::ArrayProtoFuncUnShift::callAsFunction):
              (KJS::ArrayProtoFuncFilter::callAsFunction):
              (KJS::ArrayProtoFuncMap::callAsFunction):
              (KJS::ArrayProtoFuncEvery::callAsFunction):
              (KJS::ArrayProtoFuncForEach::callAsFunction):
              (KJS::ArrayProtoFuncSome::callAsFunction):
              (KJS::ArrayProtoFuncIndexOf::callAsFunction):
              (KJS::ArrayProtoFuncLastIndexOf::callAsFunction):
              * kjs/array_object.h:
              (KJS::ArrayPrototype::classInfo):
              * kjs/create_hash_table:
              * kjs/date_object.cpp:
              (KJS::DatePrototype::getOwnPropertySlot):
              (KJS::DateProtoFuncToString::callAsFunction):
              (KJS::DateProtoFuncToUTCString::callAsFunction):
              (KJS::DateProtoFuncToDateString::callAsFunction):
              (KJS::DateProtoFuncToTimeString::callAsFunction):
              (KJS::DateProtoFuncToLocaleString::callAsFunction):
              (KJS::DateProtoFuncToLocaleDateString::callAsFunction):
              (KJS::DateProtoFuncToLocaleTimeString::callAsFunction):
              (KJS::DateProtoFuncValueOf::callAsFunction):
              (KJS::DateProtoFuncGetTime::callAsFunction):
              (KJS::DateProtoFuncGetFullYear::callAsFunction):
              (KJS::DateProtoFuncGetUTCFullYear::callAsFunction):
              (KJS::DateProtoFuncToGMTString::callAsFunction):
              (KJS::DateProtoFuncGetMonth::callAsFunction):
              (KJS::DateProtoFuncGetUTCMonth::callAsFunction):
              (KJS::DateProtoFuncGetDate::callAsFunction):
              (KJS::DateProtoFuncGetUTCDate::callAsFunction):
              (KJS::DateProtoFuncGetDay::callAsFunction):
              (KJS::DateProtoFuncGetUTCDay::callAsFunction):
              (KJS::DateProtoFuncGetHours::callAsFunction):
              (KJS::DateProtoFuncGetUTCHours::callAsFunction):
              (KJS::DateProtoFuncGetMinutes::callAsFunction):
              (KJS::DateProtoFuncGetUTCMinutes::callAsFunction):
              (KJS::DateProtoFuncGetSeconds::callAsFunction):
              (KJS::DateProtoFuncGetUTCSeconds::callAsFunction):
              (KJS::DateProtoFuncGetMilliSeconds::callAsFunction):
              (KJS::DateProtoFuncGetUTCMilliseconds::callAsFunction):
              (KJS::DateProtoFuncGetTimezoneOffset::callAsFunction):
              (KJS::DateProtoFuncSetTime::callAsFunction):
              (KJS::DateProtoFuncSetMilliSeconds::callAsFunction):
              (KJS::DateProtoFuncSetUTCMilliseconds::callAsFunction):
              (KJS::DateProtoFuncSetSeconds::callAsFunction):
              (KJS::DateProtoFuncSetUTCSeconds::callAsFunction):
              (KJS::DateProtoFuncSetMinutes::callAsFunction):
              (KJS::DateProtoFuncSetUTCMinutes::callAsFunction):
              (KJS::DateProtoFuncSetHours::callAsFunction):
              (KJS::DateProtoFuncSetUTCHours::callAsFunction):
              (KJS::DateProtoFuncSetDate::callAsFunction):
              (KJS::DateProtoFuncSetUTCDate::callAsFunction):
              (KJS::DateProtoFuncSetMonth::callAsFunction):
              (KJS::DateProtoFuncSetUTCMonth::callAsFunction):
              (KJS::DateProtoFuncSetFullYear::callAsFunction):
              (KJS::DateProtoFuncSetUTCFullYear::callAsFunction):
              (KJS::DateProtoFuncSetYear::callAsFunction):
              (KJS::DateProtoFuncGetYear::callAsFunction):
              * kjs/date_object.h:
              * kjs/lookup.cpp:
              (KJS::Lookup::find):
              * kjs/lookup.h:
              (KJS::HashEntry::):
              (KJS::staticFunctionGetter):
              (KJS::staticValueGetter):
              (KJS::getStaticPropertySlot):
              (KJS::getStaticFunctionSlot):
              (KJS::lookupPut):
              * kjs/math_object.cpp:
              (KJS::MathObjectImp::getOwnPropertySlot):
              (KJS::MathProtoFuncAbs::callAsFunction):
              (KJS::MathProtoFuncACos::callAsFunction):
              (KJS::MathProtoFuncASin::callAsFunction):
              (KJS::MathProtoFuncATan::callAsFunction):
              (KJS::MathProtoFuncATan2::callAsFunction):
              (KJS::MathProtoFuncCeil::callAsFunction):
              (KJS::MathProtoFuncCos::callAsFunction):
              (KJS::MathProtoFuncExp::callAsFunction):
              (KJS::MathProtoFuncFloor::callAsFunction):
              (KJS::MathProtoFuncLog::callAsFunction):
              (KJS::MathProtoFuncMax::callAsFunction):
              (KJS::MathProtoFuncMin::callAsFunction):
              (KJS::MathProtoFuncPow::callAsFunction):
              (KJS::MathProtoFuncRandom::callAsFunction):
              (KJS::MathProtoFuncRound::callAsFunction):
              (KJS::MathProtoFuncSin::callAsFunction):
              (KJS::MathProtoFuncSqrt::callAsFunction):
              (KJS::MathProtoFuncTan::callAsFunction):
              * kjs/math_object.h:
              (KJS::MathObjectImp::classInfo):
              (KJS::MathObjectImp::):
              * kjs/string_object.cpp:
              (KJS::StringPrototype::getOwnPropertySlot):
              (KJS::StringProtoFuncToString::callAsFunction):
              (KJS::StringProtoFuncValueOf::callAsFunction):
              (KJS::StringProtoFuncCharAt::callAsFunction):
              (KJS::StringProtoFuncCharCodeAt::callAsFunction):
              (KJS::StringProtoFuncConcat::callAsFunction):
              (KJS::StringProtoFuncIndexOf::callAsFunction):
              (KJS::StringProtoFuncLastIndexOf::callAsFunction):
              (KJS::StringProtoFuncMatch::callAsFunction):
              (KJS::StringProtoFuncSearch::callAsFunction):
              (KJS::StringProtoFuncReplace::callAsFunction):
              (KJS::StringProtoFuncSlice::callAsFunction):
              (KJS::StringProtoFuncSplit::callAsFunction):
              (KJS::StringProtoFuncSubstr::callAsFunction):
              (KJS::StringProtoFuncSubstring::callAsFunction):
              (KJS::StringProtoFuncToLowerCase::callAsFunction):
              (KJS::StringProtoFuncToUpperCase::callAsFunction):
              (KJS::StringProtoFuncToLocaleLowerCase::callAsFunction):
              (KJS::StringProtoFuncToLocaleUpperCase::callAsFunction):
              (KJS::StringProtoFuncLocaleCompare::callAsFunction):
              (KJS::StringProtoFuncBig::callAsFunction):
              (KJS::StringProtoFuncSmall::callAsFunction):
              (KJS::StringProtoFuncBlink::callAsFunction):
              (KJS::StringProtoFuncBold::callAsFunction):
              (KJS::StringProtoFuncFixed::callAsFunction):
              (KJS::StringProtoFuncItalics::callAsFunction):
              (KJS::StringProtoFuncStrike::callAsFunction):
              (KJS::StringProtoFuncSub::callAsFunction):
              (KJS::StringProtoFuncSup::callAsFunction):
              (KJS::StringProtoFuncFontcolor::callAsFunction):
              (KJS::StringProtoFuncFontsize::callAsFunction):
              (KJS::StringProtoFuncAnchor::callAsFunction):
              (KJS::StringProtoFuncLink::callAsFunction):
              * kjs/string_object.h:
      
      WebCore:
      
              Reviewed by Darin.
      
              Convert JavaScript internal function objects to use one class per
              function.  This avoids a switch statement inside what used to be
              the shared function classes and will allow Shark to better analyze
              the code.
      
              To make this switch, the value property of the HashEntry was changed
              to a union of an intptr_t (which is used to continue handle valueGetters)
              and function pointer which points to a static constructor for the
              individual new function objects.
      
              SunSpider claims this is a 0.5% speedup.
      
              - On the WebCore side, I updated CodeGeneratorJS.pm to generate the
                new classes and hand updated the remain non-generated (groan) classes.
      
              * bindings/js/JSDOMWindowCustom.cpp:
              (WebCore::JSDOMWindow::customGetOwnPropertySlot):
              * bindings/js/JSEventTargetNode.cpp:
              (WebCore::JSEventTargetNodePrototypeFunctionAddEventListener::callAsFunction):
              (WebCore::JSEventTargetNodePrototypeFunctionRemoveEventListener::callAsFunction):
              (WebCore::JSEventTargetNodePrototypeFunctionDispatchEvent::callAsFunction):
              * bindings/js/JSEventTargetNode.h:
              * bindings/js/JSHTMLInputElementBase.cpp:
              (WebCore::JSHTMLInputElementBaseFunctionSetSelectionRange::callAsFunction):
              (WebCore::JSHTMLInputElementBase::getOwnPropertySlot):
              * bindings/js/JSHTMLInputElementBase.h:
              (WebCore::JSHTMLInputElementBase::):
              * bindings/js/JSXMLHttpRequest.cpp:
              (KJS::JSXMLHttpRequestPrototypeFunctionAbort::callAsFunction):
              (KJS::JSXMLHttpRequestPrototypeFunctionGetAllResponseHeaders::callAsFunction):
              (KJS::JSXMLHttpRequestPrototypeFunctionGetResponseHeader::callAsFunction):
              (KJS::JSXMLHttpRequestPrototypeFunctionOpen::callAsFunction):
              (KJS::JSXMLHttpRequestPrototypeFunctionSend::callAsFunction):
              (KJS::JSXMLHttpRequestPrototypeFunctionSetRequestHeader::callAsFunction):
              (KJS::JSXMLHttpRequestPrototypeFunctionOverrideMIMEType::callAsFunction):
              (KJS::JSXMLHttpRequestPrototypeFunctionAddEventListener::callAsFunction):
              (KJS::JSXMLHttpRequestPrototypeFunctionRemoveEventListener::callAsFunction):
              (KJS::JSXMLHttpRequestPrototypeFunctionDispatchEvent::callAsFunction):
              * bindings/js/JSXMLHttpRequest.h:
              (KJS::JSXMLHttpRequest::impl):
              * bindings/js/JSXSLTProcessor.cpp:
              (KJS::JSXSLTProcessorPrototypeFunctionImportStylesheet::callAsFunction):
              (KJS::JSXSLTProcessorPrototypeFunctionTransformToFragment::callAsFunction):
              (KJS::JSXSLTProcessorPrototypeFunctionTransformToDocument::callAsFunction):
              (KJS::JSXSLTProcessorPrototypeFunctionSetParameter::callAsFunction):
              (KJS::JSXSLTProcessorPrototypeFunctionGetParameter::callAsFunction):
              (KJS::JSXSLTProcessorPrototypeFunctionRemoveParameter::callAsFunction):
              (KJS::JSXSLTProcessorPrototypeFunctionClearParameters::callAsFunction):
              (KJS::JSXSLTProcessorPrototypeFunctionReset::callAsFunction):
              * bindings/js/JSXSLTProcessor.h:
              * bindings/js/kjs_events.cpp:
              (WebCore::JSClipboardPrototypeFunctionClearData::callAsFunction):
              (WebCore::JSClipboardPrototypeFunctionGetData::callAsFunction):
              (WebCore::JSClipboardPrototypeFunctionSetData::callAsFunction):
              (WebCore::JSClipboardPrototypeFunctionSetDragImage::callAsFunction):
              * bindings/js/kjs_events.h:
              * bindings/js/kjs_navigator.cpp:
              (KJS::Plugins::):
              (KJS::Navigator::getOwnPropertySlot):
              (KJS::Plugins::getOwnPropertySlot):
              (KJS::PluginsFunctionRefresh::callAsFunction):
              (KJS::NavigatorProtoFuncJavaEnabled::callAsFunction):
              * bindings/js/kjs_navigator.h:
              (KJS::Navigator::):
              * bindings/js/kjs_window.cpp:
              (KJS::Window::getOwnPropertySlot):
              (KJS::Window::put):
              (KJS::WindowProtoFuncAToB::callAsFunction):
              (KJS::WindowProtoFuncBToA::callAsFunction):
              (KJS::WindowProtoFuncOpen::callAsFunction):
              (KJS::WindowProtoFuncScrollBy::callAsFunction):
              (KJS::WindowProtoFuncScrollTo::callAsFunction):
              (KJS::WindowProtoFuncMoveBy::callAsFunction):
              (KJS::WindowProtoFuncMoveTo::callAsFunction):
              (KJS::WindowProtoFuncResizeBy::callAsFunction):
              (KJS::WindowProtoFuncResizeTo::callAsFunction):
              (KJS::WindowProtoFuncSetTimeout::callAsFunction):
              (KJS::WindowProtoFuncClearTimeout::callAsFunction):
              (KJS::WindowProtoFuncSetInterval::callAsFunction):
              (KJS::WindowProtoFuncAddEventListener::callAsFunction):
              (KJS::WindowProtoFuncRemoveEventListener::callAsFunction):
              (KJS::WindowProtoFuncShowModalDialog::callAsFunction):
              (KJS::WindowProtoFuncNotImplemented::callAsFunction):
              (KJS::Location::getOwnPropertySlot):
              (KJS::Location::put):
              (KJS::LocationProtoFuncReplace::callAsFunction):
              (KJS::LocationProtoFuncReload::callAsFunction):
              (KJS::LocationProtoFuncAssign::callAsFunction):
              (KJS::LocationProtoFuncToString::callAsFunction):
              * bindings/js/kjs_window.h:
              (KJS::Window::):
              * bindings/scripts/CodeGeneratorJS.pm:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27608 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a73c15f5
    • aroben@apple.com's avatar
      Windows build fix · 62f20d99
      aroben@apple.com authored
              Reviewed by Sam and Ada.
      
              * wtf/MathExtras.h: Get rid of a circular #include dependency to fix
              the build.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27607 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      62f20d99
    • aroben@apple.com's avatar
      Fix a precedence warning on Windows · fdc5b60f
      aroben@apple.com authored
              * kjs/JSImmediate.h:
              (KJS::JSImmediate::toBoolean):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27606 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fdc5b60f
    • mrowe@apple.com's avatar
      2007-11-08 Mark Rowe <mrowe@apple.com> · fa241e9f
      mrowe@apple.com authored
              Build fix for JavaScriptGlue.
      
              * wtf/MathExtras.h: Include stdlib.h for srand and RAND_MAX.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27605 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fa241e9f
    • mrowe@apple.com's avatar
      2007-11-08 Mark Rowe <mrowe@apple.com> · 6264c1ce
      mrowe@apple.com authored
              Build fix.
      
              * ForwardingHeaders/wtf/MathExtras.h: Copied from WebCore/ForwardingHeaders/wtf/MathExtras.h.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27604 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6264c1ce
    • darin@apple.com's avatar
      - Windows build fix · 5df77945
      darin@apple.com authored
              * kjs/JSImmediate.h: Include MathExtras.h rather than math.h since this file uses "signbit".
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27603 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5df77945
    • oliver's avatar
      Replace the use of floats for immediate values with the use of integers for a... · a1fe5a42
      oliver authored
      Replace the use of floats for immediate values with the use of integers for a 4.5% improvement in SunSpider.
      
      Reviewed by Darin.
      
      Unfortunately this change results in NaN, +Inf, -Inf, and -0 being heap allocated now, but
      we should now have faster array access, faster immediate to double conversion, and the
      potential to further improve bitwise operators in future.
      
      This also removes the need for unions to avoid strict aliasing problems when extracting
      a value from immediates.
      
      * kjs/JSImmediate.h:
      (KJS::):
      (KJS::JSImmediate::trueImmediate):
      (KJS::JSImmediate::falseImmediate):
      (KJS::JSImmediate::undefinedImmediate):
      (KJS::JSImmediate::nullImmediate):
      (KJS::JSImmediate::toBoolean):
      * kjs/value.h:
      (KJS::jsNaN):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27602 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a1fe5a42
    • mrowe@apple.com's avatar
      2007-11-08 Mark Rowe <mrowe@apple.com> · c2f20cb9
      mrowe@apple.com authored
              Fix the Gtk, Qt and Wx builds.
      
              * platform/gtk/TemporaryLinkStubs.cpp:
              * platform/qt/TemporaryLinkStubs.cpp:
              * platform/wx/TemporaryLinkStubs.cpp:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27601 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c2f20cb9
    • mrowe@apple.com's avatar
      2007-11-08 Mark Rowe <mrowe@apple.com> · 2eb36a6c
      mrowe@apple.com authored
              Not reviewed.  Fix two instances of includes using the wrong case in the filename.
      
              * platform/graphics/mac/MoviePrivateQTKit.mm:
              * platform/wx/MimeTypeRegistryWx.cpp:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27600 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2eb36a6c
    • darin@apple.com's avatar
      WebCore: · 568b8655
      darin@apple.com authored
              Reviewed by Adam.
      
              - fix <rdar://problem/5552943> accesskey does not focus <button> elements
      
              Test: fast/forms/access-key.html
      
              * html/HTMLButtonElement.cpp: (WebCore::HTMLButtonElement::accessKeyAction):
              Added a call to focus.
      
      LayoutTests:
      
              Reviewed by Adam.
      
              - test changes for <rdar://problem/5552943> accesskey does not focus <button> elements
      
              * fast/forms/access-key.html: Check for both focus and click events on all elements, but
              resisted the urge to switch to the American spelling for "focused".
      
              * fast/forms/access-key-expected.txt: Updated to reflect the bug fix ("1 button focussed"),
              the fact that <input type=button>, <input type=checkbox>, <input type=submit>, and
              <input type=reset> are all both focused and clicked ("2 input type button clicked",
              "3 input type checkbox clicked", "5 input type submit focussed", and
              "6 input type reset focussed"). Unfortunately this now also demonstrates that we don't
              send a click to <input type=text> and Gecko does. And there are still quite a few types
              that are not covered.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27599 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      568b8655
    • darin@apple.com's avatar
      WebCore: · 02405e32
      darin@apple.com authored
              Reviewed by Steve.
      
              - cut down on notImplemented() functions on Windows
      
              * bridge/AXObjectCache.h: Put #if around the accessibility
              global.
      
              * bridge/win/FrameWin.cpp: (WebCore::Frame::setNeedsReapplyStyles):
              Moved here from TemporaryLinkStubs.
      
              * dom/Document.cpp: (WebCore::Document::lastModified): Re-implemented
              using the ResourceResponse that's now available from the DocumentLoader.
      
              * editing/JSEditor.cpp: (execTranspose): Changed to call transpose() on
              the Editor instead of the obsolete one on the Frame.
      
              * loader/DocumentLoader.h: Removed getResponseModifiedHeader.
              * loader/FrameLoader.h: Removed overrideMediaType.
      
              * loader/gtk/DocumentLoaderGtk.cpp: Removed.
              * loader/mac/DocumentLoaderMac.mm: Removed.
              * loader/qt/DocumentLoaderQt.cpp: Removed.
      
              * page/Frame.cpp: Removed transpose.
              * page/Frame.h: Ditto.
              * page/FrameView.h: Removed updateBorder.
              * page/gtk/FrameGtk.cpp: Removed issueTransposeCommand.
              * page/mac/FrameMac.mm: Ditto.
              * page/mac/WebCoreFrameBridge.h: Removed issueTransposeCommand and
              overrideMediaType.
              * page/qt/FrameQt.cpp: Removed issueTransposeCommand.
      
              * platform/gtk/TemporaryLinkStubs.cpp: Removed gAccessibilityEnabled.
              * platform/qt/TemporaryLinkStubs.cpp: Ditto.
              * platform/win/TemporaryLinkStubs.cpp: Removed or moved all but 3 of the stubs.
              * platform/wx/TemporaryLinkStubs.cpp: Removed gAccessibilityEnabled,
              issueTransposeCommand, and overrideMediaType.
      
              * platform/network/cf/ResourceHandleCFNet.cpp:
              (WebCore::ResourceHandle::loadsBlocked): Moved here from TemporaryLinkStubs.
              (WebCore::ResourceHandle::willLoadFromCache): Ditto.
              * platform/win/GraphicsContextWin.cpp:
              (WebCore::GraphicsContextPlatformPrivate::clip): Ditto.
              * platform/win/ScrollViewWin.cpp: (WebCore::ScrollView::inWindow): Ditto.
              * platform/win/SystemTimeWin.cpp: (WebCore::userIdleTime): Ditto.
              * platform/win/WidgetWin.cpp: (WebCore::Widget::setIsSelected): Ditto.
      
              * WebCore.pro: Updated for removed files.
              * WebCore.xcodeproj/project.pbxproj: Updated for removed file.
      
      WebKit/mac:
      
              Reviewed by Steve.
      
              - removed some unused WebCore bridge methods
      
              * WebCoreSupport/WebFrameBridge.mm: Removed issueTransposeCommand and overrideMediaType.
      
              * WebCoreSupport/WebFrameLoaderClient.mm:
              (WebFrameLoaderClient::overrideMediaType): Changed to call WebView directly instead of
              using the bridge object.
      
      WebKit/win:
      
              Reviewed by Steve.
      
              * Interfaces/IWebUIDelegate.idl: Added the functions needed below.
              * WebChromeClient.cpp:
              (WebChromeClient::setMenubarVisible): Eliminated the notImplemented()
              here by calling through the UI delegate.
              (WebChromeClient::menubarVisible): Ditto.
              (WebChromeClient::runDatabaseSizeLimitPrompt): Ditto.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27598 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      02405e32
    • mrowe@apple.com's avatar
      2007-11-08 Mark Rowe <mrowe@apple.com> · ff29fac6
      mrowe@apple.com authored
             Build fix for case-sensitive file systems.  Fix case of file names
             in #include's.
      
              * html/HTMLMediaElement.cpp:
              * platform/graphics/Movie.cpp:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27597 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ff29fac6
    • hausmann's avatar
      Build fix for Qt 4.3. · cd52fca8
      hausmann authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27596 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cd52fca8
    • hausmann's avatar
      Remove some warnings about not implemented methods. · 8aeddd19
      hausmann authored
      * ResourceHandle::loadsBlocked and ResourceHandle::supportsBufferedData are
        specific to the NS API and won't be implemented on Qt.
      * ResourceHandle::bufferedData can not be reached as we return false in
        ResourceHandle::supportsBufferedData.
      Signed-off-by: default avatarLars Knoll <lars@trolltech.com>
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27595 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8aeddd19
    • hausmann's avatar
      Cleanup checking for the request method. · 034a8844
      hausmann authored
      * Check the request method only in QWebNetworkManager::add.
      * Currently HEAD, GET, POST are allowed and for everything else
        QWebNetworkManager::add returns false.
      * Returning false is compatible with ResourceHandle::start and it
        can be used in ResourceHandle::loadResourceSynchronously to generate
        a ResourceError
      Signed-off-by: default avatarLars Knoll <lars@trolltech.com>
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27594 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      034a8844
    • hausmann's avatar
      Implement WebCore::callOnMainThread · 73ef5570
      hausmann authored
      Implemented using a global QObject, that is moved to the main thread
      and then sending a custom event to it.
      Picked a number below QEvent::User but above any other documented value.
      Signed-off-by: default avatarLars Knoll <lars@trolltech.com>
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27593 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      73ef5570
    • hausmann's avatar
      Fix bug in the implementation of synchronous network jobs. · b9d2f6ac
      hausmann authored
      * George (pmax) reviewed the networking patches and found the following bug (thanks for reviewing)
      -    if (jobMode == AsynchronousJob) {
      +    if (jobMode == SynchronousJob) {
              add job to synchronous list/hash
      
      * Just applying the above change will lead to crashes because we can finish
        jobs before we started them.
      
      * Avoid these issues by saving all work (starting a job, sending data and
        finishing it) inside one list. JobWork will contain any
        of the above three work types and doWork will just work on this list
        (m_pendingWork). As foreach takes a copy of the list calling started, data
        and finished will not add new work and we gurantee that if we have JobStarted
        it will be in the list before JobData and JobFinished.
      
      * Observation: We might just kill the code to handle sync jobs.
      Signed-off-by: default avatarLars Knoll <lars@trolltech.com>
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27592 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b9d2f6ac