- 21 May, 2009 7 commits
-
-
eric@webkit.org authored
Reviewed by Alexey Proskuryakov. Rename DragController::dragOperation() to sourceDragOperation() for clarity Remove unused setDragOperation() There are two times DragOperation is used. The source specifies what drag operations it supports (in a mask) and the destination picks a subset of those as DragOperations it supports if a drop were to occur. I was confused when I first saw this accessor as to which it meant. It turns out that this is only used when WebKit starts a drag, and we keep it around so that we can provide this information to other Mac OS X applications when they ask. I've renamed the method for clarity so the next person in this code will be less confused. No functional changes, thus no tests. * page/DragController.h: (WebCore::DragController::sourceDragOperation): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43967 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
ap@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=19517 <rdar://problem/6007112> DOM modification of textArea causes Access Violation (NULL pointer?) This no longer happens with ToT, just adding a test. * fast/parser/head-parsing-19517-expected.txt: Added. * fast/parser/head-parsing-19517.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43966 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
mitz@apple.com authored
- correct a copyright header accidently reverted in r43964 * WebKitSystemInterface.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43965 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
mitz@apple.com authored
Reviewed by Anders Carlsson. - WebCore part of <rdar://problem/6901751> REGRESSION (r35515): Tiger crash painting the selection on registration page of car2go.com A bug in old versions of Core Graphics causes memory corruption to occur when clipping under certain conditions. Make the clipping functions fail silently under those conditions. Test: fast/block/float/selection-gap-clip-out-tiger-crash.html * WebCore.Tiger.exp: Added wkCGContextIsSafeToClip * platform/graphics/cg/GraphicsContextCG.cpp: (WebCore::safeCGContextClip): Added a wrapper around CGContextClip that, on Tiger, bails out if wkCGContextIsSafeToClip() returns false. (WebCore::safeCGContextEOClip): Ditto for CGContextEOClip. (WebCore::safeCGContextClipToRect): Ditto for CGContextClipToRect. (WebCore::GraphicsContext::fillPath): Changed to call the safe variants of CGContextClip, CGContextEOClip and CGContextClipToRect. (WebCore::GraphicsContext::strokePath): Ditto. (WebCore::GraphicsContext::fillRect): Ditto. (WebCore::GraphicsContext::clip): Ditto. (WebCore::GraphicsContext::clipOut): Ditto. (WebCore::GraphicsContext::clipOutEllipseInRect): Ditto. (WebCore::GraphicsContext::clipPath): Ditto. (WebCore::GraphicsContext::addInnerRoundedRectClip): Ditto. (WebCore::GraphicsContext::strokeRect): Ditto. * platform/mac/WebCoreSystemInterface.h: Added wkCGContextIsSafeToClip. * platform/mac/WebCoreSystemInterface.mm: Added wkCGContextIsSafeToClip. WebKit/mac: Reviewed by Anders Carlsson. - WebKit part of <rdar://problem/6901751> REGRESSION (r35515): Tiger crash painting the selection on registration page of car2go.com * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface): Added CGContextIsSafeToClip. WebKitLibraries: Reviewed by Anders Carlsson. - WebKitSystemInterface part of <rdar://problem/6901751> REGRESSION (r35515): Tiger crash painting the selection on registration page of car2go.com * WebKitSystemInterface.h: * libWebKitSystemInterfaceTiger.a: LayoutTests: Reviewed by Anders Carlsson. - test for <rdar://problem/6901751> REGRESSION (r35515): Tiger crash painting the selection on registration page of car2go.com * fast/block/float/selection-gap-clip-out-tiger-crash-expected.txt: Added. * fast/block/float/selection-gap-clip-out-tiger-crash.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43964 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
xan@webkit.org authored
Unreviewed build fix. https://bugs.webkit.org/show_bug.cgi?id=25910 WebkitGTK r43960 cannot compile Do not include local copy of guriescape header, which was removed. We now use the copy in glib. * platform/gtk/FileSystemGtk.cpp: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43963 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
cwzwarich@webkit.org authored
Reviewed by Maciej Stachowiak. Bug 25912: Harden NumberPrototype.cpp by removing use of strcpy() <https://bugs.webkit.org/show_bug.cgi?id=25912> This causes no change on SunSpider. * runtime/NumberPrototype.cpp: (JSC::integerPartNoExp): replace strcpy() with memcpy(), ASSERT that the temporary buffer has sufficient space to store the result, and move the explicit null-termination closer to the memcpy() for easier visual inspection of the code. (JSC::fractionalPartToString): replace strcpy() with memcpy(), and ASSERT that the temporary buffer has sufficient space to store the result. There is no explicit null-termination because this is done by the caller. The same is already true for exponentialPartToString(). (JSC::numberProtoFuncToExponential): replace strcpy() with memcpy(), explicitly null-terminate the result, and ASSERT that the temporary buffer has sufficient space to store the result. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43962 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
eric@webkit.org authored
Reviewed by Alexey Proskuryakov. Fix file-input-files-access which was passing for the wrong reasons. The log was pushing the drop target off screen and the drops were failing! * editing/pasteboard/file-input-files-access-expected.txt: * editing/pasteboard/resources/file-input-files-access.js: (testOrderedDraggingWithDirectory): (runTest): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43961 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 20 May, 2009 33 commits
-
-
weinig@apple.com authored
Reviewed by Cameron Zwarich. Cleanup the JSGlobalData when exiting early with the usage statement in jsc. * jsc.cpp: (printUsageStatement): (parseArguments): (jscmain): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43960 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
abarth@webkit.org authored
Reviewed by Dimitri Glazkov. https://bugs.webkit.org/show_bug.cgi?id=25706 It turns out the CurrentContext wasn't currect either because it gave us the frame for the write() function itself. We actually want the *calling* context. * bindings/v8/custom/V8HTMLDocumentCustom.cpp: (WebCore::CALLBACK_FUNC_DECL): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43958 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
kov@webkit.org authored
Skipping a new test. * platform/gtk/Skipped: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43957 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
kov@webkit.org authored
Skipping test that fails intermitently. * platform/gtk/Skipped: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43956 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
zecke@webkit.org authored
Install the four resources we are using. For the icons where an icon name is specified by freedeskop.org try to map the WebCore name to that name and fallback to the internal icon. For everything else use the internal icon name. Remove the temporary link stub as this is not required any more. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43955 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
zecke@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=19357 git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43954 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
kov@webkit.org authored
Rubber-stamped by Mark Rowe. Add GTK+-specific results for canvas-composite-alpha. This test has 'failing' cases that pass on GTK+/cairo. * platform/gtk/fast/canvas/canvas-composite-alpha-expected.txt: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43953 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
slewis@apple.com authored
Update the order files. <rdar://problem/6881750> Generate new order files. * JavaScriptCore.order: * WebCore.order: * WebKit.order: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43951 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
mrowe@apple.com authored
Reviewed by Gavin Barraclough. * plugins/PluginStream.cpp: (WebCore::PluginStream::startStream): Switch to using protocolIsJavaScript. * plugins/PluginView.cpp: (WebCore::scriptStringIfJavaScriptURL): Ditto. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43949 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
beidson@apple.com authored
2009-05-20 Brady Eidson <beidson@apple.com> Reviewed by Darin Adler. More protocolInHTTPFamily() cleanup. * xml/XMLHttpRequest.cpp: (WebCore::XMLHttpRequest::send): WebKit/win: 2009-05-20 Brady Eidson <beidson@apple.com> Reviewed by Darin Adler. More protocolInHTTPFamily() cleanup. * WebHistory.cpp: (WebHistory::visitedURL): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43946 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
mrowe@apple.com authored
Rubber-stamped by Eric Seidel. * blog/wp-content/themes/webkit/header.php: * header.inc: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43944 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
christian@webkit.org authored
Reviewed by Jan Alonzo. * platform/network/soup/ResourceHandleSoup.cpp: (WebCore::parseDataUrl): Always use Glib Base64 decoding. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43943 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
weinig@apple.com authored
Reviewed by Oliver Hunt. Fix for <rdar://problem/6905475> Office 2008: Entourage: Crash when you switch to "My Day" view The host function callback callObjCFallbackObject was not annotated with JSC_HOST_CALL which meant that when it was called by the JIT, which expects the JSC_HOST_CALL calling convention, the arguments are not in the expected places. * bridge/objc/objc_runtime.mm: (JSC::Bindings::callObjCFallbackObject): Added missing JSC_HOST_CALL annotation on callObjCFallbackObject. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43942 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
levin@chromium.org authored
Not Reviewed, build fix. Need to disable this assert while the chormium code is fixed for it. * platform/KURLGoogle.cpp: (WebCore::KURL::protocolIs): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43941 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
ddkilzer@apple.com authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43940 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
rdar://problem/5666078ddkilzer@apple.com authored
Test for <rdar://problem/5666078> Cookie parsing terminates at the first semicolon, ignoring quotes (16699) Reviewed by Brady Eidson. * http/tests/cookies/double-quoted-value-with-semi-colon-expected.txt: Added. * http/tests/cookies/double-quoted-value-with-semi-colon.html: Added. * http/tests/cookies/resources/double-quoted-value-with-semi-colon.js: Added. * platform/mac-tiger/Skipped: Added double-quoted-value-with-semi-colon.html since CFNetwork on Tiger stops parsing cookie values when it sees a semi-colon, even inside double quotes. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43939 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
levin@chromium.org authored
Not Reviewed, build fix. Change KURLGoogle.cpp to mirror the KURL.cpp changes done in http://trac.webkit.org/changeset/43929. Fix assert placement. * platform/KURLGoogle.cpp: (WebCore::KURL::protocolIs): (WebCore::protocolIs): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43938 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
beidson@apple.com authored
Reviewed by Darin Adler. <rdar://problem/6905336> REGRESSION: "Clear History" does not save empty history to disk * History/WebHistory.mm: (-[WebHistoryPrivate data]): If there are no entries, return an empty NSData instead of nil. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43937 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
levin@chromium.org authored
Reviewed by Dimitri Glazkov. Upstream V8 bindings for V8DomWindow. https://bugs.webkit.org/show_bug.cgi?id=25869 * bindings/v8/custom/V8DOMWindowCustom.cpp: (WebCore::V8Custom::WindowSetTimeoutImpl): Moved from v8_custom.cpp. (WebCore::isAscii): Moved from v8_custom.cpp. (WebCore::convertBase64): Moved from v8_custom.cpp. (WebCore::CALLBACK_FUNC_DECL): Moved from v8_custom.cpp. (WebCore::eventNameFromAttributeName): Moved from v8_custom.cpp. (WebCore::ACCESSOR_SETTER): Moved from v8_custom.cpp. (WebCore::ACCESSOR_GETTER): Moved from v8_custom.cpp. (WebCore::NAMED_ACCESS_CHECK): Moved from v8_custom.cpp. (WebCore::INDEXED_ACCESS_CHECK): Moved from v8_custom.cpp. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43936 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
christian@webkit.org authored
Rubberstamped by Gustavo Noronha. * platform/network/curl/ResourceHandleManager.cpp: (WebCore::parseDataUrl): Remove Gtk/ Glib Base64 decoding. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43935 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
christian@webkit.org authored
Reviewed by Gustavo Noronha. * GNUmakefile.am: * platform/gtk/guriescape.c: * platform/gtk/guriescape.h: Remove copies of g_uri_escape_string and g_uri_unescape_string now that we require Glib 2.16. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43934 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
levin@chromium.org authored
Not Reviewed, build fix. Change KURLGoogle.cpp to mirror changes done in http://trac.webkit.org/changeset/43929. * platform/KURLGoogle.cpp: (WebCore::protocolIsJavaScript): (WebCore::protocolIs): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43933 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
beidson@apple.com authored
Rubberstamped by Sam Weinig At all call sites that check if a KURL has either the http or https protocol, use the KURL::protocolInHTTPFamily() accessor, instead. * loader/FrameLoader.cpp: (WebCore::FrameLoader::iconURL): (WebCore::FrameLoader::didOpenURL): (WebCore::FrameLoader::open): * loader/appcache/ApplicationCache.cpp: (WebCore::ApplicationCache::requestIsHTTPOrHTTPSGet): * loader/loader.cpp: (WebCore::Loader::load): * xml/XMLHttpRequest.cpp: (WebCore::XMLHttpRequest::send): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43932 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
andersca@apple.com authored
Reviewed by Darin Adler and Kevin Decker. WebKit side of <rdar://problem/6895072> Pass the localization as a launch property. * Plugins/Hosted/NetscapePluginHostManager.mm: (WebKit::NetscapePluginHostManager::spawnPluginHost): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43931 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
beidson@apple.com authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43930 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
beidson@apple.com authored
2009-05-20 Brady Eidson <beidson@apple.com> Reviewed by Darin Adler. Fix <rdar://problem/6904941> and https://bugs.webkit.org/show_bug.cgi?id=25300 KURL parsing changes back in r30243 and r30815 made javascript urls that use the form "javascript://" be detected as invalid hierarchical URLs. When a KURL is marked as invalid, you can no longer ask it a question such as "is your protocol javascript?" Therefore FrameLoader wouldn't recognize them as javascript URLs and instead try to navigated to them. URL parsing rules aside, such URLs are in use in the wild (Microsoft's Virtual Earth being a high profile example) and actually represent valid javascript. Whenever checking for javascript urls, the new protocolIsJavaScript() should be used as it functions on a String which doesn't have to pass KURLs parsing rules. Test: fast/loader/javascript-url-hierarchical-execution.html * bindings/js/JSAttrCustom.cpp: (WebCore::JSAttr::setValue): Use protocolIsJavaScript(). * bindings/js/JSDOMWindowCustom.cpp: (WebCore::JSDOMWindow::setLocation): Ditto. (WebCore::createWindow): Ditto. (WebCore::JSDOMWindow::open): Ditto. * bindings/js/JSElementCustom.cpp: (WebCore::allowSettingSrcToJavascriptURL): Ditto. * bindings/js/JSHTMLFrameElementCustom.cpp: (WebCore::allowSettingJavascriptURL): Ditto. * bindings/js/JSHTMLIFrameElementCustom.cpp: (WebCore::JSHTMLIFrameElement::setSrc): Ditto. * bindings/js/JSLocationCustom.cpp: (WebCore::navigateIfAllowed): Ditto. (WebCore::JSLocation::reload): Ditto. * editing/markup.cpp: (WebCore::appendQuotedURLAttributeValue): Ditto. * html/HTMLAnchorElement.cpp: (WebCore::HTMLAnchorElement::parseMappedAttribute): Ditto. * loader/FrameLoader.cpp: (WebCore::FrameLoader::requestFrame): Ditto. (WebCore::FrameLoader::submitForm): Ditto. (WebCore::FrameLoader::executeIfJavaScriptURL): Ditto. * platform/KURL.cpp: (WebCore::KURL::init): Use protocolIsJavaScript(). (WebCore::KURL::protocolIs): ASSERT that the protocol being asked about is not javascript. Such checks should go through protocolIsJavaScript() instead. (WebCore::encodeRelativeString): Use protocolIsJavaScript(). (WebCore::protocolIsJavaScript): * platform/KURL.h: LayoutTests: 2009-05-20 Brady Eidson <beidson@apple.com> Reviewed by Darin Adler. Fix <rdar://problem/6904941> and https://bugs.webkit.org/show_bug.cgi?id=25300 * fast/loader/javascript-url-hierarchical-execution-expected.txt: Added. * fast/loader/javascript-url-hierarchical-execution.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43929 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
mrowe@apple.com authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43926 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
zecke@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=24510 PluginPackageGtk.cpp and PluginPackageQt.cpp assigned _NPN_HasMethod to hasproperty and _NPN_HasProperty to hashmethod. This commit is fixing it. It is also adding test code to PluginObject.cpp and it will invoke this code from a new test. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43923 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
weinig@apple.com authored
Reviewed by Timothy Hatcher. Make absoluteRectsForRange and absoluteQuadsForRange non-virtual and only exist on RenderText. * dom/Range.cpp: (WebCore::Range::textRects): * inspector/InspectorController.cpp: (WebCore::InspectorController::drawNodeHighlight): Use absoluteQuads instead of absoluteQuadsForRange since no range is being specifiec. * rendering/RenderObject.cpp: * rendering/RenderObject.h: * rendering/RenderText.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43922 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
mitz@apple.com authored
* WebCoreSupport/WebChromeClient.h: (WebChromeClient::setCursor): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43921 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
xan@webkit.org authored
Reviewed by Gustavo Noronha. Implement AtkObject::focus-event and AtkObject::state-changed:focused signal emission. Adds a new handleFocusedUIElementChangedWithRenderers, only in the GTK port, called at the same point than handleFocusedUIElementChanged but with two parameters, the old and the newly focused RenderObjects. We need this, since the ATK signals require us to pass the objects involved in the focus change as arguments. * accessibility/AXObjectCache.h: * accessibility/gtk/AXObjectCacheAtk.cpp: (WebCore::AXObjectCache::handleFocusedUIElementChangedWithRenderers): * dom/Document.cpp: (WebCore::Document::setFocusedNode): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43920 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
ariya@webkit.org authored
Reviewed by Simon Hausmann and Holger Freyther. [Qt] Add renderHints property to QWebView. * Api/qwebview.cpp: (QWebViewPrivate::QWebViewPrivate): (QWebView::renderHints): (QWebView::setRenderHints): (QWebView::setRenderHint): (QWebView::paintEvent): * Api/qwebview.h: * tests/qwebview/qwebview.pro: Added. * tests/qwebview/tst_qwebview.cpp: Added. (tst_QWebView::tst_QWebView): (tst_QWebView::~tst_QWebView): (tst_QWebView::init): (tst_QWebView::cleanup): (tst_QWebView::renderHints): * tests/tests.pro: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43919 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
zecke@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=25834 With recent additions to ChromeClient.h empty defaults were added. This is bad for porters as these changes go unnoticed and at runtime no notImplemented warning is logged and grepping for notImplemented will not show anything. Change this Client to be like the other Clients again and always have pure virtuals (but for stuff inside #ifdef PLATFORM(MAC)). Update the various WebKit/* implementations to compile again. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43918 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-