1. 07 Apr, 2011 40 commits
    • hyatt@apple.com's avatar
      https://bugs.webkit.org/show_bug.cgi?id=57736 · 1d8cc948
      hyatt@apple.com authored
              
      Reviewed by Dan Bernstein.
      
      Crash on openstreetmap.org while using the map. Fix a bad interaction between the positioned movement layout
      optimization and the simplified layout optimization that could lead to blocks remaining marked as dirty when
      layout finished. This would eventually lead to an inability to properly determine the correct layout root and
      would cause a deleted root to be used later on.
      
      Added fast/block/positioning/complex-positioned-movement.html.
      
      Source/WebCore: 
      
      * page/FrameView.cpp:
      (WebCore::FrameView::scheduleRelayoutOfSubtree):
      Add asserts to catch cases in the future where a layout root is set that has a dirty containing block.
          
      * rendering/RenderBlock.cpp:
      (WebCore::RenderBlock::simplifiedLayout):
      Change simplified layout so that the positioned movement optimization no longer clears the other layout
      flags. This will ensure that we still lay out our descendants if they need it.
              
      (WebCore::RenderBlock::layoutPositionedObjects):
      Changed to clear our layout flags now if the positioned movement is successful, since tryLayoutDoingPositionedMovementOnly
      no longer does the clear.
          
      * rendering/RenderBox.h:
      (WebCore::RenderBox::tryLayoutDoingPositionedMovementOnly):
      tryLayoutDoingPositionedMovementOnly now returns a boolean indicating success or failure.  On success it no longer
      does setNeedsLayout(false), but instead will let the caller take care of it. This way the caller can still look at
      the other flags in case other kinds of layout are still needed.
          
      * rendering/RenderObject.h:
      (WebCore::RenderObject::setNeedsPositionedMovementLayout):
      (WebCore::RenderObject::setNeedsSimplifiedNormalFlowLayout):
      Changed these methods to only set their respective flags and not to try to be clever about avoiding propagation.
      
      LayoutTests: 
      
      * fast/block/positioning/complex-positioned-movement.html: Added.
      * platform/mac/fast/block/positioning/complex-positioned-movement-expected.checksum: Added.
      * platform/mac/fast/block/positioning/complex-positioned-movement-expected.png: Added.
      * platform/mac/fast/block/positioning/complex-positioned-movement-expected.txt: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83221 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1d8cc948
    • scherkus@chromium.org's avatar
      2011-04-07 Anna Cavender <annacc@chromium.org> · 26898096
      scherkus@chromium.org authored
              Reviewed by Eric Carlson.
      
              Setup ENABLE(TRACK) feature define
              https://bugs.webkit.org/show_bug.cgi?id=53556
      
              * configure.ac:
      
      2011-04-07  Anna Cavender  <annacc@chromium.org>
      
              Reviewed by Eric Carlson.
      
              Setup ENABLE(TRACK) feature define
              https://bugs.webkit.org/show_bug.cgi?id=53556
      
              * Configurations/FeatureDefines.xcconfig:
      
      2011-04-07  Anna Cavender  <annacc@chromium.org>
      
              Reviewed by Eric Carlson.
      
              Setup ENABLE(TRACK) feature define + initial HTMLTrackElement
              https://bugs.webkit.org/show_bug.cgi?id=53556
      
              No new tests. No real functionality added just yet.
      
              * CMakeLists.txt:
              * Configurations/FeatureDefines.xcconfig:
              * DerivedSources.make:
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.xcodeproj/project.pbxproj:
              * features.pri:
              * html/HTMLAttributeNames.in:
              * html/HTMLTagNames.in:
              * html/HTMLTrackElement.cpp: Added.
              (WebCore::HTMLTrackElement::HTMLTrackElement):
              (WebCore::HTMLTrackElement::create):
              (WebCore::HTMLTrackElement::insertedIntoTree):
              (WebCore::HTMLTrackElement::willRemove):
              (WebCore::HTMLTrackElement::src):
              (WebCore::HTMLTrackElement::setSrc):
              (WebCore::HTMLTrackElement::kind):
              (WebCore::HTMLTrackElement::setKind):
              (WebCore::HTMLTrackElement::srclang):
              (WebCore::HTMLTrackElement::setSrclang):
              (WebCore::HTMLTrackElement::label):
              (WebCore::HTMLTrackElement::setLabel):
              (WebCore::HTMLTrackElement::isDefault):
              (WebCore::HTMLTrackElement::setIsDefault):
              (WebCore::HTMLTrackElement::isURLAttribute):
              * html/HTMLTrackElement.h: Added.
              * html/HTMLTrackElement.idl: Added.
      
      2011-04-07  Anna Cavender  <annacc@chromium.org>
      
              Reviewed by Eric Carlson.
      
              Setup ENABLE(TRACK) feature define + initial HTMLTrackElement
              https://bugs.webkit.org/show_bug.cgi?id=53556
      
              * WebKit.xcodeproj/project.pbxproj:
      
      2011-04-07  Anna Cavender  <annacc@chromium.org>
      
              Reviewed by Eric Carlson.
      
              Setup ENABLE(TRACK) feature define
              https://bugs.webkit.org/show_bug.cgi?id=53556
      
              * features.gypi:
      
      2011-04-07  Anna Cavender  <annacc@chromium.org>
      
              Reviewed by Eric Carlson.
      
              Setup ENABLE(TRACK) feature define
              https://bugs.webkit.org/show_bug.cgi?id=53556
      
              * Configurations/FeatureDefines.xcconfig:
      
      2011-04-07  Anna Cavender  <annacc@chromium.org>
      
              Reviewed by Eric Carlson.
      
              Setup ENABLE(TRACK) feature define
              https://bugs.webkit.org/show_bug.cgi?id=53556
      
              * Configurations/FeatureDefines.xcconfig:
      
      2011-04-07  Anna Cavender  <annacc@chromium.org>
      
              Reviewed by Eric Carlson.
      
              Setup ENABLE(TRACK) feature define
              https://bugs.webkit.org/show_bug.cgi?id=53556
      
              * Scripts/build-webkit:
      
      2011-04-07  Anna Cavender  <annacc@chromium.org>
      
              Reviewed by Eric Carlson.
      
              Setup ENABLE(TRACK) feature define
              https://bugs.webkit.org/show_bug.cgi?id=53556
      
              * win/tools/vsprops/FeatureDefines.vsprops:
              * win/tools/vsprops/FeatureDefinesCairo.vsprops:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83220 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      26898096
    • tony@chromium.org's avatar
      2011-04-07 Tony Chang <tony@chromium.org> · 39665f62
      tony@chromium.org authored
              Reviewed by Eric Seidel.
      
              update DRT to embed checksums in png files
              https://bugs.webkit.org/show_bug.cgi?id=57871
      
              We insert the bytes for the comment in printPNG rather than at encode
              time because each platform does its own PNG encoding (either using CG
              or cairo).  Putting this in pringPNG avoids having to duplicate this
              code, although it's not as clean as doing it at encoding time.
      
              We insert the comment right after the IHDR chunk of the PNG.
      
              * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
              * DumpRenderTree/CyclicRedundancyCheck.cpp: Added.
              (makeCrcTable): Ported from LayoutTests/fast/canvas/webgl/resources/pnglib.js
              (computeCrc): Ported from LayoutTests/fast/canvas/webgl/resources/pnglib.js
              * DumpRenderTree/CyclicRedundancyCheck.h: Added.
              * DumpRenderTree/PixelDumpSupport.cpp:
              (dumpWebViewAsPixelsAndCompareWithExpected):
              (convertChecksumToPNGComment): Generate the bytes to insert.
              (printPNG): Insert the png comment before the first IDAT section.
              * DumpRenderTree/PixelDumpSupport.h:
              * DumpRenderTree/cairo/PixelDumpSupportCairo.cpp:
              (printPNG):
              (dumpBitmap):
              * DumpRenderTree/cg/PixelDumpSupportCG.cpp:
              (printPNG):
              (dumpBitmap):
              * DumpRenderTree/win/DumpRenderTree.vcproj:
              * GNUmakefile.am:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83219 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      39665f62
    • mrobinson@webkit.org's avatar
      2011-04-07 Martin Robinson <mrobinson@igalia.com> · 9cf9ca28
      mrobinson@webkit.org authored
              Fix the WebKit2 GTK+ build for older versions of GTK+.
      
              * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp: Include the GtkVersioning.h header.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83218 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9cf9ca28
    • abarth@webkit.org's avatar
      2011-04-07 Adam Barth <abarth@webkit.org> · b1c25b1d
      abarth@webkit.org authored
              Fix whitespace in GNUmakefile.am.
      
              * GNUmakefile.am:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83217 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b1c25b1d
    • mitz@apple.com's avatar
      <rdar://problem/9018212> Underline thickness is not uniform under non-integral scale factor · bd95d94d
      mitz@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=58083
      
      Reviewed by Simon Fraser.
      
      Source/WebCore: 
      
      Test: fast/text/decorations-transformed.html
      
      * platform/graphics/GraphicsContext.h: Added a RoundingMode enum with two values. RoundAllSides
      is the existing rounding mode, where each side of the rectangle snaps to the nearest pixel
      gridline. RoundOriginAndDimensions snaps the origin to the nearest pixel gridpoint and rounds
      the width and the height. In this new mode, translating a rectangle in user space never changes
      its dimensions in device pixels.
      * platform/graphics/cg/GraphicsContextCG.cpp:
      (WebCore::GraphicsContext::roundToDevicePixels): Implemented RoundOriginAndDimensions.
      (WebCore::GraphicsContext::drawLineForText): Use RoundOriginAndDimensions, thus ensuring that
      all underlines have the same thickness in device pixels.
      * platform/graphics/openvg/GraphicsContextOpenVG.cpp:
      (WebCore::GraphicsContext::roundToDevicePixels): Added RoundingMode parameter, but did not implement it.
      * platform/graphics/qt/GraphicsContextQt.cpp:
      (WebCore::GraphicsContext::roundToDevicePixels): Ditto.
      * platform/graphics/skia/GraphicsContextSkia.cpp:
      (WebCore::GraphicsContext::roundToDevicePixels): Ditto.
      * platform/graphics/wince/GraphicsContextWinCE.cpp:
      (WebCore::GraphicsContext::roundToDevicePixels): Ditto.
      * platform/graphics/wx/GraphicsContextWx.cpp:
      (WebCore::GraphicsContext::roundToDevicePixels): Ditto.
      * rendering/InlineTextBox.cpp:
      (WebCore::InlineTextBox::paintDecoration):
      
      LayoutTests: 
      
      * fast/text/decorations-transformed.html: Added.
      * platform/mac/fast/text/decorations-transformed-expected.checksum: Added.
      * platform/mac/fast/text/decorations-transformed-expected.png: Added.
      * platform/mac/fast/text/decorations-transformed-expected.txt: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83216 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bd95d94d
    • mrobinson@webkit.org's avatar
      2011-04-07 Amruth Raj <amruthraj@motorola.com> and Martin Robinson <mrobinson@igalia.com> · 3655e97c
      mrobinson@webkit.org authored
              Reviewed by Kenneth Rohde Christiansen.
      
              [GTK] Implement SharedMemory for WebKit2
              https://bugs.webkit.org/show_bug.cgi?id=49791
      
              Share the SharedMemory, Attachment and Connection implementations with the Qt port.
              Both implementation are, in fact, general Unix implementations using standard Unix
              domain sockets and sendmsg / recvmsg. This should reduce the amount of duplicated code
              greatly and lay the groundwork for GTK+/Qt implementations for other operating systems.
      
              * GNUmakefile.am: Replaced GTK+ versions of files with the Unix ones.
              * Platform/CoreIPC/ArgumentDecoder.cpp: Extended Qt #ifdefs to include GTK.
              (CoreIPC::ArgumentDecoder::~ArgumentDecoder):
              * Platform/CoreIPC/ArgumentEncoder.cpp: Ditto.
              (CoreIPC::ArgumentEncoder::~ArgumentEncoder):
              * Platform/CoreIPC/Attachment.h: Ditto.
              * Platform/CoreIPC/Connection.h: Combined the GTK+ and Qt sections.
              * Platform/CoreIPC/unix/AttachmentUnix.cpp: Renamed from Source/WebKit2/Platform/CoreIPC/qt/AttachmentQt.cpp.
              * Platform/CoreIPC/unix/ConnectionUnix.cpp: Renamed from Source/WebKit2/Platform/CoreIPC/qt/ConnectionQt.cpp.
              * Platform/unix/SharedMemoryUnix.cpp: Renamed from Source/WebKit2/Platform/qt/SharedMemoryQt.cpp.
              * UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp:
              (WebKit::ProcessLauncher::launchProcess): Use SOCK_DGRAM instead of SOCK_STREAM to match Qt.
              * WebKit2.pro: Updated source list to reflect file renaming.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83215 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3655e97c
    • jer.noble@apple.com's avatar
      Unreviewed; Add the media/media-fullscreen-inline.html test to the mac-snowleopard Skipped list. · ac5ea723
      jer.noble@apple.com authored
      The legacy full screen API now redirects to the new full screen API, breaking the media-fullscreen-inline.html
      test.
      
      * platform/mac-snowleopard/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83214 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ac5ea723
    • vitalyr@chromium.org's avatar
      2011-04-06 Vitaly Repeshko <vitalyr@chromium.org> · 0ac61fe5
      vitalyr@chromium.org authored
              Reviewed by Nate Chapin.
      
              [V8] Remove custom DOMImplementation getter on Document.
              https://bugs.webkit.org/show_bug.cgi?id=57991
      
              The custom getter is no longer required because DOMImplementation
              objects are now created per document.
      
              Test: fast/dom/DOMImplementation/implementation-identity.html
      
              * bindings/scripts/CodeGeneratorV8.pm:
              * bindings/v8/custom/V8DocumentCustom.cpp:
              * dom/Document.idl:
      
      2011-04-06  Vitaly Repeshko  <vitalyr@chromium.org>
      
              Reviewed by Nate Chapin.
      
              [V8] Remove custom DOMImplementation getter on Document.
              https://bugs.webkit.org/show_bug.cgi?id=57991
      
              * fast/dom/DOMImplementation/implementation-identity-expected.txt: Added.
              * fast/dom/DOMImplementation/implementation-identity.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83213 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0ac61fe5
    • barraclough@apple.com's avatar
      Fix a couple of typos in comments that Darin spotted. · b72cb74a
      barraclough@apple.com authored
      * jit/JITOpcodes.cpp:
      (JSC::JIT::emit_op_not):
      * runtime/JSImmediate.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83212 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b72cb74a
    • ap@apple.com's avatar
      Reviewed by Brian Weinstein. · df7df08b
      ap@apple.com authored
              REGRESSION (r83081): Use of deallocated memory in WebEditorClient::respondToChangedSelection()
              https://bugs.webkit.org/show_bug.cgi?id=58082
      
              * WebProcess/WebCoreSupport/WebEditorClient.cpp: (WebKit::WebEditorClient::respondToChangedSelection):
              Now that the Range is used outside the full expression where it's created, it needs to be
              protected with RefPtr.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83211 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      df7df08b
    • commit-queue@webkit.org's avatar
      2011-04-07 Steve Lacey <sjl@chromium.org> · d62e44d7
      commit-queue@webkit.org authored
              Reviewed by Eric Carlson.
      
              Make various video layout tests platform independent by selecting an appropriate media file.
      
              Various layout tests depend on mp4 files.
              https://bugs.webkit.org/show_bug.cgi?id=57804
      
              * http/tests/media/remove-while-loading.html:
              * http/tests/media/video-load-and-stall.cgi:
              * http/tests/media/video-play-stall-before-meta-data.html:
              * http/tests/media/video-play-stall-seek.html:
              * http/tests/media/video-play-stall.html:
              * http/tests/media/video-seekable-stall.html:
              * media/media-file.js:
              (mimeTypeForFile):
              (stripExtension):
              * platform/chromium/test_expectations.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83210 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d62e44d7
    • inferno@chromium.org's avatar
      2011-04-07 Sergey Glazunov <serg.glazunov@gmail.com> · 147aa3d8
      inferno@chromium.org authored
              Reviewed by Dimitri Glazkov.
      
              setHasID() is only called for styled elements
              https://bugs.webkit.org/show_bug.cgi?id=57267
      
              Test: fast/dom/non-styled-element-id-crash.html
      
              * dom/Element.cpp:
              (WebCore::Element::attributeChanged):
              (WebCore::Element::idAttributeChanged):
              * dom/Element.h:
              * dom/StyledElement.cpp:
              (WebCore::StyledElement::parseMappedAttribute):
      2011-04-07  Sergey Glazunov  <serg.glazunov@gmail.com>
      
              Reviewed by Dimitri Glazkov.
      
              setHasID() is only called for styled elements
              https://bugs.webkit.org/show_bug.cgi?id=57267
      
              * fast/dom/non-styled-element-id-crash-expected.txt: Added.
              * fast/dom/non-styled-element-id-crash.html: Added.
              * svg/custom/embedded-svg-disallowed-in-dashboard.xml: Fix the failing test.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83209 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      147aa3d8
    • jer.noble@apple.com's avatar
      2011-04-07 Jer Noble <jer.noble@apple.com> · b14cd6d7
      jer.noble@apple.com authored
              Reviewed by Eric Carlson.
      
              HTMLVideoElement::webkitEnterFullscreen does not use new Full Screen API when available.
              https://bugs.webkit.org/show_bug.cgi?id=58070
      
              Make the HTMLMediaElement full screen functions call into the new Full Screen API when
              FULLSCREEN_API is enabled.
      
              * html/HTMLMediaElement.cpp:
              (WebCore::HTMLMediaElement::enterFullscreen):
              (WebCore::HTMLMediaElement::exitFullscreen):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83208 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b14cd6d7
    • bweinstein@apple.com's avatar
      Fix a typo in the Skipped list from r83203. · 1c3b1d07
      bweinstein@apple.com authored
      * platform/win-wk2/Skipped:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83207 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1c3b1d07
    • mrowe@apple.com's avatar
      <rdar://problem/9251566> WebBackForwardList::createCFDictionaryRepresentation's current item index · 51676c80
      mrowe@apple.com authored
      doesn't account for items removed by filter callback.
      
      Reviewed by Dan Bernstein.
      
      * UIProcess/cf/WebBackForwardListCF.cpp:
      (WebKit::WebBackForwardList::createCFDictionaryRepresentation): Update the current item index
      when we omit an item due to the filter callback.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83206 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      51676c80
    • abarth@webkit.org's avatar
      2011-04-07 Adam Barth <abarth@webkit.org> · a3a60470
      abarth@webkit.org authored
              Reviewed by Eric Seidel.
      
              Implement CSP's options directive
              https://bugs.webkit.org/show_bug.cgi?id=58014
      
              * http/tests/security/contentSecurityPolicy/inline-script-allowed-expected.txt: Added.
              * http/tests/security/contentSecurityPolicy/inline-script-allowed.html: Added.
              * http/tests/security/contentSecurityPolicy/inline-script-blocked-goofy-expected.txt: Added.
              * http/tests/security/contentSecurityPolicy/inline-script-blocked-goofy.html: Added.
      2011-04-07  Adam Barth  <abarth@webkit.org>
      
              Reviewed by Eric Seidel.
      
              Implement CSP's options directive
              https://bugs.webkit.org/show_bug.cgi?id=58014
      
              This patch contains the full options parser, but we only have enough of
              CSP implemented to see the effects of disable-xss-protection.  Will
              need to do some more work before we can see eval-script in action.
      
              Tests: http/tests/security/contentSecurityPolicy/inline-script-allowed.html
                     http/tests/security/contentSecurityPolicy/inline-script-blocked-goofy.html
      
              * page/ContentSecurityPolicy.cpp:
              (WebCore::CSPOptions::CSPOptions):
              (WebCore::CSPOptions::disableXSSProtection):
              (WebCore::CSPOptions::evalScript):
              (WebCore::CSPOptions::parse):
              (WebCore::ContentSecurityPolicy::allowJavaScriptURLs):
              (WebCore::ContentSecurityPolicy::allowInlineEventHandlers):
              (WebCore::ContentSecurityPolicy::allowInlineScript):
              (WebCore::ContentSecurityPolicy::addDirective):
              * page/ContentSecurityPolicy.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83205 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a3a60470
    • ap@apple.com's avatar
      Reviewed by Anders Carlsson. · 8199f90c
      ap@apple.com authored
              REGRESSION (WebKit2): Reverse conversion doesn't work in Kotoeri
              https://bugs.webkit.org/show_bug.cgi?id=58066
              <rdar://problem/8965302>
      
              * Scripts/webkit2/messages.py:
              * Shared/mac/AttributedString.h: Added.
              * Shared/mac/AttributedString.mm: Added.
              (WebKit::AttributedString::encode):
              (WebKit::AttributedString::decode):
              Added an class that wraps NSAttributedString. As far as I can tell, one can't pass a CF
              or NS object to another process without wrapping it in a C++ one.
              
              * Shared/mac/ArgumentCodersMac.h: Added.
              * Shared/mac/ArgumentCodersMac.mm: Added.
              Added coders for Foundation objects, similar to ArgumentCodersCF. There are two reasons why
              these are needed:
              1) Even though most Foundation objects are toll free bridged with CF, CFGetTypeID() doesn't
              work properly for them (I've been just getting 1).
              2) NSColor isn't toll free bridged to CF.
              This adds just the types necessary for editing NSAttributedString (and I don't yet know what
              happens with attachments).
      
              * UIProcess/API/mac/WKView.mm: (-[WKView attributedSubstringFromRange:]):
              * UIProcess/WebPageProxy.h:
              * UIProcess/mac/WebPageProxyMac.mm:
              (WebKit::WebPageProxy::getAttributedSubstringFromRange):
              * WebKit2.xcodeproj/project.pbxproj:
              * WebProcess/WebPage/WebPage.h:
              * WebProcess/WebPage/WebPage.messages.in:
              Boilerplate code for making a sync call to web process.
      
              * WebProcess/WebPage/mac/WebPageMac.mm: (WebKit::WebPage::getAttributedSubstringFromRange):
              Ported from WebHTMLView.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83204 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8199f90c
    • enrica@apple.com's avatar
      Unreviewed. · 352df659
      enrica@apple.com authored
      Adding to skipped list for Windows (WK2) the
      tests relative to undo removed from the skipped list
      for Mac where execCommand('undo') is now supported.
      
      * platform/win-wk2/Skipped:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83203 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      352df659
    • enne@google.com's avatar
      2011-04-07 Adrienne Walker <enne@google.com> · 5e14ebf0
      enne@google.com authored
              [chromium] Unreviewed, rebaseline progress element tests.
      
              * platform/chromium-linux/fast/dom/HTMLProgressElement/progress-bar-value-pseudo-element-expected.checksum: Removed.
              * platform/chromium-linux/fast/dom/HTMLProgressElement/progress-bar-value-pseudo-element-expected.png:
              * platform/chromium-mac-leopard/fast/dom/HTMLProgressElement/progress-bar-value-pseudo-element-expected.png: Added.
              * platform/chromium-win/fast/dom/HTMLProgressElement/progress-bar-value-pseudo-element-expected.checksum: Removed.
              * platform/chromium-win/fast/dom/HTMLProgressElement/progress-bar-value-pseudo-element-expected.png:
              * platform/chromium-win/fast/dom/HTMLProgressElement/progress-bar-value-pseudo-element-expected.txt:
              * platform/chromium-win/fast/dom/HTMLProgressElement/progress-element-expected.txt:
              * platform/chromium/test_expectations.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83202 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5e14ebf0
    • aestes@apple.com's avatar
      2011-04-07 Andy Estes <aestes@apple.com> · e35644e1
      aestes@apple.com authored
              Reviewed by Darin Adler.
      
              REGRESSION (r64712): Microsoft Outlook 2011: original message contents
              not included when replying to an email.
              https://bugs.webkit.org/show_bug.cgi?id=57794
      
              * WebKit.xcodeproj/project.pbxproj:
      2011-04-07  Andy Estes  <aestes@apple.com>
      
              Reviewed by Darin Adler.
      
              REGRESSION (r64712): Microsoft Outlook 2011: original message contents
              not included when replying to an email.
              https://bugs.webkit.org/show_bug.cgi?id=57794
              
              Outlook populates a reply message by creating an empty WebView and
              using DOM API to populate the WebView's empty document with content
              from the original message. It expects the initial empty document to
              simply be "<html></html>", and it proceeds to dynamically create and
              append a BODY node and add the original message content as a child of
              that node. Outlook then takes the innerHTML of the frame's first body
              element and copies it into a *new* document that is displayed and
              edited in the reply message window.
              
              Due to implementing the HTML5 tree building algorithm in r64712,
              initial empty documents went from being "<html></html>" to being
              "<html><head></head><body></body></html>". Outlook still dynamically
              creates a BODY node to parent the original message content, but this
              BODY node duplicates the one created by the tree builder. When Outlook
              then takes the innerHTML of the first body element to populate the
              reply message window it gets the empty body element created by the
              parser, not the one it created with the original message content.
              
              Fix this by injecting a user script into the initial empty document
              that removes the HEAD and BODY nodes created by the parser. This
              ensures that the BODY created by Outlook is the only BODY in the
              document.
      
              * Misc/OutlookQuirksUserScript.js: Added.
              * WebView/WebView.mm:
              (leakMailQuirksUserScriptContents):
              (-[WebView _injectMailQuirksScript]):
              (needsOutlookQuirksScript):
              (leakOutlookQuirksUserScriptContents):
              (-[WebView _injectOutlookQuirksScript]):
              (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
      2011-04-07  Andy Estes  <aestes@apple.com>
      
              Reviewed by Darin Adler.
      
              REGRESSION (r64712): Microsoft Outlook 2011: original message contents
              not included when replying to an email.
              https://bugs.webkit.org/show_bug.cgi?id=57794
              
              * WebCore.exp.in:
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::finishedParsing): Call Frame::injectUserScripts()
              before checking if the FrameLoader is parsing the initial empty document.
              This allows user scripts to be injected at the end of document parsing
              (if the setting is enabled).
              * page/Frame.cpp:
              (WebCore::Frame::injectUserScripts): Do not inject scripts if this
              feature is disabled on the initial empty document.
              * page/Settings.cpp:
              (WebCore::Settings::Settings):
              * page/Settings.h: Add a setting for injecting user scripts into the
              initial empty document (defaults to false).
              (WebCore::Settings::setInjectUserScriptsInInitialEmptyDocument):
              (WebCore::Settings::injectUserScriptsInInitialEmptyDocument):
              * platform/mac/RuntimeApplicationChecks.h:
              * platform/mac/RuntimeApplicationChecks.mm:
              (WebCore::applicationIsMicrosoftOutlook): Check if the embedding
              application is Microsoft Outlook.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83201 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e35644e1
    • jeffm@apple.com's avatar
      Mac build fix. · a431506f
      jeffm@apple.com authored
      * Shared/WebString.h:
      (WebKit::WebString::getCharacters): Add explict cast when using std::min().
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83200 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a431506f
    • jer.noble@apple.com's avatar
      Unreviewed; rebaseline expected results in platform/mac-wk2. · b3a10983
      jer.noble@apple.com authored
      * platform/mac-wk2/media/controls-without-preload-expected.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83199 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b3a10983
    • jeffm@apple.com's avatar
      2011-04-07 Jeff Miller <jeffm@apple.com> · 4b96f14f
      jeffm@apple.com authored
              Reviewed by Adam Roben.
      
              Replace WKStringGetCharactersPtr() with WKStringGetCharacters()
              https://bugs.webkit.org/show_bug.cgi?id=58058
      
              * TestWebKitAPI/Tests/WebKit2/WKString.cpp:
              (TestWebKitAPI::TEST): Add tests for  WKStringGetLength() and WKStringGetCharactersPtr().
      2011-04-07  Jeff Miller  <jeffm@apple.com>
      
              Reviewed by Adam Roben.
      
              Replace WKStringGetCharactersPtr() with WKStringGetCharacters()
              https://bugs.webkit.org/show_bug.cgi?id=58058
              
              WKStringGetCharactersPtr() exposes the internal implementation of WKString, so change this to WKStringGetCharacters(), which makes a UTF-16 copy.
      
              * Shared/API/c/WKString.cpp:
              (WKStringGetCharacters): Added, replaces WKStringGetCharactersPtr().
              * Shared/API/c/WKString.h: Replaced WKStringGetCharactersPtr() with WKStringGetCharacters().
              * Shared/WebString.h:
              (WebKit::WebString::getCharacters): Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83198 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4b96f14f
    • bweinstein@apple.com's avatar
      WebKit2: Support window bounce when panning. · 1752d5d7
      bweinstein@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=58065
      <rdar://problem/9244367>
              
      Reviewed by Adam Roben.
      
      Make gestureDidScroll synchronous, as once we scroll, we need to know
      whether or not we are at the beginning or end of the scrollable document.
              
      If we are at either end of the scrollable document, we call the Windows 7
      API to bounce the window to give an indication that you are past an end
      of the document.
      
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::gestureDidScroll): Pass a boolean for the reply, and return it.
      * UIProcess/WebPageProxy.h:
      * UIProcess/win/WebView.cpp:
      (WebKit::WebView::WebView): Inititalize a new variable.
      (WebKit::WebView::onGesture): Once we send the message to scroll, check if have gone to
          an end of the document, and if we have, bounce the window.
      * UIProcess/win/WebView.h:
      * WebProcess/WebPage/WebPage.h:
      * WebProcess/WebPage/WebPage.messages.in: GestureDidScroll is now sync.
      * WebProcess/WebPage/win/WebPageWin.cpp:
      (WebKit::WebPage::gestureDidScroll): When we are done scrolling, check if we have a vertical
          scrollbar and if we are at the beginning or the end of the scrollable document.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83197 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1752d5d7
    • jer.noble@apple.com's avatar
      2011-04-06 Jer Noble <jer.noble@apple.com> · d5446357
      jer.noble@apple.com authored
              Reviewed by Maciej Stachowiak.
      
              AVF: MediaPlayerPrivateAVFoundation never reaches playable state.
              https://bugs.webkit.org/show_bug.cgi?id=57962
      
              Add support for a new AVPlayerItem API which will notify clients when their
              seek completes.  This requires a new Notification type to be passed to the main
              thread in MediaPlayerPrivateAVFoundation.
      
              * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
              (WebCore::MediaPlayerPrivateAVFoundation::seekCompleted): Added.
              (WebCore::MediaPlayerPrivateAVFoundation::scheduleMainThreadNotification): Added two new
                  overloaded functions which take a Notification; and a Notification::Type and boolean.
              (WebCore::MediaPlayerPrivateAVFoundation::dispatchNotification): Support new SeekCompleted
                  Notification type.
              * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.h:
              (WebCore::MediaPlayerPrivateAVFoundation::Notification::Notification): Added one new constructor.
              (WebCore::MediaPlayerPrivateAVFoundation::Notification::finished): Added ivar and accessor.
              * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundationObjC.mm:
              (WebCore::MediaPlayerPrivateAVFoundationObjC::seekToTime): Call new AVPlayerItem API.
              (-[WebCoreAVFMovieObserver seekCompleted:]): Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83196 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d5446357
    • commit-queue@webkit.org's avatar
      2011-04-07 Chang Shu <cshu@webkit.org> · 7c1fbe26
      commit-queue@webkit.org authored
              Reviewed by Darin Adler.
      
              WebKitTestRunner needs layoutTestController.isPageBoxVisible
              https://bugs.webkit.org/show_bug.cgi?id=42695
      
              Unskip passed tests.
      
              * platform/mac-wk2/Skipped:
              * platform/qt-wk2/Skipped:
      2011-04-07  Chang Shu  <cshu@webkit.org>
      
              Reviewed by Darin Adler.
      
              WebKitTestRunner needs layoutTestController.isPageBoxVisible
              https://bugs.webkit.org/show_bug.cgi?id=42695
      
              * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
              (WKBundleIsPageBoxVisible):
              * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
              * WebProcess/InjectedBundle/InjectedBundle.cpp:
              (WebKit::InjectedBundle::isPageBoxVisible):
              * WebProcess/InjectedBundle/InjectedBundle.h:
      2011-04-07  Chang Shu  <cshu@webkit.org>
      
              Reviewed by Darin Adler.
      
              WebKitTestRunner needs layoutTestController.isPageBoxVisible
              https://bugs.webkit.org/show_bug.cgi?id=42695
      
              * WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl:
              * WebKitTestRunner/InjectedBundle/LayoutTestController.cpp:
              (WTR::LayoutTestController::isPageBoxVisible):
              * WebKitTestRunner/InjectedBundle/LayoutTestController.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83195 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7c1fbe26
    • enrica@apple.com's avatar
      Source/WebKit2: REGRESSION(WebKit2): execCommand('undo') doesn't work (Mac). · b83b967f
      enrica@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=58055
      <rdar://problem/8862023>
              
      Reviewed by Oliver Hunt.
      
      Adding support for execCommand('undo') and execCommand('redo')
      in WebKit2 for Mac.
      
      * UIProcess/API/mac/PageClientImpl.h:
      * UIProcess/API/mac/PageClientImpl.mm:
      (WebKit::PageClientImpl::canUndoRedo): Added interaction with undomanager.
      (WebKit::PageClientImpl::executeUndoRedo): Added interaction with undomanager.
              
      Added new empty PageClient methods for other platforms.
      * UIProcess/API/qt/qwkpage.cpp:
      (QWKPagePrivate::canUndoRedo):
      (QWKPagePrivate::executeUndoRedo):
      * UIProcess/API/qt/qwkpage_p.h:
      * UIProcess/PageClient.h:
      * UIProcess/gtk/WebView.cpp:
      (WebKit::WebView::canUndoRedo):
      (WebKit::WebView::executeUndoRedo):
      * UIProcess/gtk/WebView.h:
      * UIProcess/win/WebView.cpp:
      (WebKit::WebView::canUndoRedo):
      (WebKit::WebView::executeUndoRedo):
      * UIProcess/win/WebView.h:
      
      * UIProcess/WebEditCommandProxy.cpp:
      (WebKit::WebEditCommandProxy::unapply): Added flag to allow dispatching
      of asychronous messages while waiting for a sync message reply.
      (WebKit::WebEditCommandProxy::reapply): Same as above.
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::canUndoRedo):
      (WebKit::WebPageProxy::executeUndoRedo):
      * UIProcess/WebPageProxy.h:
      * UIProcess/WebPageProxy.messages.in:
      * WebProcess/WebCoreSupport/WebEditorClient.cpp: Added missing implementation.
      (WebKit::WebEditorClient::canUndo):
      (WebKit::WebEditorClient::canRedo):
      (WebKit::WebEditorClient::undo):
      (WebKit::WebEditorClient::redo):
      
      LayoutTests: REGRESSION(WebKit2): execCommand('undo') doesn't work (Mac).
      https://bugs.webkit.org/show_bug.cgi?id=58055
      <rdar://problem/8862023>
      
      Reviewed by Oliver Hunt.
      
      * platform/mac-wk2/Skipped: Remove skipped tests related to undo/redo.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83194 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b83b967f
    • beidson@apple.com's avatar
      <rdar://problem/9250368> and https://bugs.webkit.org/show_bug.cgi?id=58062 · 68471d8d
      beidson@apple.com authored
      Reviewed by Maciej Stachowiak.
      
      * UIProcess/API/C/WKIconDatabase.cpp:
      (WKIconDatabaseClose):
      * UIProcess/API/C/WKIconDatabase.h:
              
      * UIProcess/WebIconDatabase.cpp:
      (WebKit::WebIconDatabase::close):
      * UIProcess/WebIconDatabase.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83193 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      68471d8d
    • barraclough@apple.com's avatar
      Bug 58057 - Store boolean payload in low bit of JSImmediate · 5698e35f
      barraclough@apple.com authored
      Reviewed by Geoff Garen.
      
      And remove some uncalled functions from JSImmediate.h
      
      * jit/JITInlineMethods.h:
      (JSC::JIT::emitTagAsBoolImmediate):
      * jit/JITOpcodes.cpp:
      (JSC::JIT::emit_op_not):
      * runtime/JSImmediate.h:
      (JSC::JSImmediate::makeInt):
      (JSC::JSImmediate::makeBool):
      (JSC::JSImmediate::intValue):
      (JSC::JSImmediate::boolValue):
      (JSC::JSImmediate::asInt32):
      (JSC::JSImmediate::toDouble):
      (JSC::JSValue::asInt32):
      (JSC::JSValue::isUInt32):
      (JSC::JSValue::asUInt32):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83192 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5698e35f
    • commit-queue@webkit.org's avatar
      2011-04-07 Nancy Piedra <nancy.piedra@nokia.com> · 404a2d88
      commit-queue@webkit.org authored
              Reviewed by Eric Carlson.
      
              Add tests for parsing codecs parameter in video-can-play-type.html
              https://bugs.webkit.org/show_bug.cgi?id=53275
      
              * media/video-can-play-type-expected.txt:
              * media/video-can-play-type.html:
      2011-04-07  Nancy Piedra  <nancy.piedra@nokia.com>
      
              Reviewed by Eric Carlson.
      
              Parse quotes from content type parameters
              https://bugs.webkit.org/show_bug.cgi?id=53275
      
              This functionality is tested in video-can-play-type.html layout test
              where I've added codecs parameter with good and bad formatting.
      
              * platform/ContentType.cpp:
              (WebCore::ContentType::parameter):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83191 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      404a2d88
    • pfeldman@chromium.org's avatar
      2011-04-07 Pavel Feldman <pfeldman@google.com> · 381bdc24
      pfeldman@chromium.org authored
              Reviewed by Yury Semikhatsky.
      
              Web Inspector: remove "enabled" from the setBreakpoint protocol.
              https://bugs.webkit.org/show_bug.cgi?id=58047
      
              * bindings/js/ScriptDebugServer.cpp:
              (WebCore::ScriptDebugServer::hasBreakpoint):
              * bindings/v8/DebuggerScript.js:
              ():
              * bindings/v8/ScriptDebugServer.cpp:
              (WebCore::ScriptDebugServer::setBreakpoint):
              * inspector/Inspector.json:
              * inspector/InspectorDebuggerAgent.cpp:
              (WebCore::buildObjectForBreakpointCookie):
              (WebCore::InspectorDebuggerAgent::setBreakpointByUrl):
              (WebCore::InspectorDebuggerAgent::setBreakpoint):
              (WebCore::InspectorDebuggerAgent::continueToLocation):
              (WebCore::InspectorDebuggerAgent::didParseSource):
              * inspector/InspectorDebuggerAgent.h:
              * inspector/ScriptBreakpoint.h:
              (WebCore::ScriptBreakpoint::ScriptBreakpoint):
              * inspector/front-end/DebuggerModel.js:
              (WebInspector.DebuggerModel.prototype.setBreakpoint):
              (WebInspector.DebuggerModel.prototype.setBreakpointBySourceId):
              * inspector/front-end/DebuggerPresentationModel.js:
              (WebInspector.DebuggerPresentationModel):
              (WebInspector.DebuggerPresentationModel.prototype._restoreBreakpoints):
              (WebInspector.DebuggerPresentationModel.prototype._updateBreakpointsAfterLiveEdit):
              (WebInspector.DebuggerPresentationModel.prototype.setBreakpoint.callback):
              (WebInspector.DebuggerPresentationModel.prototype.setBreakpoint):
              (WebInspector.DebuggerPresentationModel.prototype._setBreakpointInDebugger):
              (WebInspector.DebuggerPresentationModel.prototype._setBreakpointInDebugger.didRequestSourceMapping):
              (WebInspector.DebuggerPresentationModel.prototype._removeBreakpointFromDebugger):
              (WebInspector.DebuggerPresentationModel.prototype.setBreakpointEnabled.afterUpdate):
              (WebInspector.DebuggerPresentationModel.prototype.setBreakpointEnabled):
              (WebInspector.DebuggerPresentationModel.prototype.updateBreakpoint):
              (WebInspector.DebuggerPresentationModel.prototype.removeBreakpoint):
              (WebInspector.DebuggerPresentationModel.prototype._breakpointAdded.didRequestSourceMapping):
              (WebInspector.DebuggerPresentationModel.prototype._breakpointAdded):
              (WebInspector.DebuggerPresentationModel.prototype._breakpointRemoved):
              (WebInspector.DebuggerPresentationModel.prototype._breakpointResolved):
              (WebInspector.DebuggerPresentationModel.prototype._restoreBreakpointsFromSettings):
              (WebInspector.DebuggerPresentationModel.prototype._saveBreakpoints):
              (WebInspector.DebuggerPresentationModel.prototype._reset):
              (WebInspector.PresentationBreakpoint):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83190 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      381bdc24
    • jberlin@webkit.org's avatar
      [WebKit2 Tests] fast/events/select-element.html failing since introduction in r83096 · 3758dc42
      jberlin@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=58059
      
      Adding this test to the mac-wk2 skipped list to get the bots green.
      
      * platform/mac-wk2/Skipped:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83189 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3758dc42
    • jberlin@webkit.org's avatar
      WebKit2: Implement TextChecker on Windows · f0cc7d0e
      jberlin@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=57862
       
      Reviewed by Adam Roben.
      
      Part 3: Implement checkSpellingOfString
      
      In WebCore, checkTextOfParagraph is only defined and used on platforms where
      WTF_USE_UNIFIED_TEXT_CHECKING is defined (which right now is only non-Leopard and non-Tiger
      Mac builds).
       
      On other platforms, checkSpellingOfString and checkGrammarOfString (coming in a separate
      patch in an attempt to keep things easier to review) are used.
      
      * UIProcess/API/C/win/WKTextChecker.h:
      * UIProcess/TextChecker.h:
      Surround checkTextOfParagraph by #if USE(UNIFIED_TEXT_CHECKING) and add
      checkSpellingOfString.
      
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::checkTextOfParagraph):
      Surround this by #if USE(UNIFIED_TEXT_CHECKING).
      (WebKit::WebPageProxy::checkSpellingOfString):
      Call through to the client.
      * UIProcess/WebPageProxy.h:
      * UIProcess/WebPageProxy.messages.in:
      Surround checkTextOfParagraph by #if USE(UNIFIED_TEXT_CHECKING) and add
      checkSpellingOfString.
      
      * UIProcess/win/TextCheckerWin.cpp:
      (WebKit::TextChecker::checkSpellingOfString):
      Call through to the WebTextCheckerClient.
      * UIProcess/mac/TextCheckerMac.mm:
      (WebKit::TextChecker::checkTextOfParagraph):
      Surround this by #if USE(UNIFIED_TEXT_CHECKING) for clarity.
      (WebKit::TextChecker::checkSpellingOfString):
      Add a call to notImplemented.
      * UIProcess/qt/TextCheckerQt.cpp:
      (WebKit::TextChecker::checkSpellingOfString):
      Ditto, and remove the implementation for checkTextOfParagraph.
      * UIProcess/gtk/TextCheckerGtk.cpp:
      (WebKit::TextChecker::checkSpellingOfString):
      Ditto.
      
      * UIProcess/win/WebTextCheckerClient.cpp:
      (WebKit::WebTextCheckerClient::checkSpellingOfString):
      * UIProcess/win/WebTextCheckerClient.h:
      
      * WebProcess/WebCoreSupport/WebEditorClient.cpp:
      (WebKit::WebEditorClient::checkSpellingOfString):
      Send a sync message to the UI Process (similar to the sync message used for
      checkTextOfParagraph).
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83188 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f0cc7d0e
    • enne@google.com's avatar
      2011-04-07 Adrienne Walker <enne@google.com> · 9d6b06c9
      enne@google.com authored
              [chromium] Unreviewed, now that bug 57975 is fixed, mark test as passing.
      
              * platform/chromium/test_expectations.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83187 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9d6b06c9
    • bweinstein@apple.com's avatar
      Update Leopard expected results after r83075 to greenify the bots. · b16a54e5
      bweinstein@apple.com authored
      * platform/mac-leopard/fast/blockflow/text-orientation-basic-expected.txt:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83186 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b16a54e5
    • kov@webkit.org's avatar
      2011-04-06 Gustavo Noronha Silva <gns@gnome.org> · 8c1c8765
      kov@webkit.org authored
              Reviewed by Martin Robinson.
      
              [GTK] Need a way to get the path to a WebKitWebPlugin
              https://bugs.webkit.org/show_bug.cgi?id=57968
      
              Expose the path of the plugin through the WebKitWebPlugin object.
      
              * webkit/webkitwebplugin.cpp:
              (webkit_web_plugin_get_path):
              * webkit/webkitwebplugin.h:
              * webkit/webkitwebpluginprivate.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83185 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8c1c8765
    • commit-queue@webkit.org's avatar
      2011-04-07 Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org> · a47ea461
      commit-queue@webkit.org authored
              Reviewed by Benjamin Poulain.
      
              [Qt] QWebFrame::setUrl works only from second time if url fragment is present
              https://bugs.webkit.org/show_bug.cgi?id=32723
      
              When clearing the frame, instead of using the URL passed to QWebFrame::setUrl(),
              use an invalid URL (the begin() without arguments). Clearing the document
              with the same URL was causing problems when we had a fragment because it assume that
              only scrolling was enough and did not loaded the document again.
      
              When setUrl() is called but fails, url() is expected to return the requested value. The
              begin(url) guaranteed that before. This patch adds a member to track the URL, which is
              updated when the URL changes and also when setUrl() is called.
      
              KURL was used for the member so that when setUrl() is called, and then url() is checked
              before the page gets loaded, we perform the same conversion that will be performed by a
              successful load, e.g. add trailing '/' to an address. This behavior is checked by
              tst_QWebFrame::requestedUrl() test.
      
              For the record: the second QWebPage::setUrl() worked because the load was considered a
              FrameLoadTypeSame, and because of that, was not fit for just scrolling, a reload was
              needed. See FrameLoader::shouldScrollToAnchor() for details on this classification.
      
              * Api/qwebframe.cpp:
              (QWebFramePrivate::emitUrlChanged): update our URL member and emit the signal.
              (clearCoreFrame):
              (isCoreFrameClear):
              (QWebFrame::setUrl):
              (QWebFrame::url):
              (QWebFrame::baseUrl): look in the document for the baseURL since its contents can change
              the baseURL, e.g. by using the <base> tag.
              * Api/qwebframe_p.h:
      
              * WebCoreSupport/FrameLoaderClientQt.cpp:
              (WebCore::FrameLoaderClientQt::dispatchDidChangeLocationWithinPage):
              (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
      
              * tests/qwebframe/tst_qwebframe.cpp:
              (tst_QWebFrame::setUrlWithFragment): unskip test.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83184 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a47ea461
    • enne@google.com's avatar
      2011-04-07 Adrienne Walker <enne@google.com> · 445e2135
      enne@google.com authored
              [chromium] Unreviewed, rebaseline tests changed in r82947.
      
              * platform/chromium-linux/svg/W3C-SVG-1.1-SE/text-tspan-02-b-expected.png: Added.
              * platform/chromium-linux/svg/text/text-midpoint-split-bug-expected.png: Added.
              * platform/chromium-mac-leopard/svg/W3C-SVG-1.1-SE/text-tspan-02-b-expected.png: Added.
              * platform/chromium-mac/svg/W3C-SVG-1.1-SE/text-tspan-02-b-expected.png: Added.
              * platform/chromium-win/svg/W3C-SVG-1.1-SE/text-tspan-02-b-expected.png: Added.
              * platform/chromium-win/svg/W3C-SVG-1.1-SE/text-tspan-02-b-expected.txt: Added.
              * platform/chromium-win/svg/text/text-midpoint-split-bug-expected.png: Added.
              * platform/chromium-win/svg/text/text-midpoint-split-bug-expected.txt: Added.
              * platform/chromium/test_expectations.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83183 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      445e2135
    • scheib@chromium.org's avatar
      2011-04-07 Vincent Scheib <scheib@chromium.org> · 9048411e
      scheib@chromium.org authored
              Flagging platform/chromium/compositing/huge-layer-rotated.html a bug.
      
              * platform/chromium/test_expectations.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83182 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9048411e