1. 02 Dec, 2009 1 commit
    • eric@webkit.org's avatar
      2009-12-02 Anton Muhin <antonm@chromium.org> · f822b905
      eric@webkit.org authored
              Reviewed by Adam Barth.:w
      
              Allow to skip thread checks when accessing DOMDataStore for processes
              which run V8 in single thread mode.
              https://bugs.webkit.org/show_bug.cgi?id=31877
      
              Should be covered by buildbots.
      
              * bindings/v8/V8DOMMap.cpp:
              (WebCore::getDOMDataStore):
              (WebCore::enableFasterDOMStoreAccess):
              (WebCore::getDOMNodeMap):
              (WebCore::getDOMObjectMap):
              (WebCore::getActiveDOMObjectMap):
              (WebCore::getDOMSVGElementInstanceMap):
              (WebCore::getDOMSVGObjectWithContextMap):
              * bindings/v8/V8DOMMap.h:
      2009-12-02  Anton Muhin  <antonm@chromium.org>
      
              Reviewed by Adam Barth.
      
              Allow to skip thread checks when accessing DOMDataStore for processes
              which run V8 in single thread mode.
              https://bugs.webkit.org/show_bug.cgi?id=31877
      
              * src/WebScriptController.cpp:
              (WebKit::WebScriptController::enableV8SingleThreadMode):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@51599 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f822b905
  2. 10 Nov, 2009 2 commits
    • eric@webkit.org's avatar
      2009-11-10 Yaar Schnitman <yaar@chromium.org> · 34b114c9
      eric@webkit.org authored
              Reviewed by Dimitri Glazkov.
      
              Up-streaming Chromium API src files: WebScriptController...WebStorageNamespaceImpl
      
              https://bugs.webkit.org/show_bug.cgi?id=31276
      
              * src/WebScriptController.cpp: Added.
              (WebKit::WebScriptController::registerExtension):
              (WebKit::WebScriptController::enableV8SingleThreadMode):
              (WebKit::WebScriptController::flushConsoleMessages):
              * src/WebSearchableFormData.cpp: Added.
              (WebCore::GetFormEncoding):
              (WebCore::IsHTTPFormSubmit):
              (WebCore::GetButtonToActivate):
              (WebCore::IsSelectInDefaultState):
              (WebCore::IsInDefaultState):
              (WebCore::HasSuitableTextElement):
              (WebKit::WebSearchableFormData::WebSearchableFormData):
              * src/WebSecurityOrigin.cpp: Added.
              (WebKit::WebSecurityOrigin::reset):
              (WebKit::WebSecurityOrigin::assign):
              (WebKit::WebSecurityOrigin::protocol):
              (WebKit::WebSecurityOrigin::host):
              (WebKit::WebSecurityOrigin::port):
              (WebKit::WebSecurityOrigin::isEmpty):
              (WebKit::WebSecurityOrigin::toString):
              (WebKit::WebSecurityOrigin::databaseIdentifier):
              (WebKit::WebSecurityOrigin::WebSecurityOrigin):
              (WebKit::WebSecurityOrigin::operator=):
              (WebKit::WebSecurityOrigin::operator WTF::PassRefPtr<WebCore::SecurityOrigin>):
              * src/WebSecurityPolicy.cpp: Added.
              (WebKit::WebSecurityPolicy::registerURLSchemeAsLocal):
              (WebKit::WebSecurityPolicy::registerURLSchemeAsNoAccess):
              (WebKit::WebSecurityPolicy::whiteListAccessFromOrigin):
              (WebKit::WebSecurityPolicy::resetOriginAccessWhiteLists):
              * src/WebSettingsImpl.cpp: Added.
              (WebKit::WebSettingsImpl::WebSettingsImpl):
              (WebKit::WebSettingsImpl::setStandardFontFamily):
              (WebKit::WebSettingsImpl::setFixedFontFamily):
              (WebKit::WebSettingsImpl::setSerifFontFamily):
              (WebKit::WebSettingsImpl::setSansSerifFontFamily):
              (WebKit::WebSettingsImpl::setCursiveFontFamily):
              (WebKit::WebSettingsImpl::setFantasyFontFamily):
              (WebKit::WebSettingsImpl::setDefaultFontSize):
              (WebKit::WebSettingsImpl::setDefaultFixedFontSize):
              (WebKit::WebSettingsImpl::setMinimumFontSize):
              (WebKit::WebSettingsImpl::setMinimumLogicalFontSize):
              (WebKit::WebSettingsImpl::setDefaultTextEncodingName):
              (WebKit::WebSettingsImpl::setJavaScriptEnabled):
              (WebKit::WebSettingsImpl::setWebSecurityEnabled):
              (WebKit::WebSettingsImpl::setJavaScriptCanOpenWindowsAutomatically):
              (WebKit::WebSettingsImpl::setLoadsImagesAutomatically):
              (WebKit::WebSettingsImpl::setPluginsEnabled):
              (WebKit::WebSettingsImpl::setDOMPasteAllowed):
              (WebKit::WebSettingsImpl::setDeveloperExtrasEnabled):
              (WebKit::WebSettingsImpl::setShrinksStandaloneImagesToFit):
              (WebKit::WebSettingsImpl::setUsesEncodingDetector):
              (WebKit::WebSettingsImpl::setTextAreasAreResizable):
              (WebKit::WebSettingsImpl::setJavaEnabled):
              (WebKit::WebSettingsImpl::setAllowScriptsToCloseWindows):
              (WebKit::WebSettingsImpl::setUserStyleSheetLocation):
              (WebKit::WebSettingsImpl::setUsesPageCache):
              (WebKit::WebSettingsImpl::setDownloadableBinaryFontsEnabled):
              (WebKit::WebSettingsImpl::setXSSAuditorEnabled):
              (WebKit::WebSettingsImpl::setLocalStorageEnabled):
              (WebKit::WebSettingsImpl::setEditableLinkBehaviorNeverLive):
              (WebKit::WebSettingsImpl::setFontRenderingModeNormal):
              (WebKit::WebSettingsImpl::setShouldPaintCustomScrollbars):
              (WebKit::WebSettingsImpl::setDatabasesEnabled):
              (WebKit::WebSettingsImpl::setAllowUniversalAccessFromFileURLs):
              (WebKit::WebSettingsImpl::setTextDirectionSubmenuInclusionBehaviorNeverIncluded):
              (WebKit::WebSettingsImpl::setOfflineWebApplicationCacheEnabled):
              (WebKit::WebSettingsImpl::setExperimentalWebGLEnabled):
              * src/WebSettingsImpl.h: Added.
              (WebKit::WebSettingsImpl::~WebSettingsImpl):
              * src/WebSharedWorkerImpl.cpp: Added.
              (WebKit::WebSharedWorkerImpl::WebSharedWorkerImpl):
              (WebKit::WebSharedWorkerImpl::~WebSharedWorkerImpl):
              (WebKit::WebSharedWorkerImpl::isStarted):
              (WebKit::WebSharedWorkerImpl::connect):
              (WebKit::WebSharedWorkerImpl::connectTask):
              (WebKit::WebSharedWorkerImpl::startWorkerContext):
              (WebKit::WebSharedWorkerImpl::terminateWorkerContext):
              (WebKit::WebSharedWorkerImpl::clientDestroyed):
              (WebKit::WebSharedWorkerImpl::client):
              (WebKit::WebSharedWorker::create):
              * src/WebSharedWorkerImpl.h: Added.
              (WebKit::WebSharedWorkerImpl::commonClient):
              * src/WebStorageAreaImpl.cpp: Added.
              (WebKit::WebStorageAreaImpl::WebStorageAreaImpl):
              (WebKit::WebStorageAreaImpl::~WebStorageAreaImpl):
              (WebKit::WebStorageAreaImpl::length):
              (WebKit::WebStorageAreaImpl::key):
              (WebKit::WebStorageAreaImpl::getItem):
              (WebKit::WebStorageAreaImpl::setItem):
              (WebKit::WebStorageAreaImpl::removeItem):
              (WebKit::WebStorageAreaImpl::clear):
              * src/WebStorageAreaImpl.h: Added.
              (WebKit::WebStorageAreaImpl::currentStorageEventURL):
              (WebKit::WebStorageAreaImpl::ScopedStorageEventURL::ScopedStorageEventURL):
              (WebKit::WebStorageAreaImpl::ScopedStorageEventURL::~ScopedStorageEventURL):
              * src/WebStorageEventDispatcherImpl.cpp: Added.
              (WebKit::WebStorageEventDispatcher::create):
              (WebKit::WebStorageEventDispatcherImpl::WebStorageEventDispatcherImpl):
              (WebKit::WebStorageEventDispatcherImpl::dispatchStorageEvent):
              * src/WebStorageEventDispatcherImpl.h: Added.
              * src/WebStorageNamespaceImpl.cpp: Added.
              (WebKit::WebStorageNamespace::createLocalStorageNamespace):
              (WebKit::WebStorageNamespace::createSessionStorageNamespace):
              (WebKit::WebStorageNamespaceImpl::WebStorageNamespaceImpl):
              (WebKit::WebStorageNamespaceImpl::~WebStorageNamespaceImpl):
              (WebKit::WebStorageNamespaceImpl::createStorageArea):
              (WebKit::WebStorageNamespaceImpl::copy):
              (WebKit::WebStorageNamespaceImpl::close):
              * src/WebStorageNamespaceImpl.h: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50723 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      34b114c9
    • eric@webkit.org's avatar
      2009-11-09 Yaar Schnitman <yaar@chromium.src> · fbaf8761
      eric@webkit.org authored
              Reviewed by Dimitri Glazkov.
      
              Up-streaming Chromium API src files: WebData...WebElement
      
              https://bugs.webkit.org/show_bug.cgi?id=31276
      
              * src/WebData.cpp: Added.
              (WebKit::WebData::reset):
              (WebKit::WebData::assign):
              (WebKit::WebData::size):
              (WebKit::WebData::data):
              (WebKit::WebData::WebData):
              (WebKit::WebData::operator=):
              (WebKit::WebData::operator PassRefPtr<SharedBuffer>):
              * src/WebDataSourceImpl.cpp: Added.
              (WebKit::WebDataSourceImpl::create):
              (WebKit::WebDataSourceImpl::originalRequest):
              (WebKit::WebDataSourceImpl::request):
              (WebKit::WebDataSourceImpl::response):
              (WebKit::WebDataSourceImpl::hasUnreachableURL):
              (WebKit::WebDataSourceImpl::unreachableURL):
              (WebKit::WebDataSourceImpl::redirectChain):
              (WebKit::WebDataSourceImpl::pageTitle):
              (WebKit::WebDataSourceImpl::navigationType):
              (WebKit::WebDataSourceImpl::triggeringEventTime):
              (WebKit::WebDataSourceImpl::extraData):
              (WebKit::WebDataSourceImpl::setExtraData):
              (WebKit::WebDataSourceImpl::toWebNavigationType):
              (WebKit::WebDataSourceImpl::endOfRedirectChain):
              (WebKit::WebDataSourceImpl::clearRedirectChain):
              (WebKit::WebDataSourceImpl::appendRedirect):
              (WebKit::WebDataSourceImpl::setNextPluginLoadObserver):
              (WebKit::WebDataSourceImpl::WebDataSourceImpl):
              (WebKit::WebDataSourceImpl::~WebDataSourceImpl):
              * src/WebDataSourceImpl.h: Added.
              (WebKit::WebDataSourceImpl::fromDocumentLoader):
              (WebKit::WebDataSourceImpl::hasRedirectChain):
              (WebKit::WebDataSourceImpl::releasePluginLoadObserver):
              * src/WebDatabase.cpp: Added.
              (WebKit::WebDatabase::reset):
              (WebKit::WebDatabase::assign):
              (WebKit::WebDatabase::name):
              (WebKit::WebDatabase::displayName):
              (WebKit::WebDatabase::estimatedSize):
              (WebKit::WebDatabase::securityOrigin):
              (WebKit::WebDatabase::setObserver):
              (WebKit::WebDatabase::observer):
              (WebKit::WebDatabase::updateDatabaseSize):
              (WebKit::WebDatabase::WebDatabase):
              (WebKit::WebDatabase::operator=):
              (WebKit::WebDatabase::operator WTF::PassRefPtr<Database>):
              * src/WebDevToolsAgentPrivate.h: Added.
              * src/WebDragData.cpp: Added.
              (WebKit::WebDragData::initialize):
              (WebKit::WebDragData::reset):
              (WebKit::WebDragData::assign):
              (WebKit::WebDragData::url):
              (WebKit::WebDragData::setURL):
              (WebKit::WebDragData::urlTitle):
              (WebKit::WebDragData::setURLTitle):
              (WebKit::WebDragData::fileExtension):
              (WebKit::WebDragData::setFileExtension):
              (WebKit::WebDragData::hasFileNames):
              (WebKit::WebDragData::fileNames):
              (WebKit::WebDragData::setFileNames):
              (WebKit::WebDragData::appendToFileNames):
              (WebKit::WebDragData::plainText):
              (WebKit::WebDragData::setPlainText):
              (WebKit::WebDragData::htmlText):
              (WebKit::WebDragData::setHTMLText):
              (WebKit::WebDragData::htmlBaseURL):
              (WebKit::WebDragData::setHTMLBaseURL):
              (WebKit::WebDragData::fileContentFileName):
              (WebKit::WebDragData::setFileContentFileName):
              (WebKit::WebDragData::fileContent):
              (WebKit::WebDragData::setFileContent):
              (WebKit::WebDragData::WebDragData):
              (WebKit::WebDragData::operator=):
              (WebKit::WebDragData::operator WTF::PassRefPtr<WebCore::ChromiumDataObject>):
              (WebKit::WebDragData::ensureMutable):
              * src/WebElement.cpp: Added.
              (WebKit::WebElement::WebElement):
              (WebKit::WebElement::operator=):
              (WebKit::WebElement::operator WTF::PassRefPtr<Element>):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50719 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fbaf8761
  3. 09 Nov, 2009 2 commits
    • eric@webkit.org's avatar
      2009-11-09 Yaar Schnitman <yaar@chromium.org> · 4a6f774b
      eric@webkit.org authored
              Reviewed by Dimitri Glazkov.
      
              Up-streaming Chromium API src files: WebBindging ... WebCursorInfo
      
              https://bugs.webkit.org/show_bug.cgi?id=31276
      
              * src/WebBindings.cpp: Added.
              (WebKit::WebBindings::construct):
              (WebKit::WebBindings::createObject):
              (WebKit::WebBindings::enumerate):
              (WebKit::WebBindings::evaluate):
              (WebKit::WebBindings::evaluateHelper):
              (WebKit::WebBindings::getIntIdentifier):
              (WebKit::WebBindings::getProperty):
              (WebKit::WebBindings::getStringIdentifier):
              (WebKit::WebBindings::getStringIdentifiers):
              (WebKit::WebBindings::hasMethod):
              (WebKit::WebBindings::hasProperty):
              (WebKit::WebBindings::identifierIsString):
              (WebKit::WebBindings::intFromIdentifier):
              (WebKit::WebBindings::initializeVariantWithStringCopy):
              (WebKit::WebBindings::invoke):
              (WebKit::WebBindings::invokeDefault):
              (WebKit::WebBindings::releaseObject):
              (WebKit::WebBindings::releaseVariantValue):
              (WebKit::WebBindings::removeProperty):
              (WebKit::WebBindings::retainObject):
              (WebKit::WebBindings::setException):
              (WebKit::WebBindings::setProperty):
              (WebKit::WebBindings::unregisterObject):
              (WebKit::WebBindings::utf8FromIdentifier):
              (WebKit::WebBindings::extractIdentifierData):
              (WebKit::getEvent):
              (WebKit::getDragDataImpl):
              (WebKit::getRangeImpl):
              (WebKit::WebBindings::getDragData):
              (WebKit::WebBindings::isDragEvent):
              (WebKit::WebBindings::getRange):
              * src/WebCString.cpp: Added.
              (WebKit::WebCString::reset):
              (WebKit::WebCString::assign):
              (WebKit::WebCString::length):
              (WebKit::WebCString::data):
              (WebKit::WebCString::utf16):
              (WebKit::WebCString::fromUTF16):
              (WebKit::WebCString::WebCString):
              (WebKit::WebCString::operator=):
              (WebKit::WebCString::operator WebCore::CString):
              * src/WebCache.cpp: Added.
              (WebKit::ToResourceTypeStat):
              (WebKit::WebCache::setCapacities):
              (WebKit::WebCache::clear):
              (WebKit::WebCache::getUsageStats):
              (WebKit::WebCache::getResourceTypeStats):
              * src/WebColor.cpp: Added.
              (WebKit::toCSSValueKeyword):
              (WebKit::setNamedColors):
              * src/WebCrossOriginPreflightResultCache.cpp: Added.
              (WebKit::WebCrossOriginPreflightResultCache::clear):
              * src/WebCursorInfo.cpp: Added.
              (WebKit::WebCursorInfo::WebCursorInfo):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50715 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4a6f774b
    • eric@webkit.org's avatar
      2009-11-09 Yaar Schnitman <yaar@chromium.org> · 59332324
      eric@webkit.org authored
              Reviewed by Dimitri Glazkov.
      
              Up-streaming Chromium API src files: WebAccessibilty
      
              https://bugs.webkit.org/show_bug.cgi?id=31276
      
              * src/WebAccessibilityCache.cpp: Added.
              (WebKit::WebAccessibilityCache::enableAccessibility):
              * src/WebAccessibilityCacheImpl.cpp: Added.
              (WebKit::toAccessibilityObject):
              (WebKit::WebAccessibilityCache::create):
              (WebKit::WebAccessibilityCacheImpl::WeakHandle::create):
              (WebKit::WebAccessibilityCacheImpl::WeakHandle::WeakHandle):
              (WebKit::WebAccessibilityCacheImpl::WeakHandle::detach):
              (WebKit::WebAccessibilityCacheImpl::WebAccessibilityCacheImpl):
              (WebKit::WebAccessibilityCacheImpl::~WebAccessibilityCacheImpl):
              (WebKit::WebAccessibilityCacheImpl::initialize):
              (WebKit::WebAccessibilityCacheImpl::getObjectById):
              (WebKit::WebAccessibilityCacheImpl::isValidId):
              (WebKit::WebAccessibilityCacheImpl::remove):
              (WebKit::WebAccessibilityCacheImpl::clear):
              (WebKit::WebAccessibilityCacheImpl::addOrGetId):
              * src/WebAccessibilityCacheImpl.h: Added.
              (WebKit::WebAccessibilityCacheImpl::isInitialized):
              * src/WebAccessibilityObject.cpp: Added.
              (WebKit::WebAccessibilityObject::reset):
              (WebKit::WebAccessibilityObject::assign):
              (WebKit::WebAccessibilityObject::accessibilityDescription):
              (WebKit::WebAccessibilityObject::actionVerb):
              (WebKit::WebAccessibilityObject::canSetFocusAttribute):
              (WebKit::WebAccessibilityObject::childCount):
              (WebKit::WebAccessibilityObject::childAt):
              (WebKit::WebAccessibilityObject::firstChild):
              (WebKit::WebAccessibilityObject::focusedChild):
              (WebKit::WebAccessibilityObject::lastChild):
              (WebKit::WebAccessibilityObject::nextSibling):
              (WebKit::WebAccessibilityObject::parentObject):
              (WebKit::WebAccessibilityObject::previousSibling):
              (WebKit::WebAccessibilityObject::isAnchor):
              (WebKit::WebAccessibilityObject::isChecked):
              (WebKit::WebAccessibilityObject::isFocused):
              (WebKit::WebAccessibilityObject::isEnabled):
              (WebKit::WebAccessibilityObject::isHovered):
              (WebKit::WebAccessibilityObject::isIndeterminate):
              (WebKit::WebAccessibilityObject::isMultiSelect):
              (WebKit::WebAccessibilityObject::isOffScreen):
              (WebKit::WebAccessibilityObject::isPasswordField):
              (WebKit::WebAccessibilityObject::isPressed):
              (WebKit::WebAccessibilityObject::isReadOnly):
              (WebKit::WebAccessibilityObject::isVisited):
              (WebKit::WebAccessibilityObject::boundingBoxRect):
              (WebKit::WebAccessibilityObject::helpText):
              (WebKit::WebAccessibilityObject::hitTest):
              (WebKit::WebAccessibilityObject::keyboardShortcut):
              (WebKit::WebAccessibilityObject::performDefaultAction):
              (WebKit::WebAccessibilityObject::roleValue):
              (WebKit::WebAccessibilityObject::stringValue):
              (WebKit::WebAccessibilityObject::title):
              (WebKit::WebAccessibilityObject::WebAccessibilityObject):
              (WebKit::WebAccessibilityObject::operator=):
              (WebKit::WebAccessibilityObject::operator WTF::PassRefPtr<WebCore::AccessibilityObject>):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50714 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      59332324
  4. 18 Aug, 2009 1 commit
    • atwilson@chromium.org's avatar
      WebCore: Need to extend DumpRenderTree to expose number of worker threads · 7ace1fbb
      atwilson@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=28292
      
      Reviewed by Eric Seidel.
      
      Expose WorkerThread::workerThreadCount() for DumpRenderTree so we can write worker lifecycle tests.
      
      Tests: fast/workers/shared-worker-lifecycle.html-disabled
             fast/workers/worker-lifecycle.html
      
      * WebCore.base.exp:
      Exported WorkerThread::workerThreadCount().
      * WebCore.xcodeproj/project.pbxproj:
      * workers/WorkerThread.cpp:
      Added tracking of the number of worker threads.
      (WebCore::threadCountMutex):
      (WebCore::WorkerThread::workerThreadCount):
      (WebCore::WorkerThread::WorkerThread):
      (WebCore::WorkerThread::~WorkerThread):
      * workers/WorkerThread.h:
      
      WebKit: Need to extend DumpRenderTree to expose number of worker threads.
      https://bugs.webkit.org/show_bug.cgi?id=28292
      
      Reviewed by Eric Seidel.
      
      * WebKit.xcodeproj/project.pbxproj:
      Added WebWorkersPrivate APIs to mac WebKit to expose workerThreadCount() for DumpRenderTree.
      
      WebKit/gtk: Need to extend DumpRenderTree to expose number of worker threads
      https://bugs.webkit.org/show_bug.cgi?id=28292
      
      Reviewed by Eric Seidel.
      
      * webkit/webkitprivate.h:
      * webkit/webkitworkers.cpp: Added.
      (webkit_worker_thread_count):
      Exposed WebCore::WorkerThread::workerThreadCount() for the gtk version of DumpRenderTree.
      
      WebKit/mac: Need to extend DumpRenderTree to expose number of worker threads.
      https://bugs.webkit.org/show_bug.cgi?id=28292
      
      Reviewed by Eric Seidel.
      
      * WebKit.exp:
      Exported WebWorkersPrivate so DumpRenderTree can access it.
      * Workers/WebWorkersPrivate.h: Added.
      * Workers/WebWorkersPrivate.mm: Added.
      (+[WebWorkersPrivate workerThreadCount]):
      Added WebWorkersPrivate::workerThreadCount() API for DumpRenderTree.
      
      WebKit/win: Need to extend DumpRenderTree to expose number of worker threads
      https://bugs.webkit.org/show_bug.cgi?id=28292
      
      Reviewed by Eric Seidel.
      
      Defined/implemented COM interfaces to expose WorkerThread::workerThreadCount() for DumpRenderTree.
      
      * ForEachCoClass.h:
      Added WebWorkersPrivate.
      * Interfaces/IWebWorkersPrivate.idl: Added.
      * Interfaces/WebKit.idl:
      Added WebWorkersPrivate.
      * WebKit.vcproj/Interfaces.vcproj:
      * WebKit.vcproj/WebKit.vcproj:
      * WebWorkersPrivate.cpp: Added.
      Implementation of the IWebWorkersPrivate COM interface, to expose workerThreadCount() for DumpRenderTree.
      (WebWorkersPrivate::QueryInterface):
      (WebWorkersPrivate::AddRef):
      (WebWorkersPrivate::Release):
      (WebWorkersPrivate::workerThreadCount):
      (WebWorkersPrivate::createInstance):
      (WebWorkersPrivate::WebWorkersPrivate):
      (WebWorkersPrivate::~WebWorkersPrivate):
      * WebWorkersPrivate.h: Added.
      
      WebKitTools: Need to extend DumpRenderTree to expose number of worker threads
      https://bugs.webkit.org/show_bug.cgi?id=28292
      
      Reviewed by Eric Seidel.
      
      Added layoutTestController.workerThreadCount, and implementations on various platforms that call into WebKit.
      
      * DumpRenderTree/LayoutTestController.cpp:
      (getWorkerThreadCountCallback):
      (LayoutTestController::staticValues):
      * DumpRenderTree/LayoutTestController.h:
      * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
      (LayoutTestController::workerThreadCount):
      * DumpRenderTree/mac/LayoutTestControllerMac.mm:
      (LayoutTestController::workerThreadCount):
      * DumpRenderTree/win/LayoutTestControllerWin.cpp:
      (LayoutTestController::workerThreadCount):
      * DumpRenderTree/wx/LayoutTestControllerWx.cpp:
      (LayoutTestController::workerThreadCount):
      
      LayoutTests: Need to extend DumpRenderTree to expose number of worker threads
      https://bugs.webkit.org/show_bug.cgi?id=28292
      
      Reviewed by Eric Seidel.
      
      Added simple layout tests that use the new layoutTestController.workerThreadCount() API
      
      * fast/workers/resources/shared-worker-common.js:
      Added support for "close" command to match worker-common.js.
      * fast/workers/resources/worker-lifecycle.js: Added.
      * fast/workers/shared-worker-lifecycle-expected.txt: Added.
      * fast/workers/shared-worker-lifecycle.html-disabled: Added.
      * fast/workers/worker-lifecycle-expected.txt: Added.
      * fast/workers/worker-lifecycle.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47429 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7ace1fbb
  5. 03 Aug, 2009 1 commit
    • jorlow@chromium.org's avatar
      2009-08-03 Jeremy Orlow <jorlow@chromium.org> · bcda25b8
      jorlow@chromium.org authored
              Reviewed by Darin Fisher.
      
              Chromium code sometimes isn't sandboxed and needs to access the FS.
              https://bugs.webkit.org/show_bug.cgi?id=27954
      
              These changes are the WebKit side of http://codereview.chromium.org/159778 which
              aims to make LocalStorage persistent.
      
              This change runs all FileSystem routines through the ChromiumBridge so that
              WebKitClients can handle them if they choose to.  For now, the only such client
              will be the one running in the browser process.
      
              It also adds a method called sandboxEnabled to the Chromium bridge so that the
              SQLite file system code can shift its behavior depending on whether we're
              inside a sandbox or not.
      
              * platform/chromium/ChromiumBridge.h:
              * platform/chromium/FileSystemChromium.cpp:
              (WebCore::deleteFile):
              (WebCore::deleteEmptyDirectory):
              (WebCore::getFileModificationTime):
              (WebCore::directoryName):
              (WebCore::pathByAppendingComponent):
              (WebCore::makeAllDirectories):
              (WebCore::fileExists):
              * platform/sql/chromium/SQLiteFileSystemChromium.cpp:
              (WebCore::SQLiteFileSystem::openDatabase):
              * platform/sql/chromium/SQLiteFileSystemChromiumWin.cpp:
              (WebCore::SQLiteFileSystem::registerSQLiteVFS):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@46741 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bcda25b8
  6. 20 Jul, 2009 1 commit
  7. 13 Jan, 2009 1 commit
    • darin@chromium.org's avatar
      2009-01-13 Darin Fisher <darin@chromium.org> · 0e8acfa7
      darin@chromium.org authored
              Reviewed by Eric Seidel.
      
              Landing portions of platform/chromium/, taken from here:
              http://src.chromium.org/viewvc/chrome/trunk/deps/third_party/WebKit/WebCore/platform/chromium/
      
              * platform/chromium/ChromiumBridge.h: Added.
              * platform/chromium/ChromiumDataObject.cpp: Added.
              (WebCore::ChromiumDataObject::clear):
              (WebCore::ChromiumDataObject::hasData):
              * platform/chromium/ChromiumDataObject.h: Added.
              (WebCore::ChromiumDataObject::create):
              (WebCore::ChromiumDataObject::ChromiumDataObject):
              * platform/chromium/ClipboardChromium.cpp: Added.
              (WebCore::):
              (WebCore::clipboardTypeFromMIMEType):
              (WebCore::ClipboardChromium::ClipboardChromium):
              (WebCore::ClipboardChromium::create):
              (WebCore::ClipboardChromium::clearData):
              (WebCore::ClipboardChromium::clearAllData):
              (WebCore::ClipboardChromium::getData):
              (WebCore::ClipboardChromium::setData):
              (WebCore::ClipboardChromium::types):
              (WebCore::ClipboardChromium::setDragImage):
              (WebCore::ClipboardChromium::setDragImageElement):
              (WebCore::ClipboardChromium::createDragImage):
              (WebCore::imageToMarkup):
              (WebCore::getCachedImage):
              (WebCore::writeImageToDataObject):
              (WebCore::ClipboardChromium::declareAndWriteDragImage):
              (WebCore::ClipboardChromium::writeURL):
              (WebCore::ClipboardChromium::writeRange):
              (WebCore::ClipboardChromium::hasData):
              * platform/chromium/ClipboardChromium.h: Added.
              (WebCore::ClipboardChromium::~ClipboardChromium):
              (WebCore::ClipboardChromium::dataObject):
              * platform/chromium/ClipboardUtilitiesChromium.cpp: Added.
              (WebCore::replaceNewlinesWithWindowsStyleNewlines):
              (WebCore::replaceNBSPWithSpace):
              (WebCore::urlToMarkup):
              * platform/chromium/ClipboardUtilitiesChromium.h: Added.
              * platform/chromium/ContextMenuChromium.cpp: Added.
              (WebCore::ContextMenu::ContextMenu):
              (WebCore::ContextMenu::~ContextMenu):
              (WebCore::ContextMenu::itemCount):
              (WebCore::ContextMenu::insertItem):
              (WebCore::ContextMenu::appendItem):
              (WebCore::ContextMenu::itemWithAction):
              (WebCore::ContextMenu::itemAtIndex):
              (WebCore::ContextMenu::setPlatformDescription):
              (WebCore::ContextMenu::platformDescription):
              (WebCore::ContextMenu::releasePlatformDescription):
              * platform/chromium/ContextMenuItemChromium.cpp: Added.
              (WebCore::ContextMenuItem::ContextMenuItem):
              (WebCore::ContextMenuItem::~ContextMenuItem):
              (WebCore::ContextMenuItem::releasePlatformDescription):
              (WebCore::ContextMenuItem::type):
              (WebCore::ContextMenuItem::action):
              (WebCore::ContextMenuItem::title):
              (WebCore::ContextMenuItem::platformSubMenu):
              (WebCore::ContextMenuItem::setType):
              (WebCore::ContextMenuItem::setAction):
              (WebCore::ContextMenuItem::setTitle):
              (WebCore::ContextMenuItem::setSubMenu):
              (WebCore::ContextMenuItem::setChecked):
              (WebCore::ContextMenuItem::setEnabled):
              (WebCore::ContextMenuItem::enabled):
              * platform/chromium/CursorChromium.cpp: Added.
              (WebCore::Cursor::Cursor):
              (WebCore::Cursor::~Cursor):
              (WebCore::Cursor::operator=):
              (WebCore::pointerCursor):
              (WebCore::crossCursor):
              (WebCore::handCursor):
              (WebCore::iBeamCursor):
              (WebCore::waitCursor):
              (WebCore::helpCursor):
              (WebCore::eastResizeCursor):
              (WebCore::northResizeCursor):
              (WebCore::northEastResizeCursor):
              (WebCore::northWestResizeCursor):
              (WebCore::southResizeCursor):
              (WebCore::southEastResizeCursor):
              (WebCore::southWestResizeCursor):
              (WebCore::westResizeCursor):
              (WebCore::northSouthResizeCursor):
              (WebCore::eastWestResizeCursor):
              (WebCore::northEastSouthWestResizeCursor):
              (WebCore::northWestSouthEastResizeCursor):
              (WebCore::columnResizeCursor):
              (WebCore::rowResizeCursor):
              (WebCore::middlePanningCursor):
              (WebCore::eastPanningCursor):
              (WebCore::northPanningCursor):
              (WebCore::northEastPanningCursor):
              (WebCore::northWestPanningCursor):
              (WebCore::southPanningCursor):
              (WebCore::southEastPanningCursor):
              (WebCore::southWestPanningCursor):
              (WebCore::westPanningCursor):
              (WebCore::moveCursor):
              (WebCore::verticalTextCursor):
              (WebCore::cellCursor):
              (WebCore::contextMenuCursor):
              (WebCore::aliasCursor):
              (WebCore::progressCursor):
              (WebCore::noDropCursor):
              (WebCore::copyCursor):
              (WebCore::noneCursor):
              (WebCore::notAllowedCursor):
              (WebCore::zoomInCursor):
              (WebCore::zoomOutCursor):
              (WebCore::grabCursor):
              (WebCore::grabbingCursor):
              * platform/chromium/DragDataChromium.cpp: Added.
              (WebCore::containsHTML):
              (WebCore::DragData::createClipboard):
              (WebCore::DragData::containsURL):
              (WebCore::DragData::asURL):
              (WebCore::DragData::containsFiles):
              (WebCore::DragData::asFilenames):
              (WebCore::DragData::containsPlainText):
              (WebCore::DragData::asPlainText):
              (WebCore::DragData::containsColor):
              (WebCore::DragData::canSmartReplace):
              (WebCore::DragData::containsCompatibleContent):
              (WebCore::DragData::asFragment):
              (WebCore::DragData::asColor):
              * platform/chromium/EditorChromium.cpp: Added.
              (WebCore::Editor::newGeneralClipboard):
              * platform/chromium/FileChooserChromium.cpp: Added.
              (WebCore::FileChooser::basenameForWidth):
              * platform/chromium/FileSystemChromium.cpp: Added.
              (WebCore::deleteFile):
              (WebCore::deleteEmptyDirectory):
              (WebCore::getFileSize):
              (WebCore::getFileModificationTime):
              (WebCore::directoryName):
              (WebCore::pathByAppendingComponent):
              (WebCore::makeAllDirectories):
              (WebCore::fileExists):
              * platform/chromium/FileSystemChromiumLinux.cpp: Added.
              (WebCore::pathGetFileName):
              * platform/chromium/FileSystemChromiumMac.mm: Added.
              (WebCore::pathGetFileName):
              * platform/chromium/FileSystemChromiumWin.cpp: Added.
              (WebCore::pathGetFileName):
              * platform/chromium/FramelessScrollView.cpp: Added.
              (WebCore::FramelessScrollView::~FramelessScrollView):
              (WebCore::FramelessScrollView::invalidateScrollbarRect):
              (WebCore::FramelessScrollView::isActive):
              (WebCore::FramelessScrollView::invalidateRect):
              (WebCore::FramelessScrollView::hostWindow):
              (WebCore::FramelessScrollView::windowClipRect):
              (WebCore::FramelessScrollView::paintContents):
              (WebCore::FramelessScrollView::contentsResized):
              (WebCore::FramelessScrollView::visibleContentsResized):
              * platform/chromium/FramelessScrollView.h: Added.
              (WebCore::FramelessScrollView::FramelessScrollView):
              (WebCore::FramelessScrollView::client):
              (WebCore::FramelessScrollView::setClient):
              * platform/chromium/FramelessScrollViewClient.h: Added.
              * platform/chromium/ScrollbarThemeChromiumWin.cpp: Added.
              (WebCore::):
              (WebCore::ScrollbarThemeChromium::scrollbarThickness):
              (WebCore::ScrollbarThemeChromium::invalidateOnMouseEnterExit):
              (WebCore::ScrollbarThemeChromium::paintTrackPiece):
              (WebCore::ScrollbarThemeChromium::paintButton):
              (WebCore::ScrollbarThemeChromium::paintThumb):
              (WebCore::ScrollbarThemeChromium::getThemeState):
              (WebCore::ScrollbarThemeChromium::getThemeArrowState):
              (WebCore::ScrollbarThemeChromium::getClassicThemeState):
              * platform/chromium/SoundChromiumPosix.cpp: Added.
              (WebCore::systemBeep):
              * platform/chromium/SoundChromiumWin.cpp: Added.
              (WebCore::systemBeep):
              * platform/chromium/SystemTimeChromium.cpp: Added.
              (WebCore::currentTime):
              (WebCore::userIdleTime):
              * platform/chromium/WidgetChromium.cpp: Added.
              (WebCore::Widget::Widget):
              (WebCore::Widget::~Widget):
              (WebCore::Widget::show):
              (WebCore::Widget::hide):
              (WebCore::Widget::setCursor):
              (WebCore::Widget::paint):
              (WebCore::Widget::setFocus):
              (WebCore::Widget::setIsSelected):
              (WebCore::Widget::frameRect):
              (WebCore::Widget::setFrameRect):
              * platform/chromium/WindowsVersion.cpp: Added.
              (WebCore::isVistaOrNewer):
              * platform/chromium/WindowsVersion.h: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39861 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0e8acfa7
  8. 09 Jan, 2009 1 commit
    • darin@chromium.org's avatar
      2009-01-09 Darin Fisher <darin@chromium.org> · 45f77239
      darin@chromium.org authored
              Reviewed by Eric Seidel.
      
              https://bugs.webkit.org/show_bug.cgi?id=23214
              Upstream platform/network/chromium/
      
              * platform/network/chromium/AuthenticationChallenge.h: Added.
              (WebCore::AuthenticationChallenge::AuthenticationChallenge):
              (WebCore::AuthenticationChallenge::sourceHandle):
              * platform/network/chromium/AuthenticationChallengeChromium.cpp: Added.
              (WebCore::AuthenticationChallenge::platformCompare):
              * platform/network/chromium/CookieJarChromium.cpp: Added.
              (WebCore::setCookies):
              (WebCore::cookies):
              (WebCore::cookiesEnabled):
              * platform/network/chromium/DNSChromium.cpp: Added.
              (WebCore::prefetchDNS):
              * platform/network/chromium/NetworkStateNotifierChromium.cpp: Added.
              (WebCore::NetworkStateNotifier::updateState):
              (WebCore::NetworkStateNotifier::NetworkStateNotifier):
              * platform/network/chromium/NetworkStateNotifierPrivate.h: Added.
              * platform/network/chromium/ResourceError.h: Added.
              (WebCore::ResourceError::ResourceError):
              * platform/network/chromium/ResourceRequest.h: Added.
              (WebCore::ResourceRequest::):
              (WebCore::ResourceRequest::ResourceRequest):
              (WebCore::ResourceRequest::frame):
              (WebCore::ResourceRequest::setFrame):
              (WebCore::ResourceRequest::setTargetType):
              (WebCore::ResourceRequest::targetType):
              (WebCore::ResourceRequest::originPid):
              (WebCore::ResourceRequest::setOriginPid):
              (WebCore::ResourceRequest::securityInfo):
              (WebCore::ResourceRequest::setSecurityInfo):
              (WebCore::ResourceRequest::doUpdatePlatformRequest):
              (WebCore::ResourceRequest::doUpdateResourceRequest):
              * platform/network/chromium/ResourceResponse.h:
              (WebCore::ResourceResponse::ResourceResponse):
              (WebCore::ResourceResponse::getSecurityInfo):
              (WebCore::ResourceResponse::setSecurityInfo):
              (WebCore::ResourceResponse::isContentFiltered):
              (WebCore::ResourceResponse::setIsContentFiltered):
              (WebCore::ResourceResponse::doUpdateResourceResponse):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39760 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      45f77239
  9. 06 Jan, 2009 1 commit
    • eric@webkit.org's avatar
      Reviewed by Gavin Barraclough. · f39bd282
      eric@webkit.org authored
              Upstream 3 more files to get the WebCore-Chromium build a bit further.
      
              * WebCore.scons:
              * page/chromium/AccessibilityObjectChromium.cpp: Added.
              (WebCore::AccessibilityObject::accessibilityIgnoreAttachment):
              * page/chromium/AccessibilityObjectWrapper.h: Added.
              (WebCore::AccessibilityObjectWrapper::~AccessibilityObjectWrapper):
              (WebCore::AccessibilityObjectWrapper::attached):
              (WebCore::AccessibilityObjectWrapper::accessibilityObject):
              (WebCore::AccessibilityObjectWrapper::AccessibilityObjectWrapper):
              * platform/chromium/PasteboardPrivate.h: Added.
              (WebCore::PasteboardPrivate::):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39668 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f39bd282
  10. 25 Nov, 2008 1 commit
  11. 24 Nov, 2008 1 commit
    • darin@chromium.org's avatar
      2008-11-24 Darin Fisher <darin@chromium.org> · 6b41247a
      darin@chromium.org authored
              Reviewed by Sam Weinig.
      
              https://bugs.webkit.org/show_bug.cgi?id=22448
              Create an abstraction for JSC::SourceCode
      
              * WebCore.vcproj/WebCore.vcproj:
              * bindings/js/CachedScriptSourceProvider.h:
              * bindings/js/ScriptController.cpp:
              (WebCore::ScriptController::evaluate):
              * bindings/js/ScriptController.h:
              * bindings/js/ScriptSourceCode.h: Added.
              (WebCore::ScriptSourceCode::ScriptSourceCode):
              (WebCore::ScriptSourceCode::length):
              (WebCore::ScriptSourceCode::jsSourceCode):
              * bindings/js/WorkerScriptController.cpp:
              (WebCore::Workevn ScriptController::evaluate):
              * bindings/js/WorkerScriptController.h:
              * dom/ScriptElement.cpp:
              (WebCore::ScriptElement::insertedIntoDocument):
              (WebCore::ScriptElement::childrenChanged):
              (WebCore::ScriptElementData::evaluateScript):
              (WebCore::ScriptElementData::notifyFinished):
              * dom/ScriptElement.h:
              * dom/WorkerThread.cpp:
              (WebCore::WorkerThread::workerThread):
              * dom/WorkerThread.h:
              * dom/XMLTokenizer.cpp:
              (WebCore::XMLTokenizer::notifyFinished):
              * dom/XMLTokenizerLibxml2.cpp:
              (WebCore::XMLTokenizer::endElementNs):
              * dom/XMLTokenizerQt.cpp:
              (WebCore::XMLTokenizer::parseEndElement):
              * html/HTMLTokenizer.cpp:
              (WebCore::HTMLTokenizer::scriptHandler):
              (WebCore::HTMLTokenizer::scriptExecution):
              (WebCore::HTMLTokenizer::notifyFinished):
              * html/HTMLTokenizer.h:
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::executeScript):
              * loader/FrameLoader.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38729 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6b41247a
  12. 19 Nov, 2008 1 commit
    • darin@chromium.org's avatar
      2008-11-18 Darin Fisher <darin@chromium.org> · cd84840e
      darin@chromium.org authored
              Reviewed by Geoff Garen.
      
              https://bugs.webkit.org/show_bug.cgi?id=22345
              Define ScriptValue as a thin container for a JSC::Value*.
      
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/ScheduledAction.cpp:
              * bindings/js/ScriptController.cpp:
              (WebCore::ScriptController::evaluate):
              * bindings/js/ScriptController.h:
              * bindings/js/ScriptValue.cpp: Added.
              (WebCore::ScriptValue::getString):
              * bindings/js/ScriptValue.h: Added.
              (WebCore::ScriptValue::ScriptValue):
              (WebCore::ScriptValue::jsValue):
              * dom/ScriptElement.cpp:
              * dom/XMLTokenizer.cpp:
              * dom/XMLTokenizerLibxml2.cpp:
              * html/HTMLTokenizer.cpp:
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::executeIfJavaScriptURL):
              (WebCore::FrameLoader::executeScript):
              * loader/FrameLoader.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38610 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cd84840e