1. 07 Oct, 2009 40 commits
    • darin@apple.com's avatar
      Make the setMetadataURL function foolproof by having it remove user info · 8c29e20a
      darin@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=30178
      rdar://problem/6544670
      
      Patch by Darin Adler <darin@apple.com> on 2009-10-07
      Reviewed by John Sullivan.
      
      * Misc/WebNSFileManagerExtras.m:
      (-[NSFileManager _webkit_setMetadataURL:referrer:atPath:]):
      Call _web_URLByRemovingUserInfo on the passed in URL string after converting
      it to a URL, and then convert it back to a string.
      
      * Misc/WebNSURLExtras.h: Added _web_URLByRemovingUserInfo.
      * Misc/WebNSURLExtras.mm: Removed unused WebKitURLComponents struct.
      (-[NSURL _web_URLByTruncatingOneCharacterBeforeComponent:]): Renamed to be
      clearer on what this does.
      (-[NSURL _webkit_URLByRemovingFragment]): Changed to call new name.
      (-[NSURL _webkit_URLByRemovingResourceSpecifier]): Ditto.
      (-[NSURL _web_URLByRemovingComponentAndSubsequentCharacter:]): Added.
      (-[NSURL _web_URLByRemovingUserInfo]): Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49273 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8c29e20a
    • eric@webkit.org's avatar
      2009-10-07 Jens Alfke <snej@chromium.org> · 06f4370a
      eric@webkit.org authored
              Reviewed by Darin Adler.
      
              Optimization of StringImpl:
              - Remove unnecessary m_bufferIsInternal member (saves 4 bytes). Instead, check whether
                m_data points to just past the end of the object's members.
              - copy() and createWithTerminatingNullCharacter() create the string in a single malloc
                block instead of 2 (saves ~20 bytes and considerable CPU cycles, increases locality).
              - Move m_length next to m_hash to save 4 bytes of padding in 64-bit builds.
      
              https://bugs.webkit.org/show_bug.cgi?id=29500
      
              * platform/text/StringImpl.cpp:
              (WebCore::StringImpl::StringImpl): Re-ordered members.
              (WebCore::StringImpl::~StringImpl): Change to is-buffer-internal check.
              (WebCore::StringImpl::createUninitialized): Use new m_buffer member instead of sizeof()
                  to ensure chars are copied to correct location.
              (WebCore::StringImpl::createWithTerminatingNullCharacter): Make sure copy is created
                  in a single malloc block.
              (WebCore::StringImpl::threadsafeCopy): Make sure copy is created in a single malloc block.
              (WebCore::StringImpl::crossThreadString): Make sure copy is created in a single malloc block.
              (WebCore::StringImpl::sharedBuffer): Change to is-buffer-internal check.
              * platform/text/StringImpl.h:
              (WebCore::StringImpl::startsWith): Just fixed a confusing param name.
              (WebCore::StringImpl::bufferIsInternal): Changed member var into accessor method.
              (WebCore::StringImpl::m_data): Repositioned for optimal member packing in 64-bit.
              (WebCore::StringImpl::m_buffer): Added to provide an explicit location for where internal buffer goes.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49272 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      06f4370a
    • simon.fraser@apple.com's avatar
      2009-10-07 Simon Fraser <simon.fraser@apple.com> · 396ac8c2
      simon.fraser@apple.com authored
              Make Dan Bernstein happy.
      
              * WebView/WebHTMLView.mm:
              (-[WebHTMLView drawRect:]):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49271 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      396ac8c2
    • simon.fraser@apple.com's avatar
      2009-10-07 Simon Fraser <simon.fraser@apple.com> · c92291fe
      simon.fraser@apple.com authored
              Reviewed by Dan Bernstein.
      
              Avoid Obj-C message dispatch when possible by storing accessed objects
              in local variables.
      
              * WebView/WebHTMLView.mm:
              (-[WebHTMLView drawRect:]):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49270 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c92291fe
    • simon.fraser@apple.com's avatar
      2009-10-07 Simon Fraser <simon.fraser@apple.com> · 169fd5e9
      simon.fraser@apple.com authored
              Reviewed by Dan Bernstein.
      
              Animation stalls for a few seconds partway through
              https://bugs.webkit.org/show_bug.cgi?id=30182
      
              Make sure that we only call -disableScreenUpdatesUntilFlush when a window
              update is actually going to happen, otherwise screen updates are disabled
              for too long.
      
              * WebView/WebHTMLView.mm:
              (-[WebHTMLView drawRect:]):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49269 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      169fd5e9
    • dbates@webkit.org's avatar
      2009-10-07 Daniel Bates <dbates@webkit.org> · d14240a1
      dbates@webkit.org authored
              Reviewed by Darin Adler.
      
              https://bugs.webkit.org/show_bug.cgi?id=30102
              And
              <rdar://problem/5015957>
              
              Fixes an issue (in the Windows build) where the cursor does not change to the
              not-allowed cursor when the drag-and-drop operation is not allowed.
              
              The allowed effects in WebDragClient::startDrag are hard-coded to be 
              DROPEFFECT_COPY | DROPEFFECT_LINK | DROPEFFECT_MOVE. Instead, the list of 
              allowed drop effects should be determined by the allowed operations of the
              drag source.
              
              We cannot test this using DRT because DRT looks at the programmatic drop 
              cursor and until bug #24731 is fixed this value is hard-coded to DragOperationCopy.
              That is, there is a discrepancy in the Windows build between the Windows API-based 
              drop effect and the WebKit drop effect. Because DRT cannot read the screen buffer 
              to determine the cursor, a manual test is needed.
      
              * WebCoreSupport/WebDragClient.cpp:
              (draggingSourceOperationMaskToDragCursors): Added method.
              (WebDragClient::startDrag):
      2009-10-07  Daniel Bates  <dbates@webkit.org>
      
              Reviewed by Darin Adler.
      
              https://bugs.webkit.org/show_bug.cgi?id=30102
              And
              <rdar://problem/5015957>
              
              Manual test to confirm that the not-allowed cursor is shown for an
              invalid drag-and-drop operation.
              
              We cannot test this using DRT because of a discrepancy between the Windows
              API-based drop effect and the WebKit drop effect. See bug #24731 for more
              details.
      
              * manual-tests/drag-cursor-notallowed.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49268 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d14240a1
    • abarth@webkit.org's avatar
      2009-10-07 Adam Barth <abarth@webkit.org> · ef9ffa97
      abarth@webkit.org authored
              Unreviewed.  Remove some folks from committers.py who were listed on
              the WebKit Team wiki page but who weren't actually listed as commit+.
              At some point, we should coorelate this list with the committers
              mailing list.
      
              * Scripts/modules/committers.py:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49267 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ef9ffa97
    • mrowe@apple.com's avatar
      Fix the build. · a9cdbdcf
      mrowe@apple.com authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49266 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a9cdbdcf
    • abarth@webkit.org's avatar
      2009-10-07 Adam Barth <abarth@webkit.org> · 0387b0fd
      abarth@webkit.org authored
              Unreviewed.  Import a bunch of committers from the WebKit Team page on
              the wiki into committers.py.
      
              * Scripts/modules/committers.py:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49265 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0387b0fd
    • eric@webkit.org's avatar
      2009-10-07 Evan Martin <evan@chromium.org> · f9a32bf0
      eric@webkit.org authored
              Reviewed by Adam Roben.
      
              Windows-specific baselines for some new tests.
      
              * platform/win/fast/css/large-number-round-trip-expected.txt: Added.
              * platform/win/fast/css/opacity-float-expected.txt: Copied from LayoutTests/fast/css/opacity-float-expected.txt.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49264 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f9a32bf0
    • bweinstein@apple.com's avatar
      2009-10-07 Brian Weinstein <bweinstein@apple.com> · 700e2ba1
      bweinstein@apple.com authored
              Reviewed by Timothy Hatcher.
      
              Fixes <http://webkit.org/b/30104>.
              Inspector should show cookies of sub-resources on the page.
              
              This function implements showing cookies for all sub-resources of a page.
              When the page is loaded, it populates the Storage Panel with a list of all
              domains that were loaded as part of the full page load (iframes, ads, etc).
              When the user selects one of the domains, the inspector calls back into the
              controller, and the controller combines all of the cookies from that domain
              into a list, and sends that list is sent back to the controller to render.
              
              A domain now needs to be passed into CookieItemsView, and CookieSidebarTreeElement.
              
              As a result of a previous patch, we now have detailed cookie information for
              both Windows on CFNetwork and Mac. Additionally, this patch provides deleteCookie
              support on Windows.
      
              * bindings/js/ScriptObject.cpp:
              (WebCore::ScriptObject::set):
              * bindings/js/ScriptObject.h:
              * inspector/InspectorBackend.cpp:
              (WebCore::InspectorBackend::getCookies):
              (WebCore::InspectorBackend::deleteCookie):
              * inspector/InspectorBackend.h:
              * inspector/InspectorBackend.idl:
              * inspector/InspectorController.cpp:
              (WebCore::InspectorController::populateScriptObjects):
              (WebCore::InspectorController::didFinishLoading):
              (WebCore::InspectorController::getCookies):
              (WebCore::InspectorController::buildArrayForCookies):
              (WebCore::InspectorController::buildObjectForCookie):
              (WebCore::InspectorController::deleteCookie):
              * inspector/InspectorController.h:
              * inspector/InspectorDOMAgent.cpp:
              * inspector/InspectorDOMAgent.h:
              * inspector/InspectorFrontend.cpp:
              (WebCore::InspectorFrontend::addCookieDomainForDocument):
              * inspector/InspectorFrontend.h:
              * inspector/front-end/CookieItemsView.js:
              (WebInspector.CookieItemsView):
              (WebInspector.CookieItemsView.prototype.update):
              (WebInspector.CookieItemsView.prototype._deleteButtonClicked):
              * inspector/front-end/DOMAgent.js:
              (WebInspector.Cookies.getCookiesAsync):
              * inspector/front-end/StoragePanel.js:
              (WebInspector.StoragePanel):
              (WebInspector.StoragePanel.prototype.reset):
              (WebInspector.StoragePanel.prototype.addCookieDomain):
              (WebInspector.StoragePanel.prototype.showCookies):
              (WebInspector.CookieSidebarTreeElement):
              (WebInspector.CookieSidebarTreeElement.prototype.onselect):
              * inspector/front-end/inspector.js:
              (WebInspector.addCookieDomain):
              * platform/Cookie.h:
              (WebCore::CookieHash::hash):
              (WebCore::CookieHash::equal):
              (WTF::):
              * platform/network/win/CookieJarCFNetWin.cpp:
              (WebCore::deleteCookie):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49263 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      700e2ba1
    • bweinstein@apple.com's avatar
      2009-10-07 Pavel Feldman <pfeldman@chromium.org> · 16dd4c28
      bweinstein@apple.com authored
              Reviewed by Timothy Hatcher.
      
              Web Inspector: Add ScriptObject::set(const char*, unsigned).
      
              https://bugs.webkit.org/show_bug.cgi?id=30104
      
              * bindings/v8/ScriptObject.cpp:
              (WebCore::ScriptObject::set):
              * bindings/v8/ScriptObject.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49262 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      16dd4c28
    • abarth@webkit.org's avatar
      2009-10-07 Adam Barth <abarth@webkit.org> · f494ded9
      abarth@webkit.org authored
              Unreviewed.  Added Aaron Boodman to committers.py.
      
              * Scripts/modules/committers.py:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49261 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f494ded9
    • bfulgham@webkit.org's avatar
      Unreviewed build fix for Windows (Cairo). · 0be6f95e
      bfulgham@webkit.org authored
      Provide implementation of new BitmapImage::create that was
      added in @r49060.
      
      * platform/graphics/win/ImageCairoWin.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49260 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0be6f95e
    • eric@webkit.org's avatar
      2009-10-07 Andrew Scherkus <scherkus@chromium.org> · 40f54733
      eric@webkit.org authored
              Reviewed by Eric Carlson.
      
              Refactor RenderThemeChromiumMac and RenderThemeChromiumSkia to render media controls using GraphicsContext.
      
              Design was based on existing RenderMediaControls.cpp used by RenderThemeSafari/Win.
      
              https://bugs.webkit.org/show_bug.cgi?id=29987
      
              Covered by existing layout tests as no new functionality was introduced.
      
              * WebCore.gypi: Added RenderMediaControlsChromium.cpp/h.
              * css/mediaControlsChromium.css: Tweaked media slider position and border style.
              * rendering/MediaControlElements.cpp:
              (WebCore::toParentMediaElement): Taken from RenderMediaControls.
              (WebCore::MediaControlElement::rendererIsNeeded): Don't call shouldRenderMediaControlPart() if element has no appearance.
              (WebCore::MediaControlInputElement::rendererIsNeeded): Ditto.
              * rendering/RenderMediaControls.cpp: Moved parentMediaElement() to MediaControlElements.
              * rendering/RenderMediaControlsChromium.cpp: Added.
              (WebCore::platformResource): Helper to load and cache media control image resources.
              (WebCore::mediaSliderThumbImage): Implementation refactored from RenderThemeChromiumMac/Skia.
              (WebCore::mediaVolumeSliderThumbImage): Ditto.
              (WebCore::paintMediaButton): Ditto.
              (WebCore::paintMediaMuteButton): Ditto.
              (WebCore::paintMediaPlayButton): Ditto.
              (WebCore::paintMediaSlider): Ditto.
              (WebCore::paintMediaSliderThumb): Ditto.
              (WebCore::paintMediaVolumeSlider): Ditto.
              (WebCore::paintMediaVolumeSliderThumb): Ditto.
              (WebCore::paintMediaTimelineContainer): Ditto.
              (WebCore::RenderMediaControlsChromium::shouldRenderMediaControlPart): Ditto.
              (WebCore::RenderMediaControlsChromium::paintMediaControlsPart): Same
              (WebCore::RenderMediaControlsChromium::adjustMediaSliderThumbSize):
              * rendering/RenderMediaControlsChromium.h: Added.
              * rendering/RenderThemeChromiumMac.h:
              * rendering/RenderThemeChromiumMac.mm:
              (WebCore::RenderThemeChromiumMac::adjustSliderThumbSize): Implementation delegated to RenderMediaControlsChromium.
              (WebCore::RenderThemeChromiumMac::shouldRenderMediaControlPart): Ditto.
              (WebCore::RenderThemeChromiumMac::paintMediaPlayButton): Ditto.
              (WebCore::RenderThemeChromiumMac::paintMediaMuteButton): Ditto.
              (WebCore::RenderThemeChromiumMac::paintMediaSliderTrack): Ditto.
              (WebCore::RenderThemeChromiumMac::paintMediaVolumeSliderTrack): Ditto.
              (WebCore::RenderThemeChromiumMac::paintMediaSliderThumb): Ditto.
              (WebCore::RenderThemeChromiumMac::paintMediaVolumeSliderThumb): Ditto.
              (WebCore::RenderThemeChromiumMac::paintMediaControlsBackground): Ditto.
              * rendering/RenderThemeChromiumSkia.cpp:
              (WebCore::RenderThemeChromiumSkia::paintMediaControlsBackground): Implementation delegated to RenderMediaControlsChromium.
              (WebCore::RenderThemeChromiumSkia::paintMediaSliderTrack): Ditto.
              (WebCore::RenderThemeChromiumSkia::paintMediaVolumeSliderTrack): Ditto.
              (WebCore::RenderThemeChromiumSkia::adjustSliderThumbSize): Ditto.
              (WebCore::RenderThemeChromiumSkia::paintMediaSliderThumb): Ditto.
              (WebCore::RenderThemeChromiumSkia::paintMediaVolumeSliderThumb): Ditto.
              (WebCore::RenderThemeChromiumSkia::paintMediaPlayButton): Ditto.
              (WebCore::RenderThemeChromiumSkia::paintMediaMuteButton): Ditto.
              (WebCore::RenderThemeChromiumSkia::shouldRenderMediaControlPart): Ditto.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49259 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      40f54733
    • hyatt@apple.com's avatar
      Make plugins work with beforeload. · 9bdf0fc8
      hyatt@apple.com authored
      Reviewed by Adam Roben.
      
      Added fast/dom/beforeload/flash-before-load.html
      
      * html/HTMLObjectElement.cpp:
      (WebCore::HTMLObjectElement::parseMappedAttribute):
      * rendering/RenderPartObject.cpp:
      (WebCore::RenderPartObject::updateWidget):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49258 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9bdf0fc8
    • cmarrin@apple.com's avatar
      resized thumbnails · ba660fc2
      cmarrin@apple.com authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49257 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ba660fc2
    • sfalken@apple.com's avatar
      https://bugs.webkit.org/show_bug.cgi?id=30176 · 255c6b58
      sfalken@apple.com authored
      <rdar://problem/7281553> Extra information in UA causes problems with gmail
      
      Reviewed by Darin Adler.
      
      * WebKit.vcproj/WebKit.rc: Restore PRODUCTVERSION to build number only. Remove extra space.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49256 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      255c6b58
    • cmarrin@apple.com's avatar
      added thumbnail images for demos · 48d0f9c5
      cmarrin@apple.com authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49255 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      48d0f9c5
    • eric@webkit.org's avatar
      2009-10-07 Evan Martin <evan@chromium.org> · 51cc7d35
      eric@webkit.org authored
              Reviewed by Simon Fraser.
      
              Add a currently-failing test exhibiting the problem in
              https://bugs.webkit.org/show_bug.cgi?id=20674:
      
              When converting very large or small numbers back to strings, exponential
              notation is used, so a value like 90010000px is returned from
              getComputedStyle() as 9.001e+07px.
      
              9.001e+07px does not parse, so such a value cannot be round-tripped.
      
              This is a particular problem with tranformation matrices, which can often
              contain very large or small numbers.
      
              (Test written by Simon Fraser; I've just made it a committable patch.)
      
              * fast/css/large-number-round-trip-expected.txt: Added.
              * fast/css/large-number-round-trip.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49254 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      51cc7d35
    • eric@webkit.org's avatar
      2009-10-07 Evan Martin <evan@chromium.org> · d345fc33
      eric@webkit.org authored
              Reviewed by Darin Adler.
      
              Layout test for verifying that LC_NUMERIC setting doesn't affect
              the way CSS properties are stringified.
              https://bugs.webkit.org/show_bug.cgi?id=18994
      
              * fast/css/opacity-float-expected.txt: Added.
              * fast/css/opacity-float.html: Added.
      2009-10-07  Evan Martin  <evan@chromium.org>
      
              Reviewed by Darin Adler.
      
              Add API to LayoutTestController for re/setting the system locale.
              https://bugs.webkit.org/show_bug.cgi?id=18994
      
              * DumpRenderTree/LayoutTestController.cpp:
              (setLocaleCallback):
              (LayoutTestController::staticFunctions):
              (LayoutTestController::setLocale):
              * DumpRenderTree/LayoutTestController.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49253 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d345fc33
    • eric@webkit.org's avatar
      2009-10-07 Vitaly Repeshko <vitalyr@chromium.org> · ae76e5a6
      eric@webkit.org authored
              Reviewed by Adam Barth.
      
              [V8] Protect JS listener object from GC while clearing a property on it.
              See http://crbug.com/23780.
              https://bugs.webkit.org/show_bug.cgi?id=30137
      
              * bindings/v8/V8AbstractEventListener.cpp:
              (WebCore::V8AbstractEventListener::~V8AbstractEventListener):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49252 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ae76e5a6
    • zoltan@webkit.org's avatar
      2009-10-07 Zoltan Horvath <zoltan@webkit.org> · 145b05c0
      zoltan@webkit.org authored
              Rubber-stamped by Eric Seidel.
      
              Allow custom memory allocation control for WebCore's CachedResourceClient class
              https://bugs.webkit.org/show_bug.cgi?id=30165
      
              Inherits CachedResourceClient class from FastAllocBase because (its
              child class) CSSFontFaceSource has been instantiated by 'new' in WebCore/css/CSSFontFaceSource.h:46.
      
              * loader/CachedResourceClient.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49251 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      145b05c0
    • zoltan@webkit.org's avatar
      2009-10-07 Zoltan Horvath <zoltan@webkit.org> · f75b8dca
      zoltan@webkit.org authored
                                                                                              
              Reviewed by Darin Adler.
      
              Allow custom memory allocation control for WebCore's IdentifierRep
              https://bugs.webkit.org/show_bug.cgi?id=30159
      
              Inherits IdentifierRep class from FastAllocBase because it has been
              instantiated by 'new' in WebCore/bridge/IdentifierRep.cpp:61.
      
              * bridge/IdentifierRep.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49250 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f75b8dca
    • zoltan@webkit.org's avatar
      2009-10-07 Zoltan Horvath <zoltan@webkit.org> · 56702c9c
      zoltan@webkit.org authored
              Reviewed by Darin Adler.
      
              Allow custom memory allocation control for JavaScriptCore's IdentifierArena
              https://bugs.webkit.org/show_bug.cgi?id=30158
      
              Inherits IdentifierArena class from FastAllocBase because it has been
              instantiated by 'new' in JavaScriptCore/parser/ParserArena.cpp:36.
      
              * parser/ParserArena.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49249 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      56702c9c
    • eric@webkit.org's avatar
      2009-10-07 Anton Muhin <antonm@chromium.org> · abcb0ea7
      eric@webkit.org authored
              Reviewed by Adam Barth.
      
              Fetch pointers to C++ DOM window immediately from holder
              object (do not search prototype chain for proper JS wrapper).
              https://bugs.webkit.org/show_bug.cgi?id=29031
      
              * bindings/scripts/CodeGeneratorV8.pm:
              * bindings/v8/V8DOMWrapper.cpp:
              (WebCore::V8DOMWrapper::getTemplate):
              * bindings/v8/V8Proxy.cpp:
              (WebCore::V8Proxy::createNewContext):
              (WebCore::V8Proxy::installDOMWindow):
              * bindings/v8/custom/V8DOMWindowCustom.cpp:
              (WebCore::ACCESSOR_GETTER):
              (WebCore::ACCESSOR_SETTER):
              (WebCore::INDEXED_PROPERTY_GETTER):
              (WebCore::NAMED_PROPERTY_GETTER):
              (WebCore::NAMED_ACCESS_CHECK):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49248 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      abcb0ea7
    • aroben@apple.com's avatar
      Export DateInstance::info in a way that works on Windows · d7603a15
      aroben@apple.com authored
      Fixes <http://webkit.org/b/30171>
      fast/dom/Window/window-postmessage-clone.html fails on Windows
      
      Reviewed by Anders Carlsson.
      
      * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def:
      * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore_debug.def:
      Removed the export of DateInstance::info from here.
      
      * runtime/DateInstance.h: Use JS_EXPORTDATA to export
      DateInstance::info, which is the required way of exporting data on
      Windows.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49247 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d7603a15
    • hamaji@chromium.org's avatar
      2009-10-06 Shinichiro Hamaji <hamaji@chromium.org> · 2088d7ca
      hamaji@chromium.org authored
              Reviewed by Jan Alonzo.
      
              [Layout tests] [Gtk] Gtk DumpRenderTree should use WebKit test fonts
              https://bugs.webkit.org/show_bug.cgi?id=29689
      
              Build fix by adding -lfontconfig for DumpRenderTree.
      
              * GNUmakefile.am:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49246 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2088d7ca
    • tonikitoo@webkit.org's avatar
      2009-10-07 Antonio Gomes <tonikitoo@webkit.org> · 7a69787c
      tonikitoo@webkit.org authored
              Reviewed by Simon Hausmann.
      
              [Qt] Get rid of useless loadFailed signal in QGraphicsWebView
              https://bugs.webkit.org/show_bug.cgi?id=30166
      
              * Api/qgraphicswebview.cpp:
              (QGraphicsWebViewPrivate::_q_doLoadFinished):
              * Api/qgraphicswebview.h:
              * QGVLauncher/main.cpp:
              (MainWindow::init):
              (MainWindow::loadFinished):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49245 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7a69787c
    • aroben@apple.com's avatar
      Fix typo in PluginView::load that was causing cross-origin loads to be allowed · 30a07f5d
      aroben@apple.com authored
      This typo was introduced in the build fix in r49213.
      
      Fixes <http://webkit.org/b/30168> REGRESSION (r49213):
      http/tests/plugins/local-geturl-from-remote.html is failing on Windows
      
      Reviewed by Sam Weinig.
      
      * plugins/PluginView.cpp:
      (WebCore::PluginView::load): Removed a comma operator that was making
      a condition always evaluate to true.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49244 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      30a07f5d
    • zoltan@webkit.org's avatar
      2009-10-07 Csaba Osztrogonac <oszi@inf.u-szeged.hu> · 1d2e1452
      zoltan@webkit.org authored
              Reviewed by Simon Hausmann.
      
              Re-enable use-remote-links-to-tests for Qt. Disabled in r46416.
      
              * Scripts/run-webkit-tests:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49243 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1d2e1452
    • kenneth@webkit.org's avatar
      Do not create valid QColor's for invalid WebCore::Color's. · 4efc05e0
      kenneth@webkit.org authored
      Patch by Kenneth Rohde Christiansen <kenneth@webkit.org> on 2009-10-07
      Reviewed by Simon Hausmann.
      
      * platform/graphics/qt/ColorQt.cpp:
      (WebCore::Color::operator QColor):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49242 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4efc05e0
    • xan@webkit.org's avatar
      2009-10-07 Xan Lopez <xlopez@igalia.com> · 05425cf0
      xan@webkit.org authored
              Reviewed by Gustavo Noronha.
      
              "delete" in EventSender is the backspace key, not the delete one.
      
              * DumpRenderTree/gtk/EventSender.cpp:
              (keyDownCallback):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49241 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      05425cf0
    • eric@webkit.org's avatar
      2009-10-07 Girish Ramakrishnan <girish@forwardbias.in> · a08b4639
      eric@webkit.org authored
              Reviewed by Simon Hausmann.
      
              Add a simple rotation effect to QGVLauncher
      
              https://bugs.webkit.org/show_bug.cgi?id=30162
      
              * QGVLauncher/main.cpp:
              (MainView::animatedFlip):
              (MainWindow::animatedFlip):
              (MainWindow::buildUI):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49240 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a08b4639
    • eric@webkit.org's avatar
      2009-10-07 Janne Koskinen <janne.p.koskinen@digia.com> · 2c936028
      eric@webkit.org authored
              Reviewed by Simon Hausmann.
      
              [Qt] Symbian SBSv2 .data segment adress fix
              https://bugs.webkit.org/show_bug.cgi?id=30157
      
              RO-section in qtwebkit.dll exceeds allocated space in SBSv2. Move RW-section
              base address to start from 0x800000 instead of the toolchain default 0x400000
      
              * WebCore.pro:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49239 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2c936028
    • hausmann@webkit.org's avatar
      When enabling or disabling the JIT through .qmake.cache, make sure · 68a208d4
      hausmann@webkit.org authored
      to also toggle ENABLE_YARR_JIT.
      
      Patch by Jørgen Lind <jorgen.lind@nokia.com> on 2009-10-07
      Reviewed by Simon Hausmann.
      
      * JavaScriptCore.pri:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49238 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      68a208d4
    • hausmann@webkit.org's avatar
      Doc: Document HTML and status as properties. · 8be27280
      hausmann@webkit.org authored
      Patch by Volker Hilsheimer <volker.hilsheimer@nokia.com> on 2009-10-07
      Reviewed by Simon Hausmann.
      
      * Api/qgraphicswebview.cpp:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49237 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8be27280
    • hausmann@webkit.org's avatar
      Fix qdoc warning about disabled renderHints property · cd37f63c
      hausmann@webkit.org authored
      on Symbian.
      
      Patch by Martin Smith <msmith@trolltech.com> on 2009-10-07
      Reviewed by Simon Hausmann.
      
      * Api/qwebview.cpp:
      * Api/qwebview.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49236 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cd37f63c
    • xan@webkit.org's avatar
      2009-10-07 Xan Lopez <xlopez@igalia.com> · 727243ed
      xan@webkit.org authored
              Reviewed by Gustavo Noronha.
      
              getChildrenWithRange expects as last parameter the end index, not
              the length of the range. Correct this and clarify the variable
              names to reflect how the code works.
      
              * DumpRenderTree/gtk/AccessibilityUIElementGtk.cpp:
              (AccessibilityUIElement::getChildrenWithRange):
              (AccessibilityUIElement::getChildAtIndex):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49235 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      727243ed
    • pfeldman@chromium.org's avatar
      2009-10-07 Pavel Feldman <pfeldman@chromium.org> · 5f25b5d8
      pfeldman@chromium.org authored
              Reviewed by Timothy Hatcher.
      
              Web Inspector: Migrate database inspection to the injected script-based schema.
      
              https://bugs.webkit.org/show_bug.cgi?id=29788
      
              * bindings/js/JSInspectorBackendCustom.cpp:
              (WebCore::JSInspectorBackend::databaseForId):
              * bindings/v8/custom/V8CustomBinding.h:
              * bindings/v8/custom/V8InspectorBackendCustom.cpp:
              (WebCore::CALLBACK_FUNC_DECL):
              * inspector/InspectorBackend.cpp:
              (WebCore::InspectorBackend::dispatchOnInjectedScript):
              (WebCore::InspectorBackend::databaseForId):
              (WebCore::InspectorBackend::selectDatabase):
              (WebCore::InspectorBackend::getDatabaseTableNames):
              (WebCore::InspectorBackend::reportDidDispatchOnInjectedScript):
              * inspector/InspectorBackend.h:
              * inspector/InspectorBackend.idl:
              * inspector/InspectorController.cpp:
              (WebCore::InspectorController::populateScriptObjects):
              (WebCore::InspectorController::resetScriptObjects):
              (WebCore::InspectorController::selectDatabase):
              (WebCore::InspectorController::databaseForId):
              (WebCore::InspectorController::didOpenDatabase):
              (WebCore::InspectorController::didUseDOMStorage):
              (WebCore::InspectorController::selectDOMStorage):
              (WebCore::InspectorController::getDOMStorageResourceForId):
              * inspector/InspectorController.h:
              * inspector/InspectorDatabaseResource.cpp:
              (WebCore::InspectorDatabaseResource::InspectorDatabaseResource):
              (WebCore::InspectorDatabaseResource::bind):
              * inspector/InspectorDatabaseResource.h:
              (WebCore::InspectorDatabaseResource::database):
              (WebCore::InspectorDatabaseResource::id):
              * inspector/InspectorFrontend.cpp:
              (WebCore::InspectorFrontend::addDatabase):
              (WebCore::InspectorFrontend::selectDatabase):
              (WebCore::InspectorFrontend::didGetDatabaseTableNames):
              (WebCore::InspectorFrontend::addDOMStorage):
              * inspector/InspectorFrontend.h:
              * inspector/front-end/Database.js:
              (WebInspector.Database):
              (WebInspector.Database.prototype.get id):
              (WebInspector.Database.prototype.set name):
              (WebInspector.Database.prototype.set version):
              (WebInspector.Database.prototype.set domain):
              (WebInspector.Database.prototype.getTableNames):
              (WebInspector.Database.prototype.executeSql):
              * inspector/front-end/InjectedScript.js:
              (InjectedScript.dispatch):
              (InjectedScript.executeSql):
              (InjectedScript.executeSql.errorCallback):
              (InjectedScript.executeSql.queryTransaction):
              * inspector/front-end/InjectedScriptAccess.js:
              (InjectedScriptAccess._installHandler.InjectedScriptAccess.methodName):
              (InjectedScriptAccess._installHandler):
              * inspector/front-end/StoragePanel.js:
              (WebInspector.StoragePanel.prototype.selectDatabase):
              (WebInspector.StoragePanel.prototype.dataGridForResult):
              * inspector/front-end/inspector.js:
              (WebInspector.addDatabase):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49234 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5f25b5d8