thatcher [Thu, 14 Dec 2006 19:30:36 +0000 (19:30 +0000)]
top level:
Reviewed by Brady.
* Makefile.shared: use $PIPESTATUS[0] and a sub-shell to exit with xcodebuild's exit status
WebKitTools:
Reviewed by Brady.
* Makefile.shared: use $PIPESTATUS[0] and a sub-shell to exit with xcodebuild's exit status
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18216
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ap [Thu, 14 Dec 2006 18:05:16 +0000 (18:05 +0000)]
Reviewed by Darin.
http://bugs.webkit.org/show_bug.cgi?id=11828
Fix a leak of NSURLRequest on each update - RetainPtr retains the object itself.
* platform/network/mac/ResourceRequestMac.mm:
(WebCore::ResourceRequest::doUpdatePlatformRequest):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18215
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hausmann [Thu, 14 Dec 2006 17:32:52 +0000 (17:32 +0000)]
2006-12-14 Simon Hausmann <hausmann@kde.org>
Reviewed by Zack.
* QtLauncher/QtLauncher.pro: Link this little test program
with rpath, for convenience. (This is never going to get installed
anyway)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18214
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hausmann [Thu, 14 Dec 2006 16:47:26 +0000 (16:47 +0000)]
2006-12-14 Simon Hausmann <hausmann@kde.org>
Reviewed by Zack Rusin.
* WebCore.pro: Clean up the xpath grammar generation rule.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18213
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zack [Thu, 14 Dec 2006 14:22:13 +0000 (14:22 +0000)]
Make it link with temporary stubs (from lars, icefox)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18212
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zack [Thu, 14 Dec 2006 11:40:25 +0000 (11:40 +0000)]
Compilation fixes for the Qt port after last nights changes
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18211
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
rwlbuis [Thu, 14 Dec 2006 10:36:15 +0000 (10:36 +0000)]
Reviewed by Oliver.
http://bugs.webkit.org/show_bug.cgi?id=11726
SVG Image do not take into account clip/overflow when hit testing
Take into account the overflowRect when hit-testing <svg> container.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18210
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hyatt [Thu, 14 Dec 2006 07:52:14 +0000 (07:52 +0000)]
Fix for bug 11825, dragging elements via -khtml-user-drag is broken (affects Dashboard). Make sure
to clear the paintingRoot properly when recurring into children. It would be nice to find a design
that prevented this mistake from being made and didn't require explicit clearing of the root.
Reviewed by olliej
* rendering/InlineFlowBox.cpp:
(WebCore::InlineFlowBox::paint):
* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::paintChildren):
* rendering/RenderBox.cpp:
(WebCore::RenderBox::paint):
* rendering/RenderTable.cpp:
(WebCore::RenderTable::paint):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18208
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
andersca [Thu, 14 Dec 2006 01:30:02 +0000 (01:30 +0000)]
* loader/FrameLoader.h:
id is mac-only.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18206
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
beidson [Wed, 13 Dec 2006 23:34:09 +0000 (23:34 +0000)]
Implicitly reviewed by Darin, Hyatt, Maciej, and others!
Fixes a document tear down crash.
Changes a few long standing assertions to our new style
* dom/Document.cpp:
(WebCore::Document::~Document):
(WebCore::Document::topDocument):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18205
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
mjs [Wed, 13 Dec 2006 23:22:44 +0000 (23:22 +0000)]
Reviewed by Brady and Anders.
* Makefile.shared: Stop spewing the environment all the time, at least for command-line builds.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18204
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
mjs [Wed, 13 Dec 2006 23:20:13 +0000 (23:20 +0000)]
JavaScriptCore:
Reviewed by Anders.
- added equality and inequality operations for HashMap and Vector, useful for comparing more complex types
* wtf/HashMap.h:
(WTF::operator==):
(WTF::operator!=):
* wtf/Vector.h:
(WTF::operator==):
(WTF::operator!=):
WebCore:
Reviewed by Anders.
- converted many places to use ResourceRequest instead of NSURLRequest
* WebCore.exp:
* loader/DocumentLoader.h:
* loader/FrameLoader.cpp:
(WebCore::FrameLoader::stopPolicyCheck):
* loader/FrameLoader.h:
(WebCore::PolicyCheck::request):
* loader/FrameLoaderClient.h:
* loader/MainResourceLoader.h:
* loader/mac/DocumentLoaderMac.mm:
(WebCore::DocumentLoader::DocumentLoader):
(WebCore::DocumentLoader::originalRequest):
(WebCore::DocumentLoader::originalRequestCopy):
(WebCore::DocumentLoader::request):
(WebCore::DocumentLoader::initialRequest):
(WebCore::DocumentLoader::actualRequest):
(WebCore::DocumentLoader::URL):
(WebCore::DocumentLoader::unreachableURL):
(WebCore::DocumentLoader::replaceRequestURLForAnchorScroll):
(WebCore::DocumentLoader::setRequest):
(WebCore::DocumentLoader::stopLoading):
(WebCore::DocumentLoader::setLastCheckedRequest):
(WebCore::DocumentLoader::lastCheckedRequest):
(WebCore::DocumentLoader::URLForHistory):
* loader/mac/FrameLoaderMac.mm:
(WebCore::FrameLoader::load):
(WebCore::FrameLoader::startLoadingMainResource):
(WebCore::FrameLoader::applyUserAgent):
(WebCore::FrameLoader::originalRequest):
(WebCore::FrameLoader::receivedMainResourceError):
(WebCore::FrameLoader::callContinueFragmentScrollAfterNavigationPolicy):
(WebCore::FrameLoader::continueFragmentScrollAfterNavigationPolicy):
(WebCore::FrameLoader::commitProvisionalLoad):
(WebCore::FrameLoader::initialRequest):
(WebCore::FrameLoader::setRequest):
(WebCore::FrameLoader::checkNavigationPolicy):
(WebCore::FrameLoader::shouldReloadToHandleUnreachableURL):
(WebCore::FrameLoader::reloadAllowingStaleData):
(WebCore::FrameLoader::reload):
(WebCore::FrameLoader::checkNewWindowPolicy):
(WebCore::FrameLoader::continueAfterNewWindowPolicy):
(WebCore::FrameLoader::continueAfterNavigationPolicy):
(WebCore::FrameLoader::callContinueLoadAfterNavigationPolicy):
(WebCore::FrameLoader::continueLoadAfterNavigationPolicy):
(WebCore::FrameLoader::checkLoadCompleteForThisFrame):
(WebCore::FrameLoader::callContinueLoadAfterNewWindowPolicy):
(WebCore::FrameLoader::continueLoadAfterNewWindowPolicy):
(WebCore::FrameLoader::post):
(WebCore::FrameLoader::addExtraFieldsToRequest):
(WebCore::FrameLoader::isReloading):
(WebCore::FrameLoader::referrer):
(WebCore::FrameLoader::loadEmptyDocumentSynchronously):
(WebCore::FrameLoader::loadResourceSynchronously):
(WebCore::FrameLoader::originalRequestURL):
(WebCore::PolicyCheck::set):
(WebCore::PolicyCheck::call):
(WebCore::PolicyCheck::clearRequest):
* loader/mac/MainResourceLoaderMac.mm:
(WebCore::MainResourceLoader::callContinueAfterNavigationPolicy):
(WebCore::MainResourceLoader::continueAfterNavigationPolicy):
(WebCore::MainResourceLoader::isPostOrRedirectAfterPost):
* loader/mac/SubresourceLoaderMac.mm:
(WebCore::SubresourceLoader::create):
* loader/mac/WebDataProtocol.h:
* loader/mac/WebDataProtocol.mm:
* platform/KURL.cpp:
(WebCore::operator!=):
* platform/KURL.h:
* platform/mac/KURLMac.mm:
(WebCore::KURL::getNSURL):
* platform/network/FormData.h:
(WebCore::operator==):
(WebCore::operator!=):
* platform/network/ResourceRequest.cpp:
(WebCore::operator==):
* platform/network/ResourceRequest.h:
* platform/network/mac/ResourceRequestMac.mm:
(WebCore::ResourceRequest::doUpdatePlatformRequest):
WebKit:
Reviewed by Anders.
- adjusted for changes from NSURLRequest to ResourceRequest
* Plugins/WebPluginController.mm:
* WebCoreSupport/WebFrameLoaderClient.h:
* WebCoreSupport/WebFrameLoaderClient.mm:
(WebFrameLoaderClient::updateHistoryForReload):
(WebFrameLoaderClient::dispatchIdentifierForInitialRequest):
(WebFrameLoaderClient::dispatchDecidePolicyForMIMEType):
(WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
(WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
(WebFrameLoaderClient::startDownload):
(WebFrameLoaderClient::cannotShowURLError):
(WebFrameLoaderClient::createDocumentLoader):
* WebView/WebDataSource.mm:
(-[WebDataSource _initWithDocumentLoader:]):
(-[WebDataSource initialRequest]):
(-[WebDataSource request]):
* WebView/WebDocumentLoaderMac.h:
* WebView/WebDocumentLoaderMac.mm:
(WebDocumentLoaderMac::WebDocumentLoaderMac):
* WebView/WebFrame.mm:
(-[WebFrame _createItem:]):
(-[WebFrame _loadItem:withLoadType:]):
(-[WebFrame loadArchive:]):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18203
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ggaren [Wed, 13 Dec 2006 23:10:32 +0000 (23:10 +0000)]
Reviewed by Darin Adler, Dave Hyatt.
Beefed up FocusController to handle frame focus. Changed implementors to
use FocusController, rather than the widget hierarchy, to focus frames.
(WebCore::FocusController::focusedNode): Made a minor change to focus a frame
before focusing the element inside of it. This matches FF.
(WebCore::FocusController::focusedFrame):
* platform/Widget.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18202
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
justing [Wed, 13 Dec 2006 21:33:23 +0000 (21:33 +0000)]
Reviewed by adele
<rdar://problem/
4818145>
Cannot setSelectedDOMRange to non-editable island unless it has editable content on both sides
There are editable positions before/after a "non-editable island" if its
a table, but the code in canonicalPosition was not using
editableRootForPosition to find root editable elements.
* editing/VisiblePosition.cpp:
(WebCore::VisiblePosition::canonicalPosition): Use editableRootForPosition
to fix the table case.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18201
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
sfalken [Wed, 13 Dec 2006 20:02:12 +0000 (20:02 +0000)]
2006-12-13 Steve Falkenburg <sfalken@apple.com>
Reviewed by Adam.
Added missing forwarding headers.
* ForwardingHeaders/kjs/value.h: Added.
* ForwardingHeaders/wtf/HashTable.h: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18199
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ggaren [Wed, 13 Dec 2006 17:05:33 +0000 (17:05 +0000)]
Updated results to match Justin Garcia's addition of rangeCount to
the selection object.
* fast/dom/Window/window-properties-expected.txt:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18198
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zack [Wed, 13 Dec 2006 14:45:38 +0000 (14:45 +0000)]
Make qmake the default build environment for the Qt port.
CMake currently doesn't work and updates to qmake will happen
a lot faster. Review by Rob
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18197
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zack [Wed, 13 Dec 2006 13:16:53 +0000 (13:16 +0000)]
make it compile after last nights changes from lars (r=maciej,me)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18196
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
aroben [Wed, 13 Dec 2006 02:34:10 +0000 (02:34 +0000)]
Reviewed by Anders.
Changed #import to #include to match the rest of our ForwardingHeaders.
* ForwardingHeaders/wtf/StringExtras.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18195
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
justing [Wed, 13 Dec 2006 00:48:23 +0000 (00:48 +0000)]
LayoutTests:
Reviewed by harrison
<rdar://problem/
4757667>
GoogleDocs: Style menu does not open
* editing/selection/rangeCount-expected.txt: Added.
* editing/selection/rangeCount.html: Added.
WebCore:
Reviewed by harrison
<rdar://problem/
4757667>
GoogleDocs: Style menu does not open
* bindings/js/kjs_window.cpp:
(KJS::Selection::getValueProperty): Added rangeCount.
* bindings/js/kjs_window.h:
(KJS::Selection::):
* editing/SelectionController.h:
(WebCore::SelectionController::rangeCount): Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18191
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
aliceli1 [Tue, 12 Dec 2006 23:58:55 +0000 (23:58 +0000)]
Reviewed by Oliver.
* bindings/js/JSSVGMatrixCustom.cpp:
added #ifdef SVG_SUPPORT
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18190
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
andersca [Tue, 12 Dec 2006 23:45:20 +0000 (23:45 +0000)]
Suggested by Darin.
* loader/ResourceLoader.cpp:
Move down include of ResourceHandle.h.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18189
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ggaren [Tue, 12 Dec 2006 23:30:09 +0000 (23:30 +0000)]
Fixing up svn properties on FocusController.*
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18188
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ggaren [Tue, 12 Dec 2006 22:11:18 +0000 (22:11 +0000)]
Reviewed by Adam Roben, Dave Hyatt, Darin Adler.
Factored focus control into a FocusController class. I inted to use this
class for handling window active state and the focused frame, as well.
Layout tests pass.
* WebCore.xcodeproj/project.pbxproj:
* dom/Document.cpp:
(WebCore::Document::view):
(WebCore::Document::page): New helper function.
* dom/Document.h: Moved setters before getters.
(WebCore::Document::hoverNode):
(WebCore::Document::activeNode):
* dom/Node.cpp:
(WebCore::Node::detach): Use the FocusController.
* page/FocusController.cpp: Added.
(WebCore::shouldFocus): renamed and refactored this helper function.
(WebCore::shouldUnfocus): ditto.
* page/FocusController.h: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18187
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
andersca [Tue, 12 Dec 2006 22:03:27 +0000 (22:03 +0000)]
Rubber Stamped by Geoff.
* platform/Base64.cpp:
* platform/Base64.h:
Put functions inside of the WebCore namespace.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18186
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
andersca [Tue, 12 Dec 2006 21:42:24 +0000 (21:42 +0000)]
Try fixing the non-Mac builds.
* loader/ResourceLoader.cpp:
(WebCore::ResourceLoader::willSendRequest):
(WebCore::ResourceLoader::didReceiveResponse):
(WebCore::ResourceLoader::didReceiveData):
(WebCore::ResourceLoader::didFinishLoading):
(WebCore::ResourceLoader::didFail):
* loader/SubresourceLoader.cpp:
(WebCore::SubresourceLoader::create):
* loader/SubresourceLoader.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18185
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
andersca [Tue, 12 Dec 2006 21:14:50 +0000 (21:14 +0000)]
WebCore:
Reviewed by Darin.
Turn ResourceLoader into a ResourceHandleClient and stop using NSURLConnection in the loader.
* WebCore.exp:
Add new methods needed by WebKit.
* WebCore.xcodeproj/project.pbxproj:
Make ResourceHandle.h a private header.
* loader/FrameLoaderClient.h:
Change the download method to take a ResourceHandle instead of an NSURLConnection.
* loader/MainResourceLoader.h:
Get rid of the proxy instance variable, that's handled by ResourceHandlw now.
* loader/ResourceLoader.h:
(WebCore::ResourceLoader::didReceiveAuthenticationChallenge):
(WebCore::ResourceLoader::didCancelAuthenticationChallenge):
(WebCore::ResourceLoader::willStopBufferingData):
(WebCore::ResourceLoader::willCacheResponse):
(WebCore::ResourceLoader::receivedCredential):
(WebCore::ResourceLoader::receivedRequestToContinueWithoutCredential):
(WebCore::ResourceLoader::receivedCancellation):
(WebCore::ResourceLoader::handle):
* loader/SubresourceLoader.h:
Make ResourceLoader a ResourceHandleClient, moving the methods from SubresourceLoader.
* loader/mac/MainResourceLoaderMac.mm:
(WebCore::MainResourceLoader::MainResourceLoader):
(WebCore::MainResourceLoader::continueAfterContentPolicy):
(WebCore::MainResourceLoader::loadNow):
(WebCore::MainResourceLoader::load):
Use a ResourceHandle instead of an NSURLConnection.
* loader/mac/ResourceLoaderMac.mm:
(WebCore::ResourceLoader::~ResourceLoader):
(WebCore::ResourceLoader::releaseResources):
(WebCore::ResourceLoader::load):
(WebCore::ResourceLoader::setDefersLoading):
(WebCore::ResourceLoader::resourceData):
(WebCore::ResourceLoader::didReceiveAuthenticationChallenge):
(WebCore::ResourceLoader::didCancel):
(WebCore::ResourceLoader::willSendRequest):
(WebCore::ResourceLoader::didReceiveResponse):
(WebCore::ResourceLoader::didReceiveData):
(WebCore::ResourceLoader::didFinishLoading):
(WebCore::ResourceLoader::didFail):
Remove the WebCoreResourceLoaderAsDelegate class, use a ResourceHandle instead of an NSURLConnection.
* loader/mac/SubresourceLoaderMac.mm:
Remove ResourceHandleClient methods.
* platform/network/ResourceHandle.cpp:
(WebCore::ResourceHandle::ResourceHandle):
(WebCore::ResourceHandle::create):
* platform/network/ResourceHandle.h:
* platform/network/ResourceHandleInternal.h:
(WebCore::ResourceHandleInternal::ResourceHandleInternal):
Add an extra argument denoting whether this ResourceHandle can possibly be "converted" into one used for downloads.
* platform/network/mac/ResourceHandleMac.mm:
(WebCore::ResourceHandle::~ResourceHandle):
(WebCore::ResourceHandle::start):
(WebCore::ResourceHandle::releaseProxy):
(WebCore::ResourceHandle::connection):
New methods for creating a NSURLConnectionDelegateProxy which is used when creating a NSURLDownload from an existing
connection.
WebKit:
Reviewed by Darin.
* WebCoreSupport/WebFrameLoaderClient.h:
* WebCoreSupport/WebFrameLoaderClient.mm:
(WebFrameLoaderClient::download):
Get the handle and proxy from the ResourceHandle now that they aren't passed to us.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18184
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ap [Tue, 12 Dec 2006 20:09:58 +0000 (20:09 +0000)]
Reviewed by Geoff. Based on a patch by Maks Orlovich.
http://bugs.webkit.org/show_bug.cgi?id=6257
Throw errors on invalid expressions (KJS merge)
JavaScriptCore:
* kjs/regexp.cpp:
(KJS::RegExp::RegExp):
(KJS::RegExp::~RegExp):
(KJS::RegExp::match):
* kjs/regexp.h:
(KJS::RegExp::flags):
(KJS::RegExp::isValid):
(KJS::RegExp::errorMessage):
(KJS::RegExp::subPatterns):
Remember and report RegExp construction failures. Renamed data members not to start with underscores.
* kjs/regexp_object.cpp:
(RegExpObjectImp::construct): Raise an exception if RegExp construction fails.
(RegExpObjectImp::callAsFunction): Removed an obsolete comment.
* tests/mozilla/ecma_3/RegExp/regress-119909.js: Reduced the number of nested parentheses to
a value supported by PCRE.
LayoutTests:
* fast/js/kde/RegExp-expected.txt: One more test passes.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18182
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
andersca [Tue, 12 Dec 2006 19:42:03 +0000 (19:42 +0000)]
Reviewed by Geoff.
* loader/mac/SubresourceLoaderMac.mm:
(WebCore::SubresourceLoader::load):
* platform/network/mac/ResourceHandleMac.mm:
(WebCore::ResourceHandle::start):
Move the didTellBridgeAboutLoad call to SubresourceLoader in preparation for getting rid of
the DocLoader parameter to ResourceHandle::create.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18181
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ggaren [Tue, 12 Dec 2006 19:32:35 +0000 (19:32 +0000)]
Oops. Forgot to check in this file.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18180
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
staikos [Tue, 12 Dec 2006 12:09:51 +0000 (12:09 +0000)]
Make the last checkin compile
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18178
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zimmermann [Tue, 12 Dec 2006 11:19:34 +0000 (11:19 +0000)]
Fixes: bugs.webkit.org/show_bug.cgi?id=11797
Remove SVGMatrix, replace it by AffineTransform usage everywhere.
Changed AffineTransform API to be able to be used within generation
(m11() -> a(), m12() -> b(), ...). Add some methods needed for SVG.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18177
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
staikos [Tue, 12 Dec 2006 09:55:16 +0000 (09:55 +0000)]
Fix the Qt build
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18176
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ggaren [Tue, 12 Dec 2006 09:02:13 +0000 (09:02 +0000)]
LayoutTests:
Reviewed by Beth Dakin.
Added some focus-related tests.
* editing/undo/undo-iframe-location-change-expected.txt: Updated to reflect
the fact that we now unfocus nodes when they're removed from the document.
* fast/events/keypress-removed-node-expected.txt: Added.
* fast/events/keypress-removed-node.html: Added.
* fast/forms/focus2-expected.txt: Added.
* fast/forms/focus2.html: Added.
WebCore:
Reviewed by Beth Dakin.
Moved focus control to the page level. Fixed a minor bug where a node
would retain keyboard focus even when removed from the document.
We should probably move this, along with hover and active, into a separate
FocusController. But I'm too tired right now.
* dom/Document.cpp: Migrated code to Page
(WebCore::Document::removedLastRef):
(WebCore::Document::detach):
(WebCore::Document::setFocusedNode):
(WebCore::Document::focusedNode):
* dom/Document.h:
* dom/Node.cpp:
(WebCore::Node::detach): Clear ourselves from keyboard focus. This fixes
the minor bug and was also necessary to prevent regressions caused by hanging
on to a focused node after the document was replaced.
* dom/Node.h:
(WebCore::Node::inDetach):
* page/Page.cpp: Migrated code from Document
(WebCore::shouldAcquireEditingFocus):
(WebCore::shouldRelinquishEditingFocus):
(WebCore::clearSelectionIfNeeded):
(WebCore::widgetForNode):
(WebCore::Page::setFocusedNode):
* page/Page.h:
(WebCore::Page::focusedNode):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18175
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ggaren [Tue, 12 Dec 2006 08:45:48 +0000 (08:45 +0000)]
build fix
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18174
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ap [Tue, 12 Dec 2006 08:28:15 +0000 (08:28 +0000)]
Added the new XHR EventTarget methods to test results.
* fast/dom/Window/window-properties-expected.txt:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18173
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ap [Tue, 12 Dec 2006 07:59:58 +0000 (07:59 +0000)]
Reviewed by Darin.
http://bugs.webkit.org/show_bug.cgi?id=11053
XMLHttpRequest should be an EventTarget
Test: http/tests/xmlhttprequest/event-target.html
* bindings/js/JSXMLHttpRequest.cpp:
(KJS::JSXMLHttpRequest::mark):
(KJS::JSXMLHttpRequest::~JSXMLHttpRequest):
(KJS::JSXMLHttpRequestProtoFunc::callAsFunction):
* bindings/js/JSXMLHttpRequest.h:
(KJS::JSXMLHttpRequest::):
* xml/xmlhttprequest.cpp:
(WebCore::XMLHttpRequest::addEventListener):
(WebCore::XMLHttpRequest::removeEventListener):
(WebCore::XMLHttpRequest::dispatchEvent):
(WebCore::XMLHttpRequest::callReadyStateChangeListener):
* xml/xmlhttprequest.h:
(WebCore::XMLHttpRequest::eventListeners):
Implement EventTarget methods (except for NS variations, which Firefox doesn't have either).
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18172
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
darin [Tue, 12 Dec 2006 07:13:35 +0000 (07:13 +0000)]
Reviewed by Geoff.
- fix http://bugs.webkit.org/show_bug.cgi?id=11809
fast/dom/gc-8.html crash in alternate-thread marking code in ScriptInterpreter
DocumentType objects were getting filed under the wrong document in the
DOM objects structure.
* bindings/js/kjs_binding.h: Added a destructor for debugging purposes only.
* bindings/js/kjs_binding.cpp:
(KJS::wrapperSet): Added. Set of outstanding wrappers for debugging.
(KJS::addWrapper): Added.
(KJS::removeWrapper): Added.
(KJS::removeWrappers): Added.
(KJS::DOMObject::~DOMObject): Added. Asserts that there is no outstanding reference
to this wrapper since it's being destroyed.
(KJS::ScriptInterpreter::putDOMObject): Added a call to ADD_WRAPPER.
(KJS::ScriptInterpreter::forgetDOMObject): Added a call to REMOVE_WRAPPER.
(KJS::ScriptInterpreter::forgetDOMNodeForDocument): Added a call to REMOVE_WRAPPER.
(KJS::ScriptInterpreter::putDOMNodeForDocument): Added a call to ADD_WRAPPER.
(KJS::ScriptInterpreter::forgetAllDOMNodesForDocument): Added a call to REMOVE_WRAPPERS.
(KJS::ScriptInterpreter::updateDOMNodeDocument): Added calls to REMOVE_WRAPPER and
ADD_WRAPPER so the out-of-order transaction doesn't upset the assertions in the functions
we're calling. Another solution would be to reorder the two, but I think that would
create a race where another thread could garbage collect after the forget but before the put.
(KJS::ScriptInterpreter::wasRunByUserGesture): Tweaked formatting.
* dom/Document.cpp: (WebCore::Document::adoptNode): Removed call to updateDOMNodeDocument
since setDocument now takes care of that.
* dom/Node.cpp:
(WebCore::Node::setDocument): Added call to updateDOMNodeDocument here.
(WebCore::Node::checkAddChild): Removed call to updateDOMNodeDocument since setDocument
now takes care of that.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18171
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ap [Tue, 12 Dec 2006 06:47:43 +0000 (06:47 +0000)]
bugs.webkit.org/show_bug.cgi?id=9673
Add support for window.atob() and window.btoa()
Reviewed by Darin.
JavaScriptCore:
* JavaScriptCore.exp: Export UString::is8Bit().
* JavaScriptCore.xcodeproj/project.pbxproj: Added StringExtras.h as
a private header.
WebCore:
* WebCore.xcodeproj/project.pbxproj: Added Base64.{h,cpp}
* bindings/js/kjs_window.cpp:
(KJS::WindowFunc::callAsFunction):
* bindings/js/kjs_window.h:
(KJS::Window::):
* platform/Base64.cpp: Added.
(base64Encode):
(base64Decode):
* platform/Base64.h: Added.
* ForwardingHeaders/wtf/StringExtras.h: Added.
* platform/DeprecatedString.cpp: Use strncasecmp from StringExtras.
LayoutTests:
* fast/dom/Window/atob-btoa-expected.txt: Added.
* fast/dom/Window/atob-btoa.html: Added.
* fast/dom/Window/btoa-pnglet-expected.checksum: Added.
* fast/dom/Window/btoa-pnglet-expected.png: Added.
* fast/dom/Window/btoa-pnglet-expected.txt: Added.
* fast/dom/Window/btoa-pnglet.html: Added.
* fast/dom/Window/window-properties-expected.txt:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18170
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
darin [Tue, 12 Dec 2006 05:56:20 +0000 (05:56 +0000)]
WebCore:
Reviewed by Brady.
- did some of the Mac-specific file moves mentioned in my recent mail to the WebKit list
* WebCore.xcodeproj/project.pbxproj: Updated project for file moves.
* bridge/mac/FrameMac.h: Moved to page/mac.
* bridge/mac/FrameMac.mm: Ditto.
* bridge/mac/WebCoreFrameBridge.h: Ditto.
* bridge/mac/WebCoreFrameBridge.mm: Ditto.
* bridge/mac/WebCoreFrameView.h: Ditto.
* bridge/mac/WebCoreViewFactory.h: Ditto.
* bridge/mac/WebCoreViewFactory.m: Ditto.
* bridge/mac/WebDashboardRegion.h: Ditto.
* bridge/mac/WebDashboardRegion.m: Ditto.
* bridge/mac/WebCoreKeyboardAccess.h: Moved to page/mac,
renamed WebCoreKeyboardUIMode.h, and made a C++ header.
* page/EventHandler.h: Updated for change to WebCoreKeyboardAccess.
* page/mac/EventHandlerMac.mm:
(WebCore::EventHandler::tabsToLinks): Ditto.
(WebCore::EventHandler::tabsToAllControls): Ditto.
(WebCore::EventHandler::keyboardUIMode): Ditto.
WebKit:
Reviewed by Brady.
- did some of the Mac-specific file moves mentioned in my recent mail to the WebKit list
* WebCoreSupport/WebFrameBridge.h: Updated for change to WebCoreKeyboardAccess.
* WebCoreSupport/WebFrameBridge.mm:
(-[WebFrameBridge _retrieveKeyboardUIModeFromPreferences:]): Ditto.
(-[WebFrameBridge keyboardUIMode]): Ditto.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18169
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
darin [Tue, 12 Dec 2006 05:47:08 +0000 (05:47 +0000)]
Reviewed by Brady.
* JavaScriptCore.xcodeproj/project.pbxproj: Let Xcode update this
(I think Hyatt is using an old Xcode).
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18168
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
darin [Tue, 12 Dec 2006 05:03:32 +0000 (05:03 +0000)]
* fast/frames/iframe-option-crash-expected.txt: Updated results for this test.
My recent change to owner element lifetime management changed these results,
but since the point of the test is simply to check if the page crashes, the
new result is probably OK. Or there could be some problem, but if so we need
some other investigation -- I couldn't see anything.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18167
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
bdakin [Tue, 12 Dec 2006 04:27:17 +0000 (04:27 +0000)]
WebCore:
Reviewed by Adam.
Primarily, this patch implements/hooks-up actions for the sub-menu
items in WebCore context menus. I fixed a few other things along
the way too:
-Made BUILDING_ON_TIGER ifdef work within C++ as well as
Obj-C
-Fixed bug where we would throw and Obj-C exception and
fail to pop up menus with more than one separator item.
-Re-named some of the spelling/grammar tags since Tiger and
Leopard share more of the actions than initially
anticipated.
* WebCorePrefix.h: Make BUILDING_ON_TIGER available to C++
* bridge/EditorClient.h: New functions to toggle
spelling/grammar checking.
* editing/Editor.cpp:
(WebCore::Editor::toggleContinuousSpellChecking): Call into client.
(WebCore::Editor::toggleGrammarChecking): Same.
(WebCore::Editor::toggleBold): call execToggleBold()
(WebCore::Editor::toggleUnderline): Create appropriate underline
style and apply to selection.
(WebCore::Editor::setBaseWritingDirection): Create appropriate
writing direction and apply to selection.
* editing/Editor.h:
* editing/mac/EditorMac.mm: New functions to show spelling guesses,
fonts, styles, and color panels.
* page/ContextMenuClient.h: New functions for the speech sub-menu.
* page/ContextMenuController.cpp:
(WebCore::ContextMenuController::contextMenuItemSelected): Fill in
editing sub-menu actions.
* platform/ContextMenu.cpp:
(WebCore::separatorItem): Helper function to create a separator
item.
(WebCore::createFontSubMenu): Put very mac-specific things within a
platform ifdef.
(WebCore::createSpellingAndGrammarSubMenu): Re-named some of the
spelling sub-menu tags.
(WebCore::createSpellingSubMenu): Same.
(WebCore::ContextMenu::populate): We can't share the separator
item. When we do, menus with more than one separator throw and obj-
c exception and fail to pop-up.
* platform/ContextMenuItem.h:
(WebCore::): Re-named some of the spelling sub-menu tags.
WebKit:
Reviewed by Adam.
WebKit support for editing sub-menu actions.
* WebCoreSupport/WebContextMenuClient.h: New functions for the
speech sub-menu.
* WebCoreSupport/WebContextMenuClient.mm:
(WebContextMenuClient::speak):
(WebContextMenuClient::stopSpeaking):
* WebCoreSupport/WebEditorClient.h: New functions to toggle
spelling/grammar checking.
* WebCoreSupport/WebEditorClient.mm:
(WebEditorClient::toggleContinuousSpellChecking):
(WebEditorClient::toggleGrammarChecking):
* WebView/WebUIDelegatePrivate.h: Re-named some of the spelling
sub-menu tags.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18166
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
aliceli1 [Tue, 12 Dec 2006 03:17:45 +0000 (03:17 +0000)]
WebCore:
Reviewed by Geoff, Adam.
Switch to use the Editor for copying URLs. Also some Pasteboard and PlatformMouseEvent cleanup.
All layout tests pass as they would without this patch.
* WebCore.exp:
added Editor::copyURL to be called from WebKit
* editing/Editor.cpp:
(WebCore::Editor::tryDHTMLCopy):
(WebCore::Editor::tryDHTMLCut):
Pasteboard::clearTypes() changed to clear()
(WebCore::Editor::writeSelectionToPasteboard):
(WebCore::Editor::cut):
(WebCore::Editor::copy):
Changed signature of writeSelection to take raw pointer instead of PassRefPtr
(WebCore::Editor::copyURL):
* editing/Editor.h:
Added copyURL.
* page/ContextMenuClient.h:
* page/ContextMenuController.cpp:
(WebCore::ContextMenuController::contextMenuItemSelected):
Removed copyLinkToClipboard
* platform/KURL.cpp:
(WebCore::KURL::lastPathComponent):
* platform/KURL.h:
Added lastPathComponent.
* platform/Pasteboard.h:
Changed some function names.
Moved some functions out of class to static.
* platform/PlatformMouseEvent.h:
(WebCore::):
Removed MouseEventType enum, added NoButton to MouseButton without disturbing other button values.
* platform/mac/PasteboardMac.mm:
Added writeURL, and moved some things around
* platform/mac/WebCoreSystemInterface.h:
* platform/mac/WebCoreSystemInterface.mm:
Add some calls necessary for Pasteboard::writeURL to work
WebKit:
Reviewed by Geoff, Adam.
switch to use the Editor for copying URLs
* DefaultDelegates/WebDefaultContextMenuDelegate.m:
(-[WebDefaultUIDelegate copyLinkToClipboard:]):
Call down to the editor for this.
* WebCoreSupport/WebSystemInterface.m:
(InitWebCoreSystemInterface):
Add some calls necessary for Pasteboard::writeURL to work
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18165
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zimmermann [Tue, 12 Dec 2006 01:26:16 +0000 (01:26 +0000)]
Update SVG pixel tests - hasn't been done for a long time.
Mainly tiny text related positioning changes, all fine.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18164
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
darin [Mon, 11 Dec 2006 23:40:47 +0000 (23:40 +0000)]
WebCore:
Reviewed by Brady.
- http://bugs.webkit.org/show_bug.cgi?id=11794
fix lifetime problems affecting Frame's ownerElement pointer
* CMakeLists.txt:
* WebCore.vcproj/WebCore/WebCore.vcproj:
* WebCore.xcodeproj/project.pbxproj:
* WebCoreSources.bkl:
Updated for new source files.
* WebCore.exp: Updated for changes to entry point names.
* bridge/mac/FrameMac.h:
* bridge/mac/FrameMac.mm: (WebCore::FrameMac::FrameMac):
* bridge/win/FrameWin.h:
* bridge/win/FrameWin.cpp: (WebCore::FrameWin::FrameWin):
* platform/qt/FrameQt.h:
* platform/qt/FrameQt.cpp: (WebCore::FrameQt::FrameQt):
Updated owner element type to HTMLFrameOwnerElement.
* bridge/mac/WebCoreFrameBridge.h: Removed non-C++ case since we don't
use that any more. Updated owner element type to HTMLFrameOwnerElement.
* dom/Document.cpp: Added include so that the ownerElement function can
compile (since it downcasts an HTMLFrameOwnerElement to an Element).
* html/HTMLFrameElement.cpp:
(WebCore::containingFrameSetElement): Moved this function in here; it
doesn't need to be a member function.
(WebCore::HTMLFrameElement::attach): Updated to call this.
* html/HTMLFrameElementBase.h:
* html/HTMLFrameElementBase.cpp:
(WebCore::HTMLFrameElementBase::HTMLFrameElementBase): Inherit from
HTMLFrameOwnerElement. Removed contentFrame, contentDocument, and
containingFrameSetElement. Removed friend classes.
* html/HTMLFrameOwnerElement.h: Added.
* html/HTMLFrameOwnerElement.cpp: Added.
* html/HTMLEmbedElement.h:
* html/HTMLEmbedElement.cpp:
* html/HTMLObjectElement.h:
* html/HTMLObjectElement.cpp:
Remove now-unneeded contentDocument functions.
* html/HTMLPlugInElement.h:
* html/HTMLPlugInElement.cpp:
(WebCore::HTMLPlugInElement::HTMLPlugInElement): Inherit from
HTMLFrameOwnerElement.
* loader/FormState.h:
* loader/FormState.cpp: Use HTMLFormElement instead of just Element.
* loader/FrameLoader.h:
* loader/FrameLoader.cpp:
(WebCore::FrameLoader::requestFrame): Use HTMLFormElement.
(WebCore::FrameLoader::loadSubframe): Ditto.
(WebCore::FrameLoader::requestObject): Don't pass an element parameter
to shouldUsePlugin, and remove now-unneeded type casts.
(WebCore::FrameLoader::shouldUsePlugin): Removed unneeded element parameter.
(WebCore::FrameLoader::handleFallbackContent): Use HTMLFrameOwnerElement.
(WebCore::FrameLoader::updateBaseURLForEmptyDocument): Ditto.
(WebCore::FrameLoader::isHostedByObjectElement): Ditto.
* loader/mac/FrameLoaderMac.mm:
(WebCore::FrameLoader::load): Use HTMLFormElement.
(WebCore::FrameLoader::post): Ditto.
(WebCore::FrameLoader::createFrame): Use HTMLFrameOwnerElement.
* page/Frame.h:
* page/FramePrivate.h:
* page/Frame.cpp:
(WebCore::parentFromOwnerElement): Use HTMLFrameOwnerElement.
(WebCore::Frame::Frame): Ditto. Also set m_contentFrame on the owner element.
(WebCore::Frame::ownerElement): Ditto.
(WebCore::Frame::ownerRenderer): Ditto.
(WebCore::Frame::disconnectOwnerElement): Clear m_contentFrame on the owner
element before disconnecting it.
(WebCore::FramePrivate::FramePrivate): Use HTMLFrameOwnerElement.
* page/mac/EventHandlerMac.mm: Include HTMLFrameOwnerElement.h so that
the code here will compile (no code changes needed).
* rendering/RenderFrame.cpp: (WebCore::RenderFrame::viewCleared):
Updated so that RenderFrame doesn't need to be a friend of HTMLFrameElementBase.
* rendering/RenderPart.h:
* rendering/RenderPart.cpp: (WebCore::RenderPart::RenderPart):
Use HTMLFrameOwnerElement.
* rendering/RenderPartObject.h:
* rendering/RenderPartObject.cpp:
(WebCore::RenderPartObject::RenderPartObject): Use HTMLFrameOwnerElement.
(WebCore::RenderPartObject::viewCleared): Updated so that RenderFrame doesn't
need to be a friend of HTMLFrameElementBase.
- other changes
* platform/network/ResourceHandleInternal.h: Added Noncopyable and
fixed indentation.
WebKit:
Reviewed by Brady.
- http://bugs.webkit.org/show_bug.cgi?id=11794
fix lifetime problems affecting Frame's ownerElement pointer
* WebCoreSupport/WebFrameBridge.mm:
(-[WebFrameBridge finishInitializingWithPage:WebCore::frameName:frameView:ownerElement:]):
(-[WebFrameBridge initSubframeWithOwnerElement:frameName:frameView:]):
(-[WebFrameBridge createChildFrameNamed:withURL:referrer:ownerElement:allowsScrolling:marginWidth:marginHeight:]):
Use HTMLFrameOwnerElement.
* WebCoreSupport/WebFrameLoaderClient.mm: Include the relevant headers for the
HTMLFormElement class.
* WebKit.xcodeproj/project.pbxproj: Let Xcode have its way.
* WebView/WebFrame.mm: (-[WebFrame frameElement]): Update includes and types for the
change in return type of ownerElement.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18163
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hyatt [Mon, 11 Dec 2006 23:11:49 +0000 (23:11 +0000)]
Fix failing layout test. Remove WTF::Unicode::isSpace and just revert
the caller to the old behavior.
Reviewed by darin
* platform/StringImpl.cpp:
(WebCore::isSpace):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18162
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hyatt [Mon, 11 Dec 2006 23:10:39 +0000 (23:10 +0000)]
Fix the failing layout test. Just remove Unicode::isSpace and
revert StringImpl to do the same thing it was doing before.
Reviewed by darin
* wtf/unicode/icu/UnicodeIcu.h:
* wtf/unicode/qt4/UnicodeQt4.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18161
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ap [Mon, 11 Dec 2006 20:13:58 +0000 (20:13 +0000)]
Reviewed by Adam.
http://bugs.webkit.org/show_bug.cgi?id=11807
Merge EventHandler::m_bMousePressed and EventHandler::m_mousePressed
* page/EventHandler.cpp:
(WebCore::EventHandler::EventHandler):
(WebCore::EventHandler::handleMousePressEvent):
(WebCore::EventHandler::handleMouseMoveEvent):
(WebCore::EventHandler::handleMouseReleaseEvent):
(WebCore::EventHandler::autoscrollTimerFired):
* page/EventHandler.h:
* page/mac/EventHandlerMac.mm:
(WebCore::EventHandler::handleDrag):
(WebCore::EventHandler::mouseMoved):
Merge EventHandler::m_bMousePressed and EventHandler::m_mousePressed
(WebCore::EventHandler::lastEventIsMouseUp):
Check that the "new" event is newer than the "old" one - that's not always the case
when running in DRT, as [NSApp currentEvent] isn't updated by eventSender.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18158
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zimmermann [Mon, 11 Dec 2006 18:52:08 +0000 (18:52 +0000)]
I forgot to remove these in the previous commit, they were only emptied out.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18155
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
harrison [Mon, 11 Dec 2006 18:03:41 +0000 (18:03 +0000)]
Fix previous checkin where I committed the wrong file.
<rdar://problem/
4863611> Xyle Scope crashes at launch due to WebCore-521.29.3
* WebView/WebFrame.mm:
(-[WebFrame frameElement]):
Add nil check.
* WebView/WebPreferences.m:
(-[WebPreferences editableLinkBehavior]):
Reverted to previous.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18154
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zimmermann [Mon, 11 Dec 2006 17:55:19 +0000 (17:55 +0000)]
Reviewed by Sam Weinig.
Fixes: http://bugs.webkit.org/show_bug.cgi?id=11801
Autogenerate POD types for ObjC/JS.
This removes the need for the hand-written JSSVG*, DOMSVG* wrappers
in bindings/js, bindings/objc. Makes it much easier to convert more
SVG types to POD types (ie. SVGMatrix* -> AffineTransform etc.)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18153
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ap [Mon, 11 Dec 2006 16:24:03 +0000 (16:24 +0000)]
Reviewed by Mitz.
Make this test faster by eliminating timeouts (which didn't work anyway, now that
mouse dragging events are stored and replayed on mouse-up).
* fast/text/atsui-rtl-override-selection.html:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18150
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zack [Mon, 11 Dec 2006 01:23:57 +0000 (01:23 +0000)]
add missing receive call for resources
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18149
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
staikos [Mon, 11 Dec 2006 01:23:48 +0000 (01:23 +0000)]
Add a default useragent for now.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18148
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zack [Mon, 11 Dec 2006 01:21:08 +0000 (01:21 +0000)]
Fix a small issue (crash) with resource loading (from lars, r=me)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18147
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
staikos [Mon, 11 Dec 2006 01:17:36 +0000 (01:17 +0000)]
Make the xpath grammar hack more specific (and work on OS X) until
it's cleaned up.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18146
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zack [Mon, 11 Dec 2006 01:12:12 +0000 (01:12 +0000)]
Set the WidgetClient in WidgetQt correctly. We need to make
this platform independent
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18145
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zack [Mon, 11 Dec 2006 00:13:41 +0000 (00:13 +0000)]
Fixes loading of local files (from Lars)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18144
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zack [Sun, 10 Dec 2006 22:49:56 +0000 (22:49 +0000)]
Don't use QTransform yet, affine QMatrix is enough for SVG,
plus it makes it work with 4.2.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18143
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zack [Sun, 10 Dec 2006 21:43:39 +0000 (21:43 +0000)]
Fixes for the layout tests regression testing and removal
of few unimplemented warnings (from lars)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18142
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zack [Sun, 10 Dec 2006 21:37:45 +0000 (21:37 +0000)]
Enable the SVG build by default and make it build.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18141
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zack [Sun, 10 Dec 2006 20:29:54 +0000 (20:29 +0000)]
This should go in in 18139, it's WebKitQt not WebKit
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18140
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zack [Sun, 10 Dec 2006 20:05:01 +0000 (20:05 +0000)]
Move the "*Client classes to WebKitQt/WebCoreSupport. Uptil
now they were all scattered around the Qt platform build dirs,
this cleans it up.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18139
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
staikos [Sun, 10 Dec 2006 19:14:11 +0000 (19:14 +0000)]
Add WebKitBuild/Release back to the output dir for external build cases.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18138
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zack [Sun, 10 Dec 2006 19:02:46 +0000 (19:02 +0000)]
Some more fixes to the dumprendertree application (from lars)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18137
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zack [Sun, 10 Dec 2006 18:57:27 +0000 (18:57 +0000)]
Add the project file.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18136
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zack [Sun, 10 Dec 2006 18:46:24 +0000 (18:46 +0000)]
Add back some stubs needed to compile (from lars, r=me)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18135
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
rwlbuis [Sun, 10 Dec 2006 18:16:47 +0000 (18:16 +0000)]
Reviewed by Darin.
http://bugs.webkit.org/show_bug.cgi?id=10996
WebKit needs (possibly private) XML/SVG innerText support (for DumpRenderTree)
Create an internal method to create innerText functionality for non-HTML
nodes. When called from DRT this omits CDATA nodes.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18134
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ap [Sun, 10 Dec 2006 10:17:28 +0000 (10:17 +0000)]
2006-12-10 MorganL <morganl.webkit@yahoo.com>
Reviewed by Maciej.
Fixes http://bugs.webkit.org/show_bug.cgi?id=11790
No way to initialize ResourceResponse::m_httpHeaderFields
* platform/network/ResourceResponse.cpp: impl setHTTPHeaderField
(WebCore::ResourceResponse::setHTTPHeaderField):
* platform/network/ResourceResponse.h: decl setHTTPHeaderField
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18133
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zack [Sun, 10 Dec 2006 09:21:56 +0000 (09:21 +0000)]
Cleanup more of the FrameQt crack - mainly finally remove
the methods that have been moved to their proper locations.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18132
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zack [Sun, 10 Dec 2006 07:13:57 +0000 (07:13 +0000)]
Remove unused/pointless code from FrameQtClient.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18131
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
aroben [Sun, 10 Dec 2006 07:11:23 +0000 (07:11 +0000)]
Build fix.
* xml/XPathParser.cpp:
(WebCore::XPath::charCat): Use C++ unsigned instead of uint.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18130
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
staikos [Sun, 10 Dec 2006 06:54:03 +0000 (06:54 +0000)]
Reviewed by Zack.
Make it not crash, and make it set the title on Qt platform.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18129
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zack [Sun, 10 Dec 2006 06:36:32 +0000 (06:36 +0000)]
Include DumpRenderTree in the Qt build and adjust it to the
recet platform/qt changes (by lars)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18128
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
staikos [Sun, 10 Dec 2006 05:54:55 +0000 (05:54 +0000)]
Correct the path to the libraries for QMake.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18127
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zack [Sun, 10 Dec 2006 05:44:17 +0000 (05:44 +0000)]
Cleanup the FrameQtClient mess a little bit.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18126
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zack [Sun, 10 Dec 2006 05:33:28 +0000 (05:33 +0000)]
Accomodate the file changes in the project files (aka build)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18125
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zack [Sun, 10 Dec 2006 05:12:32 +0000 (05:12 +0000)]
Implement a decent network loader using QHttp (from Lars)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18124
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
staikos [Sun, 10 Dec 2006 04:58:18 +0000 (04:58 +0000)]
Fix qmake build re: bison issues - unify with Linux build
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18123
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
staikos [Sun, 10 Dec 2006 04:36:51 +0000 (04:36 +0000)]
Repair QMake build on OS X.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18122
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zack [Sun, 10 Dec 2006 04:25:41 +0000 (04:25 +0000)]
Small fixes for qmake shadow builds
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18121
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
staikos [Sun, 10 Dec 2006 03:57:00 +0000 (03:57 +0000)]
Remove reference to Unity. Reviewed by Zack.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18120
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zack [Sun, 10 Dec 2006 03:27:14 +0000 (03:27 +0000)]
Simon says : work with qmake shadow builds. Patch adds support
for it to the build scripts.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18119
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zack [Sun, 10 Dec 2006 02:52:19 +0000 (02:52 +0000)]
Crazy notion: make the font setting on widgets work.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18118
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zack [Sun, 10 Dec 2006 02:36:27 +0000 (02:36 +0000)]
Stop complaining about the nil renderer (granted the whole
scrollcanvas implementation makes the baby jesus cry)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18117
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zack [Sun, 10 Dec 2006 02:32:01 +0000 (02:32 +0000)]
Fix some rounding issues
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18116
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zack [Sun, 10 Dec 2006 02:01:21 +0000 (02:01 +0000)]
Fix build for Qt 4.1 and less (for Qtopia mainly). By George.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18115
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zack [Sun, 10 Dec 2006 00:58:36 +0000 (00:58 +0000)]
CMake is too slow to make it the default build for us. This
patch adds QMake build which works, way, way better. Mostly
done by Simon Hausmann.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18114
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zack [Sun, 10 Dec 2006 00:44:17 +0000 (00:44 +0000)]
This is part of r 18111 commit - Use the Qt image
loading framework.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18113
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zack [Sun, 10 Dec 2006 00:41:47 +0000 (00:41 +0000)]
Compile after latest WebKit changes and don't depend on
deprecated methods in Qt.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18112
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zack [Sun, 10 Dec 2006 00:37:02 +0000 (00:37 +0000)]
Use the Qt image loading framework instead of the Mozilla
loaders
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18111
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zack [Sun, 10 Dec 2006 00:21:55 +0000 (00:21 +0000)]
Remove an explicit ICU dependency (by lars)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18110
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zack [Sun, 10 Dec 2006 00:19:25 +0000 (00:19 +0000)]
Fixing the kde build after the icu Qt changes.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18109
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
aroben [Sat, 9 Dec 2006 23:53:30 +0000 (23:53 +0000)]
JavaScriptCore:
Reviewed by Darin.
Some updates in reaction to r18098.
* wtf/unicode/icu/UnicodeIcu.h: Use !! to convert UBool to bool in all
cases.
(WTF::Unicode::toLower):
(WTF::Unicode::toUpper):
(WTF::Unicode::isDigit):
(WTF::Unicode::isSpace):
(WTF::Unicode::isPunct):
(WTF::Unicode::isLower):
(WTF::Unicode::isUpper):
* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj:
* JavaScriptCore.vcproj/WTF/WTF.vcproj:
WebCore:
Reviewed by Darin.
Changed all ForwardingHeaders to use #include instead of #import.
* ForwardingHeaders/kjs/JSLock.h:
* ForwardingHeaders/kjs/SavedBuiltins.h:
* ForwardingHeaders/kjs/collector.h:
* ForwardingHeaders/kjs/dtoa.h:
* ForwardingHeaders/kjs/internal.h:
* ForwardingHeaders/kjs/interpreter.h:
* ForwardingHeaders/kjs/lookup.h:
* ForwardingHeaders/kjs/object.h:
* ForwardingHeaders/kjs/property_map.h:
* ForwardingHeaders/kjs/protect.h:
* ForwardingHeaders/wtf/AlwaysInline.h:
* ForwardingHeaders/wtf/Assertions.h:
* ForwardingHeaders/wtf/FastMalloc.h:
* ForwardingHeaders/wtf/GetPtr.h:
* ForwardingHeaders/wtf/HashCountedSet.h:
* ForwardingHeaders/wtf/HashMap.h:
* ForwardingHeaders/wtf/HashSet.h:
* ForwardingHeaders/wtf/HashTraits.h:
* ForwardingHeaders/wtf/MathExtras.h:
* ForwardingHeaders/wtf/Noncopyable.h:
* ForwardingHeaders/wtf/OwnArrayPtr.h:
* ForwardingHeaders/wtf/OwnPtr.h:
* ForwardingHeaders/wtf/PassRefPtr.h:
* ForwardingHeaders/wtf/Platform.h:
* ForwardingHeaders/wtf/RefPtr.h:
* ForwardingHeaders/wtf/Vector.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18108
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
staikos [Sat, 9 Dec 2006 22:40:10 +0000 (22:40 +0000)]
Patch by Lars Knoll, comment out ICU dependency on Qt platform (unused code).
Reviewed by Darin.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18107
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
rwlbuis [Sat, 9 Dec 2006 17:22:13 +0000 (17:22 +0000)]
Reviewed by Darin.
http://bugs.webkit.org/show_bug.cgi?id=11625
Investigate possibility to share code between HTMLStyleElement and SVGStyleElement
Add a class shared by both HTMLStyleElement and SVGStyleElement that
encapsulates the common logic.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18106
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hyatt [Sat, 9 Dec 2006 08:52:11 +0000 (08:52 +0000)]
Fix WebKit forwarding headers for mac.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18105
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hyatt [Sat, 9 Dec 2006 08:35:46 +0000 (08:35 +0000)]
Update forwarding headers in WebCore to reflect wtf/unicode/icu dir structure.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18104
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hyatt [Sat, 9 Dec 2006 08:34:27 +0000 (08:34 +0000)]
Fix mac bustage (more still).
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18103
268f45cc-cd09-0410-ab3c-
d52691b4dbfc