1. 26 Oct, 2009 1 commit
  2. 16 Oct, 2009 1 commit
  3. 14 Oct, 2009 3 commits
  4. 13 Oct, 2009 1 commit
    • laszlo.1.gombos@nokia.com's avatar
      2009-10-13 Laszlo Gombos <laszlo.1.gombos@nokia.com> · 5686ad7d
      laszlo.1.gombos@nokia.com authored
              Reviewed by Simon Hausmann.
      
              Refactor ENABLE_PLUGIN_PACKAGE_SIMPLE_HASH
              https://bugs.webkit.org/show_bug.cgi?id=30278
      
              Move the definition of ENABLE_PLUGIN_PACKAGE_SIMPLE_HASH
              from the make system into common code.
      
              Enable ENABLE_PLUGIN_PACKAGE_SIMPLE_HASH if NETSCAPE_PLUGIN_API
              support is not enabled.
      
              Remove notImplemented() from PluginPackageNone.cpp and
              PluginDataNone.cpp make them just empty functions.
      
              * GNUmakefile.am:
              * WebCore.pro:
              * plugins/PluginDataNone.cpp:
              (WebCore::PluginData::initPlugins):
              (WebCore::PluginData::refresh):
              * plugins/PluginPackageNone.cpp:
              (WebCore::PluginPackage::determineQuirks):
              (WebCore::PluginPackage::fetchInfo):
              (WebCore::PluginPackage::load):
      
      2009-10-13  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
      
              Reviewed by Simon Hausmann.
      
              Refactor ENABLE_PLUGIN_PACKAGE_SIMPLE_HASH
              https://bugs.webkit.org/show_bug.cgi?id=30278
      
              Move the definition of ENABLE_PLUGIN_PACKAGE_SIMPLE_HASH
              from the make system into common code.
      
              * wtf/Platform.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49515 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5686ad7d
  5. 11 Oct, 2009 1 commit
  6. 09 Oct, 2009 1 commit
    • ggaren@apple.com's avatar
      Eliminated some legacy bytecode weirdness. · d86160f0
      ggaren@apple.com authored
              
      Patch by Geoffrey Garen <ggaren@apple.com> on 2009-10-09
      Reviewed by Oliver Hunt.
      
      Use vPC[x] subscripting instead of ++vPC to access instruction operands.
      This is simpler, and often more efficient.
      
      To support this, and to remove use of hard-coded offsets in bytecode and
      JIT code generation and dumping, calculate jump offsets from the beginning
      of an instruction, rather than the middle or end.
              
      Also, use OPCODE_LENGTH instead of hard-coded constants for the sizes of
      opcodes.
              
      SunSpider reports no change in JIT mode, and a 1.01x speedup in Interpreter
      mode.
      
      * bytecode/CodeBlock.cpp:
      (JSC::printConditionalJump):
      (JSC::CodeBlock::dump):
      * bytecompiler/BytecodeGenerator.cpp:
      (JSC::BytecodeGenerator::emitJump):
      (JSC::BytecodeGenerator::emitJumpIfTrue):
      (JSC::BytecodeGenerator::emitJumpIfFalse):
      (JSC::BytecodeGenerator::emitJumpIfNotFunctionCall):
      (JSC::BytecodeGenerator::emitJumpIfNotFunctionApply):
      (JSC::BytecodeGenerator::emitComplexJumpScopes):
      (JSC::BytecodeGenerator::emitJumpScopes):
      (JSC::BytecodeGenerator::emitNextPropertyName):
      (JSC::BytecodeGenerator::emitCatch):
      (JSC::BytecodeGenerator::emitJumpSubroutine):
      (JSC::prepareJumpTableForImmediateSwitch):
      (JSC::prepareJumpTableForCharacterSwitch):
      (JSC::prepareJumpTableForStringSwitch):
      (JSC::BytecodeGenerator::endSwitch):
      * bytecompiler/Label.h:
      (JSC::Label::setLocation):
      (JSC::Label::bind):
      * interpreter/Interpreter.cpp:
      (JSC::Interpreter::resolve):
      (JSC::Interpreter::resolveSkip):
      (JSC::Interpreter::resolveGlobal):
      (JSC::Interpreter::resolveBase):
      (JSC::Interpreter::resolveBaseAndProperty):
      (JSC::Interpreter::createExceptionScope):
      (JSC::Interpreter::privateExecute):
      * interpreter/Interpreter.h:
      * jit/JIT.cpp:
      (JSC::JIT::privateCompile):
      * jit/JITArithmetic.cpp:
      (JSC::JIT::emit_op_jnless):
      (JSC::JIT::emitSlow_op_jnless):
      (JSC::JIT::emit_op_jnlesseq):
      (JSC::JIT::emitSlow_op_jnlesseq):
      (JSC::JIT::emitBinaryDoubleOp):
      * jit/JITOpcodes.cpp:
      (JSC::JIT::emit_op_jmp):
      (JSC::JIT::emit_op_loop):
      (JSC::JIT::emit_op_loop_if_less):
      (JSC::JIT::emitSlow_op_loop_if_less):
      (JSC::JIT::emit_op_loop_if_lesseq):
      (JSC::JIT::emitSlow_op_loop_if_lesseq):
      (JSC::JIT::emit_op_loop_if_true):
      (JSC::JIT::emitSlow_op_loop_if_true):
      (JSC::JIT::emit_op_jfalse):
      (JSC::JIT::emitSlow_op_jfalse):
      (JSC::JIT::emit_op_jtrue):
      (JSC::JIT::emitSlow_op_jtrue):
      (JSC::JIT::emit_op_jeq_null):
      (JSC::JIT::emit_op_jneq_null):
      (JSC::JIT::emit_op_jneq_ptr):
      (JSC::JIT::emit_op_jsr):
      (JSC::JIT::emit_op_next_pname):
      (JSC::JIT::emit_op_jmp_scopes):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49409 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d86160f0
  7. 30 Sep, 2009 1 commit
    • eric@webkit.org's avatar
      2009-09-30 Gabor Loki <loki@inf.u-szeged.hu> · bbac8ee9
      eric@webkit.org authored
              Reviewed by George Staikos.
      
              Defines two pseudo-platforms for ARM and Thumb-2 instruction set.
              https://bugs.webkit.org/show_bug.cgi?id=29122
      
              Introduces WTF_PLATFORM_ARM_TRADITIONAL and WTF_PLATFORM_ARM_THUMB2
              macros on ARM platforms. The PLATFORM(ARM_THUMB2) should be used
              when Thumb-2 instruction set is the required target. The
              PLATFORM(ARM_TRADITIONAL) is for generic ARM instruction set. In
              case where the code is common the PLATFORM(ARM) have to be used.
      
              Modified by George Wright  <gwright@rim.com> to correctly work
              with the RVCT-defined __TARGET_ARCH_ARM and __TARGET_ARCH_THUMB
              compiler macros, as well as adding readability changes.
      
              * wtf/Platform.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48954 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bbac8ee9
  8. 28 Sep, 2009 2 commits
    • hausmann@webkit.org's avatar
      [Qt] Implement XSLT support with QtXmlPatterns. · 06b7e555
      hausmann@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=28303
      
      Patch by Jakub Wieczorek <faw217@gmail.com> on 2009-09-28
      Reviewed by Simon Hausmann.
      
      JavaScriptCore:
      
      * wtf/Platform.h: Add a WTF_USE_QXMLQUERY #define.
      
      WebCore:
      
      * GNUmakefile.am:
      * WebCore.gypi:
      * WebCore.pro:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCoreSources.bkl:
      * dom/Document.cpp:
      (WebCore::Document::Document):
      (WebCore::Document::~Document):
      (WebCore::Document::setTransformSource):
      * dom/Document.h:
      (WebCore::Document::transformSource):
      * dom/TransformSource.h: Added.
      (WebCore::TransformSource::platformSource):
      * dom/TransformSourceLibxslt.cpp: Added.
      (WebCore::TransformSource::TransformSource): Wraps a libxml2 document.
      (WebCore::TransformSource::~TransformSource):
      * dom/TransformSourceQt.cpp: Added.
      (WebCore::TransformSource::TransformSource): Wraps a plain string.
      (WebCore::TransformSource::~TransformSource):
      * dom/XMLTokenizerLibxml2.cpp:
      (WebCore::XMLTokenizer::doEnd):
      * dom/XMLTokenizerQt.cpp:
      (WebCore::XMLTokenizer::doEnd):
      (WebCore::XMLTokenizer::parseProcessingInstruction):
      * xml/XSLStyleSheet.h:
      (WebCore::XSLStyleSheet::sheetString):
      * xml/XSLStyleSheetLibxslt.cpp:
      (WebCore::XSLStyleSheet::document):
      * xml/XSLStyleSheetQt.cpp: Added.
      * xml/XSLTProcessor.h:
      * xml/XSLTProcessorLibxslt.cpp:
      (WebCore::xmlDocPtrFromNode):
      * xml/XSLTProcessorQt.cpp: Added.
      (WebCore::XSLTMessageHandler::XSLTMessageHandler): A subclass of QAbstractMessageHandler.
      (WebCore::XSLTMessageHandler::handleMessage): Forwards all processor messages to the Console.
      (WebCore::XSLTProcessor::transformToString): Uses QXmlQuery.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48826 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      06b7e555
    • hausmann@webkit.org's avatar
      Add ARM version detection for Windows CE. · d7c6229f
      hausmann@webkit.org authored
      Patch by Joerg Bornemann <joerg.bornemann@nokia.com> on 2009-09-28
      Reviewed by Simon Hausmann.
      
      * wtf/Platform.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48807 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d7c6229f
  9. 25 Sep, 2009 3 commits
    • eric@webkit.org's avatar
      2009-09-25 Gabor Loki <loki@inf.u-szeged.hu> · 16d65d19
      eric@webkit.org authored
              Reviewed by Gavin Barraclough.
      
              Fix unaligned data access in YARR_JIT on ARMv5 and below.
              https://bugs.webkit.org/show_bug.cgi?id=29695
      
              On ARMv5 and below all data access should be naturally aligned.
              In the YARR_JIT there is a case when character pairs are
              loaded from the input string, but this data access is not
              naturally aligned. This fix introduces load32WithUnalignedHalfWords
              and branch32WithUnalignedHalfWords functions which contain
              naturally aligned memory loads - half word loads - on ARMv5 and below.
      
              * assembler/MacroAssemblerARM.cpp:
              (JSC::MacroAssemblerARM::load32WithUnalignedHalfWords):
              * assembler/MacroAssemblerARM.h:
              (JSC::MacroAssemblerARM::load32WithUnalignedHalfWords):
              (JSC::MacroAssemblerARM::branch32WithUnalignedHalfWords):
              * assembler/MacroAssemblerARMv7.h:
              (JSC::MacroAssemblerARMv7::load32WithUnalignedHalfWords):
              (JSC::MacroAssemblerARMv7::branch32):
              (JSC::MacroAssemblerARMv7::branch32WithUnalignedHalfWords):
              * assembler/MacroAssemblerX86Common.h:
              (JSC::MacroAssemblerX86Common::load32WithUnalignedHalfWords):
              (JSC::MacroAssemblerX86Common::branch32WithUnalignedHalfWords):
              * wtf/Platform.h:
              * yarr/RegexJIT.cpp:
              (JSC::Yarr::RegexGenerator::generatePatternCharacterPair):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48782 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      16d65d19
    • eric@webkit.org's avatar
      2009-09-25 Laszlo Gombos <laszlo.1.gombos@nokia.com> · cfa17904
      eric@webkit.org authored
              Reviewed by Gavin Barraclough.
      
              Add ARM version detection rules for Symbian
              https://bugs.webkit.org/show_bug.cgi?id=29715
      
              * wtf/Platform.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48756 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cfa17904
    • xan@webkit.org's avatar
      2009-09-24 Xan Lopez <xlopez@igalia.com> · 1b9d9e48
      xan@webkit.org authored
              Reviewed by Mark "Do It!" Rowe.
      
              Some GCC versions don't like C++-style comments in preprocessor
              directives, change to C-style to shut them up.
      
              * wtf/Platform.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48747 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1b9d9e48
  10. 24 Sep, 2009 1 commit
  11. 23 Sep, 2009 1 commit
  12. 21 Sep, 2009 1 commit
    • bolsinga@apple.com's avatar
      JavaScriptCore: Add ENABLE(ORIENTATION_EVENTS) · dcfc7898
      bolsinga@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=29508
      
      Reviewed by Simon Fraser & Sam Weinig.
      
      * wtf/Platform.h: Also sort PLATFORM(IPHONE) #defines.
      
      WebCore: Add ENABLE(ORIENTATION_EVENTS)
      https://bugs.webkit.org/show_bug.cgi?id=29508
      
      Reviewed by Simon Fraser & Sam Weinig.
      
      See documentation here:
      http://developer.apple.com/safari/library/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html#//apple_ref/doc/uid/TP40006511-SW16
      
      * DerivedSources.make: Use new WebCore.OrientationEvents.exp file if ENABLE_ORIENTATION_EVENTS.
      Add ENABLE_ORIENTATION_EVENTS to the new ADDITIONAL_IDL_DEFINES variable that is passed to the IDL
      code generator. This is because ENABLE_ORIENTATION_EVENTS is not in FEATURE_DEFINES.
      * WebCore.OrientationEvents.exp: Added.
      * WebCore.xcodeproj/project.pbxproj: Add WebCore.OrientationEvents.exp.
      * dom/EventNames.h: Add onorientationchange.
      * html/HTMLAttributeNames.in: Ditto.
      * html/HTMLBodyElement.cpp: Handle onorientationchange properly.
      (WebCore::HTMLBodyElement::parseMappedAttribute):
      (WebCore::HTMLBodyElement::onorientationchange):
      (WebCore::HTMLBodyElement::setOnorientationchange):
      * html/HTMLBodyElement.h: Ditto.
      * html/HTMLBodyElement.idl: Ditto.
      * html/HTMLFrameSetElement.cpp: Ditto.
      (WebCore::HTMLFrameSetElement::parseMappedAttribute):
      (WebCore::HTMLFrameSetElement::onorientationchange):
      (WebCore::HTMLFrameSetElement::setOnorientationchange):
      * html/HTMLFrameSetElement.h: Ditto.
      * html/HTMLFrameSetElement.idl: Ditto.
      * page/DOMWindow.cpp: Ditto.
      (WebCore::DOMWindow::orientation): Calls up the to the Frame for the orientation value.
      (WebCore::DOMWindow::onorientationchange):
      (WebCore::DOMWindow::setOnorientationchange):
      * page/DOMWindow.h: Handle onorientationchange properly.
      * page/DOMWindow.idl: Ditto.
      * page/Frame.cpp: Ditto.
      (WebCore::Frame::Frame):
      (WebCore::Frame::sendOrientationChangeEvent):
      * page/Frame.h: Ditto.
      (WebCore::Frame::orientation):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48609 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dcfc7898
  13. 18 Sep, 2009 2 commits
    • barraclough@apple.com's avatar
      2009-09-18 Gabor Loki <loki@inf.u-szeged.hu> · 0505a8fa
      barraclough@apple.com authored
              Reviewed by Gavin Barraclough.
      
              Build fix to enable ARM_THUMB2 on Linux
              https://bugs.webkit.org/show_bug.cgi?id=
      
              * jit/ExecutableAllocator.h:
              (JSC::ExecutableAllocator::cacheFlush):
              * jit/JITStubs.cpp:
              * wtf/Platform.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48527 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0505a8fa
    • barraclough@apple.com's avatar
      2009-09-18 Gabor Loki <loki@inf.u-szeged.hu> · 32aaad09
      barraclough@apple.com authored
              Reviewed by Gavin Barraclough.
      
              Defines two pseudo-platforms for ARM and Thumb-2 instruction set.
              https://bugs.webkit.org/show_bug.cgi?id=29122
      
              Introduces WTF_PLATFORM_ARM_TRADITIONAL and WTF_PLATFORM_ARM_THUMB2
              macros on ARM platforms. The PLATFORM(ARM_THUMB2) should be used
              when Thumb-2 instruction set is the required target. The
              PLATFORM(ARM_TRADITIONAL) is for generic ARM instruction set. In
              case where the code is common the PLATFORM(ARM) have to be used.
      
              * assembler/ARMAssembler.cpp:
              * assembler/ARMAssembler.h:
              * assembler/ARMv7Assembler.h:
              * assembler/MacroAssembler.h:
              * assembler/MacroAssemblerARM.cpp:
              * assembler/MacroAssemblerARM.h:
              * assembler/MacroAssemblerCodeRef.h:
              (JSC::MacroAssemblerCodePtr::MacroAssemblerCodePtr):
              * jit/ExecutableAllocator.h:
              * jit/JIT.h:
              * jit/JITInlineMethods.h:
              (JSC::JIT::beginUninterruptedSequence):
              (JSC::JIT::preserveReturnAddressAfterCall):
              (JSC::JIT::restoreReturnAddressBeforeReturn):
              (JSC::JIT::restoreArgumentReference):
              (JSC::JIT::restoreArgumentReferenceForTrampoline):
              * jit/JITOpcodes.cpp:
              * jit/JITStubs.cpp:
              (JSC::JITThunks::JITThunks):
              * jit/JITStubs.h:
              * wtf/Platform.h:
              * yarr/RegexJIT.cpp:
              (JSC::Yarr::RegexGenerator::generateEnter):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48525 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      32aaad09
  14. 16 Sep, 2009 4 commits
    • bolsinga@apple.com's avatar
      Add ENABLE(INSPECTOR) · d19fa0b4
      bolsinga@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=29260
      
      Reviewed by David Kilzer.
      
      JavaScriptCore:
      
      * wtf/Platform.h:
      
      WebCore:
      
      No new tests. (No change in default behavior.)
      
      * DerivedSources.make: Use new WebCore.Inspector.exp file if ENABLE_DRAG_SUPPORT.
      * WebCore.base.exp: Move Inspector only exports to WebCore.Inspector.exp.
      * WebCore.xcodeproj/project.pbxproj: Add WebCore.Inspector.exp.
      * bindings/js/JSDOMWindowBase.cpp: Use ENABLE(INSPECTOR) where applicable.
      (WebCore::JSDOMWindowBase::supportsProfiling):
      * bindings/js/JSInspectedObjectWrapper.cpp: Wrap entire file in ENABLE(INSPECTOR).
      * bindings/js/JSInspectorBackendCustom.cpp: Ditto.
      * bindings/js/JSInspectorCallbackWrapper.cpp: Ditto.
      * bindings/js/ScriptObject.cpp: Use ENABLE(INSPECTOR) where applicable.
      * bindings/js/ScriptObject.h: Ditto.
      * bindings/js/ScriptObjectQuarantine.cpp: Wrap entire file in ENABLE(INSPECTOR).
      * dom/Document.cpp: Use ENABLE(INSPECTOR) where applicable.
      (WebCore::Document::recalcStyle):
      (WebCore::Document::addMessage):
      (WebCore::Document::resourceRetrievedByXMLHttpRequest):
      (WebCore::Document::scriptImported):
      * dom/Document.h: Ditto.
      * dom/Node.cpp: Ditto.
      (WebCore::Node::dispatchGenericEvent):
      * dom/ScriptExecutionContext.h: Ditto.
      (WebCore::):
      * html/HTMLDocument.cpp: Ditto.
      (WebCore::HTMLDocument::createTokenizer):
      * html/HTMLTokenizer.cpp: Ditto.
      (WebCore::HTMLTokenizer::write):
      * inspector/ConsoleMessage.cpp: Ditto.
      (WebCore::ConsoleMessage::ConsoleMessage):
      (WebCore::ConsoleMessage::isEqual):
      * inspector/ConsoleMessage.h: Ditto.
      * inspector/DOMDispatchTimelineItem.cpp: Wrap entire file in ENABLE(INSPECTOR).
      * inspector/InspectorBackend.cpp: Ditto.
      * inspector/InspectorController.cpp: Ditto.
      * inspector/InspectorDOMAgent.cpp: Ditto.
      * inspector/InspectorDOMStorageResource.cpp: Ditto.
      * inspector/InspectorDatabaseResource.cpp: Ditto.
      * inspector/InspectorFrontend.cpp: Ditto.
      * inspector/InspectorResource.cpp: Ditto.
      * inspector/InspectorTimelineAgent.cpp: Ditto.
      * inspector/TimelineItem.cpp: Ditto.
      * loader/FrameLoader.cpp: Use ENABLE(INSPECTOR) where applicable.
      (WebCore::FrameLoader::detachFromParent):
      (WebCore::FrameLoader::continueLoadAfterNavigationPolicy):
      (WebCore::FrameLoader::loadedResourceFromMemoryCache):
      (WebCore::FrameLoader::dispatchWindowObjectAvailable):
      (WebCore::FrameLoader::dispatchDidCommitLoad):
      (WebCore::FrameLoader::dispatchAssignIdentifierToInitialRequest):
      (WebCore::FrameLoader::dispatchWillSendRequest):
      (WebCore::FrameLoader::dispatchDidReceiveResponse):
      (WebCore::FrameLoader::dispatchDidReceiveContentLength):
      (WebCore::FrameLoader::dispatchDidFinishLoading):
      * page/Chrome.cpp: Ditto.
      (WebCore::Chrome::mouseDidMoveOverElement):
      * page/Console.cpp: Ditto.
      (WebCore::Console::addMessage):
      (WebCore::Console::count):
      (WebCore::Console::profile):
      (WebCore::Console::profileEnd):
      (WebCore::Console::time):
      (WebCore::Console::timeEnd):
      (WebCore::Console::group):
      (WebCore::Console::groupEnd):
      * page/ContextMenuController.cpp: Ditto.
      (WebCore::ContextMenuController::handleContextMenuEvent):
      (WebCore::ContextMenuController::contextMenuItemSelected):
      * page/DOMWindow.cpp: Ditto.
      (WebCore::DOMWindow::sessionStorage):
      (WebCore::DOMWindow::localStorage):
      * page/EventHandler.cpp: Ditto.
      (WebCore::EventHandler::handleMousePressEvent):
      * page/FrameView.cpp: Ditto.
      (WebCore::FrameView::layout):
      (WebCore::FrameView::paintContents):
      * page/FrameView.h: Ditto.
      * page/Page.cpp: Ditto.
      (WebCore::Page::Page):
      (WebCore::Page::~Page):
      * page/Page.h: Ditto.
      * platform/ContextMenu.cpp: Ditto.
      (WebCore::ContextMenu::checkOrEnableIfNeeded):
      * platform/ContextMenuItem.h: Ditto.
      (WebCore::):
      * storage/Database.cpp: Ditto.
      (WebCore::Database::openDatabase):
      * workers/WorkerContext.cpp: Ditto.
      (WebCore::WorkerContext::importScripts):
      * xml/XMLHttpRequest.cpp: Ditto.
      (WebCore::XMLHttpRequest::didFinishLoading):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48430 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d19fa0b4
    • bolsinga@apple.com's avatar
      Add ENABLE(CONTEXT_MENUS) · 08a4e0b1
      bolsinga@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=29225
      
      Reviewed by David Kilzer.
      
      JavaScriptCore:
      
      * wtf/Platform.h:
      
      WebCore:
      
      No new tests. (No change in default behavior.)
      
      * DerivedSources.make: Use new WebCore.ContextMenus.exp file if ENABLE_CONTEXT_MENUS.
      * WebCore.base.exp: Move ContextMenu only exports to WebCore.ContextMenus.exp.
      * WebCore.xcodeproj/project.pbxproj: Add WebCore.ContextMenus.exp.
      * dom/Node.cpp: Use ENABLE(CONTEXT_MENUS) where applicable.
      (WebCore::Node::defaultEventHandler):
      * loader/EmptyClients.h: Ditto.
      * page/ContextMenuController.cpp: Wrap entire file in ENABLE(CONTEXT_MENUS).
      * page/EventHandler.cpp: Use ENABLE(CONTEXT_MENUS) where applicable.
      * page/EventHandler.h: Ditto.
      * page/Page.cpp: Ditto.
      (WebCore::Page::Page):
      * page/Page.h: Ditto.
      * page/mac/EventHandlerMac.mm: Ditto.
      * page/mac/WebCoreViewFactory.h: Ditto.
      * platform/ContextMenu.cpp: Wrap entire file in ENABLE(CONTEXT_MENUS).
      * platform/LocalizedStrings.h: Use ENABLE(CONTEXT_MENUS) where applicable.
      * platform/mac/ContextMenuItemMac.mm: Wrap entire file in ENABLE(CONTEXT_MENUS).
      * platform/mac/ContextMenuMac.mm: Ditto.
      * platform/mac/LocalizedStringsMac.mm: Use ENABLE(CONTEXT_MENUS) where applicable.
      * svg/graphics/SVGImage.cpp: Ditto.
      (WebCore::SVGImage::dataChanged):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48429 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      08a4e0b1
    • bolsinga@apple.com's avatar
      Add ENABLE(DRAG_SUPPORT) · 5db11076
      bolsinga@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=29233
      
      Reviewed by David Kilzer.
      
      JavaScriptCore:
      
      * wtf/Platform.h:
      
      WebCore:
      
      No new tests. (No change in default behavior.)
      
      * DerivedSources.make: Use new WebCore.DragSupport.exp file if ENABLE_DRAG_SUPPORT.
      * WebCore.base.exp: Move Drag Support only exports to WebCore.DragSupport.exp.
      * WebCore.xcodeproj/project.pbxproj: Add WebCore.DragSupport.exp.
      * dom/Clipboard.h: Use ENABLE(DRAG_SUPPORT) where applicable.
      * loader/EmptyClients.h: Ditto.
      * page/DragController.cpp: Wrap entire file in ENABLE(DRAG_SUPPORT).
      * page/EventHandler.cpp: Use ENABLE(DRAG_SUPPORT) where applicable.
      (WebCore::EventHandler::EventHandler):
      (WebCore::EventHandler::clear):
      (WebCore::EventHandler::handleMousePressEvent):
      (WebCore::EventHandler::handleMouseReleaseEvent):
      (WebCore::EventHandler::handleMouseMoveEvent):
      * page/EventHandler.h: Ditto.
      * page/Page.cpp: Ditto.
      (WebCore::Page::Page):
      * page/Page.h: Ditto.
      * page/mac/DragControllerMac.mm: Wrap entire file in ENABLE(DRAG_SUPPORT).
      * page/mac/EventHandlerMac.mm: Use ENABLE(DRAG_SUPPORT) where applicable.
      (WebCore::EventHandler::passSubframeEventToSubframe):
      * platform/DragData.cpp: Wrap entire file in ENABLE(DRAG_SUPPORT).
      * platform/DragImage.cpp: Wrap entire file in ENABLE(DRAG_SUPPORT).
      * platform/mac/ClipboardMac.h: Use ENABLE(DRAG_SUPPORT) where applicable.
      * platform/mac/ClipboardMac.mm: Ditto.
      * platform/mac/DragDataMac.mm: Wrap entire file in ENABLE(DRAG_SUPPORT).
      * platform/mac/DragImageMac.mm: Wrap entire file in ENABLE(DRAG_SUPPORT).
      * rendering/RenderLayer.cpp: Use ENABLE(DRAG_SUPPORT) where applicable.
      (WebCore::RenderLayer::autoscroll):
      * rendering/RenderObject.cpp: Ditto.
      * rendering/RenderObject.h: Ditto.
      * svg/graphics/SVGImage.cpp: Ditto.
      (WebCore::SVGImage::dataChanged):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48426 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5db11076
    • vestbo@webkit.org's avatar
      [Qt] Build fix for 64-bit Qt on Mac OS X · 0efc226f
      vestbo@webkit.org authored
      Reviewed by Simon Hausmann.
      
      * wtf/Platform.h: Use JSVALUE64 on DARWIN, not only on MAC
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48415 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0efc226f
  15. 15 Sep, 2009 1 commit
  16. 11 Sep, 2009 1 commit
  17. 10 Sep, 2009 1 commit
  18. 09 Sep, 2009 1 commit
  19. 04 Sep, 2009 1 commit
  20. 25 Aug, 2009 1 commit
  21. 14 Aug, 2009 4 commits
  22. 13 Aug, 2009 1 commit
  23. 12 Aug, 2009 2 commits
  24. 11 Aug, 2009 2 commits
    • atwilson@chromium.org's avatar
      JavaScriptCore: Desktop Notifications API · bb49055e
      atwilson@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=25463
      
      Patch by John Gregg <johnnyg@google.com> on 2009-08-11
      Reviewed by Maciej Stachowiak.
      
      Adds ENABLE_NOTIFICATION flag.
      
      * Configurations/FeatureDefines.xcconfig:
      * wtf/Platform.h:
      
      WebCore: Desktop Notifications API
      https://bugs.webkit.org/show_bug.cgi?id=25463
      
      Patch by John Gregg <johnnyg@google.com> on 2009-08-11
      Reviewed by Maciej Stachowiak.
      
      Adds an implementation of desktop notifications, behind the compile-time
      flag ENABLE(NOTIFICATIONS).  This code simply relays calls on the JavaScript
      API through a NotificationProvider interface, which must provide the services
      to actually notify the user and manage the desktop.  This provider is injected
      into WebKit through the ChromeClient for normal page contexts and through the
      WorkerThread for worker contexts.
      
      A permissions API is defined on a per-origin basis, which allows a web page
      to check if its origin is allowed to show desktop notifications, and to request
      permission for its origin.
      
      * Configurations/FeatureDefines.xcconfig:
      * DerivedSources.cpp:
      * DerivedSources.make:
      * GNUmakefile.am:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcproj/WebCoreCommon.vsprops:
      * WebCore.xcodeproj/project.pbxproj:
      * bindings/js/JSDOMWindowCustom.cpp:
      * bindings/js/JSDesktopNotificationsCustom.cpp: Added.
      (WebCore::JSNotificationCenter::requestPermission):
      (WebCore::JSNotification::addEventListener):
      (WebCore::JSNotification::removeEventListener):
      * bindings/js/JSEventTarget.cpp:
      (WebCore::toJS):
      (WebCore::toEventTarget):
      * dom/EventTarget.cpp:
      (WebCore::EventTarget::toNotification):
      * dom/EventTarget.h:
      * loader/EmptyClients.h:
      (WebCore::EmptyChromeClient::notificationPresenter):
      * notifications: Added.
      * notifications/Notification.cpp: Added.
      (WebCore::Notification::Notification):
      (WebCore::Notification::~Notification):
      (WebCore::Notification::show):
      (WebCore::Notification::cancel):
      (WebCore::Notification::ondisplay):
      (WebCore::Notification::setOndisplay):
      (WebCore::Notification::onerror):
      (WebCore::Notification::setOnerror):
      (WebCore::Notification::onclose):
      (WebCore::Notification::setOnclose):
      (WebCore::Notification::getAttributeEventListener):
      (WebCore::Notification::setAttributeEventListener):
      (WebCore::Notification::clearAttributeEventListener):
      (WebCore::Notification::dispatchDisplayEvent):
      (WebCore::Notification::dispatchErrorEvent):
      (WebCore::Notification::dispatchCloseEvent):
      (WebCore::Notification::addEventListener):
      (WebCore::Notification::removeEventListener):
      (WebCore::Notification::handleEvent):
      (WebCore::Notification::dispatchEvent):
      * notifications/Notification.h: Added.
      (WebCore::Notification::create):
      (WebCore::Notification::isHTML):
      (WebCore::Notification::url):
      (WebCore::Notification::contents):
      (WebCore::Notification::scriptExecutionContext):
      (WebCore::Notification::toNotification):
      (WebCore::Notification::refEventTarget):
      (WebCore::Notification::derefEventTarget):
      * notifications/Notification.idl: Added.
      * notifications/NotificationCenter.cpp: Added.
      (WebCore::NotificationCenter::NotificationCenter):
      (WebCore::NotificationCenter::checkPermission):
      (WebCore::NotificationCenter::requestPermission):
      * notifications/NotificationCenter.h: Added.
      (WebCore::NotificationCenter::create):
      (WebCore::NotificationCenter::createHTMLNotification):
      (WebCore::NotificationCenter::createNotification):
      (WebCore::NotificationCenter::context):
      (WebCore::NotificationCenter::presenter):
      * notifications/NotificationCenter.idl: Added.
      * notifications/NotificationContents.h: Added.
      (WebCore::NotificationContents::NotificationContents):
      (WebCore::NotificationContents::icon):
      (WebCore::NotificationContents::title):
      (WebCore::NotificationContents::body):
      * notifications/NotificationPresenter.h: Added.
      (WebCore::NotificationPresenter::):
      (WebCore::NotificationPresenter::~NotificationPresenter):
      * page/Chrome.cpp:
      (WebCore::Chrome::notificationPresenter):
      * page/Chrome.h:
      * page/ChromeClient.h:
      * page/DOMWindow.cpp:
      (WebCore::DOMWindow::clear):
      (WebCore::DOMWindow::webkitNotifications):
      * page/DOMWindow.h:
      * page/DOMWindow.idl:
      * page/Page.h:
      * workers/WorkerContext.cpp:
      (WebCore::WorkerContext::~WorkerContext):
      (WebCore::WorkerContext::webkitNotifications):
      * workers/WorkerContext.h:
      * workers/WorkerContext.idl:
      * workers/WorkerThread.h:
      (WebCore::WorkerThread::getNotificationPresenter):
      (WebCore::WorkerThread::setNotificationPresenter):
      
      WebKit/mac: Desktop Notifications API
      https://bugs.webkit.org/show_bug.cgi?id=25643
      
      Patch by John Gregg <johnnyg@google.com> on 2009-08-11
      Reviewed by Maciej Stachowiak.
      
      Adds ENABLE_NOTIFICATION flag.
      
      * Configurations/FeatureDefines.xcconfig:
      
      WebKit/win: Desktop Notifications API
      https://bugs.webkit.org/show_bug.cgi?id=25643
      
      Patch by John Gregg <johnnyg@google.com> on 2009-08-11
      Reviewed by Maciej Stachowiak.
      
      Adds test hooks for notification features to WebCoreSupport for
      use in DumpRenderTree.
      
      * Interfaces/IWebDesktopNotificationsDelegate.idl: Added.
      * Interfaces/IWebUIDelegate.idl:
      * Interfaces/WebKit.idl:
      * WebCoreSupport/WebChromeClient.cpp:
      (WebChromeClient::WebChromeClient):
      * WebCoreSupport/WebChromeClient.h:
      (WebChromeClient::notificationPresenter):
      * WebCoreSupport/WebDesktopNotificationsDelegate.cpp: Added.
      (NotificationCOMWrapper::create):
      (NotificationCOMWrapper::NotificationCOMWrapper):
      (NotificationCOMWrapper::QueryInterface):
      (NotificationCOMWrapper::AddRef):
      (NotificationCOMWrapper::Release):
      (NotificationCOMWrapper::isHTML):
      (NotificationCOMWrapper::contentsURL):
      (NotificationCOMWrapper::iconURL):
      (NotificationCOMWrapper::title):
      (NotificationCOMWrapper::text):
      (NotificationCOMWrapper::notifyDisplay):
      (NotificationCOMWrapper::notifyError):
      (NotificationCOMWrapper::notifyClose):
      (WebDesktopNotificationsDelegate::WebDesktopNotificationsDelegate):
      (WebDesktopNotificationsDelegate::show):
      (WebDesktopNotificationsDelegate::cancel):
      (WebDesktopNotificationsDelegate::notificationObjectDestroyed):
      (WebDesktopNotificationsDelegate::requestPermission):
      (WebDesktopNotificationsDelegate::checkPermission):
      (WebDesktopNotificationsDelegate::notificationDelegate):
      * WebCoreSupport/WebDesktopNotificationsDelegate.h: Added.
      * WebCoreSupport/WebInspectorDelegate.h:
      (WebInspectorDelegate::desktopNotificationsDelegate):
      * WebKit.vcproj/Interfaces.vcproj:
      * WebKit.vcproj/WebKit.vcproj:
      
      WebKitTools: Add support for desktop notifications API to DumpRenderTree,
      and support for ENABLE_NOTIFICATIONS flag to build-webkit.
      
      Patch by John Gregg <johnnyg@google.com> on 2009-08-11
      Reviewed by Maciej Stachowiak.
      
      * DumpRenderTree/LayoutTestController.cpp:
      (grantDesktopNotificationPermissionCallback):
      (LayoutTestController::staticFunctions):
      (LayoutTestController::grantDesktopNotificationPermission):
      (LayoutTestController::checkDesktopNotificationPermission):
      * DumpRenderTree/LayoutTestController.h:
      * DumpRenderTree/win/DRTDesktopNotificationPresenter.cpp: Added.
      (DRTDesktopNotificationPresenter::DRTDesktopNotificationPresenter):
      (DRTDesktopNotificationPresenter::QueryInterface):
      (DRTDesktopNotificationPresenter::AddRef):
      (DRTDesktopNotificationPresenter::Release):
      (DRTDesktopNotificationPresenter::showDesktopNotification):
      (DRTDesktopNotificationPresenter::cancelDesktopNotification):
      (DRTDesktopNotificationPresenter::notificationDestroyed):
      (DRTDesktopNotificationPresenter::checkNotificationPermission):
      (DRTDesktopNotificationPresenter::requestNotificationPermission):
      * DumpRenderTree/win/DRTDesktopNotificationPresenter.h: Added.
      * DumpRenderTree/win/DumpRenderTree.vcproj:
      * DumpRenderTree/win/UIDelegate.cpp:
      (UIDelegate::UIDelegate):
      (UIDelegate::desktopNotificationsDelegate):
      * DumpRenderTree/win/UIDelegate.h:
      * Scripts/build-webkit:
      
      LayoutTests: Desktop Notifications API
      https://bugs.webkit.org/show_bug.cgi?id=25463
      
      Patch by John Gregg <johnnyg@google.com> on 2009-08-11
      Reviewed by Maciej Stachowiak.
      
      Adding layout tests for desktop notifications.  Currently these
      are all disabled because the flag for this feature is set to 0.
      
      * fast/notifications: Added.
      * fast/notifications/notifications-check-permission-expected.txt: Added.
      * fast/notifications/notifications-check-permission.html-disabled: Added.
       - Validates that checking permission for notifications works correctly.
      * fast/notifications/notifications-display-close-events-expected.txt: Added.
      * fast/notifications/notifications-display-close-events.html-disabled: Added.
       - Validates that the display and close events are fired correctly.
      * fast/notifications/notifications-double-show-expected.txt: Added.
      * fast/notifications/notifications-double-show.html-disabled: Added.
       - Validates that the same notification object cannot be shown twice.
      * fast/notifications/notifications-request-permission-expected.txt: Added.
      * fast/notifications/notifications-request-permission.html-disabled: Added.
       - Validates that requesting permission works correctly.
      * fast/notifications/notifications-with-permission-expected.txt: Added.
      * fast/notifications/notifications-with-permission.html-disabled: Added.
       - Validates that, with permission, showing a notification works correctly.
      * fast/notifications/notifications-without-permission-expected.txt: Added.
      * fast/notifications/notifications-without-permission.html-disabled: Added.
       - Validates that, without permission, showing a notification fails.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47056 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bb49055e
    • eric@webkit.org's avatar
      2009-08-11 Maxime Simon <simon.maxime@gmail.com> · 9eccd009
      eric@webkit.org authored
              Reviewed by Eric Seidel.
      
              Modifications on JavaScriptCore to allow Haiku port.
              https://bugs.webkit.org/show_bug.cgi?id=28121
      
              * runtime/Collector.cpp: Haiku doesn't have sys/mman.h, using OS.h instead.
              (JSC::currentThreadStackBase): Haiku uses its own threading system.
              * wtf/Platform.h: Defining all Haiku platform values.
              * wtf/haiku/MainThreadHaiku.cpp: Adding a missing header (NotImplemented.h).
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47050 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9eccd009
  25. 07 Aug, 2009 1 commit
    • abarth@webkit.org's avatar
      2009-08-07 George Staikos <george.staikos@torchmobile.com> · 7283bc1c
      abarth@webkit.org authored
              Reviewed by Eric Seidel.
      
              https://bugs.webkit.org/show_bug.cgi?id=27305
              Implement WinCE-specific unicode layer.
              Written by George Staikos <george.staikos@torchmobile.com>
              with bug fixes by Yong Li <yong.li@torchmobile.com>
              refactored by Joe Mason <joe.mason@torchmobile.com>
      
              * wtf/Platform.h:
              * wtf/unicode/Unicode.h:
              * wtf/unicode/wince/UnicodeWince.cpp: Added.
              (WTF::Unicode::toLower):
              (WTF::Unicode::toUpper):
              (WTF::Unicode::foldCase):
              (WTF::Unicode::isPrintableChar):
              (WTF::Unicode::isSpace):
              (WTF::Unicode::isLetter):
              (WTF::Unicode::isUpper):
              (WTF::Unicode::isLower):
              (WTF::Unicode::isDigit):
              (WTF::Unicode::isPunct):
              (WTF::Unicode::toTitleCase):
              (WTF::Unicode::direction):
              (WTF::Unicode::category):
              (WTF::Unicode::decompositionType):
              (WTF::Unicode::combiningClass):
              (WTF::Unicode::mirroredChar):
              (WTF::Unicode::digitValue):
              * wtf/unicode/wince/UnicodeWince.h: Added.
              (WTF::Unicode::):
              (WTF::Unicode::isSeparatorSpace):
              (WTF::Unicode::isHighSurrogate):
              (WTF::Unicode::isLowSurrogate):
              (WTF::Unicode::isArabicChar):
              (WTF::Unicode::hasLineBreakingPropertyComplexContext):
              (WTF::Unicode::umemcasecmp):
              (WTF::Unicode::surrogateToUcs4):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@46911 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7283bc1c
  26. 06 Aug, 2009 1 commit