- 06 Nov, 2008 40 commits
-
-
ddkilzer@apple.com authored
WebCore: 2008-11-06 Greg Bolsinga <bolsinga@apple.com> Reviewed by Darin Adler. Bug 21810: Remove use of static C++ objects that are destroyed at exit time (destructors) https://bugs.webkit.org/show_bug.cgi?id=21810 * bindings/js/GCController.cpp: (WebCore::gcController): Changed to leak an object to avoid an exit-time destructor. * bindings/js/JSDOMBinding.cpp: (WebCore::wrapperSet): Ditto * bindings/js/JSInspectedObjectWrapper.cpp: (WebCore::wrappers): Ditto * bindings/js/JSInspectorCallbackWrapper.cpp: (WebCore::wrappers): Ditto * bridge/runtime_root.cpp: (JSC::Bindings::rootObjectSet): Ditto * css/CSSMutableStyleDeclaration.cpp: (WebCore::CSSMutableStyleDeclaration::removeProperty): Ditto * css/CSSPrimitiveValue.cpp: (WebCore::CSSPrimitiveValue::cssText): Ditto * css/CSSSelector.cpp: (WebCore::CSSSelector::extractPseudoType): Ditto * css/CSSStyleSelector.cpp: (WebCore::screenEval): Ditto (WebCore::printEval): Ditto * dom/DOMImplementation.cpp: (WebCore::isSVG10Feature): Ditto (WebCore::isSVG11Feature): Ditto (WebCore::DOMImplementation::isXMLMIMEType): Ditto * dom/Document.cpp: (WebCore::Document::hasPrefixNamespaceMismatch): Ditto * dom/ScriptElement.cpp: (WebCore::isSupportedJavaScriptLanguage): Ditto * editing/ApplyStyleCommand.cpp: (WebCore::styleSpanClassString): Ditto * editing/HTMLInterchange.cpp: (WebCore::): Ditto * editing/IndentOutdentCommand.cpp: (WebCore::indentBlockquoteString): Ditto * editing/ReplaceSelectionCommand.cpp: (WebCore::isInterchangeNewlineNode): Ditto (WebCore::isInterchangeConvertedSpaceSpan): Ditto * editing/htmlediting.cpp: (WebCore::stringWithRebalancedWhitespace): Ditto (WebCore::nonBreakingSpaceString): Ditto * editing/markup.cpp: (WebCore::appendAttributeValue): Ditto (WebCore::appendEscapedContent): Ditto (WebCore::shouldAddNamespaceAttr): Ditto (WebCore::appendNamespace): Ditto (WebCore::appendStartMarkup): Ditto (WebCore::createMarkup): Ditto * html/HTMLButtonElement.cpp: (WebCore::HTMLButtonElement::type): Ditto * html/HTMLElement.cpp: (WebCore::HTMLElement::isRecognizedTagName): Ditto (WebCore::inlineTagList): Ditto (WebCore::blockTagList): Ditto * html/HTMLFieldSetElement.cpp: (WebCore::HTMLFieldSetElement::type): Ditto * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::type): Ditto * html/HTMLKeygenElement.cpp: (WebCore::HTMLKeygenElement::type): Ditto * html/HTMLLegendElement.cpp: (WebCore::HTMLLegendElement::type): Ditto * html/HTMLOptGroupElement.cpp: (WebCore::HTMLOptGroupElement::type): Ditto * html/HTMLOptionElement.cpp: (WebCore::HTMLOptionElement::type): Ditto * html/HTMLParser.cpp: (WebCore::HTMLParser::getNode): Ditto (WebCore::HTMLParser::isHeaderTag): Ditto (WebCore::HTMLParser::isResidualStyleTag): Ditto (WebCore::HTMLParser::isAffectedByResidualStyle): Ditto * html/HTMLSelectElement.cpp: (WebCore::HTMLSelectElement::type): Ditto * html/HTMLTextAreaElement.cpp: (WebCore::HTMLTextAreaElement::type): Ditto * inspector/InspectorController.cpp: (WebCore::platform): Ditto * inspector/JavaScriptDebugServer.cpp: (WebCore::JavaScriptDebugServer::shared): Ditto * inspector/JavaScriptProfile.cpp: (WebCore::profileCache): Ditto * inspector/JavaScriptProfileNode.cpp: (WebCore::profileNodeCache): Ditto * loader/FrameLoader.cpp: (WebCore::localSchemes): Ditto * loader/appcache/ApplicationCacheStorage.cpp: (WebCore::cacheStorage): Ditto * loader/archive/ArchiveFactory.cpp: (WebCore::archiveMIMETypes): Ditto * loader/icon/IconDatabase.cpp: (WebCore::IconDatabase::defaultDatabaseFilename): Ditto * page/EventHandler.cpp: (WebCore::EventHandler::dragState): Ditto * page/Frame.cpp: (WebCore::createRegExpForLabels): Ditto (WebCore::keepAliveSet): Ditto * page/Page.cpp: (WebCore::Page::groupName): Ditto * page/SecurityOrigin.cpp: (WebCore::isDefaultPortForProtocol): Ditto (WebCore::SecurityOrigin::databaseIdentifier): Ditto * page/mac/FrameMac.mm: (WebCore::regExpForLabels): Ditto * platform/KURL.cpp: (WebCore::blankURL): Ditto * platform/graphics/FontCache.cpp: (WebCore::alternateFamilyName): Ditto * platform/graphics/mac/FontCacheMac.mm: (WebCore::FontCache::getSimilarFontPlatformData): Ditto (WebCore::FontCache::getLastResortFallbackFont): Ditto * platform/mac/ScrollbarThemeMac.mm: (WebCore::ScrollbarTheme::nativeTheme): Ditto * platform/mac/ThemeMac.mm: (WebCore::platformTheme): Ditto * platform/mac/ThreadCheck.mm: (WebCoreReportThreadViolation): Ditto * platform/network/NetworkStateNotifier.cpp: (WebCore::networkStateNotifier): Ditto * platform/network/mac/FormDataStreamMac.mm: (WebCore::getStreamFormDataMap): Ditto (WebCore::getStreamResourceHandleMap): Ditto * platform/network/mac/ResourceResponseMac.mm: (WebCore::ResourceResponse::platformLazyInit): Ditto * platform/text/TextEncoding.cpp: (WebCore::TextEncoding::isJapanese): Ditto * rendering/RenderBlock.cpp: (WebCore::continuationOutlineTable): Ditto * rendering/RenderCounter.cpp: (WebCore::counterMaps): Ditto * rendering/RenderFlexibleBox.cpp: (WebCore::RenderFlexibleBox::layoutVerticalBox): Ditto * rendering/RenderListItem.cpp: (WebCore::RenderListItem::markerText): Ditto * rendering/RenderScrollbarTheme.cpp: (WebCore::RenderScrollbarTheme::renderScrollbarTheme): Ditto * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::systemFont): Ditto * rendering/bidi.cpp: (WebCore::RenderBlock::checkLinesForTextOverflow): Ditto * rendering/style/RenderStyle.cpp: (WebCore::RenderStyle::initialDashboardRegions): Ditto (WebCore::RenderStyle::noneDashboardRegions): Ditto * storage/LocalStorage.cpp: (WebCore::localStorageMap): Ditto * svg/SVGAnimateMotionElement.cpp: (WebCore::SVGAnimateMotionElement::rotateMode): Ditto * svg/SVGAnimationElement.cpp: (WebCore::SVGAnimationElement::calcMode): Ditto (WebCore::SVGAnimationElement::attributeType): Ditto (WebCore::SVGAnimationElement::isAdditive): Ditto (WebCore::SVGAnimationElement::isAccumulated): Ditto * svg/SVGLangSpace.cpp: (WebCore::SVGLangSpace::xmlspace): Ditto * svg/SVGSVGElement.cpp: (WebCore::SVGSVGElement::contentScriptType): Ditto (WebCore::SVGSVGElement::contentStyleType): Ditto * svg/SVGStyleElement.cpp: (WebCore::SVGStyleElement::type): Ditto (WebCore::SVGStyleElement::media): Ditto * svg/SVGTextContentElement.cpp: (WebCore::SVGTextContentElement::parseMappedAttribute): Ditto * svg/animation/SVGSMILElement.cpp: (WebCore::SVGSMILElement::parseClockValue): Ditto (WebCore::SVGSMILElement::restart): Ditto (WebCore::SVGSMILElement::fill): Ditto (WebCore::SVGSMILElement::repeatCount): Ditto (WebCore::SVGSMILElement::notifyDependentsIntervalChanged): Ditto * svg/graphics/SVGResource.cpp: (WebCore::clientMap): Ditto * svg/graphics/SVGResourceMarker.cpp: (WebCore::SVGResourceMarker::draw): Ditto * xml/XMLHttpRequest.cpp: (WebCore::preflightResultCache): Ditto (WebCore::isSafeRequestHeader): Ditto (WebCore::isOnAccessControlResponseHeaderWhitelist): Ditto * xml/XPathExpressionNode.cpp: (WebCore::XPath::Expression::evaluationContext): Ditto * xml/XPathParser.cpp: (WebCore::XPath::isAxisName): Ditto (WebCore::XPath::isNodeTypeName): Ditto * xml/XPathValue.cpp: (WebCore::XPath::Value::toNodeSet): Ditto WebKit/mac: 2008-11-06 Greg Bolsinga <bolsinga@apple.com> Reviewed by Darin Adler. Bug 21810: Remove use of static C++ objects that are destroyed at exit time (destructors) https://bugs.webkit.org/show_bug.cgi?id=21810 * History/WebBackForwardList.mm: (backForwardLists): Changed to leak an object to avoid an exit-time destructor. * History/WebHistoryItem.mm: (historyItemWrappers): Ditto * Misc/WebStringTruncator.m: (fontFromNSFont): Ditto * Plugins/WebBaseNetscapePluginStream.mm: (streams): Ditto * WebView/WebView.mm: (aeDescFromJSValue): Ditto WebKitTools: 2008-11-06 Greg Bolsinga <bolsinga@apple.com> Reviewed by Darin Adler. Bug 21810: Remove use of static C++ objects that are destroyed at exit time (destructors) https://bugs.webkit.org/show_bug.cgi?id=21810 Remove .o files from the exclude list that have had their exit-time destructors removed. * Scripts/check-for-exit-time-destructors: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38189 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
vestbo@webkit.org authored
Rubber-stamped by Simon Hausmann. Remove a bunch of unused methods in the Qt media element implementation git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38188 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
alp@webkit.org authored
Reviewed by Cameron Zwarich. https://bugs.webkit.org/show_bug.cgi?id=22033 [GTK] CTI/Linux r38064 crashes; JIT requires executable memory Mark pages allocated by the FastMalloc mmap code path executable with PROT_EXEC. This fixes crashes seen on CPUs and kernels that enforce non-executable memory (like ExecShield on Fedora Linux) when the JIT is enabled. This patch does not resolve the issue on debug builds so affected developers may still need to pass --disable-jit to configure. * wtf/TCSystemAlloc.cpp: (TryMmap): (TryDevMem): (TCMalloc_SystemRelease): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38187 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
simon.fraser@apple.com authored
Reviewed by Dave Hyatt https://bugs.webkit.org/show_bug.cgi?id=21870 Implement absoluteToLocal() to convert a point from absolute to local coordinates, optionally taking transforms into account. Use this to set offsetX/offsetY in mouse events, thus fixing offsetX/offsetY in events on elements with transforms. Test: fast/events/offsetX-offsetY.html git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38186 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
cwzwarich@webkit.org authored
Reviewed by Cameron Zwarich. Bug 22099: Make the Qt port build the JSC shell in the correct place <https://bugs.webkit.org/show_bug.cgi?id=22099> Adjust include paths and build destination dir for the 'jsc' executable in the Qt build. * jsc.pro: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38185 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
alp@webkit.org authored
Reviewed by Cameron Zwarich. https://bugs.webkit.org/show_bug.cgi?id=22067 [GTK] Sun Java plugin segfaults at PluginPackage::createPackage() null-check symbols loaded from plugin modules, initialize the function table (like Win already does) and update it with the latest additions. Adjust whitespace for easy diff'ing with the Win port code from which it was forked. This fixes crashes with libnspr4.so and any other plugins that don't provide the symbols we expect. * plugins/gtk/PluginPackageGtk.cpp: (WebCore::PluginPackage::fetchInfo): (WebCore::PluginPackage::load): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38184 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann@webkit.org authored
Reviewed by Simon Hausmann. Removed dead (and broken) code from an ancient Symbian port. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38183 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann@webkit.org authored
Reviewed by Simon Hausmann. Use QLibrary as PlatformModule when compiling with Qt for S60. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38182 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann@webkit.org authored
Reviewed by Simon Hausmann. Implemented the block allocation on Symbian through heap allocation. Unfortunately there is no way to allocate virtual memory. The Posix layer provides mmap() but no anonymous mapping. So this is a very slow solution but it should work as a start. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38181 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann@webkit.org authored
Reviewed by Simon Hausmann. Compile fix for Symbian. The snprintf function is defined in stdio.h, the inclusion of snprintf.h inside this PLATFORM(SYMBIAN) block does not compile. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38180 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
alp@webkit.org authored
Reviewed by Darin Adler. https://bugs.webkit.org/show_bug.cgi?id=22047 GTK: Add support for multiple file selection in the file upload control Implemented with GtkFileChooser. * WebCoreSupport/ChromeClientGtk.cpp: (WebKit::ChromeClient::runOpenPanel): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38179 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann@webkit.org authored
Noticed by Darin git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38178 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann@webkit.org authored
Reviewed by Simon Hausmann. Borrow some math functions from the MSVC port to the build with the RVCT compiler. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38177 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann@webkit.org authored
Reviewed by Simon Hausmann. Include strings.h for strncasecmp(). This is needed for compilation inside Symbian and it is also confirmed by the man-page on Linux. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38176 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann@webkit.org authored
Reviewed by Simon Hausmann. Implemented currentThreadStackBase for Symbian. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38175 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann@webkit.org authored
Reviewed by Simon Hausmann. RVCT does not support tm_gmtoff field, so disable that code just like for MSVC. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38174 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann@webkit.org authored
Reviewed by Simon Hausmann. Use the GCC defines of the WTF_ALIGN* macros for the RVCT and the MINSCW compiler. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38173 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann@webkit.org authored
Reviewed by Simon Hausmann. Define capabilities of the SYMBIAN platform. Some of the system headers are actually dependent on RVCT. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38172 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann@webkit.org authored
Reviewed by Simon Hausmann. Add missing stddef.h header needed for compilation in Symbian. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38171 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann@webkit.org authored
Reviewed by Simon Hausmann. Define PLATFORM(UNIX) for S60. Effectively WebKit on S60 is compiled on top of the Posix layer. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38170 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann@webkit.org authored
Reviewed by Simon Hausmann. Added __SYMBIAN32__ condition for defining PLATFORM(SYMBIAN). git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38169 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann@webkit.org authored
Reviewed by Simon Hausmann. Added WINSCW compiler define for Symbian S60. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38168 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann@webkit.org authored
Reviewed by Simon Hausmann. Added COMPILER(RVCT) to detect the ARM RVCT compiler used in the Symbian environment. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38167 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann@webkit.org authored
Reviewed by Simon Hausmann. Disable webkit plugins for Symbian. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38166 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
vestbo@webkit.org authored
Fix build break in debug mode when XSLT is not enabled git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38165 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
vestbo@webkit.org authored
Reviewed by Simon Hausmann. Repaint video on UpdateRequest to prevent recursive painting Calling QWidget::render() to update the video generates a paint event that's then picked up by the event filter once more :( We're really only interested in updates from Phonon, which we get through the UpdateRequest for each new frame. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38164 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann@webkit.org authored
Fix the Qt build, adjust include paths after move of jsc.pro. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38163 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
cwzwarich@webkit.org authored
Rubber-stamped by Sam Weinig. Move kjs/Shell.cpp to the top level of the JavaScriptCore directory and rename it to jsc.cpp to reflect the name of the binary compiled from it. * GNUmakefile.am: * JavaScriptCore.vcproj/jsc/jsc.vcproj: * JavaScriptCore.xcodeproj/project.pbxproj: * jsc.cpp: Copied from kjs/Shell.cpp. * jsc.pro: * jscore.bkl: * kjs/Shell.cpp: Removed. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38162 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann@webkit.org authored
Reviewed by Tor Arne Vestbø. Added a unit tests for QWebFrame::metaData(). git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38161 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann@webkit.org authored
Reviewed by Tor Arne Vestbø. Improved documentation for QWebFrame::metaData(). git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38160 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann@webkit.org authored
Reviewed by Simon Hausmann. Added QWebFrame::metaData() to provide a way in the public API to retrieve the values of the <meta> tags. See https://bugs.webkit.org/show_bug.cgi?id=22071 git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38159 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
cwzwarich@webkit.org authored
Not reviewed. Fix the WebCore build for some platforms by changing build scripts to account for the recent move of the create_hash_table script from the kjs subdirectory of JavaScriptCore to the root directory. * WebCore.pro: * make-generated-sources.sh: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38158 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
alp@webkit.org authored
GTK build fix for r38155. create_hash_table was moved out of kjs/ * GNUmakefile.am: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38157 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
cwzwarich@webkit.org authored
Not reviewed. Correct the date on previous ChangeLogs. * ChangeLog: * JavaScriptCore/ChangeLog: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38156 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
cwzwarich@webkit.org authored
Rubber-stamped by Sam Weinig. Move create_hash_table and jsc.pro out of the kjs directory and into the root directory of JavaScriptCore. JavaScriptCore: * DerivedSources.make: * JavaScriptCore.pri: * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj: * JavaScriptCore.xcodeproj/project.pbxproj: * create_hash_table: Copied from kjs/create_hash_table. * jsc.pro: Copied from kjs/jsc.pro. * kjs/create_hash_table: Removed. * kjs/jsc.pro: Removed. * make-generated-sources.sh: * WebKit.pro: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38155 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
cwzwarich@webkit.org authored
Not reviewed. Fix a case-sensitivity issue in Mac forwarding headers. Strangely enough, this does not always cause the build to break, even with a case-sensitive filesystem. * ForwardingHeaders/runtime/Interpreter.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38154 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
alp@webkit.org authored
GTK build script tweak. Make the path relative since it will appear in all -I compiler flags. Long argument lists cause bizarre slowdowns in libtool and result in huge build logs. * Scripts/webkitdirs.pm: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38153 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
cwzwarich@webkit.org authored
Not reviewed. Fix the JavaScriptGlue build. This wouldn't show up unless one was doing a clean build, because changes in JavaScriptCore don't cause anything in JavaScriptGlue to get rebuilt. * JSRun.cpp: * JSUtils.h: * JavaScriptGlue.cpp: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38152 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
ap@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=22083 MessageEvents cannot be used across threads * dom/Event.idl: * dom/MessageEvent.idl: Add a NoStaticTables attribute - MessageEvent is used in worker threads, so static tables won't work. * dom/MessagePort.cpp: (WebCore::MessagePort::EventData::EventData): (WebCore::MessagePort::EventData::~EventData): (WebCore::MessagePort::clone): (WebCore::MessagePort::postMessage): (WebCore::MessagePort::startConversation): (WebCore::MessagePort::dispatchMessages): * dom/MessagePort.h: Don't create a MessageEvent until dispatch time - messages can be posted across threads, but MessageEvents are tied to the thread that they were created in. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38151 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
ap@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=22066 Implement Worker global object * DerivedSources.make: Added WorkerLocation IDL and JSWorkerContext lookup table. * WebCore.xcodeproj/project.pbxproj: Only adding files to Mac project for now, as Worker support is still disabled by default. * bindings/js/JSDOMGlobalObject.cpp: (WebCore::toJSDOMGlobalObject): Implemented Worker case. * bindings/js/JSMessageChannelConstructor.cpp: (WebCore::JSMessageChannelConstructor::JSMessageChannelConstructor): Ditto. * bindings/js/JSWorkerContext.cpp: Added. * bindings/js/JSWorkerContext.h: Added. * bindings/js/WorkerScriptController.cpp: Added. * bindings/js/WorkerScriptController.h: Added. * dom/WorkerContext.cpp: Added. * dom/WorkerContext.h: Added. Added an implementation of worker contexts. * dom/DedicatedWorker.cpp: (WebCore::DedicatedWorker::startLoad): Fixed a lifetime bug I saw on my tests. (WebCore::DedicatedWorker::notifyFinished): Create a thread. Currently, object ownership and lifetime is not clear at all. * dom/WorkerLocation.cpp: Added. * dom/WorkerLocation.h: Added. * dom/WorkerLocation.idl: Added. Added WorkerLocation, which is one of the objects available to workers. * dom/WorkerThread.cpp: Added. (WebCore::WorkerThread::WorkerThread): (WebCore::WorkerThread::start): (WebCore::WorkerThread::workerThreadStart): (WebCore::WorkerThread::workerThread): * dom/WorkerThread.h: Added. (WebCore::WorkerThread::create): Run some code in a worker thread (no message loop yet). git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38150 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-