1. 22 Apr, 2013 40 commits
    • commit-queue@webkit.org's avatar
      [BlackBerry] Update about:config lists · a03683da
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=114967
      
      Patch by Eli Fidler <efidler@blackberry.com> on 2013-04-22
      Reviewed by Rob Buis.
      
      * WebCoreSupport/AboutDataEnableFeatures.in:
      * WebCoreSupport/AboutDataHaveFeatures.in:
      * WebCoreSupport/AboutDataUseFeatures.in:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148909 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a03683da
    • rniwa@webkit.org's avatar
      Use-after-free in CompositeEditCommand::cloneParagraphUnderNewElement · 6f9ee4d9
      rniwa@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=114911
      
      Reviewed by Oliver Hunt.
      
      Back ported https://src.chromium.org/viewvc/blink?revision=148680&view=revision.
      
      * editing/CompositeEditCommand.cpp:
      (WebCore::CompositeEditCommand::cloneParagraphUnderNewElement):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148908 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6f9ee4d9
    • eric.carlson@apple.com's avatar
      [Mac] "automatic" track selection should only select a track that matches user language · bdddf9e1
      eric.carlson@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=114976
      
      Reviewed by Jer Noble.
      
      Source/WebCore:
      
      Test: media/track/track-automatic-subtitles.html
      
      * page/CaptionUserPreferencesMac.mm:
      (WebCore::CaptionUserPreferencesMac::textTrackSelectionScore): When in "automatic" mode, only
          consider text tracks that match the user's preferred language when the primary audio track
          does not.
      
      LayoutTests:
      
      * media/track/track-automatic-subtitles-expected.txt: Added.
      * media/track/track-automatic-subtitles.html: Added.
      * platform/mac/TestExpectations: Skip track-user-preferences.html, the logic is no longer
           correct for the Mac port.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148907 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bdddf9e1
    • jer.noble@apple.com's avatar
      Cancelling load may cause deadlock in -[AVPlayerItem release] · 0001b28a
      jer.noble@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=114962
      
      Reviewed by Eric Carlson.
      
      Work around a bug in AVAssetResourceLoader by using a generic, non-main dispatch queue
      to recieve AVAssetResourceLoaderDelegate callbacks, and then marshalling those
      callbacks to the main thread asynchronously.
      
      * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
      (WebCore::globalLoaderDelegateQueue): Added.
      (WebCore::MediaPlayerPrivateAVFoundationObjC::createAVAssetForURL): Use the new global queue.
      (-[WebCoreAVFLoaderDelegate resourceLoader:shouldWaitForLoadingOfRequestedResource:]):
          Marshall the request to the main queue, and return YES (wait) immediately.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148906 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0001b28a
    • andersca@apple.com's avatar
      Don't kill our XPC services in response to memory pressure · 36dcfa09
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=114985
      <rdar://problem/13229217>
      
      Reviewed by Mark Rowe.
      
      * Shared/EntryPointUtilities/mac/XPCService/XPCServiceEntryPoint.h:
      (WebKit::XPCServiceInitializer):
      Call xpc_transaction_begin() so we'll never be killed by the kernel when there's memory pressure;
      we prefer to manage our own lifetime thank you very much!
      
      * Shared/mac/ChildProcessMac.mm:
      (WebKit::ChildProcess::platformInitialize):
      Remove call to disable sudden termination.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148905 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      36dcfa09
    • ap@apple.com's avatar
      <rdar://problem/13681842> [Mac] Tweak WebProcess sandbox profile to use · 798919bf
      ap@apple.com authored
              system-graphics function when available.
      
              Reviewed by Sam Weinig.
      
              * WebProcess/com.apple.WebProcess.sb.in:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148904 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      798919bf
    • zandobersek@gmail.com's avatar
      [GTK] Set up libPlatform.la · 25d930a1
      zandobersek@gmail.com authored
      https://bugs.webkit.org/show_bug.cgi?id=114168
      
      Reviewed by Martin Robinson.
      
      .: 
      
      * GNUmakefile.am: Define the platform_cppflags and platform_sources variables.
      
      Source/Platform: 
      
      * GNUmakefile.am: Set up the libPlatform.la static library to build the source files listed in platform_sources.
      As with the libPlatformGtk.la library, only the Source/WebCore/platform and its subdirectories are allowed to be
      searched for headers to include, providing a convenient way to detect any platform violations. These directories
      are listed in the platform_webcore_cppflags variable.
      
      Source/WebCore: 
      
      No new tests - no new functionality.
      
      * GNUmakefile.am: Also add the LevelDB-specific cppflags to the platform_cppflags if required as the LevelDB
      code is now built into the new libPlatform.la library.
      * GNUmakefile.list.am: Build a small set of non-GTK-specific platform source files that are already free of
      platform violations into the new libPlatform.la library.
      
      Source/WebKit/gtk: 
      
      * GNUmakefile.am: Add the new libPlatform.la library to the libwebkitgtk library.
      
      Source/WebKit2: 
      
      * GNUmakefile.am: Add the new libPlatform.la library to the libwebkitgtk library. Link the WebKitPluginProcess
      executable against libPlatform.la as well.
      
      Tools: 
      
      * GNUmakefile.am: Link the DumpRenderTree executable against both libPlatform.la and libPlatformGtk.la libraries.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148903 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      25d930a1
    • weinig@apple.com's avatar
      Hard code plug-in sandbox profile lookup directories and move · 9ffbf65b
      weinig@apple.com authored
      the profiles to WebKit2.
      
      Reviewed by Anders Carlsson.
      
      * PluginProcess/EntryPoint/mac/LegacyProcess/PluginProcessMain.mm:
      (WebKit::PluginProcessMainDelegate::getExtraInitializationData):
      * PluginProcess/EntryPoint/mac/XPCService/PluginServiceEntryPoint.mm:
      (WebKit::PluginServiceInitializerDelegate::getExtraInitializationData):
      * UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
      (WebKit::PluginProcessProxy::platformGetLaunchOptions):
      Stop passing the sandbox-profile-directory-path to the plug-in process.
      
      * PluginProcess/mac/PluginProcessMac.mm:
      (WebKit::loadSandboxProfileForDirectory):
      (WebKit::loadSandboxProfile):
      (WebKit::PluginProcess::initializeSandbox):
      Hard code the plug-in sandbox profile lookup to only look in the WebKit2 bundle
      and /System/Library/Sandbox/Profiles/.
      
      * Resources/PlugInSandboxProfiles: Added.
      Add profiles.
      
      * WebKit2.xcodeproj/project.pbxproj:
      Copy the profiles to the bundle.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148902 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9ffbf65b
    • jer.noble@apple.com's avatar
      Refactor creation of the full screen window into an (overridable) method. · e07d850d
      jer.noble@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=110369
      
      Reviewed by Eric Carlson.
      
      Add a new WKView method -(NSWindow)createFullScreenWindow which can be overridden
      by subclasses to provide custom full screen windows to the WKFullScreenWindowController.
      
      * UIProcess/API/mac/WKView.mm:
      (-[WKView fullScreenWindowController]):
      (-[WKView createFullScreenWindow]):
      * UIProcess/API/mac/WKViewPrivate.h:
      * UIProcess/mac/WKFullScreenWindowController.mm:
      (-[WKFullScreenWindowController initWithWindow:]):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148901 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e07d850d
    • ddkilzer@apple.com's avatar
      StringImpl.h should compile with -Wshorten-64-to-32 · c15b1e79
      ddkilzer@apple.com authored
      <http://webkit.org/b/114970>
      
      Reviewed by Darin Adler.
      
      Fixes the following warnings with -Wshorten-64-to-32:
      
          StringImpl.h:317:25: error: implicit conversion loses integer precision: 'uintptr_t' (aka 'unsigned long') to 'unsigned int' [-Werror,-Wshorten-64-to-32]
                  unsigned hash = reinterpret_cast<uintptr_t>(this);
                           ~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      
      * wtf/text/StringImpl.h:
      (WTF::StringImpl::StringImpl): Add static_cast<uint32_t>() to
      formalize taking the lower 32-bits of the pointer value on
      64-bit architectures.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148900 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c15b1e79
    • mark.lam@apple.com's avatar
      Fix broken 32-bit build to green the bots. · 8c24be5f
      mark.lam@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=114968.
      
      Unreviewed.
      
      Basically, I moved a JIT::emit_op_loop_hint() and JIT::emitSlow_op_loop_hint()
      into common code where they belong, instead of the 64-bit specific section.
      
      Also fixed some SH4 assertions failures which were also caused by
      https://bugs.webkit.org/show_bug.cgi?id=114963. Thanks to Julien Brianceau
      for pointing this out.
      
      * assembler/MacroAssemblerSH4.h:
      (JSC::MacroAssemblerSH4::branchAdd32):
      * jit/JITOpcodes.cpp:
      (JSC):
      (JSC::JIT::emit_op_loop_hint):
      (JSC::JIT::emitSlow_op_loop_hint):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148899 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8c24be5f
    • aestes@apple.com's avatar
      Range.getClientRects() should not include rects for partially selected elements · 1fab65fa
      aestes@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=76839
      
      Reviewed by Sam Weinig.
      
      Source/WebCore:
      
      CSSOM says that Range.getClientRects() should include the border boxes
      of each element selected by the range. However, we were also
      incorrectly including border boxes for partially selected elements.
      For instance, consider the following selection:
      
          <div>line one<br>line two</div>
          -------------
      
      The <div> is two lines tall, but only the first line is selected.
      Despite this, we'd include the <div>'s border box since its start tag
      was included in the selection.
      
      Fix this by excluding partially selected elements. This is accomplished
      by skipping over elements that come after the start boundary point of
      the range but are ancestors of the end boundary point.
      
      Added test cases to LayoutTests/fast/dom/Range/getClientRects.html.
      
      * dom/Range.cpp:
      (WebCore::Range::getBorderAndTextQuads):
      
      LayoutTests:
      
      * fast/dom/Range/getClientRects-expected.txt: Updated expected result.
      * fast/dom/Range/getClientRects.html: Added new test cases.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148898 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1fab65fa
    • oliver@apple.com's avatar
      2013-04-22 Oliver Hunt <oliver@apple.com> · 24ac817d
      oliver@apple.com authored
              Perform null check before trying to use the result of readline()
      
              RS=Gavin
      
              * jsc.cpp:
              (runInteractive):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148897 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      24ac817d
    • oliver@apple.com's avatar
      2013-04-22 Oliver Hunt <oliver@apple.com> · 0f935855
      oliver@apple.com authored
              Fix assertions to account for new Vector layout
      
              RS=Gavin
      
              * llint/LLIntData.cpp:
              (JSC::LLInt::Data::performAssertions):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148896 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0f935855
    • eric.carlson@apple.com's avatar
      Unreviewed Mac gardening. Update a test and results now that forced text · 3bc008c2
      eric.carlson@apple.com authored
      tracks are supported.
      
      * media/track/track-in-band-expected.txt:
      * media/track/track-in-band.html:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148895 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3bc008c2
    • commit-queue@webkit.org's avatar
      Crash on OS X when shift clicking outside of input · 284c20fd
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=104058
      
      Patch by Yi Shen <max.hong.shen@gmail.com> on 2013-04-22
      Reviewed by Chang Shu.
      
      Source/WebCore:
      
      Shift clicking outside of a focused div while removing the focused div from
      the dom tree at the same time may hit a null visible position, which should
      not be used to calculate the text distance with the new selection's start and
      end position. Otherwise, the browser may crash.
      
      Test: editing/selection/crash-on-shift-click.html
      
      * page/EventHandler.cpp:
      (WebCore::EventHandler::handleMousePressEventSingleClick):
      
      LayoutTests:
      
      Add test for shift click crash issue.
      
      * editing/selection/crash-on-shift-click-expected.txt: Added.
      * editing/selection/crash-on-shift-click.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148894 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      284c20fd
    • mark.lam@apple.com's avatar
      Change baseline JIT watchdog timer check to use the proper fast slow path · a61ec35b
      mark.lam@apple.com authored
      infrastructure.
      https://bugs.webkit.org/show_bug.cgi?id=114963.
      
      Reviewed by Oliver Hunt.
      
      SH4 parts contributed by Julien Brianceau.
      
      * assembler/ARMAssembler.h:
      * assembler/MacroAssemblerARM.h:
      * assembler/MacroAssemblerARMv7.h:
      * assembler/MacroAssemblerMIPS.h:
      (JSC::MacroAssemblerMIPS::branchAdd32):
      * assembler/MacroAssemblerSH4.h:
      (JSC::MacroAssemblerSH4::branchAdd32):
      * assembler/MacroAssemblerX86Common.h:
      * assembler/SH4Assembler.h:
      * jit/JIT.cpp:
      (JSC::JIT::emitEnterOptimizationCheck):
      (JSC::JIT::privateCompileSlowCases):
      * jit/JIT.h:
      (JSC::JIT::emitEnterOptimizationCheck):
      * jit/JITOpcodes.cpp:
      (JSC::JIT::emit_op_loop_hint):
      (JSC::JIT::emitSlow_op_loop_hint):
      (JSC::JIT::emit_op_enter):
      * jit/JITOpcodes32_64.cpp:
      (JSC::JIT::emit_op_enter):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148893 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a61ec35b
    • carlosgc@webkit.org's avatar
      Scrollbar should not depend on EventHandler, Frame and FrameView · b3fa3406
      carlosgc@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=114941
      
      Reviewed by Darin Adler.
      
      It's a layering violation that Scrollbar uses EventHandler, Frame
      and FrameView. Frame is used to get the EventHandler that is used
      to set mousePressed to false after a Scrollbar::mouseUp(). This is
      not really needed, since EventHandler already sets m_mousePressed
      to false when calling Scrollbar::mouseUp(). The PopupMenu windows
      implementation also calls Scrollbar::mouseUp(), but that scrollbar
      is not inside a FrameView.
      
      * platform/Scrollbar.cpp:
      (WebCore::Scrollbar::isScrollViewScrollbar):
      isScrollViewScrollbar() is a method of ScrollView so we don't need
      to cast to FrameView.
      (WebCore::Scrollbar::mouseUp): Remove EventHandler ussage.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148892 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b3fa3406
    • akling@apple.com's avatar
      Shrink baseline size of WTF::Vector on 64-bit by switching to unsigned capacity and size. · 8db55015
      akling@apple.com authored
      <http://webkit.org/b/97268>
      <rdar://problem/12376519>
      
      Reviewed by Sam Weinig.
      
      Source/JavaScriptCore:
      
      Update LLInt WTF::Vector offset constants to match the new memory layout.
      
      * llint/LowLevelInterpreter.asm:
      
      Source/WebCore:
      
      * CMakeLists.txt: Add a workaround for GCC 4.6.x in Release mode so it
      does not crash.
      
      Source/WTF:
      
      Shrink Vector by 8 bytes on 64-bit by using 32-bit capacity and size.
      Vector now inherits from VectorBuffer instead of having a VectorBuffer member;
      this is necessary for m_size to fall into the padding after the base class members.
      
      The WTF::Vector API still uses size_t.
      
      Based on Blink r148313 by <cevans@chromium.org>.
      
      * wtf/SizeLimits.cpp:
      * wtf/Vector.h:
      (WTF::VectorBufferBase::allocateBuffer):
      (WTF::VectorBufferBase::tryAllocateBuffer):
      (VectorBufferBase):
      (WTF::VectorBuffer::shouldReallocateBuffer):
      (Vector):
      (WTF::Vector::Vector):
      (WTF::Vector::capacity):
      (WTF::Vector::at):
      (WTF::Vector::data):
      (WTF::Vector::swap):
      (WTF::::Vector):
      (WTF::::reserveCapacity):
      (WTF::::tryReserveCapacity):
      (WTF::::reserveInitialCapacity):
      (WTF::::shrinkCapacity):
      (WTF::::releaseBuffer):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148891 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8db55015
    • commit-queue@webkit.org's avatar
      [BlackBerry] URL decode data: URLs before passing to the platform media player. · 602619f9
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=114887
      
      Patch by John Griggs <jgriggs@blackberry.com> on 2013-04-22
      Reviewed by Rob Buis.
      
      Pass data URL through URL decoding before passing to platform media player.  PR 313635.
      
      Reviewed internally by Liam Quinn
      
      * platform/graphics/blackberry/MediaPlayerPrivateBlackBerry.cpp:
      (WebCore::MediaPlayerPrivate::load):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148890 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      602619f9
    • jberlin@webkit.org's avatar
      Fix an incorrect rebaseline done in r148830. · e4f44ff5
      jberlin@webkit.org authored
      Instead of updating the cross platform wk2 results, r148830 should have added efl wk2
      specific results. Move the previous mac wk2 specific results into the mac wk2 platform
      directory.
      
      * platform/efl-wk2/loader/go-back-cached-main-resource-expected.txt: Renamed from LayoutTests/platform/wk2/loader/go-back-cached-main-resource-expected.txt.
      * platform/mac-wk2/loader/go-back-cached-main-resource-expected.txt: Downloaded from the mac-wk2 bots.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148889 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e4f44ff5
    • fpizlo@apple.com's avatar
      Memory barrier support should also ensure that we always do a compiler fence · eddb0860
      fpizlo@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=114934
      
      Reviewed by Michael Saboff.
              
      This is a cherry-pick merge of the WTF part of r148836 from the dfgFourthTier
      branch. It fixes a memory ordering bug that is likely asymptomatic, but
      nonetheless real: TCSpinLock expects that using a memoryBarrierBeforeUnlock()
      prior to setting lockword_ to 0 will ensure that the assignment to lockword_
      won't get floated above any of the stores in the critical section. While that
      memory barrier does indeed do the right thing on ARM, it doesn't do the right
      thing on other architectures: it turns into empty code that the compiler blows
      away, which is fine for the hardware since X86 won't reorder that store - but
      it's not fine for the compiler, which may still do its own reorderings.
              
      The WTF part of r148836 fixes this by using a compiler fence: an empty asm
      volatile block that is marked as clobbering memory.
              
      Instead of doing a separate surgical fix in trunk, I decided to merge the
      whole WTF change over, to make merging easier in the future.
              
      Performance testing of this change in dfgFourthTier showed no regression.
      
      * wtf/Atomics.h:
      (WTF::compilerFence):
      (WTF::armV7_dmb):
      (WTF::armV7_dmb_st):
      (WTF::loadLoadFence):
      (WTF::loadStoreFence):
      (WTF::storeLoadFence):
      (WTF::storeStoreFence):
      (WTF::memoryBarrierAfterLock):
      (WTF::memoryBarrierBeforeUnlock):
      (WTF::x86_mfence):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148888 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      eddb0860
    • carlosgc@webkit.org's avatar
      [GTK] Add webkit_web_context_set_disk_cache_directory to WebKit2 GTK+ API · 340e4960
      carlosgc@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=111848
      
      Reviewed by Anders Carlsson.
      
      This allow applications to set a custom directory for the disk
      cache.
      
      * UIProcess/API/gtk/WebKitWebContext.cpp:
      (webkit_web_context_set_disk_cache_directory):
      * UIProcess/API/gtk/WebKitWebContext.h:
      * UIProcess/API/gtk/docs/webkit2gtk-sections.txt: Add new symbol.
      * UIProcess/API/gtk/tests/TestMain.cpp:
      (removeNonEmptyDirectory):
      (main): Use a different temporary disk cache directory for every
      test.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148887 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      340e4960
    • carlosgc@webkit.org's avatar
      [SOUP] Soup disk cache should respect the diskCacheDirectory from the process initial parameters · e3e1391b
      carlosgc@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=111845
      
      Reviewed by Anders Carlsson.
      
      Move the cache initialization to platformInitializeWebProcess() to
      create the cache using the directory received from the UI
      process. This allows to add public API to set a different disk
      cache directory from the UI process.
      
      * UIProcess/efl/WebContextEfl.cpp:
      (WebKit::WebContext::platformDefaultDiskCacheDirectory): Return
      default disk cache directory.
      * UIProcess/gtk/WebContextGtk.cpp:
      (WebKit::WebContext::platformDefaultDiskCacheDirectory): Ditto.
      * WebProcess/efl/WebProcessMainEfl.cpp:
      (WebKit::WebProcessMainEfl): Remove soup cache initialization.
      * WebProcess/gtk/WebProcessMainGtk.cpp:
      (WebKit::WebProcessMainGtk): Ditto.
      * WebProcess/soup/WebProcessSoup.cpp:
      (WebKit::WebProcess::platformInitializeWebProcess): Initialize
      soup cache.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148886 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e3e1391b
    • commit-queue@webkit.org's avatar
      [BlackBerry] Update BatteryClientBlackBerry to use our port's new listener interface · 790745ad
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=114892
      
      Patch by Otto Derek Cheung <otcheung@rim.com> on 2013-04-22
      Reviewed by Rob Buis.
      PR 328147
      
      Modify the client so we only have one listener for battery change events.
      The dispatch of different event listeners are handled by BatteryController.
      
      * WebCoreSupport/BatteryClientBlackBerry.cpp:
      (WebCore::BatteryClientBlackBerry::BatteryClientBlackBerry):
      (WebCore::BatteryClientBlackBerry::startUpdating):
      (WebCore::BatteryClientBlackBerry::stopUpdating):
      (WebCore::BatteryClientBlackBerry::onStatusChange):
      * WebCoreSupport/BatteryClientBlackBerry.h:
      (BatteryClientBlackBerry):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148885 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      790745ad
    • ddkilzer@apple.com's avatar
      WTF::AtomicString::find() should take unsigned 'start' argument · 45714576
      ddkilzer@apple.com authored
      <http://webkit.org/b/114958>
      
      Reviewed by Darin Adler.
      
      Fixes the following warnings with -Wshorten-64-to-32:
      
          AtomicString.h:113:76: error: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Werror,-Wshorten-64-to-32]
              size_t find(UChar c, size_t start = 0) const { return m_string.find(c, start); }
                                                                    ~~~~~~~~         ^~~~~
          AtomicString.h:115:35: error: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Werror,-Wshorten-64-to-32]
                  { return m_string.find(s, start, caseSentitive); }
                           ~~~~~~~~         ^~~~~
          AtomicString.h:117:35: error: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Werror,-Wshorten-64-to-32]
                  { return m_string.find(s, start, caseSentitive); }
                           ~~~~~~~~         ^~~~~
      
      * wtf/text/AtomicString.h:
      (WTF::AtomicString::find): Change type of 'start' argument from
      size_t to unsigned.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148884 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      45714576
    • commit-queue@webkit.org's avatar
      [WK2] Fix build warning when GESTURE_EVENTS is ON. · 29fdaffe
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=114812
      
      Patch by Krzysztof Wolanski <k.wolanski@samsung.com> on 2013-04-22
      Reviewed by Andreas Kling.
      
      Handle GestureSingleTap in the event type switch.
      
      * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
      (WebKit::NetscapePlugin::platformHandleMouseEvent):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148883 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      29fdaffe
    • commit-queue@webkit.org's avatar
      Update layout test verifying Tab behaves correctly after linking to fragment ID · 3f2c6e0d
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=114645
      
      Patch by Mario Sanchez Prada <mario.prada@samsung.com> on 2013-04-22
      Reviewed by Chris Fleizach.
      
      * fast/dom/fragment-activation-focuses-target.html: Updated test.
      * fast/dom/fragment-activation-focuses-target-expected.txt: Updated expectations.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148882 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3f2c6e0d
    • commit-queue@webkit.org's avatar
      fix build warning(unused parameter) · f47a9b27
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=114855
      
      Patch by Xuefei Ren <xren@blackberry.com> on 2013-04-22
      Reviewed by Rob Buis.
      
      Source/WebCore:
      
      remove warning(unused parameter) in
      Source/WebCore/platform/graphics/blackberry
      
      * platform/graphics/blackberry/CanvasLayerWebKitThread.cpp:
      (WebCore::CanvasLayerCompositingThreadClient::drawTextures):
      (WebCore::CanvasLayerCompositingThreadClient::deleteTextures):
      (WebCore::CanvasLayerCompositingThreadClient::commitPendingTextureUploads):
      * platform/graphics/blackberry/FontBlackBerry.cpp:
      (WebCore::Font::offsetForPositionForComplexText):
      * platform/graphics/blackberry/FontCacheBlackBerry.cpp:
      (WebCore::FontCache::getSimilarFontPlatformData):
      (WebCore::FontCache::getTraitsInFamily):
      * platform/graphics/blackberry/GlyphPageTreeNodeBlackBerry.cpp:
      (WebCore::GlyphPage::fill):
      * platform/graphics/blackberry/GraphicsContext3DBlackBerry.cpp:
      (WebCore::GraphicsContext3D::ImageExtractor::extractImage):
      * platform/graphics/blackberry/GraphicsContextBlackBerry.cpp:
      (WebCore::GraphicsContext::drawConvexPolygon):
      (WebCore::GraphicsContext::fillRect):
      (WebCore::GraphicsContext::fillRoundedRect):
      (WebCore::GraphicsContext::roundToDevicePixels):
      (WebCore::GraphicsContext::setPlatformShadow):
      (WebCore::GraphicsContext::clipConvexPolygon):
      (WebCore::GraphicsContext::setURLForRect):
      (WebCore::GraphicsContext::setPlatformStrokeColor):
      (WebCore::GraphicsContext::setPlatformFillColor):
      (WebCore::GraphicsContext::setPlatformCompositeOperation):
      * platform/graphics/blackberry/ImageBlackBerry.cpp:
      (WebCore::BitmapImage::draw):
      (WebCore::Image::drawPattern):
      * platform/graphics/blackberry/ImageBufferBlackBerry.cpp:
      (WebCore::flushAndDraw):
      (WebCore::ImageBuffer::ImageBuffer):
      (WebCore::ImageBuffer::copyImage):
      (WebCore::ImageBuffer::draw):
      (WebCore::ImageBuffer::platformTransformColorSpace):
      * platform/graphics/blackberry/LayerTiler.cpp:
      (WebCore::LayerTiler::drawTile):
      * platform/graphics/blackberry/PathBlackBerry.cpp:
      (WebCore::GraphicsContext::drawFocusRing):
      (WebCore::GraphicsContext::clipPath):
      * platform/graphics/blackberry/PatternBlackBerry.cpp:
      (WebCore::Pattern::platformPattern):
      
      Source/WebKit/blackberry:
      
      remove warning(unused parameter) in
      Source/WebKit/blackberry/WebKitSupport/InputHandler.cpp
      
      * WebKitSupport/InputHandler.cpp:
      (BlackBerry::WebKit::InputHandler::extractedTextRequest):
      
      Tools:
      
      remove warning(unused parameter) in
      Tools/DumpRenderTree/blackberry/EventSender.cpp
      
      * DumpRenderTree/blackberry/EventSender.cpp:
      (getDragModeCallback):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148881 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f47a9b27
    • commit-queue@webkit.org's avatar
      [BlackBerry] ASSERT in FrameLoaderClient::convertMainResourceLoadToDownload · 90b768b0
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=114741
      
      Patch by Xan Lopez <xlopez@igalia.com> on 2013-04-22
      Reviewed by George Staikos.
      
      Consider the case where a ResourceHandle won't have a FilterStream
      object associated (for example, Blob objects) instead of ASSERTing
      pointlessly when asking our network layer for such an object.
      
      This partially fixes fast/dom/HTMLAnchorElement/anchor-nodownload-set.html
      
      * WebCoreSupport/FrameLoaderClientBlackBerry.cpp:
      (WebCore::FrameLoaderClientBlackBerry::convertMainResourceLoadToDownload):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148880 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      90b768b0
    • mifenton@rim.com's avatar
      [BlackBerry] Add additional datalist support. · bb2428bc
      mifenton@rim.com authored
      https://bugs.webkit.org/show_bug.cgi?id=114883
      
      Reviewed by Rob Buis.
      
      PR 210083.
      
      Source/WebCore:
      
      Extend support for datalist to include all non-popup input types.
      
      Re-enabling fast/forms/datalist/input-list
      
      Internally Reviewed by Otto Cheung.
      
      * platform/blackberry/RenderThemeBlackBerry.cpp:
      (WebCore::RenderThemeBlackBerry::supportsDataListUI):
      
      Source/WebKit/blackberry:
      
      Properly set state when opening a Date/Time popup and simplify
      the logic for showing datalist options.
      
      Internally Reviewed by Otto Cheung.
      
      * WebKitSupport/InputHandler.cpp:
      (BlackBerry::WebKit::InputHandler::openDatePopup):
      (BlackBerry::WebKit::InputHandler::showTextInputTypeSuggestionBox):
      
      LayoutTests:
      
      Fix results for fast/forms/datalist/input-list.
      
      Internally Reviewed by Otto Cheung.
      
      * platform/blackberry/fast/forms/datalist/input-list-expected.txt: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148879 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bb2428bc
    • abucur@adobe.com's avatar
      [CSS Regions] Add tests for lists and counters · 066219f9
      abucur@adobe.com authored
      https://bugs.webkit.org/show_bug.cgi?id=103975
      
      Reviewed by Andreas Kling.
      
      Lists and counters work correctly with regions since r148026 (http://trac.webkit.org/changeset/148026).
      This patch adds W3C formatted ref tests to our battery.
      
      * fast/regions/counters/extract-list-items-001-expected.html: Added.
      * fast/regions/counters/extract-list-items-001.html: Added.
      * fast/regions/counters/extract-list-items-002-expected.html: Added.
      * fast/regions/counters/extract-list-items-002.html: Added.
      * fast/regions/counters/extract-list-items-003-expected.html: Added.
      * fast/regions/counters/extract-list-items-003.html: Added.
      * fast/regions/counters/extract-list-items-004-expected.html: Added.
      * fast/regions/counters/extract-list-items-004.html: Added.
      * fast/regions/counters/extract-list-items-005-expected.html: Added.
      * fast/regions/counters/extract-list-items-005.html: Added.
      * fast/regions/counters/extract-list-items-006-expected.html: Added.
      * fast/regions/counters/extract-list-items-006.html: Added.
      * fast/regions/counters/extract-list-items-007-expected.html: Added.
      * fast/regions/counters/extract-list-items-007.html: Added.
      * fast/regions/counters/extract-list-items-008-expected.html: Added.
      * fast/regions/counters/extract-list-items-008.html: Added.
      * fast/regions/counters/extract-list-items-009-expected.html: Added.
      * fast/regions/counters/extract-list-items-009.html: Added.
      * fast/regions/counters/extract-list-items-010-expected.html: Added.
      * fast/regions/counters/extract-list-items-010.html: Added.
      * fast/regions/counters/extract-list-items-011-expected.html: Added.
      * fast/regions/counters/extract-list-items-011.html: Added.
      * fast/regions/counters/extract-list-items-012-expected.html: Added.
      * fast/regions/counters/extract-list-items-012.html: Added.
      * fast/regions/counters/extract-list-items-013-expected.html: Added.
      * fast/regions/counters/extract-list-items-013.html: Added.
      * fast/regions/counters/extract-list-items-014-expected.html: Added.
      * fast/regions/counters/extract-list-items-014.html: Added.
      * fast/regions/counters/extract-list-items-015-expected.html: Added.
      * fast/regions/counters/extract-list-items-015.html: Added.
      * fast/regions/counters/extract-numbered-paragraphs-divs-001-expected.html: Added.
      * fast/regions/counters/extract-numbered-paragraphs-divs-001.html: Added.
      * fast/regions/counters/extract-numbered-paragraphs-divs-002-expected.html: Added.
      * fast/regions/counters/extract-numbered-paragraphs-divs-002.html: Added.
      * fast/regions/counters/extract-numbered-paragraphs-expected.html: Added.
      * fast/regions/counters/extract-numbered-paragraphs.html: Added.
      * fast/regions/counters/extract-numbered-spans-display-only-some-expected.html: Added.
      * fast/regions/counters/extract-numbered-spans-display-only-some.html: Added.
      * fast/regions/counters/extract-ordered-lists-in-regions-001-expected.html: Added.
      * fast/regions/counters/extract-ordered-lists-in-regions-001.html: Added.
      * fast/regions/counters/extract-ordered-lists-in-regions-002-expected.html: Added.
      * fast/regions/counters/extract-ordered-lists-in-regions-002.html: Added.
      * fast/regions/counters/extract-ordered-lists-in-regions-003-expected.html: Added.
      * fast/regions/counters/extract-ordered-lists-in-regions-003.html: Added.
      * fast/regions/counters/extract-ordered-lists-in-regions-explicit-counters-001-expected.html: Added.
      * fast/regions/counters/extract-ordered-lists-in-regions-explicit-counters-001.html: Added.
      * fast/regions/counters/extract-ordered-lists-in-regions-explicit-counters-002-expected.html: Added.
      * fast/regions/counters/extract-ordered-lists-in-regions-explicit-counters-002.html: Added.
      * fast/regions/counters/extract-ordered-lists-in-regions-explicit-counters-003-expected.html: Added.
      * fast/regions/counters/extract-ordered-lists-in-regions-explicit-counters-003.html: Added.
      * fast/regions/counters/extract-ordered-lists-in-regions-explicit-counters-004-expected.html: Added.
      * fast/regions/counters/extract-ordered-lists-in-regions-explicit-counters-004.html: Added.
      * fast/regions/counters/extract-ordered-lists-in-regions-explicit-counters-005-expected.html: Added.
      * fast/regions/counters/extract-ordered-lists-in-regions-explicit-counters-005.html: Added.
      * fast/regions/counters/extract-unordered-lists-in-regions-expected.html: Added.
      * fast/regions/counters/extract-unordered-lists-in-regions.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148878 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      066219f9
    • gyuyoung.kim@samsung.com's avatar
      Unreviewed, gardening. css3-device-adaptation doesn't work for WK1 EFL properly. · 5a49c030
      gyuyoung.kim@samsung.com authored
      * platform/efl-wk1/TestExpectations: Added tests related to css3-device-adaptation.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148877 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5a49c030
    • ch.dumez@sisa.samsung.com's avatar
      Unreviewed EFL gardening. · 5d1794db
      ch.dumez@sisa.samsung.com authored
      Mark IndexedDB test as crashing in Release mode and fix duplicate line in
      TestExpectations.
      
      * platform/efl/TestExpectations:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148876 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5d1794db
    • gyuyoung.kim@samsung.com's avatar
      Unreviewed, EFL WK1 gardening. Skip pasteboard tests because EFL WK1 doesn't support it yet. · 99e2e7b9
      gyuyoung.kim@samsung.com authored
      * platform/efl-wk1/TestExpectations:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148875 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      99e2e7b9
    • ch.dumez@sisa.samsung.com's avatar
      Unreviewed EFL gardening. · 83fce209
      ch.dumez@sisa.samsung.com authored
      Skip several compositing test cases on EFL WK2 due to regression in
      r148748.
      
      * platform/efl-wk2/TestExpectations:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148874 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      83fce209
    • ch.dumez@sisa.samsung.com's avatar
      Unreviewed EFL gardening. · 41cb1a60
      ch.dumez@sisa.samsung.com authored
      Add several regressions to TestExpectations to make the tree green.
      
      * platform/efl-wk2/TestExpectations:
      * platform/efl/TestExpectations:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148873 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      41cb1a60
    • ch.dumez@sisa.samsung.com's avatar
      Unreviewed EFL gardening. · 86b08099
      ch.dumez@sisa.samsung.com authored
      Fix expected result for several test cases.
      
      * platform/efl/TestExpectations:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148872 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      86b08099
    • zandobersek@gmail.com's avatar
      Unreviewed GTK gardening. · 7b503afa
      zandobersek@gmail.com authored
      * platform/gtk/TestExpectations: Unskipping the fast/sub-pixel layout tests.
      Removing failure expectations for tests that are passing after the subpixel layout was enabled.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148871 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7b503afa
    • commit-queue@webkit.org's avatar
      [BlackBerry] Add dummy implementations of DragData::droppedFileSystemId() · 2038171e
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=114861
      
      Patch by Alberto Garcia <agarcia@igalia.com> on 2013-04-22
      Reviewed by Carlos Garcia Campos.
      
      * platform/blackberry/DragDataBlackBerry.cpp:
      (WebCore):
      (WebCore::DragData::droppedFileSystemId):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148870 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2038171e