1. 23 Sep, 2011 2 commits
  2. 21 Sep, 2011 1 commit
  3. 17 Sep, 2011 1 commit
  4. 15 Sep, 2011 3 commits
  5. 14 Sep, 2011 1 commit
    • jamesr@google.com's avatar
      Remove the dependency on GraphicsLayer from CCLayerTreeHost. · 9847f918
      jamesr@google.com authored
      Move root layer management into the NonCompositedContentHost.
      Have WebViewImpl create a NonCompositedContentHost explicitly.
      https://bugs.webkit.org/show_bug.cgi?id=67883
      
      Patch by Antoine Labour <piman@chromium.org> on 2011-09-14
      Reviewed by James Robinson.
      
      Source/WebCore:
      
      Covered by compositing/ layout tests.
      
      * platform/graphics/chromium/NonCompositedContentHost.cpp:
      (WebCore::NonCompositedContentHost::setRootLayer):
      (WebCore::NonCompositedContentHost::setViewport):
      (WebCore::NonCompositedContentHost::setVisible):
      (WebCore::NonCompositedContentHost::clearRenderSurfacesRecursive):
      (WebCore::NonCompositedContentHost::invalidateRect):
      * platform/graphics/chromium/NonCompositedContentHost.h:
      (WebCore::NonCompositedContentHost::topLevelRootLayer):
      * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
      (WebCore::CCLayerTreeHost::create):
      (WebCore::CCLayerTreeHost::CCLayerTreeHost):
      (WebCore::CCLayerTreeHost::initialize):
      (WebCore::CCLayerTreeHost::commitTo):
      (WebCore::CCLayerTreeHost::didRecreateGraphicsContext):
      (WebCore::CCLayerTreeHost::setViewport):
      (WebCore::CCLayerTreeHost::setVisible):
      (WebCore::CCLayerTreeHost::updateLayers):
      (WebCore::CCLayerTreeHost::paintLayerContents):
      * platform/graphics/chromium/cc/CCLayerTreeHost.h:
      (WebCore::CCLayerTreeHost::rootLayer):
      
      Source/WebKit/chromium:
      
      * src/WebViewImpl.cpp:
      (WebKit::WebViewImpl::setRootGraphicsLayer):
      (WebKit::WebViewImpl::invalidateRootLayerRect):
      (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
      (WebKit::WebViewImpl::updateLayerTreeViewport):
      (WebKit::WebViewImpl::setVisibilityState):
      * src/WebViewImpl.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@95152 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9847f918
  6. 12 Sep, 2011 1 commit
    • nduca@chromium.org's avatar
      [chromium] Add GraphicsContext3DPrivate:createGraphicsContextForAnotherThread · a6b0b084
      nduca@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=67832
      
      The compositor thread needs to create a GraphicsContext3D without
      actually making it current. In previous attempts at doing this, we
      modified all graphics3D creation to not make the contexts current, but
      this prove to be shockingly fragile. Since this is a very
      Chromium-specific behavior, this patch makes creationForAnotherThread a
      method on the private GraphicsContext3D interface.
      GraphicsContext3D::create behaves as usual.
      
      Reviewed by Kenneth Russell.
      
      * src/GraphicsContext3DChromium.cpp:
      (WebCore::GraphicsContext3DPrivate::createGraphicsContextFromWebContext):
      (WebCore::GraphicsContext3DPrivate::createGraphicsContextForAnotherThread):
      (WebCore::GraphicsContext3D::create):
      * src/GraphicsContext3DPrivate.h:
      * src/WebViewImpl.cpp:
      (WebKit::WebViewImpl::createLayerTreeHostContext3D):
      (WebKit::WebViewImpl::graphicsContext3D):
      * tests/MockGraphicsContext3DTest.cpp:
      (TEST):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94971 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a6b0b084
  7. 09 Sep, 2011 1 commit
    • fsamuel@chromium.org's avatar
      Move pageScaleFactor code from Frame.{h|cpp} to Page.{h|cpp} · c43a7d1c
      fsamuel@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=67250
      
      Reviewed by Simon Fraser.
      
      Source/WebCore:
      
      No new tests because there's no change in functionality.
      
      * WebCore.exp.in:
      * css/CSSStyleSelector.cpp:
      (WebCore::CSSStyleSelector::styleForDocument):
      * dom/Element.cpp:
      (WebCore::Element::getClientRects):
      (WebCore::Element::getBoundingClientRect):
      * dom/Range.cpp:
      (WebCore::adjustFloatQuadsForScrollAndAbsoluteZoomAndPageScale):
      * loader/HistoryController.cpp:
      (WebCore::HistoryController::restoreScrollPositionAndViewState):
      * page/Frame.cpp:
      (WebCore::Frame::Frame):
      (WebCore::Frame::pageScaleFactor):
      * page/Frame.h:
      * page/Page.cpp:
      (WebCore::Page::Page):
      (WebCore::Page::setPageScaleFactor):
      * page/Page.h:
      (WebCore::Page::pageScaleFactor):
      * rendering/RenderLayerCompositor.cpp:
      (WebCore::RenderLayerCompositor::shouldPropagateCompositingToEnclosingFrame):
      (WebCore::RenderLayerCompositor::pageScaleFactor):
      * rendering/RenderView.cpp:
      (WebCore::RenderView::paintBoxDecorations):
      
      Source/WebKit/chromium:
      
      * src/WebViewImpl.cpp:
      (WebKit::WebViewImpl::pageScaleFactor):
      (WebKit::WebViewImpl::scalePage):
      
      Source/WebKit/gtk:
      
      * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
      (DumpRenderTreeSupportGtk::scalePageBy):
      
      Source/WebKit/mac:
      
      * WebView/WebView.mm:
      (-[WebView _scaleWebView:atOrigin:]):
      (-[WebView _viewScaleFactor]):
      
      Source/WebKit/qt:
      
      * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
      (DumpRenderTreeSupportQt::scalePageBy):
      
      Source/WebKit2:
      
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
      (WebKit::WebFrameLoaderClient::dispatchDidCommitLoad):
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::scalePage):
      (WebKit::WebPage::pageScaleFactor):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94889 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c43a7d1c
  8. 08 Sep, 2011 2 commits
    • abarth@webkit.org's avatar
      Attempt to fix Chromium build. We can just grab the encoding from the document. · 969a1ef4
      abarth@webkit.org authored
      * src/ContextMenuClientImpl.cpp:
      (WebKit::ContextMenuClientImpl::getCustomMenuFromDefaultItems):
      * src/WebDocument.cpp:
      (WebKit::WebDocument::encoding):
      * src/WebPageSerializerImpl.cpp:
      (WebKit::WebPageSerializerImpl::preActionBeforeSerializeOpenTag):
      * src/WebSearchableFormData.cpp:
      (HTMLNames::GetFormEncoding):
      * src/WebViewImpl.cpp:
      (WebKit::WebViewImpl::pageEncoding):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94816 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      969a1ef4
    • wjmaclean@chromium.org's avatar
      [chromium] Add backend compositor support for rescaling (zooming) textures during zoom animation. · bcdc0689
      wjmaclean@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=66472
      
      Source/WebCore:
      
      This patch contains plumbing from Internals to WebViewImpl that can be removed
      at a later time when the zoom animator code is complete.
      
      Reviewed by James Robinson.
      
      Test: platform/chromium/compositing/zoom-animator-scale-test.html
      
      * page/Settings.cpp:
      (WebCore::Settings::Settings):
      * page/Settings.h:
      (WebCore::Settings::setZoomAnimatorScale):
      (WebCore::Settings::zoomAnimatorScale):
      * platform/graphics/chromium/LayerRendererChromium.cpp:
      (WebCore::LayerRendererChromium::LayerRendererChromium):
      (WebCore::LayerRendererChromium::drawLayersInternal):
      * platform/graphics/chromium/LayerRendererChromium.h:
      (WebCore::LayerRendererChromium::setZoomAnimatorScale):
      * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
      (WebCore::CCLayerTreeHost::CCLayerTreeHost):
      (WebCore::CCLayerTreeHost::commitTo):
      (WebCore::CCLayerTreeHost::setZoomAnimatorScale):
      (WebCore::CCLayerTreeHost::updateLayers):
      * platform/graphics/chromium/cc/CCLayerTreeHost.h:
      * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
      (WebCore::CCLayerTreeHostImpl::setZoomAnimatorScale):
      * platform/graphics/chromium/cc/CCLayerTreeHostImpl.h:
      * testing/Internals.cpp:
      (WebCore::Internals::setZoomAnimatorScale):
      * testing/Internals.h:
      * testing/Internals.idl:
      
      Source/WebKit/chromium:
      
      This patch contains plumbing from Internals to WebViewImpl that can be removed
      at a later time when the zoom animator code is complete.
      
      Reviewed by James Robinson.
      
      * src/WebViewImpl.cpp:
      (WebKit::WebViewImpl::setZoomLevel):
      (WebKit::WebViewImpl::setRootLayerNeedsDisplay):
      
      LayoutTests:
      
      Initial tests for zoomAnimatorChromium backend.
      
      Reviewed by James Robinson.
      
      * platform/chromium-gpu-linux/platform/chromium/compositing/zoom-animator-scale-test-expected.png: Added.
      * platform/chromium-gpu-linux/platform/chromium/compositing/zoom-animator-scale-test-expected.txt: Added.
      * platform/chromium/compositing/zoom-animator-scale-test.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94789 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bcdc0689
  9. 02 Sep, 2011 2 commits
  10. 01 Sep, 2011 2 commits
    • nduca@chromium.org's avatar
      [chromium] Introduce CCSingleThreadProxy in order to move LayerRenderer to CCLayerTreeHostImpl · d973a16f
      nduca@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=66807
      
      Reviewed by James Robinson.
      
      Source/WebCore:
      
      * WebCore.gypi:
      * platform/graphics/chromium/ContentLayerChromium.cpp:
      (WebCore::ContentLayerChromium::createTextureUpdater):
      * platform/graphics/chromium/ImageLayerChromium.cpp:
      (WebCore::ImageLayerChromium::createTextureUpdater):
      * platform/graphics/chromium/LayerChromium.cpp:
      (WebCore::LayerChromium::setLayerRendererRecursive):
      * platform/graphics/chromium/LayerChromium.h:
      * platform/graphics/chromium/LayerRendererChromium.cpp:
      (WebCore::LayerRendererChromium::create):
      (WebCore::LayerRendererChromium::LayerRendererChromium):
      (WebCore::LayerRendererChromium::initialize):
      (WebCore::LayerRendererChromium::close):
      (WebCore::LayerRendererChromium::updateLayers):
      (WebCore::LayerRendererChromium::drawLayers):
      (WebCore::LayerRendererChromium::drawLayersInternal):
      (WebCore::LayerRendererChromium::getOffscreenLayerTexture):
      (WebCore::LayerRendererChromium::isContextLost):
      * platform/graphics/chromium/LayerRendererChromium.h:
      (WebCore::LayerRendererChromium::capabilities):
      (WebCore::LayerRendererChromium::rootLayerImpl):
      (WebCore::LayerRendererChromium::contextSupportsMapSub):
      (WebCore::LayerRendererChromium::viewportSize):
      * platform/graphics/chromium/LayerTextureUpdaterCanvas.h:
      * platform/graphics/chromium/TiledLayerChromium.cpp:
      (WebCore::TiledLayerChromium::setLayerTreeHost):
      * platform/graphics/chromium/VideoLayerChromium.cpp:
      (WebCore::VideoLayerChromium::reserveTextures):
      * platform/graphics/chromium/cc/CCCanvasLayerImpl.cpp:
      (WebCore::CCCanvasLayerImpl::draw):
      * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
      (WebCore::CCLayerTreeHost::CCLayerTreeHost):
      (WebCore::CCLayerTreeHost::initialize):
      (WebCore::CCLayerTreeHost::~CCLayerTreeHost):
      (WebCore::CCLayerTreeHost::animateAndLayout):
      (WebCore::CCLayerTreeHost::preCommit):
      (WebCore::CCLayerTreeHost::commitTo):
      (WebCore::CCLayerTreeHost::createCompositorThread):
      (WebCore::CCLayerTreeHost::createLayerTreeHostContext3D):
      (WebCore::CCLayerTreeHost::createLayerTreeHostImpl):
      (WebCore::CCLayerTreeHost::didRecreateGraphicsContext):
      (WebCore::CCLayerTreeHost::scheduleComposite):
      (WebCore::CCLayerTreeHost::context):
      (WebCore::CCLayerTreeHost::compositeAndReadback):
      (WebCore::CCLayerTreeHost::finishAllRendering):
      (WebCore::CCLayerTreeHost::layerRendererCapabilities):
      (WebCore::CCLayerTreeHost::setRootLayer):
      (WebCore::CCLayerTreeHost::skiaContext):
      (WebCore::CCLayerTreeHost::setViewport):
      (WebCore::CCLayerTreeHost::setVisible):
      (WebCore::CCLayerTreeHost::loseCompositorContext):
      (WebCore::CCLayerTreeHost::contentsTextureManager):
      (WebCore::CCLayerTreeHost::composite):
      * platform/graphics/chromium/cc/CCLayerTreeHost.h:
      (WebCore::CCSettings::CCSettings):
      (WebCore::LayerRendererCapabilities::LayerRendererCapabilities):
      * platform/graphics/chromium/cc/CCLayerTreeHostCommitter.h: Removed.
      * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
      (WebCore::CCLayerTreeHostImpl::create):
      (WebCore::CCLayerTreeHostImpl::CCLayerTreeHostImpl):
      (WebCore::CCLayerTreeHostImpl::~CCLayerTreeHostImpl):
      (WebCore::CCLayerTreeHostImpl::commitComplete):
      (WebCore::CCLayerTreeHostImpl::context):
      (WebCore::CCLayerTreeHostImpl::drawLayers):
      (WebCore::CCLayerTreeHostImpl::finishAllRendering):
      (WebCore::CCLayerTreeHostImpl::isContextLost):
      (WebCore::CCLayerTreeHostImpl::layerRendererCapabilities):
      (WebCore::CCLayerTreeHostImpl::present):
      (WebCore::CCLayerTreeHostImpl::readback):
      (WebCore::CCLayerTreeHostImpl::setRootLayer):
      (WebCore::CCLayerTreeHostImpl::setVisible):
      (WebCore::CCLayerTreeHostImpl::initializeLayerRenderer):
      (WebCore::CCLayerTreeHostImpl::updateLayers):
      (WebCore::CCLayerTreeHostImpl::setViewport):
      * platform/graphics/chromium/cc/CCLayerTreeHostImpl.h:
      (WebCore::CCLayerTreeHostImpl::layerRenderer):
      (WebCore::CCLayerTreeHostImpl::rootLayer):
      (WebCore::CCLayerTreeHostImpl::viewportSize):
      * platform/graphics/chromium/cc/CCLayerTreeHostImplProxy.cpp: Removed.
      * platform/graphics/chromium/cc/CCMainThreadTask.h:
      (WebCore::MainThreadTask4::create):
      (WebCore::MainThreadTask4::MainThreadTask4):
      (WebCore::MainThreadTask4::performTask):
      (WebCore::MainThreadTask5::create):
      (WebCore::MainThreadTask5::MainThreadTask5):
      (WebCore::MainThreadTask5::performTask):
      (WebCore::createMainThreadTask):
      * platform/graphics/chromium/cc/CCPluginLayerImpl.cpp:
      (WebCore::CCPluginLayerImpl::draw):
      * platform/graphics/chromium/cc/CCProxy.cpp: Renamed from Source/WebCore/platform/graphics/chromium/cc/CCLayerTreeHostCommitter.cpp.
      (WebCore::CCProxy::isMainThread):
      (WebCore::CCProxy::isImplThread):
      (WebCore::CCProxy::setImplThread):
      * platform/graphics/chromium/cc/CCProxy.h: Added.
      (WebCore::CCProxy::~CCProxy):
      (WebCore::CCProxy::CCProxy):
      * platform/graphics/chromium/cc/CCSingleThreadProxy.cpp: Added.
      (WebCore::ScopedSetImplThread::ScopedSetImplThread):
      (WebCore::ScopedSetImplThread::~ScopedSetImplThread):
      (WebCore::CCSingleThreadProxy::create):
      (WebCore::CCSingleThreadProxy::CCSingleThreadProxy):
      (WebCore::CCSingleThreadProxy::start):
      (WebCore::CCSingleThreadProxy::~CCSingleThreadProxy):
      (WebCore::CCSingleThreadProxy::compositeAndReadback):
      (WebCore::CCSingleThreadProxy::context):
      (WebCore::CCSingleThreadProxy::finishAllRendering):
      (WebCore::CCSingleThreadProxy::isStarted):
      (WebCore::CCSingleThreadProxy::initializeLayerRenderer):
      (WebCore::CCSingleThreadProxy::layerRendererCapabilities):
      (WebCore::CCSingleThreadProxy::loseCompositorContext):
      (WebCore::CCSingleThreadProxy::setNeedsCommitAndRedraw):
      (WebCore::CCSingleThreadProxy::setNeedsRedraw):
      (WebCore::CCSingleThreadProxy::stop):
      (WebCore::CCSingleThreadProxy::skiaContext):
      (WebCore::CCSingleThreadProxy::contentsTextureManager):
      (WebCore::CCSingleThreadProxy::compositeImmediately):
      (WebCore::CCSingleThreadProxy::compositeIfNeeded):
      (WebCore::CCSingleThreadProxy::doComposite):
      * platform/graphics/chromium/cc/CCSingleThreadProxy.h: Copied from Source/WebCore/platform/graphics/chromium/cc/CCLayerTreeHostImplProxy.h.
      * platform/graphics/chromium/cc/CCThreadProxy.cpp: Added.
      (WebCore::CCThreadProxy::create):
      (WebCore::CCThreadProxy::CCThreadProxy):
      (WebCore::CCThreadProxy::~CCThreadProxy):
      (WebCore::CCThreadProxy::compositeAndReadback):
      (WebCore::CCThreadProxy::context):
      (WebCore::CCThreadProxy::finishAllRendering):
      (WebCore::CCThreadProxy::isStarted):
      (WebCore::CCThreadProxy::initializeLayerRenderer):
      (WebCore::CCThreadProxy::layerRendererCapabilities):
      (WebCore::CCThreadProxy::loseCompositorContext):
      (WebCore::CCThreadProxy::setNeedsCommitAndRedraw):
      (WebCore::CCThreadProxy::setNeedsRedraw):
      (WebCore::CCThreadProxy::start):
      (WebCore::CCThreadProxy::stop):
      (WebCore::CCThreadProxy::skiaContext):
      (WebCore::CCThreadProxy::contentsTextureManager):
      (WebCore::CCThreadProxy::beginFrameAndCommitOnCCThread):
      (WebCore::CCThreadProxy::beginFrameAndCommit):
      (WebCore::CCThreadProxy::commitOnCCThread):
      (WebCore::CCThreadProxy::drawLayersOnCCThread):
      (WebCore::CCThreadProxy::setNeedsCommitAndRedrawOnCCThread):
      (WebCore::CCThreadProxy::setNeedsRedrawOnCCThread):
      (WebCore::CCThreadProxy::initializeImplOnCCThread):
      (WebCore::CCThreadProxy::initializeLayerRendererOnCCThread):
      (WebCore::CCThreadProxy::layerTreeHostClosedOnCCThread):
      * platform/graphics/chromium/cc/CCThreadProxy.h: Renamed from Source/WebCore/platform/graphics/chromium/cc/CCLayerTreeHostImplProxy.h.
      * platform/graphics/chromium/cc/CCThreadTask.h:
      (WebCore::CCThreadTask5::create):
      (WebCore::CCThreadTask5::CCThreadTask5):
      (WebCore::CCThreadTask5::performTask):
      (WebCore::createCCThreadTask):
      * platform/graphics/chromium/cc/CCTiledLayerImpl.cpp:
      * platform/graphics/chromium/cc/CCVideoLayerImpl.cpp:
      (WebCore::CCVideoLayerImpl::draw):
      
      Source/WebKit/chromium:
      
      * src/WebViewImpl.cpp:
      (WebKit::WebViewImpl::composite):
      (WebKit::WebViewImpl::setRootGraphicsLayer):
      (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
      (WebKit::WebViewImpl::didRecreateGraphicsContext):
      * tests/CCThreadTaskTest.cpp:
      (WebCore::TEST):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94353 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d973a16f
    • abarth@webkit.org's avatar
      [Chromium] Rename PlatformBridge to PlatformSupport · 1fd5b9c8
      abarth@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=67349
      
      Reviewed by Darin Fisher.
      
      This matches the WebKitPlatformSupport embedder API.
      
      Source/WebCore: 
      
      * WebCore.gypi:
      * WebCore.pro:
      * bindings/v8/NPV8Object.cpp:
      (_NPN_Evaluate):
      * bindings/v8/ScriptController.cpp:
      (WebCore::ScriptController::createScriptInstanceForWidget):
      * bindings/v8/V8DOMWindowShell.cpp:
      (WebCore::reportFatalErrorInV8):
      * bindings/v8/V8GCController.cpp:
      * bindings/v8/V8Proxy.cpp:
      (WebCore::V8Proxy::handleOutOfMemory):
      (WebCore::V8Proxy::evaluate):
      * bindings/v8/V8Proxy.h:
      * bindings/v8/custom/V8InspectorFrontendHostCustom.cpp:
      (WebCore::histogramEnumeration):
      * page/PageGroup.cpp:
      (WebCore::PageGroup::isLinkVisited):
      * platform/audio/chromium/AudioBusChromium.cpp:
      (WebCore::AudioBus::loadPlatformResource):
      (WebCore::createBusFromInMemoryAudioFile):
      * platform/chromium/ChromiumDataObject.cpp:
      (WebCore::ChromiumDataObject::types):
      (WebCore::ChromiumDataObject::getData):
      (WebCore::ChromiumDataObject::getSequenceNumber):
      (WebCore::ChromiumDataObject::containsFilenames):
      * platform/chromium/DataTransferItemChromium.cpp:
      (WebCore::DataTransferItemChromium::getAsString):
      (WebCore::DataTransferItemChromium::getAsFile):
      * platform/chromium/DragDataChromium.cpp:
      (WebCore::DragData::asURL):
      * platform/chromium/FileSystemChromium.cpp:
      (WebCore::deleteFile):
      (WebCore::deleteEmptyDirectory):
      (WebCore::getFileSize):
      (WebCore::getFileModificationTime):
      (WebCore::revealFolderInOS):
      (WebCore::directoryName):
      (WebCore::pathByAppendingComponent):
      (WebCore::makeAllDirectories):
      (WebCore::fileExists):
      (WebCore::openFile):
      (WebCore::closeFile):
      (WebCore::seekFile):
      (WebCore::truncateFile):
      (WebCore::readFromFile):
      (WebCore::writeToFile):
      * platform/chromium/LanguageChromium.cpp:
      (WebCore::platformDefaultLanguage):
      * platform/chromium/LinkHashChromium.cpp:
      (WebCore::visitedLinkHash):
      * platform/chromium/MIMETypeRegistryChromium.cpp:
      (WebCore::MIMETypeRegistry::getMIMETypeForExtension):
      (WebCore::MIMETypeRegistry::getWellKnownMIMETypeForExtension):
      (WebCore::MIMETypeRegistry::getPreferredExtensionForMIMEType):
      (WebCore::MIMETypeRegistry::isSupportedImageMIMEType):
      (WebCore::MIMETypeRegistry::isSupportedJavaScriptMIMEType):
      (WebCore::MIMETypeRegistry::isSupportedNonImageMIMEType):
      * platform/chromium/PasteboardChromium.cpp:
      (WebCore::Pasteboard::writeSelection):
      (WebCore::Pasteboard::writePlainText):
      (WebCore::Pasteboard::writeURL):
      (WebCore::Pasteboard::writeImage):
      (WebCore::Pasteboard::canSmartReplace):
      (WebCore::Pasteboard::plainText):
      (WebCore::Pasteboard::documentFragment):
      * platform/chromium/PlatformBridge.h: Removed.
      * platform/chromium/PlatformScreenChromium.cpp:
      (WebCore::screenDepth):
      (WebCore::screenDepthPerComponent):
      (WebCore::screenIsMonochrome):
      (WebCore::screenRect):
      (WebCore::screenAvailableRect):
      * platform/chromium/PlatformSupport.h: Copied from Source/WebCore/platform/chromium/PlatformBridge.h.
      * platform/chromium/SSLKeyGeneratorChromium.cpp:
      (WebCore::signedPublicKeyAndChallengeString):
      * platform/chromium/ScrollbarThemeChromium.cpp:
      * platform/chromium/ScrollbarThemeChromiumLinux.cpp:
      (WebCore::ScrollbarThemeChromiumLinux::scrollbarThickness):
      (WebCore::ScrollbarThemeChromiumLinux::paintTrackPiece):
      (WebCore::ScrollbarThemeChromiumLinux::paintButton):
      (WebCore::ScrollbarThemeChromiumLinux::paintThumb):
      (WebCore::ScrollbarThemeChromiumLinux::buttonSize):
      (WebCore::ScrollbarThemeChromiumLinux::minimumThumbLength):
      * platform/chromium/ScrollbarThemeChromiumMac.mm:
      (WebCore::scrollbarStateToThemeState):
      (WebCore::ScrollbarThemeChromiumMac::paint):
      * platform/chromium/ScrollbarThemeChromiumWin.cpp:
      (WebCore::ScrollbarThemeChromiumWin::scrollbarThickness):
      (WebCore::ScrollbarThemeChromiumWin::paintTrackPiece):
      (WebCore::ScrollbarThemeChromiumWin::paintButton):
      (WebCore::ScrollbarThemeChromiumWin::paintThumb):
      (WebCore::ScrollbarThemeChromiumWin::buttonSize):
      * platform/chromium/SharedTimerChromium.cpp:
      (WebCore::setSharedTimerFiredFunction):
      (WebCore::setSharedTimerFireInterval):
      (WebCore::stopSharedTimer):
      * platform/chromium/SuddenTerminationChromium.cpp:
      (WebCore::disableSuddenTermination):
      (WebCore::enableSuddenTermination):
      * platform/chromium/TraceEvent.h:
      (WebCore::internal::ScopeTracer::ScopeTracer):
      (WebCore::internal::ScopeTracer::~ScopeTracer):
      * platform/graphics/chromium/ContentLayerChromium.cpp:
      (WebCore::ContentLayerPainter::paint):
      * platform/graphics/chromium/CrossProcessFontLoading.mm:
      * platform/graphics/chromium/FontCacheChromiumWin.cpp:
      (WebCore::fontContainsCharacter):
      (WebCore::FillLogFont):
      * platform/graphics/chromium/FontCacheLinux.cpp:
      (WebCore::FontCache::getFontDataForCharacters):
      * platform/graphics/chromium/FontChromiumWin.cpp:
      (WebCore::drawGlyphsWin):
      * platform/graphics/chromium/FontPlatformDataChromiumWin.cpp:
      (WebCore::FontPlatformData::scriptFontProperties):
      * platform/graphics/chromium/FontPlatformDataLinux.cpp:
      (WebCore::FontPlatformData::querySystemForRenderStyle):
      * platform/graphics/chromium/GlyphPageTreeNodeChromiumWin.cpp:
      (WebCore::fillBMPGlyphs):
      * platform/graphics/chromium/ImageChromium.cpp:
      (WebCore::Image::loadPlatformResource):
      * platform/graphics/chromium/ImageChromiumMac.mm:
      (WebCore::Image::loadPlatformResource):
      * platform/graphics/chromium/SimpleFontDataChromiumWin.cpp:
      (WebCore::SimpleFontData::platformInit):
      (WebCore::SimpleFontData::determinePitch):
      (WebCore::SimpleFontData::platformWidthForGlyph):
      * platform/graphics/chromium/UniscribeHelperTextRun.cpp:
      (WebCore::UniscribeHelperTextRun::tryToPreloadFont):
      * platform/graphics/skia/FontCustomPlatformData.cpp:
      (WebCore::FontCustomPlatformData::fontPlatformData):
      * platform/network/chromium/CookieJarChromium.cpp:
      (WebCore::setCookies):
      (WebCore::cookies):
      (WebCore::cookieRequestHeaderFieldValue):
      (WebCore::cookiesEnabled):
      (WebCore::getRawCookies):
      (WebCore::deleteCookie):
      * platform/network/chromium/DNSChromium.cpp:
      (WebCore::prefetchDNS):
      * platform/qt/PlatformBridge.h: Removed.
      * platform/qt/PlatformBridgeQt.cpp: Removed.
      * platform/qt/PlatformSupport.h: Copied from Source/WebCore/platform/qt/PlatformBridge.h.
      * platform/qt/PlatformSupportQt.cpp: Copied from Source/WebCore/platform/qt/PlatformBridgeQt.cpp.
      (WebCore::PlatformSupport::popupsAllowed):
      (WebCore::PlatformSupport::pluginScriptableObject):
      * platform/sql/chromium/SQLiteFileSystemChromium.cpp:
      (WebCore::SQLiteFileSystem::deleteDatabaseFile):
      (WebCore::SQLiteFileSystem::getDatabaseFileSize):
      * platform/sql/chromium/SQLiteFileSystemChromiumPosix.cpp:
      * platform/sql/chromium/SQLiteFileSystemChromiumWin.cpp:
      * plugins/chromium/PluginDataChromium.cpp:
      (WebCore::PluginCache::plugins):
      * rendering/RenderThemeChromiumLinux.cpp:
      (WebCore::getWebThemeState):
      (WebCore::RenderThemeChromiumLinux::adjustSliderThumbSize):
      (WebCore::RenderThemeChromiumLinux::paintCheckbox):
      (WebCore::RenderThemeChromiumLinux::setCheckboxSize):
      (WebCore::RenderThemeChromiumLinux::paintRadio):
      (WebCore::RenderThemeChromiumLinux::setRadioSize):
      (WebCore::RenderThemeChromiumLinux::paintButton):
      (WebCore::RenderThemeChromiumLinux::paintTextField):
      (WebCore::RenderThemeChromiumLinux::paintMenuList):
      (WebCore::RenderThemeChromiumLinux::paintSliderTrack):
      (WebCore::RenderThemeChromiumLinux::paintSliderThumb):
      (WebCore::RenderThemeChromiumLinux::adjustInnerSpinButtonStyle):
      (WebCore::RenderThemeChromiumLinux::paintInnerSpinButton):
      (WebCore::RenderThemeChromiumLinux::paintProgressBar):
      * rendering/RenderThemeChromiumMac.mm:
      (WebCore::RenderThemeChromiumMac::usesTestModeFocusRingColor):
      * rendering/RenderThemeChromiumSkia.cpp:
      (WebCore::RenderThemeChromiumSkia::caretBlinkInterval):
      * rendering/RenderThemeChromiumWin.cpp:
      (WebCore::RenderThemeChromiumWin::platformActiveSelectionBackgroundColor):
      (WebCore::RenderThemeChromiumWin::platformInactiveSelectionBackgroundColor):
      (WebCore::RenderThemeChromiumWin::platformActiveSelectionForegroundColor):
      (WebCore::RenderThemeChromiumWin::systemColor):
      (WebCore::RenderThemeChromiumWin::paintButton):
      (WebCore::RenderThemeChromiumWin::paintSliderTrack):
      (WebCore::menuListButtonWidth):
      (WebCore::RenderThemeChromiumWin::paintMenuList):
      (WebCore::RenderThemeChromiumWin::paintTextFieldInternal):
      (WebCore::RenderThemeChromiumWin::paintInnerSpinButton):
      (WebCore::RenderThemeChromiumWin::paintProgressBar):
      * storage/chromium/IDBFactoryBackendInterface.cpp:
      (WebCore::IDBFactoryBackendInterface::create):
      * storage/chromium/IDBKeyPathBackendImpl.cpp:
      (WebCore::IDBKeyPathBackendImpl::createIDBKeysFromSerializedValuesAndKeyPath):
      (WebCore::IDBKeyPathBackendImpl::injectIDBKeyIntoSerializedValue):
      * storage/chromium/QuotaTracker.cpp:
      (WebCore::QuotaTracker::getDatabaseSizeAndSpaceAvailableToOrigin):
      
      Source/WebKit/chromium: 
      
      * WebKit.gyp:
      * src/AssertMatchingEnums.cpp:
      * src/ChromeClientImpl.cpp:
      (WebKit::ChromeClientImpl::shouldRunModalDialogDuringPageDismissal):
      * src/PlatformBridge.cpp: Removed.
      * src/ResourceHandle.cpp:
      (WebCore::ResourceHandle::cacheMetadata):
      * src/WebFrameImpl.cpp:
      (WebKit::WebFrameImpl::WebFrameImpl):
      (WebKit::WebFrameImpl::~WebFrameImpl):
      * src/WebViewImpl.cpp:
      (WebKit::WebViewImpl::paint):
      (WebKit::WebViewImplContentPainter::paint):
      (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94275 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1fd5b9c8
  11. 31 Aug, 2011 2 commits
    • commit-queue@webkit.org's avatar
      Chromium Mac: PDF: Scrollsbars should be visible when scrolling using the two... · d3561e97
      commit-queue@webkit.org authored
      Chromium Mac: PDF: Scrollsbars should be visible when scrolling using the two finger gesture on Lion
      https://bugs.webkit.org/show_bug.cgi?id=66599
      
      Patch by Sailesh Agrawal <sail@chromium.org> on 2011-08-31
      Reviewed by Darin Fisher.
      
      Overlay scrollbars over a pdf wouldn't stay visible if a gesture was in progress. Normally we use a beginScrollGesture and endScrollGesture to keep the scrollbars visible. Unfortunately PDFs didn't handle gesture events so we didn't get the begin/end gesture events.
      
      This change pipes gesture events to WebPluginContainerImpl if possible. This fixes this bug.
      
      * src/WebPluginContainerImpl.cpp:
      (WebKit::WebPluginContainerImpl::handleGestureEvent):
      * src/WebPluginContainerImpl.h:
      * src/WebViewImpl.cpp:
      (WebKit::WebViewImpl::gestureEvent):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94261 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d3561e97
    • abarth@webkit.org's avatar
      [Chromium] Rename WebKitClient to WebKitPlatformSupport · 01544404
      abarth@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=67309
      
      Reviewed by Darin Fisher.
      
      WebKitClient doesn't actually represent the WebKit Client.  Instead, it
      represents supporting code for the WebKit Platform.  This patch renames
      WebKitClient to WebKitPlatformSupport to make it easier for folks to
      understand the difference between the Client and the Platform.
      
      This patch includes shims so as not to break the Chromium build.  Once
      the Chromium side is updated, I'll remove the shims.
      
      * WebKit.gyp:
      * public/WebFrameClient.h:
      * public/WebKit.h:
      (WebKit::webKitClient):
      * public/WebKitClient.h: Removed.
      * public/WebKitPlatformSupport.h: Copied from Source/WebKit/chromium/public/WebKitClient.h.
      (WebKit::WebKitPlatformSupport::~WebKitPlatformSupport):
      * src/ApplicationCacheHostInternal.h:
      * src/AssociatedURLLoader.cpp:
      * src/AsyncFileSystemChromium.cpp:
      (WebCore::AsyncFileSystemChromium::AsyncFileSystemChromium):
      * src/AudioDestinationChromium.cpp:
      (WebCore::AudioDestinationChromium::AudioDestinationChromium):
      (WebCore::AudioDestination::hardwareSampleRate):
      * src/BlobRegistryProxy.cpp:
      (WebCore::BlobRegistryProxy::BlobRegistryProxy):
      * src/CCThreadImpl.cpp:
      (WebKit::CCThreadImpl::CCThreadImpl):
      * src/ChromiumCurrentTime.cpp:
      (WTF::currentTime):
      (WTF::monotonicallyIncreasingTime):
      * src/ChromiumOSRandomSource.cpp:
      (WTF::cryptographicallyRandomValuesFromOS):
      * src/ChromiumThreading.cpp:
      (WTF::ChromiumThreading::callOnMainThread):
      * src/FrameLoaderClientImpl.cpp:
      (WebKit::FrameLoaderClientImpl::canShowMIMEType):
      (WebKit::FrameLoaderClientImpl::userAgent):
      * src/GraphicsContext3DChromium.cpp:
      (WebCore::GraphicsContext3D::create):
      * src/IDBFactoryBackendProxy.cpp:
      (WebKit::IDBFactoryBackendProxy::IDBFactoryBackendProxy):
      * src/LocalizedStrings.cpp:
      (WebCore::query):
      * src/PlatformBridge.cpp:
      (WebCore::getCookieJar):
      (WebCore::PlatformBridge::cacheMetadata):
      (WebCore::PlatformBridge::clipboardIsFormatAvailable):
      (WebCore::PlatformBridge::clipboardReadPlainText):
      (WebCore::PlatformBridge::clipboardReadHTML):
      (WebCore::PlatformBridge::clipboardReadImage):
      (WebCore::PlatformBridge::clipboardGetSequenceNumber):
      (WebCore::PlatformBridge::clipboardWriteSelection):
      (WebCore::PlatformBridge::clipboardWritePlainText):
      (WebCore::PlatformBridge::clipboardWriteURL):
      (WebCore::PlatformBridge::clipboardWriteImage):
      (WebCore::PlatformBridge::clipboardWriteData):
      (WebCore::PlatformBridge::clipboardReadAvailableTypes):
      (WebCore::PlatformBridge::clipboardReadData):
      (WebCore::PlatformBridge::clipboardReadFilenames):
      (WebCore::PlatformBridge::prefetchDNS):
      (WebCore::PlatformBridge::fileExists):
      (WebCore::PlatformBridge::deleteFile):
      (WebCore::PlatformBridge::deleteEmptyDirectory):
      (WebCore::PlatformBridge::getFileSize):
      (WebCore::PlatformBridge::revealFolderInOS):
      (WebCore::PlatformBridge::getFileModificationTime):
      (WebCore::PlatformBridge::directoryName):
      (WebCore::PlatformBridge::pathByAppendingComponent):
      (WebCore::PlatformBridge::makeAllDirectories):
      (WebCore::PlatformBridge::getAbsolutePath):
      (WebCore::PlatformBridge::isDirectory):
      (WebCore::PlatformBridge::filePathToURL):
      (WebCore::PlatformBridge::openFile):
      (WebCore::PlatformBridge::closeFile):
      (WebCore::PlatformBridge::seekFile):
      (WebCore::PlatformBridge::truncateFile):
      (WebCore::PlatformBridge::readFromFile):
      (WebCore::PlatformBridge::writeToFile):
      (WebCore::PlatformBridge::ensureFontLoaded):
      (WebCore::PlatformBridge::loadFont):
      (WebCore::PlatformBridge::getFontFamilyForCharacters):
      (WebCore::PlatformBridge::getRenderStyleForStrike):
      (WebCore::PlatformBridge::databaseOpenFile):
      (WebCore::PlatformBridge::databaseDeleteFile):
      (WebCore::PlatformBridge::databaseGetFileAttributes):
      (WebCore::PlatformBridge::databaseGetFileSize):
      (WebCore::PlatformBridge::databaseGetSpaceAvailableForOrigin):
      (WebCore::PlatformBridge::createIDBKeysFromSerializedValuesAndKeyPath):
      (WebCore::PlatformBridge::injectIDBKeyIntoSerializedValue):
      (WebCore::PlatformBridge::signedPublicKeyAndChallengeString):
      (WebCore::PlatformBridge::computedDefaultLanguage):
      (WebCore::PlatformBridge::isSupportedImageMIMEType):
      (WebCore::PlatformBridge::isSupportedJavaScriptMIMEType):
      (WebCore::PlatformBridge::isSupportedNonImageMIMEType):
      (WebCore::PlatformBridge::mimeTypeForExtension):
      (WebCore::PlatformBridge::wellKnownMimeTypeForExtension):
      (WebCore::PlatformBridge::mimeTypeFromFile):
      (WebCore::PlatformBridge::preferredExtensionForMIMEType):
      (WebCore::PlatformBridge::plugins):
      (WebCore::PlatformBridge::loadPlatformImageResource):
      (WebCore::PlatformBridge::loadPlatformAudioResource):
      (WebCore::PlatformBridge::decodeAudioFileData):
      (WebCore::PlatformBridge::sandboxEnabled):
      (WebCore::PlatformBridge::setSharedTimerFiredFunction):
      (WebCore::PlatformBridge::setSharedTimerFireInterval):
      (WebCore::PlatformBridge::stopSharedTimer):
      (WebCore::PlatformBridge::decrementStatsCounter):
      (WebCore::PlatformBridge::incrementStatsCounter):
      (WebCore::PlatformBridge::histogramCustomCounts):
      (WebCore::PlatformBridge::histogramEnumeration):
      (WebCore::PlatformBridge::suddenTerminationChanged):
      (WebCore::PlatformBridge::paintButton):
      (WebCore::PlatformBridge::paintMenuList):
      (WebCore::PlatformBridge::paintScrollbarArrow):
      (WebCore::PlatformBridge::paintScrollbarThumb):
      (WebCore::PlatformBridge::paintScrollbarTrack):
      (WebCore::PlatformBridge::paintSpinButton):
      (WebCore::PlatformBridge::paintTextField):
      (WebCore::PlatformBridge::paintTrackbar):
      (WebCore::PlatformBridge::paintProgressBar):
      (WebCore::PlatformBridge::getThemePartSize):
      (WebCore::PlatformBridge::paintThemePart):
      (WebCore::PlatformBridge::traceEventBegin):
      (WebCore::PlatformBridge::traceEventEnd):
      (WebCore::PlatformBridge::visitedLinkHash):
      (WebCore::PlatformBridge::isLinkVisited):
      (WebCore::PlatformBridge::memoryUsageMB):
      (WebCore::PlatformBridge::actualMemoryUsageMB):
      * src/PlatformMessagePortChannel.cpp:
      (WebCore::PlatformMessagePortChannel::PlatformMessagePortChannel):
      * src/ResourceHandle.cpp:
      (WebCore::ResourceHandleInternal::start):
      (WebCore::ResourceHandle::loadResourceSynchronously):
      * src/SharedWorkerRepository.cpp:
      (WebCore::SharedWorkerRepository::isAvailable):
      (WebCore::SharedWorkerRepository::connect):
      (WebCore::SharedWorkerRepository::documentDetached):
      (WebCore::SharedWorkerRepository::hasSharedWorkers):
      * src/SocketStreamHandle.cpp:
      (WebCore::SocketStreamHandleInternal::connect):
      * src/StorageEventDispatcherChromium.cpp:
      (WebCore::StorageEventDispatcher::dispatch):
      * src/StorageNamespaceProxy.cpp:
      (WebCore::StorageNamespace::localStorageNamespace):
      * src/WebKit.cpp:
      (WebKit::generateEntropy):
      (WebKit::initialize):
      (WebKit::shutdown):
      (WebKit::webKitPlatformSupport):
      * src/WebMediaPlayerClientImpl.cpp:
      (WebKit::WebMediaPlayerClientImpl::supportsType):
      * src/WebPluginContainerImpl.cpp:
      (WebKit::WebPluginContainerImpl::copy):
      * src/WebViewImpl.cpp:
      * src/WebWorkerClientImpl.cpp:
      * src/WorkerAsyncFileSystemChromium.cpp:
      (WebCore::WorkerAsyncFileSystemChromium::WorkerAsyncFileSystemChromium):
      * src/WorkerFileWriterCallbacksBridge.cpp:
      (WebKit::WorkerFileWriterCallbacksBridge::initOnMainThread):
      * tests/RunAllTests.cpp:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94231 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      01544404
  12. 30 Aug, 2011 2 commits
    • abarth@webkit.org's avatar
      [Chromium] Add null checks for document()->loader() · 2d3e53be
      abarth@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=67077
      
      Reviewed by Nate Chapin.
      
      Document::loader can return 0 for a number of reasons.  Call sites need
      to null check the result, like we do for Document::frame.  I suspect
      some of these are real crashes, along the lines of
      http://trac.webkit.org/changeset/93692, but null checking this function
      is just good practice.
      
      * src/ContextMenuClientImpl.cpp:
      (WebKit::ContextMenuClientImpl::getCustomMenuFromDefaultItems):
      * src/WebSearchableFormData.cpp:
      (HTMLNames::GetFormEncoding):
      * src/WebViewImpl.cpp:
      (WebKit::WebViewImpl::pageEncoding):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94102 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2d3e53be
    • cmarrin@apple.com's avatar
      Rename GraphicsContext3DInternal to GraphicsContext3DPrivate and add a dummy... · 6c2ddda0
      cmarrin@apple.com authored
      Rename GraphicsContext3DInternal to GraphicsContext3DPrivate and add a dummy version of this class for Mac
      https://bugs.webkit.org/show_bug.cgi?id=67172
      
      Reviewed by Kenneth Russell.
      
      Source/WebCore: 
      
      * GNUmakefile.list.am:
      * platform/graphics/GraphicsContext3D.h:
      * platform/graphics/chromium/Extensions3DChromium.h:
      * platform/graphics/gtk/GraphicsContext3DGtk.cpp:
      (WebCore::GraphicsContext3D::create):
      (WebCore::GraphicsContext3D::GraphicsContext3D):
      (WebCore::GraphicsContext3D::~GraphicsContext3D):
      (WebCore::GraphicsContext3D::makeContextCurrent):
      (WebCore::GraphicsContext3D::platformGraphicsContext3D):
      * platform/graphics/gtk/GraphicsContext3DInternal.h: Removed.
      * platform/graphics/gtk/GraphicsContext3DPrivate.h: Copied from Source/WebCore/platform/graphics/gtk/GraphicsContext3DInternal.h.
      * platform/graphics/mac/GraphicsContext3DMac.mm:
      (WebCore::GraphicsContext3DPrivate::GraphicsContext3DPrivate):
      (WebCore::GraphicsContext3DPrivate::~GraphicsContext3DPrivate):
      (WebCore::GraphicsContext3D::GraphicsContext3D):
      * platform/graphics/qt/GraphicsContext3DQt.cpp:
      (WebCore::GraphicsContext3DPrivate::GraphicsContext3DPrivate):
      (WebCore::GraphicsContext3DPrivate::~GraphicsContext3DPrivate):
      (WebCore::GraphicsContext3DPrivate::getViewportGLWidget):
      (WebCore::GraphicsContext3DPrivate::paintToTextureMapper):
      (WebCore::GraphicsContext3DPrivate::boundingRect):
      (WebCore::GraphicsContext3DPrivate::paint):
      (WebCore::GraphicsContext3DPrivate::blitMultisampleFramebuffer):
      (WebCore::GraphicsContext3DPrivate::blitMultisampleFramebufferAndRestoreContext):
      (WebCore::GraphicsContext3D::create):
      (WebCore::GraphicsContext3D::GraphicsContext3D):
      (WebCore::GraphicsContext3D::~GraphicsContext3D):
      (WebCore::GraphicsContext3D::platformGraphicsContext3D):
      (WebCore::GraphicsContext3D::platformLayer):
      (WebCore::GraphicsContext3D::makeContextCurrent):
      (WebCore::GraphicsContext3D::paintRenderingResultsToCanvas):
      (WebCore::GraphicsContext3D::reshape):
      (WebCore::GraphicsContext3D::activeTexture):
      (WebCore::GraphicsContext3D::attachShader):
      (WebCore::GraphicsContext3D::getAttachedShaders):
      (WebCore::GraphicsContext3D::bindAttribLocation):
      (WebCore::GraphicsContext3D::bindBuffer):
      (WebCore::GraphicsContext3D::bindFramebuffer):
      (WebCore::GraphicsContext3D::bindRenderbuffer):
      (WebCore::GraphicsContext3D::bindTexture):
      (WebCore::GraphicsContext3D::blendColor):
      (WebCore::GraphicsContext3D::blendEquation):
      (WebCore::GraphicsContext3D::blendEquationSeparate):
      (WebCore::GraphicsContext3D::blendFunc):
      (WebCore::GraphicsContext3D::blendFuncSeparate):
      (WebCore::GraphicsContext3D::bufferData):
      (WebCore::GraphicsContext3D::bufferSubData):
      (WebCore::GraphicsContext3D::checkFramebufferStatus):
      (WebCore::GraphicsContext3D::clearColor):
      (WebCore::GraphicsContext3D::clear):
      (WebCore::GraphicsContext3D::clearDepth):
      (WebCore::GraphicsContext3D::clearStencil):
      (WebCore::GraphicsContext3D::colorMask):
      (WebCore::GraphicsContext3D::compileShader):
      (WebCore::GraphicsContext3D::copyTexImage2D):
      (WebCore::GraphicsContext3D::copyTexSubImage2D):
      (WebCore::GraphicsContext3D::cullFace):
      (WebCore::GraphicsContext3D::depthFunc):
      (WebCore::GraphicsContext3D::depthMask):
      (WebCore::GraphicsContext3D::depthRange):
      (WebCore::GraphicsContext3D::detachShader):
      (WebCore::GraphicsContext3D::disable):
      (WebCore::GraphicsContext3D::disableVertexAttribArray):
      (WebCore::GraphicsContext3D::drawArrays):
      (WebCore::GraphicsContext3D::drawElements):
      (WebCore::GraphicsContext3D::enable):
      (WebCore::GraphicsContext3D::enableVertexAttribArray):
      (WebCore::GraphicsContext3D::finish):
      (WebCore::GraphicsContext3D::flush):
      (WebCore::GraphicsContext3D::framebufferRenderbuffer):
      (WebCore::GraphicsContext3D::framebufferTexture2D):
      (WebCore::GraphicsContext3D::frontFace):
      (WebCore::GraphicsContext3D::generateMipmap):
      (WebCore::GraphicsContext3D::getActiveAttrib):
      (WebCore::GraphicsContext3D::getActiveUniform):
      (WebCore::GraphicsContext3D::getAttribLocation):
      (WebCore::GraphicsContext3D::getError):
      (WebCore::GraphicsContext3D::getString):
      (WebCore::GraphicsContext3D::hint):
      (WebCore::GraphicsContext3D::isBuffer):
      (WebCore::GraphicsContext3D::isEnabled):
      (WebCore::GraphicsContext3D::isFramebuffer):
      (WebCore::GraphicsContext3D::isProgram):
      (WebCore::GraphicsContext3D::isRenderbuffer):
      (WebCore::GraphicsContext3D::isShader):
      (WebCore::GraphicsContext3D::isTexture):
      (WebCore::GraphicsContext3D::lineWidth):
      (WebCore::GraphicsContext3D::linkProgram):
      (WebCore::GraphicsContext3D::pixelStorei):
      (WebCore::GraphicsContext3D::polygonOffset):
      (WebCore::GraphicsContext3D::readPixels):
      (WebCore::GraphicsContext3D::releaseShaderCompiler):
      (WebCore::GraphicsContext3D::renderbufferStorage):
      (WebCore::GraphicsContext3D::sampleCoverage):
      (WebCore::GraphicsContext3D::scissor):
      (WebCore::GraphicsContext3D::shaderSource):
      (WebCore::GraphicsContext3D::stencilFunc):
      (WebCore::GraphicsContext3D::stencilFuncSeparate):
      (WebCore::GraphicsContext3D::stencilMask):
      (WebCore::GraphicsContext3D::stencilMaskSeparate):
      (WebCore::GraphicsContext3D::stencilOp):
      (WebCore::GraphicsContext3D::stencilOpSeparate):
      (WebCore::GraphicsContext3D::texParameterf):
      (WebCore::GraphicsContext3D::texParameteri):
      (WebCore::GraphicsContext3D::uniform1f):
      (WebCore::GraphicsContext3D::uniform1fv):
      (WebCore::GraphicsContext3D::uniform2f):
      (WebCore::GraphicsContext3D::uniform2fv):
      (WebCore::GraphicsContext3D::uniform3f):
      (WebCore::GraphicsContext3D::uniform3fv):
      (WebCore::GraphicsContext3D::uniform4f):
      (WebCore::GraphicsContext3D::uniform4fv):
      (WebCore::GraphicsContext3D::uniform1i):
      (WebCore::GraphicsContext3D::uniform1iv):
      (WebCore::GraphicsContext3D::uniform2i):
      (WebCore::GraphicsContext3D::uniform2iv):
      (WebCore::GraphicsContext3D::uniform3i):
      (WebCore::GraphicsContext3D::uniform3iv):
      (WebCore::GraphicsContext3D::uniform4i):
      (WebCore::GraphicsContext3D::uniform4iv):
      (WebCore::GraphicsContext3D::uniformMatrix2fv):
      (WebCore::GraphicsContext3D::uniformMatrix3fv):
      (WebCore::GraphicsContext3D::uniformMatrix4fv):
      (WebCore::GraphicsContext3D::useProgram):
      (WebCore::GraphicsContext3D::validateProgram):
      (WebCore::GraphicsContext3D::vertexAttrib1f):
      (WebCore::GraphicsContext3D::vertexAttrib1fv):
      (WebCore::GraphicsContext3D::vertexAttrib2f):
      (WebCore::GraphicsContext3D::vertexAttrib2fv):
      (WebCore::GraphicsContext3D::vertexAttrib3f):
      (WebCore::GraphicsContext3D::vertexAttrib3fv):
      (WebCore::GraphicsContext3D::vertexAttrib4f):
      (WebCore::GraphicsContext3D::vertexAttrib4fv):
      (WebCore::GraphicsContext3D::vertexAttribPointer):
      (WebCore::GraphicsContext3D::viewport):
      (WebCore::GraphicsContext3D::getBooleanv):
      (WebCore::GraphicsContext3D::getBufferParameteriv):
      (WebCore::GraphicsContext3D::getFloatv):
      (WebCore::GraphicsContext3D::getFramebufferAttachmentParameteriv):
      (WebCore::GraphicsContext3D::getIntegerv):
      (WebCore::GraphicsContext3D::getProgramiv):
      (WebCore::GraphicsContext3D::getProgramInfoLog):
      (WebCore::GraphicsContext3D::getRenderbufferParameteriv):
      (WebCore::GraphicsContext3D::getShaderiv):
      (WebCore::GraphicsContext3D::getShaderInfoLog):
      (WebCore::GraphicsContext3D::getShaderSource):
      (WebCore::GraphicsContext3D::getTexParameterfv):
      (WebCore::GraphicsContext3D::getTexParameteriv):
      (WebCore::GraphicsContext3D::getUniformfv):
      (WebCore::GraphicsContext3D::getUniformiv):
      (WebCore::GraphicsContext3D::getUniformLocation):
      (WebCore::GraphicsContext3D::getVertexAttribfv):
      (WebCore::GraphicsContext3D::getVertexAttribiv):
      (WebCore::GraphicsContext3D::getVertexAttribOffset):
      (WebCore::GraphicsContext3D::texImage2D):
      (WebCore::GraphicsContext3D::texSubImage2D):
      (WebCore::GraphicsContext3D::createBuffer):
      (WebCore::GraphicsContext3D::createFramebuffer):
      (WebCore::GraphicsContext3D::createProgram):
      (WebCore::GraphicsContext3D::createRenderbuffer):
      (WebCore::GraphicsContext3D::createShader):
      (WebCore::GraphicsContext3D::createTexture):
      (WebCore::GraphicsContext3D::deleteBuffer):
      (WebCore::GraphicsContext3D::deleteFramebuffer):
      (WebCore::GraphicsContext3D::deleteProgram):
      (WebCore::GraphicsContext3D::deleteRenderbuffer):
      (WebCore::GraphicsContext3D::deleteShader):
      (WebCore::GraphicsContext3D::deleteTexture):
      
      Source/WebKit/chromium: 
      
      * WebKit.gyp:
      * src/Extensions3DChromium.cpp:
      (WebCore::Extensions3DChromium::Extensions3DChromium):
      (WebCore::Extensions3DChromium::supports):
      (WebCore::Extensions3DChromium::ensureEnabled):
      (WebCore::Extensions3DChromium::isEnabled):
      (WebCore::Extensions3DChromium::getGraphicsResetStatusARB):
      (WebCore::Extensions3DChromium::blitFramebuffer):
      (WebCore::Extensions3DChromium::renderbufferStorageMultisample):
      (WebCore::Extensions3DChromium::mapBufferSubDataCHROMIUM):
      (WebCore::Extensions3DChromium::unmapBufferSubDataCHROMIUM):
      (WebCore::Extensions3DChromium::mapTexSubImage2DCHROMIUM):
      (WebCore::Extensions3DChromium::unmapTexSubImage2DCHROMIUM):
      (WebCore::Extensions3DChromium::setSwapBuffersCompleteCallbackCHROMIUM):
      (WebCore::Extensions3DChromium::rateLimitOffscreenContextCHROMIUM):
      (WebCore::Extensions3DChromium::paintFramebufferToCanvas):
      * src/GraphicsContext3DChromium.cpp:
      (WebCore::GraphicsContext3DPrivate::GraphicsContext3DPrivate):
      (WebCore::GraphicsContext3DPrivate::~GraphicsContext3DPrivate):
      (WebCore::GraphicsContext3DPrivate::initialize):
      (WebCore::GraphicsContext3DPrivate::extractWebGraphicsContext3D):
      (WebCore::GraphicsContext3DPrivate::platformGraphicsContext3D):
      (WebCore::GraphicsContext3DPrivate::platformTexture):
      (WebCore::GraphicsContext3DPrivate::grContext):
      (WebCore::GraphicsContext3DPrivate::prepareTexture):
      (WebCore::GraphicsContext3DPrivate::platformLayer):
      (WebCore::GraphicsContext3DPrivate::markContextChanged):
      (WebCore::GraphicsContext3DPrivate::markLayerComposited):
      (WebCore::GraphicsContext3DPrivate::layerComposited):
      (WebCore::GraphicsContext3DPrivate::paintFramebufferToCanvas):
      (WebCore::GraphicsContext3DPrivate::paintRenderingResultsToCanvas):
      (WebCore::GraphicsContext3DPrivate::paintCompositedResultsToCanvas):
      (WebCore::GraphicsContext3DPrivate::paintRenderingResultsToImageData):
      (WebCore::GraphicsContext3DPrivate::paintsIntoCanvasBuffer):
      (WebCore::GraphicsContext3DPrivate::reshape):
      (WebCore::GraphicsContext3DPrivate::getInternalFramebufferSize):
      (WebCore::GraphicsContext3DPrivate::isContextLost):
      (WebCore::GraphicsContext3DPrivate::isGLES2Compliant):
      (WebCore::GraphicsContext3DPrivate::bindAttribLocation):
      (WebCore::GraphicsContext3DPrivate::bufferData):
      (WebCore::GraphicsContext3DPrivate::bufferSubData):
      (WebCore::GraphicsContext3DPrivate::getActiveAttrib):
      (WebCore::GraphicsContext3DPrivate::getActiveUniform):
      (WebCore::GraphicsContext3DPrivate::getAttribLocation):
      (WebCore::GraphicsContext3DPrivate::getContextAttributes):
      (WebCore::GraphicsContext3DPrivate::getProgramInfoLog):
      (WebCore::GraphicsContext3DPrivate::getShaderInfoLog):
      (WebCore::GraphicsContext3DPrivate::getShaderSource):
      (WebCore::GraphicsContext3DPrivate::getString):
      (WebCore::GraphicsContext3DPrivate::getUniformLocation):
      (WebCore::GraphicsContext3DPrivate::shaderSource):
      (WebCore::GraphicsContext3DPrivate::texImage2D):
      (WebCore::GraphicsContext3DPrivate::texSubImage2D):
      (WebCore::GraphicsContext3DPrivate::uniform1fv):
      (WebCore::GraphicsContext3DPrivate::uniform1iv):
      (WebCore::GraphicsContext3DPrivate::uniform2fv):
      (WebCore::GraphicsContext3DPrivate::uniform2iv):
      (WebCore::GraphicsContext3DPrivate::uniform3fv):
      (WebCore::GraphicsContext3DPrivate::uniform3iv):
      (WebCore::GraphicsContext3DPrivate::uniform4fv):
      (WebCore::GraphicsContext3DPrivate::uniform4iv):
      (WebCore::GraphicsContext3DPrivate::uniformMatrix2fv):
      (WebCore::GraphicsContext3DPrivate::uniformMatrix3fv):
      (WebCore::GraphicsContext3DPrivate::uniformMatrix4fv):
      (WebCore::GraphicsContext3DPrivate::getExtensions):
      (WebCore::GraphicsContext3DPrivate::isResourceSafe):
      (WebCore::GraphicsContext3DPrivate::initializeExtensions):
      (WebCore::GraphicsContext3DPrivate::supportsExtension):
      (WebCore::GraphicsContext3DPrivate::ensureExtensionEnabled):
      (WebCore::GraphicsContext3DPrivate::isExtensionEnabled):
      (WebCore::GraphicsContext3D::~GraphicsContext3D):
      (WebCore::GraphicsContext3D::create):
      (WebCore::GraphicsContext3D::platformGraphicsContext3D):
      (WebCore::GraphicsContext3D::platformTexture):
      (WebCore::GraphicsContext3D::grContext):
      (WebCore::GraphicsContext3D::prepareTexture):
      (WebCore::GraphicsContext3D::getInternalFramebufferSize):
      (WebCore::GraphicsContext3D::isResourceSafe):
      (WebCore::GraphicsContext3D::platformLayer):
      (WebCore::GraphicsContext3D::layerComposited):
      (WebCore::GraphicsContext3D::paintsIntoCanvasBuffer):
      (WebCore::GraphicsContext3DPrivate::setContextLostCallback):
      (WebCore::GraphicsContext3D::isGLES2Compliant):
      (WebCore::GraphicsContext3DPrivate::setSwapBuffersCompleteCallbackCHROMIUM):
      * src/GraphicsContext3DInternal.h: Removed.
      * src/GraphicsContext3DPrivate.h: Copied from Source/WebKit/chromium/src/GraphicsContext3DInternal.h.
      * src/WebViewImpl.cpp:
      (WebKit::WebViewImpl::graphicsContext3D):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94083 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6c2ddda0
  13. 26 Aug, 2011 1 commit
  14. 24 Aug, 2011 1 commit
    • isherman@chromium.org's avatar
      Remove some dead Autofill code · 0b87ffa0
      isherman@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=66899
      http://code.google.com/p/chromium/issues/detail?id=51644
      
      Reviewed by James Robinson.
      
      * WebKit.gyp:
      * public/WebAutofillClient.h:
      * public/WebFrame.h:
      * public/WebPasswordAutocompleteListener.h: Removed.
      * src/EditorClientImpl.cpp:
      (WebKit::EditorClientImpl::EditorClientImpl):
      (WebKit::EditorClientImpl::handleKeyboardEvent):
      (WebKit::EditorClientImpl::textFieldDidBeginEditing):
      (WebKit::EditorClientImpl::textFieldDidEndEditing):
      (WebKit::EditorClientImpl::textDidChangeInTextField):
      (WebKit::EditorClientImpl::doTextFieldCommandFromEvent):
      * src/EditorClientImpl.h:
      * src/FrameLoaderClientImpl.cpp:
      (WebKit::FrameLoaderClientImpl::dispatchDidFinishDocumentLoad):
      * src/WebFrameImpl.cpp:
      (WebKit::frameContentAsPlainText):
      (WebKit::WebFrameImpl::scopeStringMatches):
      (WebKit::WebFrameImpl::~WebFrameImpl):
      * src/WebFrameImpl.h:
      * src/WebViewImpl.cpp:
      (WebKit::WebViewImpl::mouseDown):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@93747 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0b87ffa0
  15. 23 Aug, 2011 4 commits
    • jamesr@google.com's avatar
      [chromium] Need a way to test lost compositor context recovery · ae2928d6
      jamesr@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=66820
      
      Reviewed by Kenneth Russell.
      
      Source/WebCore:
      
      Adds support for recreating a context as if it was lost, and fixes
      compositeAndReadback() to attempt context recovery.
      
      Test: platform/chromium/compositing/lost-compositor-context.html
      
      * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
      (WebCore::CCLayerTreeHost::compositeAndReadback):
      (WebCore::CCLayerTreeHost::loseCompositorContext):
      * platform/graphics/chromium/cc/CCLayerTreeHost.h:
      
      Source/WebKit/chromium:
      
      Adds a testing-only API to simulate a lost compositor context.
      
      * public/WebView.h:
      * src/WebViewImpl.cpp:
      (WebKit::WebViewImpl::loseCompositorContext):
      * src/WebViewImpl.h:
      
      Tools:
      
      Exposes a LayoutTestController interface in chromium to simulate a
      lost compositor context.
      
      * DumpRenderTree/chromium/LayoutTestController.cpp:
      (LayoutTestController::LayoutTestController):
      (LayoutTestController::loseCompositorContext):
      * DumpRenderTree/chromium/LayoutTestController.h:
      
      LayoutTests:
      
      Adds a simple test for losing the compositor context in a recoverable
      way on a composited page. Tests that we recover without crashing and
      render the updated content on the next frame.
      
      * platform/chromium/compositing/lost-compositor-context.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@93681 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ae2928d6
    • nduca@chromium.org's avatar
      [chromium] Implement CCThread in terms of WebThread · 771063fc
      nduca@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=66610
      
      Reviewed by Darin Fisher.
      
      Source/WebCore:
      
      * WebCore.gypi:
      * platform/graphics/chromium/cc/CCCompletionEvent.h:
      * platform/graphics/chromium/cc/CCLayerTreeHost.h:
      (WebCore::CCLayerTreeHost::client):
      * platform/graphics/chromium/cc/CCLayerTreeHostImplProxy.cpp:
      (WebCore::CCLayerTreeHostImplProxy::CCLayerTreeHostImplProxy):
      * platform/graphics/chromium/cc/CCThread.h:
      (WebCore::CCThread::~CCThread):
      
      Source/WebKit/chromium:
      
      * WebKit.gyp:
      * public/WebThread.h:
      (WebKit::WebThread::~WebThread):
      * src/CCThreadImpl.cpp: Added.
      (WebKit::GetThreadIDTask::GetThreadIDTask):
      (WebKit::GetThreadIDTask::~GetThreadIDTask):
      (WebKit::GetThreadIDTask::run):
      (WebKit::CCThreadTaskAdapter::CCThreadTaskAdapter):
      (WebKit::CCThreadTaskAdapter::~CCThreadTaskAdapter):
      (WebKit::CCThreadTaskAdapter::run):
      (WebKit::CCThreadImpl::create):
      (WebKit::CCThreadImpl::~CCThreadImpl):
      (WebKit::CCThreadImpl::postTask):
      (WebKit::CCThreadImpl::threadID):
      (WebKit::CCThreadImpl::CCThreadImpl):
      * src/CCThreadImpl.h: Renamed from Source/WebCore/platform/graphics/chromium/cc/CCThread.cpp.
      * src/WebViewImpl.cpp:
      (WebKit::WebViewImpl::createCompositorThread):
      * src/WebViewImpl.h:
      * tests/CCThreadTest.cpp:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@93680 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      771063fc
    • commit-queue@webkit.org's avatar
      [chromium] Renderer crashes when about:gpucrash is loaded · c971ce30
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=66814
      
      Source/WebCore:
      
      WebViewImpl::didRecreateGraphicsContext() was calling
      setRootLayer() on the CC layer tree, but the root layer
      doesn't actually change and the code wasn't defensive
      against this. This CL adds some asserts to catch tree
      corruption and removes the unnecessary calls.
      
      Patch by Iain Merrick <husky@google.com> on 2011-08-23
      Reviewed by James Robinson.
      
      * platform/graphics/GraphicsLayer.cpp:
      (WebCore::GraphicsLayer::setParent):
      * platform/graphics/GraphicsLayer.h:
      * platform/graphics/chromium/LayerChromium.cpp:
      (WebCore::LayerChromium::setParent):
      (WebCore::LayerChromium::hasAncestor):
      * platform/graphics/chromium/LayerChromium.h:
      
      Source/WebKit/chromium:
      
      WebViewImpl::didRecreateGraphicsContext() was calling
      setRootLayer() on the CC layer tree, but the root layer
      doesn't actually change and the code wasn't defensive
      against this. This CL adds some asserts to catch tree
      corruption and removes the unnecessary calls.
      
      Patch by Iain Merrick <husky@google.com> on 2011-08-23
      Reviewed by James Robinson.
      
      * src/WebViewImpl.cpp:
      (WebKit::WebViewImpl::didRecreateGraphicsContext):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@93679 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c971ce30
    • commit-queue@webkit.org's avatar
      Add shareResources flag to 3D graphics context attributes · bc733856
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=66516
      
      Patch by Al Patrick <apatrick@chromium.org> on 2011-08-23
      Reviewed by James Robinson.
      
      Source/WebCore:
      
      * html/canvas/WebGLRenderingContext.cpp:
      (WebCore::WebGLRenderingContext::create):
      * platform/graphics/GraphicsContext3D.h:
      (WebCore::GraphicsContext3D::Attributes::Attributes):
      * platform/graphics/gpu/SharedGraphicsContext3D.cpp:
      (WebCore::SharedGraphicsContext3D::create):
      
      Source/WebKit/chromium:
      
      * public/WebGraphicsContext3D.h:
      (WebKit::WebGraphicsContext3D::Attributes::Attributes):
      * src/GraphicsContext3DChromium.cpp:
      (WebCore::GraphicsContext3DInternal::initialize):
      * src/WebViewImpl.cpp:
      (std::getCompositorContextAttributes):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@93625 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bc733856
  16. 22 Aug, 2011 1 commit
  17. 19 Aug, 2011 1 commit
  18. 18 Aug, 2011 4 commits
    • koz@chromium.org's avatar
      Chromium plumbing for webkitRequestFullScreen · 4ef8e48a
      koz@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=66031
      
      Reviewed by Darin Fisher.
      
      * public/WebView.h:
      * public/WebViewClient.h:
      (WebKit::WebViewClient::enterFullscreenForElement):
      (WebKit::WebViewClient::exitFullscreenForElement):
      * src/ChromeClientImpl.cpp:
      (WebKit::ChromeClientImpl::enterFullScreenForElement):
      (WebKit::ChromeClientImpl::exitFullScreenForElement):
      * src/WebViewImpl.cpp:
      (WebKit::WebViewImpl::exitFullscreen):
      * src/WebViewImpl.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@93381 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4ef8e48a
    • commit-queue@webkit.org's avatar
      [chromium] Draw the root/"non-composited content" in compositor side · 91f7ca39
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=58834
      
      Patch by James Robinson <jamesr@chromium.org> on 2011-08-18
      Reviewed by Kenneth Russell.
      
      Source/WebCore:
      
      Handle the root or non-composited content with a GraphicsLayer rather than special case logic in
      LayerRendererChromium. This layer's client is the NonCompositedContentHost, which routes the paint callbacks
      through the LayerPainterChromium interface out to the WebView.  The root layer is special in two ways:
      *) The root layer has a scroll offset, which changes how the visibleLayerRect maps to content space and applies a
          draw-time transform.
      *) The root layer masks the alpha channel and disable blending when drawing because of concerns about subpixel
          AA trashing the alpha channel.  The root layer is always opaque so this is fine.
      *) The root layer does not have border texels and does have subpixel AA for text.
      
      Covered by compositing/
      
      * WebCore.gypi:
      * platform/graphics/chromium/ContentLayerChromium.cpp:
      (WebCore::ContentLayerChromium::paintContentsIfDirty):
      * platform/graphics/chromium/ImageLayerChromium.cpp:
      (WebCore::ImageLayerChromium::paintContentsIfDirty):
      * platform/graphics/chromium/LayerChromium.cpp:
      (WebCore::LayerChromium::pushPropertiesTo):
      * platform/graphics/chromium/LayerChromium.h:
      (WebCore::LayerChromium::scrollPosition):
      (WebCore::LayerChromium::setScrollPosition):
      * platform/graphics/chromium/LayerRendererChromium.cpp:
      (WebCore::LayerRendererChromium::initialize):
      (WebCore::LayerRendererChromium::releaseTextures):
      (WebCore::LayerRendererChromium::viewportChanged):
      (WebCore::LayerRendererChromium::updateLayers):
      (WebCore::LayerRendererChromium::drawLayers):
      (WebCore::LayerRendererChromium::drawLayersInternal):
      (WebCore::LayerRendererChromium::getFramebufferPixels):
      (WebCore::LayerRendererChromium::cleanupSharedObjects):
      (WebCore::LayerRendererChromium::layerTreeAsText):
      * platform/graphics/chromium/LayerRendererChromium.h:
      (WebCore::LayerRendererChromium::rootLayer):
      (WebCore::LayerRendererChromium::viewportSize):
      (WebCore::LayerRendererChromium::viewportWidth):
      (WebCore::LayerRendererChromium::viewportHeight):
      * platform/graphics/chromium/NonCompositedContentHost.cpp: Added.
      (WebCore::NonCompositedContentHost::NonCompositedContentHost):
      (WebCore::NonCompositedContentHost::~NonCompositedContentHost):
      (WebCore::NonCompositedContentHost::invalidateRect):
      (WebCore::NonCompositedContentHost::invalidateEntireLayer):
      (WebCore::NonCompositedContentHost::setScrollPosition):
      (WebCore::NonCompositedContentHost::notifyAnimationStarted):
      (WebCore::NonCompositedContentHost::notifySyncRequired):
      (WebCore::NonCompositedContentHost::paintContents):
      (WebCore::NonCompositedContentHost::showDebugBorders):
      (WebCore::NonCompositedContentHost::showRepaintCounter):
      * platform/graphics/chromium/NonCompositedContentHost.h: Added.
      (WebCore::NonCompositedContentHost::create):
      (WebCore::NonCompositedContentHost::graphicsLayer):
      * platform/graphics/chromium/cc/CCHeadsUpDisplay.cpp:
      (WebCore::CCHeadsUpDisplay::draw):
      * platform/graphics/chromium/cc/CCLayerImpl.h:
      (WebCore::CCLayerImpl::scrollPosition):
      (WebCore::CCLayerImpl::setScrollPosition):
      * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
      (WebCore::CCLayerTreeHost::CCLayerTreeHost):
      (WebCore::CCLayerTreeHost::initialize):
      (WebCore::CCLayerTreeHost::invalidateRootLayerRect):
      (WebCore::CCLayerTreeHost::setRootLayer):
      (WebCore::CCLayerTreeHost::setViewport):
      (WebCore::CCLayerTreeHost::reallocateRenderer):
      * platform/graphics/chromium/cc/CCLayerTreeHost.h:
      (WebCore::CCLayerTreeHost::rootLayer):
      (WebCore::CCLayerTreeHost::viewportSize):
      
      Source/WebKit/chromium:
      
      * src/WebViewImpl.cpp:
      (WebKit::WebViewImpl::paint):
      (WebKit::WebViewImpl::setRootGraphicsLayer):
      (WebKit::WebViewImpl::didRecreateGraphicsContext):
      (WebKit::WebViewImpl::updateLayerTreeViewport):
      * src/WebViewImpl.h:
      
      LayoutTests:
      
      Update pixel baselines that changes due to subtle blending
      differences, primarily on scrollbars. I don't know why these keep
      changing.
      
      * compositing/checkerboard-expected.png:
      * platform/chromium-gpu-linux/compositing/direct-image-compositing-expected.png:
      * platform/chromium-gpu-linux/compositing/geometry/fixed-in-composited-expected.png:
      * platform/chromium-gpu-linux/compositing/geometry/horizontal-scroll-composited-expected.png:
      * platform/chromium-gpu-linux/compositing/geometry/tall-page-composited-expected.png:
      * platform/chromium-gpu-linux/compositing/geometry/video-fixed-scrolling-expected.png:
      * platform/chromium-gpu-linux/compositing/images/direct-image-background-color-expected.png:
      * platform/chromium-gpu-linux/compositing/layers-inside-overflow-scroll-expected.png:
      * platform/chromium-gpu-linux/compositing/masks/masked-ancestor-expected.png:
      * platform/chromium-gpu-linux/compositing/masks/simple-composited-mask-expected.png:
      * platform/chromium-gpu-linux/compositing/overflow/overflow-scroll-expected.png:
      * platform/chromium-gpu-linux/compositing/self-painting-layers-expected.png:
      * platform/chromium-gpu-linux/compositing/webgl/webgl-background-color-expected.png:
      * platform/chromium-gpu-linux/fast/canvas/canvas-text-alignment-expected.png:
      * platform/chromium-gpu-linux/fast/canvas/image-object-in-canvas-expected.png:
      * platform/chromium-gpu-linux/media/video-zoom-expected.png:
      * platform/chromium-gpu-linux/platform/chromium/compositing/layout-width-change-expected.png:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@93360 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      91f7ca39
    • commit-queue@webkit.org's avatar
      Unreviewed, rolling out r93329. · e0f06095
      commit-queue@webkit.org authored
      http://trac.webkit.org/changeset/93329
      https://bugs.webkit.org/show_bug.cgi?id=66497
      
      Turned text on chromium win blue (Requested by jamesr_ on
      #webkit).
      
      Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2011-08-18
      
      Source/WebCore:
      
      * WebCore.gypi:
      * platform/graphics/chromium/ContentLayerChromium.cpp:
      * platform/graphics/chromium/ContentLayerChromium.h:
      * platform/graphics/chromium/ImageLayerChromium.cpp:
      (WebCore::ImageLayerTextureUpdater::prepareToUpdate):
      * platform/graphics/chromium/LayerChromium.cpp:
      (WebCore::LayerChromium::LayerChromium):
      (WebCore::LayerChromium::pushPropertiesTo):
      (WebCore::LayerChromium::dumpLayerProperties):
      * platform/graphics/chromium/LayerChromium.h:
      * platform/graphics/chromium/LayerRendererChromium.cpp:
      (WebCore::LayerRendererChromium::initialize):
      (WebCore::LayerRendererChromium::releaseTextures):
      (WebCore::LayerRendererChromium::updateRootLayerContents):
      (WebCore::LayerRendererChromium::drawRootLayer):
      (WebCore::LayerRendererChromium::invalidateRootLayerRect):
      (WebCore::LayerRendererChromium::rootLayerChanged):
      (WebCore::LayerRendererChromium::viewportChanged):
      (WebCore::LayerRendererChromium::updateLayers):
      (WebCore::LayerRendererChromium::drawLayers):
      (WebCore::LayerRendererChromium::paintLayerContents):
      (WebCore::LayerRendererChromium::drawLayersInternal):
      (WebCore::LayerRendererChromium::getFramebufferPixels):
      (WebCore::LayerRendererChromium::cleanupSharedObjects):
      (WebCore::LayerRendererChromium::layerTreeAsText):
      (WebCore::LayerRendererChromium::dumpRenderSurfaces):
      * platform/graphics/chromium/LayerRendererChromium.h:
      (WebCore::LayerRendererChromium::rootLayer):
      * platform/graphics/chromium/NonCompositedContentHost.cpp: Removed.
      * platform/graphics/chromium/NonCompositedContentHost.h: Removed.
      * platform/graphics/chromium/RenderSurfaceChromium.cpp:
      (WebCore::RenderSurfaceChromium::dumpSurface):
      * platform/graphics/chromium/TiledLayerChromium.cpp:
      (WebCore::TiledLayerChromium::createTilerIfNeeded):
      (WebCore::TiledLayerChromium::tilingTransform):
      * platform/graphics/chromium/cc/CCHeadsUpDisplay.cpp:
      (WebCore::CCHeadsUpDisplay::draw):
      * platform/graphics/chromium/cc/CCLayerImpl.cpp:
      (WebCore::CCLayerImpl::CCLayerImpl):
      * platform/graphics/chromium/cc/CCLayerImpl.h:
      * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
      (WebCore::CCLayerTreeHost::CCLayerTreeHost):
      (WebCore::CCLayerTreeHost::initialize):
      (WebCore::CCLayerTreeHost::createRootLayerPainter):
      (WebCore::CCLayerTreeHost::invalidateRootLayerRect):
      (WebCore::CCLayerTreeHost::setRootLayer):
      (WebCore::CCLayerTreeHost::setViewport):
      (WebCore::CCLayerTreeHost::reallocateRenderer):
      * platform/graphics/chromium/cc/CCLayerTreeHost.h:
      (WebCore::CCLayerTreeHost::rootLayer):
      (WebCore::CCLayerTreeHost::viewportContentRect):
      (WebCore::CCLayerTreeHost::viewportScrollPosition):
      (WebCore::CCLayerTreeHost::viewportVisibleRect):
      * platform/graphics/chromium/cc/CCTiledLayerImpl.cpp:
      (WebCore::CCTiledLayerImpl::draw):
      
      Source/WebKit/chromium:
      
      * src/WebViewImpl.cpp:
      (WebKit::WebViewImpl::paint):
      (WebKit::WebViewImpl::setRootGraphicsLayer):
      (WebKit::WebViewImpl::setRootPlatformLayer):
      (WebKit::WebViewImpl::didRecreateGraphicsContext):
      (WebKit::WebViewImpl::updateLayerTreeViewport):
      * src/WebViewImpl.h:
      
      LayoutTests:
      
      * platform/chromium-gpu-linux/compositing/direct-image-compositing-expected.png:
      * platform/chromium-gpu-linux/compositing/geometry/ancestor-overflow-change-expected.png:
      * platform/chromium-gpu-linux/compositing/geometry/fixed-in-composited-expected.png:
      * platform/chromium-gpu-linux/compositing/geometry/horizontal-scroll-composited-expected.png:
      * platform/chromium-gpu-linux/compositing/geometry/tall-page-composited-expected.png:
      * platform/chromium-gpu-linux/compositing/geometry/video-fixed-scrolling-expected.png:
      * platform/chromium-gpu-linux/compositing/images/direct-image-background-color-expected.png:
      * platform/chromium-gpu-linux/compositing/layers-inside-overflow-scroll-expected.png:
      * platform/chromium-gpu-linux/compositing/masks/masked-ancestor-expected.png:
      * platform/chromium-gpu-linux/compositing/masks/simple-composited-mask-expected.png:
      * platform/chromium-gpu-linux/compositing/overflow/overflow-scroll-expected.png:
      * platform/chromium-gpu-linux/compositing/self-painting-layers-expected.png:
      * platform/chromium-gpu-linux/compositing/webgl/webgl-background-color-expected.png:
      * platform/chromium-gpu-linux/fast/canvas/canvas-text-alignment-expected.png:
      * platform/chromium-gpu-linux/fast/canvas/image-object-in-canvas-expected.png:
      * platform/chromium-gpu-linux/media/video-zoom-expected.png:
      * platform/chromium-gpu-linux/platform/chromium/compositing/layout-width-change-expected.png:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@93350 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e0f06095
    • commit-queue@webkit.org's avatar
      [chromium] Draw the root/"non-composited content" in compositor side · acdbafa5
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=58834
      
      Patch by James Robinson <jamesr@chromium.org> on 2011-08-18
      Reviewed by Darin Fisher.
      
      Source/WebCore:
      
      Handle the root or non-composited content with a GraphicsLayer rather than special case logic in
      LayerRendererChromium. This layer's client is the NonCompositedContentHost, which routes the paint callbacks
      through the LayerPainterChromium interface out to the WebView.  The root layer is special in two ways:
      *) The root layer has a scroll offset, which changes how the visibleLayerRect maps to content space and applies a
          draw-time transform.
      *) The root layer masks the alpha channel when drawing because of concerns about subpixel AA trashing the alpha
          channel.  The root layer is always opaque so this is fine.
      *) The root layer does not have border texels and does have subpixel AA for text.
      
      Covered by compositing/
      
      * WebCore.gypi:
      * platform/graphics/chromium/ContentLayerChromium.cpp:
      (WebCore::ContentLayerChromium::paintContentsIfDirty):
      * platform/graphics/chromium/ImageLayerChromium.cpp:
      (WebCore::ImageLayerChromium::paintContentsIfDirty):
      * platform/graphics/chromium/LayerChromium.cpp:
      (WebCore::LayerChromium::pushPropertiesTo):
      * platform/graphics/chromium/LayerChromium.h:
      (WebCore::LayerChromium::scrollPosition):
      (WebCore::LayerChromium::setScrollPosition):
      * platform/graphics/chromium/LayerRendererChromium.cpp:
      (WebCore::LayerRendererChromium::initialize):
      (WebCore::LayerRendererChromium::releaseTextures):
      (WebCore::LayerRendererChromium::viewportChanged):
      (WebCore::LayerRendererChromium::updateLayers):
      (WebCore::LayerRendererChromium::drawLayers):
      (WebCore::LayerRendererChromium::drawLayersInternal):
      (WebCore::LayerRendererChromium::getFramebufferPixels):
      (WebCore::LayerRendererChromium::cleanupSharedObjects):
      (WebCore::LayerRendererChromium::layerTreeAsText):
      * platform/graphics/chromium/LayerRendererChromium.h:
      (WebCore::LayerRendererChromium::rootLayer):
      (WebCore::LayerRendererChromium::viewportSize):
      (WebCore::LayerRendererChromium::viewportWidth):
      (WebCore::LayerRendererChromium::viewportHeight):
      * platform/graphics/chromium/NonCompositedContentHost.cpp: Added.
      (WebCore::NonCompositedContentHost::NonCompositedContentHost):
      (WebCore::NonCompositedContentHost::~NonCompositedContentHost):
      (WebCore::NonCompositedContentHost::invalidateRect):
      (WebCore::NonCompositedContentHost::invalidateEntireLayer):
      (WebCore::NonCompositedContentHost::setScrollPosition):
      (WebCore::NonCompositedContentHost::notifyAnimationStarted):
      (WebCore::NonCompositedContentHost::notifySyncRequired):
      (WebCore::NonCompositedContentHost::paintContents):
      (WebCore::NonCompositedContentHost::showDebugBorders):
      (WebCore::NonCompositedContentHost::showRepaintCounter):
      * platform/graphics/chromium/NonCompositedContentHost.h: Added.
      (WebCore::NonCompositedContentHost::create):
      (WebCore::NonCompositedContentHost::graphicsLayer):
      * platform/graphics/chromium/cc/CCHeadsUpDisplay.cpp:
      (WebCore::CCHeadsUpDisplay::draw):
      * platform/graphics/chromium/cc/CCLayerImpl.h:
      (WebCore::CCLayerImpl::scrollPosition):
      (WebCore::CCLayerImpl::setScrollPosition):
      * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
      (WebCore::CCLayerTreeHost::CCLayerTreeHost):
      (WebCore::CCLayerTreeHost::initialize):
      (WebCore::CCLayerTreeHost::invalidateRootLayerRect):
      (WebCore::CCLayerTreeHost::setRootLayer):
      (WebCore::CCLayerTreeHost::setViewport):
      (WebCore::CCLayerTreeHost::reallocateRenderer):
      * platform/graphics/chromium/cc/CCLayerTreeHost.h:
      (WebCore::CCLayerTreeHost::rootLayer):
      (WebCore::CCLayerTreeHost::viewportSize):
      
      Source/WebKit/chromium:
      
      * src/WebViewImpl.cpp:
      (WebKit::WebViewImpl::paint):
      (WebKit::WebViewImpl::setRootGraphicsLayer):
      (WebKit::WebViewImpl::didRecreateGraphicsContext):
      (WebKit::WebViewImpl::updateLayerTreeViewport):
      * src/WebViewImpl.h:
      
      LayoutTests:
      
      Update pixel baselines that changes due to subtle blending
      differences, primarily on scrollbars. I don't know why these keep
      changing.
      
      * compositing/checkerboard-expected.png:
      * platform/chromium-gpu-linux/compositing/direct-image-compositing-expected.png:
      * platform/chromium-gpu-linux/compositing/geometry/fixed-in-composited-expected.png:
      * platform/chromium-gpu-linux/compositing/geometry/horizontal-scroll-composited-expected.png:
      * platform/chromium-gpu-linux/compositing/geometry/tall-page-composited-expected.png:
      * platform/chromium-gpu-linux/compositing/geometry/video-fixed-scrolling-expected.png:
      * platform/chromium-gpu-linux/compositing/images/direct-image-background-color-expected.png:
      * platform/chromium-gpu-linux/compositing/layers-inside-overflow-scroll-expected.png:
      * platform/chromium-gpu-linux/compositing/masks/masked-ancestor-expected.png:
      * platform/chromium-gpu-linux/compositing/masks/simple-composited-mask-expected.png:
      * platform/chromium-gpu-linux/compositing/overflow/overflow-scroll-expected.png:
      * platform/chromium-gpu-linux/compositing/self-painting-layers-expected.png:
      * platform/chromium-gpu-linux/compositing/webgl/webgl-background-color-expected.png:
      * platform/chromium-gpu-linux/fast/canvas/canvas-text-alignment-expected.png:
      * platform/chromium-gpu-linux/fast/canvas/image-object-in-canvas-expected.png:
      * platform/chromium-gpu-linux/media/video-zoom-expected.png:
      * platform/chromium-gpu-linux/platform/chromium/compositing/layout-width-change-expected.png:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@93329 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      acdbafa5
  19. 12 Aug, 2011 7 commits
    • fsamuel@chromium.org's avatar
      Refactoring of PopupMenuChromium For Readability and Maintainability · adbac47c
      fsamuel@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=66009
      
      Reviewed by Darin Fisher.
      
      Source/WebCore:
      
      Split PopupMenuChromium into three sets of files: PopupMenuChromium.{h|cpp}, PopupContainer.{h|cpp},
      and PopupLisBox.{h|cpp}  for readability and maintainability.
      
      No new tests as there's no change in functionality.
      
      * WebCore.gypi:
      * platform/chromium/PopupContainer.cpp: Added.
      (WebCore::constructRelativeMouseEvent):
      (WebCore::constructRelativeWheelEvent):
      (WebCore::PopupContainer::create):
      (WebCore::PopupContainer::PopupContainer):
      (WebCore::PopupContainer::~PopupContainer):
      (WebCore::PopupContainer::layoutAndCalculateWidgetRect):
      (WebCore::PopupContainer::showPopup):
      (WebCore::PopupContainer::hidePopup):
      (WebCore::PopupContainer::notifyPopupHidden):
      (WebCore::PopupContainer::layoutAndGetRTLOffset):
      (WebCore::PopupContainer::handleMouseDownEvent):
      (WebCore::PopupContainer::handleMouseMoveEvent):
      (WebCore::PopupContainer::handleMouseReleaseEvent):
      (WebCore::PopupContainer::handleWheelEvent):
      (WebCore::PopupContainer::handleTouchEvent):
      (WebCore::PopupContainer::handleGestureEvent):
      (WebCore::PopupContainer::handleKeyEvent):
      (WebCore::PopupContainer::hide):
      (WebCore::PopupContainer::paint):
      (WebCore::PopupContainer::paintBorder):
      (WebCore::PopupContainer::isInterestedInEventForKey):
      (WebCore::PopupContainer::chromeClientChromium):
      (WebCore::PopupContainer::showInRect):
      (WebCore::PopupContainer::refresh):
      (WebCore::PopupContainer::isRTL):
      (WebCore::PopupContainer::selectedIndex):
      (WebCore::PopupContainer::menuItemHeight):
      (WebCore::PopupContainer::menuItemFontSize):
      (WebCore::PopupContainer::menuStyle):
      (WebCore::popupData):
      (WebCore::PopupContainer::getSelectedItemToolTip):
      * platform/chromium/PopupContainer.h: Added.
      (WebCore::PopupContainer::listBox):
      (WebCore::PopupContainer::popupType):
      * platform/chromium/PopupListBox.cpp: Added.
      (WebCore::PopupListBox::PopupListBox):
      (WebCore::PopupListBox::handleMouseDownEvent):
      (WebCore::PopupListBox::handleMouseMoveEvent):
      (WebCore::PopupListBox::handleMouseReleaseEvent):
      (WebCore::PopupListBox::handleWheelEvent):
      (WebCore::PopupListBox::isInterestedInEventForKey):
      (WebCore::PopupListBox::handleTouchEvent):
      (WebCore::PopupListBox::handleGestureEvent):
      (WebCore::isCharacterTypeEvent):
      (WebCore::PopupListBox::handleKeyEvent):
      (WebCore::PopupListBox::hostWindow):
      (WebCore::stripLeadingWhiteSpace):
      (WebCore::PopupListBox::typeAheadFind):
      (WebCore::PopupListBox::paint):
      (WebCore::PopupListBox::paintRow):
      (WebCore::PopupListBox::getRowFont):
      (WebCore::PopupListBox::abandon):
      (WebCore::PopupListBox::pointToRowIndex):
      (WebCore::PopupListBox::acceptIndex):
      (WebCore::PopupListBox::selectIndex):
      (WebCore::PopupListBox::setOriginalIndex):
      (WebCore::PopupListBox::getRowHeight):
      (WebCore::PopupListBox::getRowBounds):
      (WebCore::PopupListBox::invalidateRow):
      (WebCore::PopupListBox::scrollToRevealRow):
      (WebCore::PopupListBox::isSelectableItem):
      (WebCore::PopupListBox::clearSelection):
      (WebCore::PopupListBox::selectNextRow):
      (WebCore::PopupListBox::selectPreviousRow):
      (WebCore::PopupListBox::adjustSelectedIndex):
      (WebCore::PopupListBox::hidePopup):
      (WebCore::PopupListBox::updateFromElement):
      (WebCore::PopupListBox::setMaxWidthAndLayout):
      (WebCore::PopupListBox::layout):
      (WebCore::PopupListBox::clear):
      (WebCore::PopupListBox::isPointInBounds):
      * platform/chromium/PopupListBox.h: Added.
      (WebCore::PopupItem::PopupItem):
      (WebCore::PopupListBox::create):
      (WebCore::PopupListBox::selectedIndex):
      (WebCore::PopupListBox::numItems):
      (WebCore::PopupListBox::setBaseWidth):
      (WebCore::PopupListBox::setMaxHeight):
      (WebCore::PopupListBox::setMaxWidth):
      (WebCore::PopupListBox::disconnectClient):
      (WebCore::PopupListBox::items):
      (WebCore::PopupListBox::~PopupListBox):
      (WebCore::PopupListBox::scrollToRevealSelection):
      * platform/chromium/PopupMenuChromium.cpp:
      * platform/chromium/PopupMenuChromium.h:
      
      Source/WebKit/chromium:
      
      * src/ChromeClientImpl.cpp:
      * src/WebPopupMenuImpl.cpp:
      * src/WebViewImpl.cpp:
      * tests/PopupMenuTest.cpp:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@93009 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      adbac47c
    • fsamuel@chromium.org's avatar
      Expose pageScaleFactor() to Chromium's WebViewImpl · 7dc16dae
      fsamuel@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=66067
      
      Reviewed by Darin Fisher.
      
      * public/WebView.h:
      * src/WebViewImpl.cpp:
      (WebKit::WebViewImpl::pageScaleFactor):
      * src/WebViewImpl.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@93007 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7dc16dae
    • commit-queue@webkit.org's avatar
      Source/WebKit/chromium: Wire gesture tap events, add support for gesture... · 9dc5910d
      commit-queue@webkit.org authored
      Source/WebKit/chromium: Wire gesture tap events, add support for gesture events in the DRT and add a layout test for it.
      https://bugs.webkit.org/show_bug.cgi?id=66105
      
      Patch by Sadrul Habib Chowdhury <sadrul@chromium.org> on 2011-08-12
      Reviewed by Darin Fisher.
      
      * public/WebInputEvent.h:
      * src/WebInputEventConversion.cpp:
      (WebKit::PlatformGestureEventBuilder::PlatformGestureEventBuilder):
      * src/WebPopupMenuImpl.cpp:
      (WebKit::WebPopupMenuImpl::handleInputEvent):
      * src/WebViewImpl.cpp:
      (WebKit::WebViewImpl::handleInputEvent):
      
      Tools: DRT: Add support for gesture events.
      https://bugs.webkit.org/show_bug.cgi?id=66105
      
      Patch by Sadrul Habib Chowdhury <sadrul@chromium.org> on 2011-08-12
      Reviewed by Darin Fisher.
      
      * DumpRenderTree/chromium/EventSender.cpp:
      (EventSender::EventSender):
      (EventSender::gestureScrollBegin):
      (EventSender::gestureScrollEnd):
      (EventSender::gestureTap):
      (EventSender::gestureEvent):
      * DumpRenderTree/chromium/EventSender.h:
      
      LayoutTests: DRT: Add support for gesture events.
      https://bugs.webkit.org/show_bug.cgi?id=66105
      
      Patch by Sadrul Habib Chowdhury <sadrul@chromium.org> on 2011-08-12
      Reviewed by Darin Fisher.
      
      * fast/events/touch/gesture/gesture-click-expected.txt: Added.
      * fast/events/touch/gesture/gesture-click.html: Added.
      * platform/chromium/fast/events/touch/gesture/gesture-click-expected.txt: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@92997 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9dc5910d
    • abarth@webkit.org's avatar
      Unreviewed, rolling out r92976. · f8fa2299
      abarth@webkit.org authored
      http://trac.webkit.org/changeset/92976
      https://bugs.webkit.org/show_bug.cgi?id=66159
      
      Does not compile on chromium-win (Requested by abarth|gardener
      on #webkit).
      
      Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2011-08-12
      
      Source/WebCore: 
      
      * WebCore.gypi:
      * platform/chromium/PopupContainer.cpp: Removed.
      * platform/chromium/PopupContainer.h: Removed.
      * platform/chromium/PopupListBox.cpp: Removed.
      * platform/chromium/PopupListBox.h: Removed.
      * platform/chromium/PopupMenuChromium.cpp:
      (WebCore::PopupListBox::create):
      (WebCore::PopupListBox::selectedIndex):
      (WebCore::PopupListBox::numItems):
      (WebCore::PopupListBox::setBaseWidth):
      (WebCore::PopupListBox::setMaxHeight):
      (WebCore::PopupListBox::setMaxWidth):
      (WebCore::PopupListBox::disconnectClient):
      (WebCore::PopupListBox::items):
      (WebCore::PopupListBox::PopupListBox):
      (WebCore::PopupListBox::~PopupListBox):
      (WebCore::PopupListBox::scrollToRevealSelection):
      (WebCore::constructRelativeMouseEvent):
      (WebCore::constructRelativeWheelEvent):
      (WebCore::PopupContainer::create):
      (WebCore::PopupContainer::PopupContainer):
      (WebCore::PopupContainer::~PopupContainer):
      (WebCore::PopupContainer::layoutAndCalculateWidgetRect):
      (WebCore::PopupContainer::showPopup):
      (WebCore::PopupContainer::hidePopup):
      (WebCore::PopupContainer::notifyPopupHidden):
      (WebCore::PopupContainer::layoutAndGetRTLOffset):
      (WebCore::PopupContainer::handleMouseDownEvent):
      (WebCore::PopupContainer::handleMouseMoveEvent):
      (WebCore::PopupContainer::handleMouseReleaseEvent):
      (WebCore::PopupContainer::handleWheelEvent):
      (WebCore::PopupContainer::handleTouchEvent):
      (WebCore::PopupContainer::handleGestureEvent):
      (WebCore::PopupContainer::handleKeyEvent):
      (WebCore::PopupContainer::hide):
      (WebCore::PopupContainer::paint):
      (WebCore::PopupContainer::paintBorder):
      (WebCore::PopupContainer::isInterestedInEventForKey):
      (WebCore::PopupContainer::chromeClientChromium):
      (WebCore::PopupContainer::showInRect):
      (WebCore::PopupContainer::refresh):
      (WebCore::PopupContainer::isRTL):
      (WebCore::PopupContainer::selectedIndex):
      (WebCore::PopupContainer::menuItemHeight):
      (WebCore::PopupContainer::menuItemFontSize):
      (WebCore::PopupContainer::menuStyle):
      (WebCore::popupData):
      (WebCore::PopupContainer::getSelectedItemToolTip):
      (WebCore::PopupListBox::handleMouseDownEvent):
      (WebCore::PopupListBox::handleMouseMoveEvent):
      (WebCore::PopupListBox::handleMouseReleaseEvent):
      (WebCore::PopupListBox::handleWheelEvent):
      (WebCore::PopupListBox::isInterestedInEventForKey):
      (WebCore::PopupListBox::handleTouchEvent):
      (WebCore::PopupListBox::handleGestureEvent):
      (WebCore::isCharacterTypeEvent):
      (WebCore::PopupListBox::handleKeyEvent):
      (WebCore::PopupListBox::hostWindow):
      (WebCore::stripLeadingWhiteSpace):
      (WebCore::PopupListBox::typeAheadFind):
      (WebCore::PopupListBox::paint):
      (WebCore::PopupListBox::paintRow):
      (WebCore::PopupListBox::getRowFont):
      (WebCore::PopupListBox::abandon):
      (WebCore::PopupListBox::pointToRowIndex):
      (WebCore::PopupListBox::acceptIndex):
      (WebCore::PopupListBox::selectIndex):
      (WebCore::PopupListBox::setOriginalIndex):
      (WebCore::PopupListBox::getRowHeight):
      (WebCore::PopupListBox::getRowBounds):
      (WebCore::PopupListBox::invalidateRow):
      (WebCore::PopupListBox::scrollToRevealRow):
      (WebCore::PopupListBox::isSelectableItem):
      (WebCore::PopupListBox::clearSelection):
      (WebCore::PopupListBox::selectNextRow):
      (WebCore::PopupListBox::selectPreviousRow):
      (WebCore::PopupListBox::adjustSelectedIndex):
      (WebCore::PopupListBox::hidePopup):
      (WebCore::PopupListBox::updateFromElement):
      (WebCore::PopupListBox::setMaxWidthAndLayout):
      (WebCore::PopupListBox::layout):
      (WebCore::PopupListBox::clear):
      (WebCore::PopupListBox::isPointInBounds):
      * platform/chromium/PopupMenuChromium.h:
      (WebCore::PopupItem::PopupItem):
      (WebCore::PopupContainer::listBox):
      (WebCore::PopupContainer::popupType):
      
      Source/WebKit/chromium: 
      
      * src/ChromeClientImpl.cpp:
      * src/WebPopupMenuImpl.cpp:
      * src/WebViewImpl.cpp:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@92983 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f8fa2299
    • abarth@webkit.org's avatar
      Unreviewed, rolling out r92978. · 22a0761d
      abarth@webkit.org authored
      http://trac.webkit.org/changeset/92978
      https://bugs.webkit.org/show_bug.cgi?id=66155
      
      This patch does not compile (Requested by abarth|gardener on
      #webkit).
      
      Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2011-08-12
      
      * public/WebView.h:
      * src/WebViewImpl.cpp:
      (WebKit::WebViewImpl::zoomLevel):
      (WebKit::WebViewImpl::setZoomLevel):
      (WebKit::WebViewImpl::zoomLimitsChanged):
      (WebKit::WebViewImpl::fullFramePluginZoomLevelChanged):
      (WebKit::WebView::zoomLevelToZoomFactor):
      (WebKit::WebView::zoomFactorToZoomLevel):
      * src/WebViewImpl.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@92980 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      22a0761d
    • fsamuel@chromium.org's avatar
      Chromium's WebKit API should use floats instead of doubles for zoom to match WebCore · dc294142
      fsamuel@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=66089
      
      Reviewed by Darin Fisher.
      
      * public/WebView.h:
      * src/WebViewImpl.cpp:
      (WebKit::WebViewImpl::zoomLevel):
      (WebKit::WebViewImpl::setZoomLevel):
      (WebKit::WebViewImpl::zoomLimitsChanged):
      (WebKit::WebViewImpl::fullFramePluginZoomLevelChanged):
      (WebKit::WebView::zoomLevelToZoomFactor):
      (WebKit::WebView::zoomFactorToZoomLevel):
      * src/WebViewImpl.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@92978 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dc294142
    • fsamuel@chromium.org's avatar
      Refactoring of PopupMenuChromium · fa7e2c2e
      fsamuel@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=66009
      
      Reviewed by Darin Fisher.
      
      Source/WebCore:
      
      Split PopupMenuChromium into three sets of files: PopupMenuChromium.{h|cpp}, PopupContainer.{h|cpp}, and PopupLisBox.{h|cpp}
      for readability and maintainability.
      
      No new tests as no functionality has changed.
      
      * WebCore.gypi:
      * platform/chromium/PopupContainer.cpp: Added.
      (WebCore::constructRelativeMouseEvent):
      (WebCore::constructRelativeWheelEvent):
      (WebCore::PopupContainer::create):
      (WebCore::PopupContainer::PopupContainer):
      (WebCore::PopupContainer::~PopupContainer):
      (WebCore::PopupContainer::layoutAndCalculateWidgetRect):
      (WebCore::PopupContainer::showPopup):
      (WebCore::PopupContainer::hidePopup):
      (WebCore::PopupContainer::notifyPopupHidden):
      (WebCore::PopupContainer::layoutAndGetRTLOffset):
      (WebCore::PopupContainer::handleMouseDownEvent):
      (WebCore::PopupContainer::handleMouseMoveEvent):
      (WebCore::PopupContainer::handleMouseReleaseEvent):
      (WebCore::PopupContainer::handleWheelEvent):
      (WebCore::PopupContainer::handleTouchEvent):
      (WebCore::PopupContainer::handleGestureEvent):
      (WebCore::PopupContainer::handleKeyEvent):
      (WebCore::PopupContainer::hide):
      (WebCore::PopupContainer::paint):
      (WebCore::PopupContainer::paintBorder):
      (WebCore::PopupContainer::isInterestedInEventForKey):
      (WebCore::PopupContainer::chromeClientChromium):
      (WebCore::PopupContainer::showInRect):
      (WebCore::PopupContainer::refresh):
      (WebCore::PopupContainer::isRTL):
      (WebCore::PopupContainer::selectedIndex):
      (WebCore::PopupContainer::menuItemHeight):
      (WebCore::PopupContainer::menuItemFontSize):
      (WebCore::PopupContainer::menuStyle):
      (WebCore::popupData):
      (WebCore::PopupContainer::getSelectedItemToolTip):
      * platform/chromium/PopupContainer.h: Added.
      (WebCore::PopupContainer::listBox):
      (WebCore::PopupContainer::popupType):
      * platform/chromium/PopupListBox.cpp: Added.
      (WebCore::PopupListBox::PopupListBox):
      (WebCore::PopupListBox::handleMouseDownEvent):
      (WebCore::PopupListBox::handleMouseMoveEvent):
      (WebCore::PopupListBox::handleMouseReleaseEvent):
      (WebCore::PopupListBox::handleWheelEvent):
      (WebCore::PopupListBox::isInterestedInEventForKey):
      (WebCore::PopupListBox::handleTouchEvent):
      (WebCore::PopupListBox::handleGestureEvent):
      (WebCore::isCharacterTypeEvent):
      (WebCore::PopupListBox::handleKeyEvent):
      (WebCore::PopupListBox::hostWindow):
      (WebCore::stripLeadingWhiteSpace):
      (WebCore::PopupListBox::typeAheadFind):
      (WebCore::PopupListBox::paint):
      (WebCore::PopupListBox::paintRow):
      (WebCore::PopupListBox::getRowFont):
      (WebCore::PopupListBox::abandon):
      (WebCore::PopupListBox::pointToRowIndex):
      (WebCore::PopupListBox::acceptIndex):
      (WebCore::PopupListBox::selectIndex):
      (WebCore::PopupListBox::setOriginalIndex):
      (WebCore::PopupListBox::getRowHeight):
      (WebCore::PopupListBox::getRowBounds):
      (WebCore::PopupListBox::invalidateRow):
      (WebCore::PopupListBox::scrollToRevealRow):
      (WebCore::PopupListBox::isSelectableItem):
      (WebCore::PopupListBox::clearSelection):
      (WebCore::PopupListBox::selectNextRow):
      (WebCore::PopupListBox::selectPreviousRow):
      (WebCore::PopupListBox::adjustSelectedIndex):
      (WebCore::PopupListBox::hidePopup):
      (WebCore::PopupListBox::updateFromElement):
      (WebCore::PopupListBox::setMaxWidthAndLayout):
      (WebCore::PopupListBox::layout):
      (WebCore::PopupListBox::clear):
      (WebCore::PopupListBox::isPointInBounds):
      * platform/chromium/PopupListBox.h: Added.
      (WebCore::PopupItem::PopupItem):
      (WebCore::PopupListBox::create):
      (WebCore::PopupListBox::selectedIndex):
      (WebCore::PopupListBox::numItems):
      (WebCore::PopupListBox::setBaseWidth):
      (WebCore::PopupListBox::setMaxHeight):
      (WebCore::PopupListBox::setMaxWidth):
      (WebCore::PopupListBox::disconnectClient):
      (WebCore::PopupListBox::items):
      (WebCore::PopupListBox::~PopupListBox):
      (WebCore::PopupListBox::scrollToRevealSelection):
      * platform/chromium/PopupMenuChromium.cpp:
      * platform/chromium/PopupMenuChromium.h:
      
      Source/WebKit/chromium:
      
      * src/ChromeClientImpl.cpp:
      * src/WebPopupMenuImpl.cpp:
      * src/WebViewImpl.cpp:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@92976 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fa7e2c2e
  20. 11 Aug, 2011 1 commit
    • nduca@chromium.org's avatar
      [chromium] Make WebViewImpl point at CCLayerTreeHost and related separation · eebad4e7
      nduca@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=65791
      
      With this patch, LayerRendererChromium becomes increasingly responsible
      for rendering, while render scheduling and tree hosting moves into the
      CCLayerTreeHost.
      
      Reviewed by James Robinson.
      
      Source/WebCore:
      
      * platform/graphics/chromium/ContentLayerChromium.cpp:
      (WebCore::ContentLayerChromium::createTextureUpdaterIfNeeded):
      * platform/graphics/chromium/LayerChromium.h:
      * platform/graphics/chromium/LayerRendererChromium.cpp:
      (WebCore::LayerRendererChromium::create):
      (WebCore::LayerRendererChromium::LayerRendererChromium):
      (WebCore::LayerRendererChromium::initialize):
      (WebCore::LayerRendererChromium::releaseTextures):
      (WebCore::LayerRendererChromium::updateRootLayerContents):
      (WebCore::LayerRendererChromium::drawRootLayer):
      (WebCore::LayerRendererChromium::invalidateRootLayerRect):
      (WebCore::LayerRendererChromium::rootLayerChanged):
      (WebCore::LayerRendererChromium::viewportChanged):
      (WebCore::LayerRendererChromium::updateLayers):
      (WebCore::LayerRendererChromium::drawLayers):
      (WebCore::LayerRendererChromium::drawLayersInternal):
      (WebCore::LayerRendererChromium::getFramebufferPixels):
      (WebCore::LayerRendererChromium::getOffscreenLayerTexture):
      (WebCore::LayerRendererChromium::copyOffscreenTextureToDisplay):
      (WebCore::LayerRendererChromium::useRenderSurface):
      (WebCore::LayerRendererChromium::setScissorToRect):
      (WebCore::LayerRendererChromium::layerTreeAsText):
      (WebCore::LayerRendererChromium::dumpRenderSurfaces):
      * platform/graphics/chromium/LayerRendererChromium.h:
      (WebCore::LayerRendererChromium::settings):
      (WebCore::LayerRendererChromium::owner):
      (WebCore::LayerRendererChromium::rootLayer):
      (WebCore::LayerRendererChromium::skiaContext):
      * platform/graphics/chromium/WebGLLayerChromium.cpp:
      (WebCore::WebGLLayerChromium::setTextureUpdated):
      * platform/graphics/chromium/cc/CCHeadsUpDisplay.cpp:
      (WebCore::CCHeadsUpDisplay::draw):
      (WebCore::CCHeadsUpDisplay::enabled):
      * platform/graphics/chromium/cc/CCHeadsUpDisplay.h:
      * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
      (WebCore::CCLayerTreeHost::create):
      (WebCore::CCLayerTreeHost::CCLayerTreeHost):
      (WebCore::CCLayerTreeHost::initialize):
      (WebCore::CCLayerTreeHost::animateAndLayout):
      (WebCore::CCLayerTreeHost::createLayerTreeHostCommitter):
      (WebCore::CCLayerTreeHost::createLayerTreeHostImpl):
      (WebCore::CCLayerTreeHost::context):
      (WebCore::CCLayerTreeHost::compositeAndReadback):
      (WebCore::CCLayerTreeHost::createRootLayerPainter):
      (WebCore::CCLayerTreeHost::finishAllRendering):
      (WebCore::CCLayerTreeHost::invalidateRootLayerRect):
      (WebCore::CCLayerTreeHost::setNeedsCommitAndRedraw):
      (WebCore::CCLayerTreeHost::setNeedsRedraw):
      (WebCore::CCLayerTreeHost::setRootLayer):
      (WebCore::CCLayerTreeHost::setViewport):
      (WebCore::CCLayerTreeHost::setVisible):
      (WebCore::CCLayerTreeHost::doComposite):
      (WebCore::CCLayerTreeHost::composite):
      (WebCore::CCLayerTreeHost::reallocateRenderer):
      * platform/graphics/chromium/cc/CCLayerTreeHost.h:
      (WebCore::CCLayerTreeHost::animating):
      (WebCore::CCLayerTreeHost::setAnimating):
      (WebCore::CCLayerTreeHost::rootLayer):
      (WebCore::CCLayerTreeHost::settings):
      (WebCore::CCLayerTreeHost::viewportContentRect):
      (WebCore::CCLayerTreeHost::viewportScrollPosition):
      (WebCore::CCLayerTreeHost::viewportVisibleRect):
      * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
      (WebCore::CCLayerTreeHostImpl::create):
      (WebCore::CCLayerTreeHostImpl::CCLayerTreeHostImpl):
      (WebCore::CCLayerTreeHostImpl::drawLayers):
      (WebCore::CCLayerTreeHostImpl::drawLayersOnMainThread):
      * platform/graphics/chromium/cc/CCLayerTreeHostImpl.h:
      * platform/graphics/chromium/cc/CCLayerTreeHostImplProxy.cpp:
      (WebCore::CCLayerTreeHostImplProxy::initImplOnCCThread):
      
      Source/WebKit/chromium:
      
      * src/WebViewImpl.cpp:
      (WebKit::WebViewImpl::WebViewImpl):
      (WebKit::WebViewImpl::resize):
      (WebKit::WebViewImpl::animate):
      (WebKit::WebViewImpl::doPixelReadbackToCanvas):
      (WebKit::WebViewImpl::paint):
      (WebKit::WebViewImpl::composite):
      (WebKit::WebViewImpl::setRootPlatformLayer):
      (WebKit::WebViewImpl::setRootLayerNeedsDisplay):
      (WebKit::WebViewImpl::scrollRootLayerRect):
      (WebKit::WebViewImpl::invalidateRootLayerRect):
      (WebKit::getCompositorSettings):
      (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
      (WebKit::WebViewImpl::createRootLayerPainter):
      (WebKit::WebViewImpl::animateAndLayout):
      (WebKit::WebViewImpl::didRecreateGraphicsContext):
      (WebKit::WebViewImpl::scheduleComposite):
      (WebKit::WebViewImpl::updateLayerTreeViewport):
      (WebKit::WebViewImpl::graphicsContext3D):
      (WebKit::WebViewImpl::setVisibilityState):
      * src/WebViewImpl.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@92895 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      eebad4e7