1. 30 Dec, 2012 10 commits
  2. 29 Dec, 2012 14 commits
    • dglazkov@chromium.org's avatar
      Rename StyleResolver's member variable that holds SelectorChecker to a proper name. · 2c4c7ee2
      dglazkov@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=105864
      
      In https://bugs.webkit.org/show_bug.cgi?id=105660#c11, Antti suggested renaming m_checker to
      m_selectorChecker. I've forgotten about that, but now I remembered it.
      
      Reviewed by Eric Seidel.
      
      No change in functionality, covered by existing tests.
      
      * css/StyleResolver.cpp/h: Renamed all instances of m_checker to m_selectorChecker.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138572 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2c4c7ee2
    • dglazkov@chromium.org's avatar
      Move pointer to Document up from SelectorChecker to StyleResolver. · 4160a422
      dglazkov@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=105863
      
      Now that SelectorChecker is mostly stateless, it no longer needs to keep a pointer to Document, which
      makes all the code in StyleResolver that reaches for it sort of weird.
      
      Reviewed by Eric Seidel.
      
      No change in functionality, covered by existing tests.
      
      * css/SelectorChecker.cpp:
      (WebCore::SelectorChecker::SelectorChecker): Changed to take document as argument (only used to set bit fields).
      (WebCore::SelectorChecker::checkOneSelector): Changed to use element document.
      (WebCore::SelectorChecker::checkScrollbarPseudoClass): Ditto.
      * css/SelectorChecker.h:
      (WebCore): Removed unnecessary Document forward declaration.
      (SelectorChecker): Changed constructor declaration, and removed m_document member.
      * css/StyleResolver.cpp:
      (WebCore::StyleResolver::StyleResolver): Adjusted SelectorChecker initializer accordingly.
      (WebCore::StyleResolver::initElement): Changed to use own document accessor.
      (WebCore::StyleResolver::initForStyleResolve): Ditto.
      (WebCore::StyleResolver::matchUARules): Ditto.
      (WebCore::StyleResolver::styleForPage): Ditto.
      (WebCore::StyleResolver::applyProperty): Ditto.
      (WebCore::StyleResolver::checkForGenericFamilyChange): Ditto.
      (WebCore::StyleResolver::initializeFontStyle): Ditto.
      (WebCore::StyleResolver::setFontSize): Ditto.
      * css/StyleResolver.h:
      (WebCore::StyleResolver::document): Changed to use own member.
      (WebCore::StyleResolver::documentSettings): Ditto.
      (StyleResolver): Added m_document member.
      * dom/SelectorQuery.cpp:
      (WebCore::SelectorQuery::matches): Changed callsite to reflect new constructor signature.
      (WebCore::SelectorQuery::queryAll): Ditto.
      (WebCore::SelectorQuery::queryFirst): Ditto.
      * html/shadow/ContentSelectorQuery.cpp:
      (WebCore::ContentSelectorChecker::ContentSelectorChecker): Ditto.
      (WebCore::ContentSelectorQuery::ContentSelectorQuery): Ditto.
      * html/shadow/ContentSelectorQuery.h:
      (ContentSelectorChecker): Removed unnecessary argument.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138571 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4160a422
    • weinig@apple.com's avatar
      Windows build fix. · ff231745
      weinig@apple.com authored
      * win/WebKit2Common.vsprops:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138570 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ff231745
    • weinig@apple.com's avatar
      Add supplementability to the NetworkProcess · 4851b1af
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=105838
      
      Reviewed by Dan Bernstein.
      
      This patch adds a NetworkProcessSupplement, which is almost identical to
      WebProcessSupplement, but has a different initialization override. It also
      stops WebProcessSupplement from inheriting from MessageReceiver (and makes
      everything that is a WebProcessSupplement also a MessageReceiver) as keeping
      that would cause classes that need to be both WebProcessSupplements and
      NetworkProcessSupplements inherit from MessageReceiver twice.
      
      * GNUmakefile.list.am:
      * NetworkProcess/NetworkProcess.cpp:
      (WebKit::NetworkProcess::NetworkProcess):
      (WebKit::NetworkProcess::downloadsAuthenticationManager):
      (WebKit::NetworkProcess::initializeNetworkProcess):
      * NetworkProcess/NetworkProcess.h:
      (WebKit):
      (NetworkProcess):
      (WebKit::NetworkProcess::supplement):
      (WebKit::NetworkProcess::addSupplement):
      * Shared/Network/CustomProtocols/CustomProtocolManager.h:
      (CustomProtocolManager):
      * Shared/Network/NetworkProcessSupplement.h: Added.
      (WebKit):
      (NetworkProcessSupplement):
      (WebKit::NetworkProcessSupplement::~NetworkProcessSupplement):
      (WebKit::NetworkProcessSupplement::initialize):
      * Target.pri:
      * WebKit2.xcodeproj/project.pbxproj:
      * WebProcess/ApplicationCache/WebApplicationCacheManager.h:
      * WebProcess/Authentication/AuthenticationManager.h:
      * WebProcess/Cookies/WebCookieManager.h:
      * WebProcess/Geolocation/WebGeolocationManager.h:
      * WebProcess/KeyValueStorage/WebKeyValueStorageManager.h:
      * WebProcess/MediaCache/WebMediaCacheManager.h:
      * WebProcess/Notifications/WebNotificationManager.h:
      * WebProcess/ResourceCache/WebResourceCacheManager.h:
      * WebProcess/WebCoreSupport/WebDatabaseManager.h:
      * WebProcess/WebProcessSupplement.h:
      * win/WebKit2.vcproj:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138569 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4851b1af
    • commit-queue@webkit.org's avatar
      [BlackBerry] Cookies with an IP domain are not being loaded properly into memory · fd412526
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=105859
      
      PR 271597
      
      Patch by Otto Derek Cheung <otcheung@rim.com> on 2012-12-29
      Reviewed by George Staikos.
      
      The isIP flag isn't persistented in the database. We need to check it
      again when we load it into memory.
      
      * platform/blackberry/CookieManager.cpp:
      (WebCore::CookieManager::getBackingStoreCookies):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138568 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fd412526
    • commit-queue@webkit.org's avatar
      [EFL][WebGL] Refactor GLXImplementation. · f5366d87
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=105825
      
      Patch by Kondapally Kalyan <kalyan.kondapally@intel.com> on 2012-12-29
      Reviewed by Kenneth Rohde Christiansen.
      
      This patch decouples native window management and logic to find surface configuration in GLX implementation.
      
      * platform/graphics/opengl/GLDefs.h:
      * platform/graphics/surfaces/glx/GLXConfigSelector.h: Renamed from Source/WebCore/platform/graphics/surfaces/glx/GLXWindowResources.h.
      (WebCore):
      (GLXConfigSelector):
      (WebCore::GLXConfigSelector::GLXConfigSelector):
      (WebCore::GLXConfigSelector::~GLXConfigSelector):
      (WebCore::GLXConfigSelector::visualInfo):
      (WebCore::GLXConfigSelector::pBufferContextConfig):
      (WebCore::GLXConfigSelector::surfaceContextConfig):
      (WebCore::GLXConfigSelector::reset):
      (WebCore::GLXConfigSelector::createConfig):
      
      Helper class to find surface configuration.
      
      * platform/graphics/surfaces/glx/GLXContext.h:
      (GLXOffScreenContext):
      * platform/graphics/surfaces/glx/GLXSurface.cpp:
      (WebCore::GLXTransportSurface::GLXTransportSurface):
      (WebCore::GLXTransportSurface::configuration):
      (WebCore::GLXTransportSurface::setGeometry):
      (WebCore::GLXTransportSurface::destroy):
      (WebCore::GLXPBuffer::GLXPBuffer):
      (WebCore::GLXPBuffer::initialize):
      (WebCore::GLXPBuffer::configuration):
      * platform/graphics/surfaces/glx/GLXSurface.h:
      (GLXTransportSurface):
      (GLXPBuffer):
      
      Inheritance changed from X11OffScreenWindow to GLPlatformSurface.
      
      * platform/graphics/surfaces/glx/X11WindowResources.cpp:
      (WebCore):
      (WebCore::X11OffScreenWindow::X11OffScreenWindow):
      (WebCore::X11OffScreenWindow::reSizeWindow):
      (WebCore::X11OffScreenWindow::createOffscreenWindow):
      (WebCore::X11OffScreenWindow::destroyWindow):
      (WebCore::X11OffScreenWindow::nativeSharedDisplay):
      (WebCore::X11OffScreenWindow::setVisualInfo):
      (WebCore::X11OffScreenWindow::isXRenderExtensionSupported):
      * platform/graphics/surfaces/glx/X11WindowResources.h:
      (WebCore::SharedX11Resources::create):
      (SharedX11Resources):
      (X11OffScreenWindow):
      
       Removed code related to surface configiration.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138567 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f5366d87
    • commit-queue@webkit.org's avatar
      [GTK] Change bug for some inspector tests · 82837d46
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=105842
      
      Unreviewed gardening.
      
      Bug 43332 was landed. But these tests still fail on GTK port.
      And change bug to track the failures.
      
      Patch by Seokju Kwon <seokju.kwon@gmail.com> on 2012-12-29
      
      * platform/gtk/TestExpectations:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138566 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      82837d46
    • aroben@webkit.org's avatar
      Web Inspector: Mac WK1 Inspector can't save/load timeline data · 519ba09d
      aroben@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=105547
      
      Reviewed by Pavel Feldman.
      
      * WebCoreSupport/WebInspectorClient.h: Declared new overrides and
      member variables necessary for save support.
      
      * WebCoreSupport/WebInspectorClient.mm:
      (WebInspectorFrontendClient::save):
      (WebInspectorFrontendClient::append):
      Implemented these to make saving timeline data work. (It seems to me
      the InspectorFrontendClient API could be cleaned up a bit. I had to
      look at Chromium source code to determine that I needed to call back
      into the InspectorFrontendAPI JS object after saving/appending, and
      that I needed to keep a map of passed URLs -> chosen URLs.)
      
      (-[WebInspectorWindowController window:willPositionSheet:usingRect:]):
      Tweaked the position of the sheet so that open/save sheets look a
      little bette.r
      
      (-[WebInspectorWindowController webView:runOpenPanelForFileButtonWithResultListener:allowMultipleFiles:]):
      Implemented to make loading timeline data work.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138565 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      519ba09d
    • commit-queue@webkit.org's avatar
      Web Inspector: [Timeline] cpu bar popover shows wrong duration / cpu time. · 698d091e
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=105854
      
      Patch by Eugene Klyuchnikov <eustas@chromium.org> on 2012-12-29
      Reviewed by Vsevolod Vlasov.
      
      Problem: CPU task indexes are already incremented before written to
      data structure.
      
      * inspector/front-end/TimelinePanel.js:
      (WebInspector.TimelinePanel.prototype._refreshMainThreadBars):
      Use for loop to get correct indexes.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138564 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      698d091e
    • loislo@chromium.org's avatar
      Web Inspector: Native Memory Instrumentation plugin: do not generate 'not... · ed5e815e
      loislo@chromium.org authored
      Web Inspector: Native Memory Instrumentation plugin: do not generate 'not instrumented' warning for instrumented mutable members.
      https://bugs.webkit.org/show_bug.cgi?id=105855
      
      Reviewed by Vsevolod Vlasov.
      
      Extract MemberExpr from ImplicitCastExpr. It happens when we instrument a mutable member because
      addMember expects const T& and the mutable ref to member implicitly converts into const ref to member.
      
      * clang/ReportMemoryUsagePlugin/ReportMemoryUsage.cpp:
      (ReportMemoryUsageVisitor):
      (clang::AddMemberCallVisitor::VisitCallExpr):
      (clang::ReportMemoryUsageVisitor::VisitCXXMethodDecl):
      (clang::ReportMemoryUsageVisitor::checkMembersCoverage):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138563 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ed5e815e
    • loislo@chromium.org's avatar
      Web Inspector: Native Memory Instrumentation plugin: move function bodies out... · 1e61d711
      loislo@chromium.org authored
      Web Inspector: Native Memory Instrumentation plugin: move function bodies out of class declarations.
      https://bugs.webkit.org/show_bug.cgi?id=105852
      
      Reviewed by Alexander Pavlov.
      
      * clang/ReportMemoryUsagePlugin/ReportMemoryUsage.cpp:
      (clang):
      (AddMemberCallVisitor):
      (ReportMemoryUsageVisitor):
      (clang::ReportMemoryUsageAction::ParseArgs):
      (clang::AddMemberCallVisitor::VisitCallExpr):
      (clang::ReportMemoryUsageVisitor::VisitCXXMethodDecl):
      (clang::ReportMemoryUsageVisitor::emitWarning):
      (clang::ReportMemoryUsageVisitor::findInstrumentationMethod):
      (clang::ReportMemoryUsageVisitor::needsToBeInstrumented):
      (clang::ReportMemoryUsageVisitor::CheckMembersCoverage):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138562 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1e61d711
    • loislo@chromium.org's avatar
      Web Inspector: Native Memory Instrumentation: instrument not instrumented members. · a8a3a684
      loislo@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=105830
      
      Reviewed by Vsevolod Vlasov.
      
      In some cases we don't want to visit some class members.
      As example we decided to skip pointers to interface classes such as GraphicLayerClient.
      We could use addWeakPointer for them but it can't be used for nonpointer members.
      In the offline discussion we came to a conclusion that we need a new instrumentation
      method ignoreMember, which will be used for all the members which we won't like to visit/instrument.
      
      DriveBy: Also I instrumented not yet instrumented members.
      
      Source/WebCore:
      
      * bindings/v8/DOMWrapperMap.h:
      (WebCore::DOMWrapperMap::reportMemoryUsage):
      * bindings/v8/ScriptWrappable.h:
      (WebCore::ScriptWrappable::reportMemoryUsage):
      * html/HTMLMediaElement.cpp:
      (WebCore::HTMLMediaElement::reportMemoryUsage):
      * platform/KURLGoogle.cpp:
      (WebCore::KURLGooglePrivate::reportMemoryUsage):
      * platform/SharedBuffer.cpp:
      (WebCore::SharedBuffer::reportMemoryUsage):
      * platform/audio/AudioArray.h:
      (WebCore::AudioArray::reportMemoryUsage):
      * platform/graphics/GraphicsLayer.cpp:
      (WebCore::GraphicsLayer::reportMemoryUsage):
      * rendering/RenderLayerCompositor.cpp:
      (WebCore::RenderLayerCompositor::reportMemoryUsage):
      * rendering/RenderTableSection.cpp:
      (WebCore::RenderTableSection::RowStruct::reportMemoryUsage):
      * rendering/style/RenderStyle.cpp:
      (WebCore::RenderStyle::reportMemoryUsage):
      * rendering/style/StyleRareInheritedData.cpp:
      (WebCore::StyleRareInheritedData::reportMemoryUsage):
      
      Source/WTF:
      
      * wtf/MemoryInstrumentation.h:
      (MemoryClassInfo):
      (WTF::MemoryClassInfo::ignoreMember):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138561 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a8a3a684
    • commit-queue@webkit.org's avatar
      Source/WebCore: Web Inspector: refactor DefaultTextEditor - annotate handlers and fix getters style · 55fa4419
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=105829
      
      Patch by Andrey Lushnikov <lushnikov@chromium.com> on 2012-12-29
      Reviewed by Pavel Feldman.
      
      Refactor DefaultTextEditor.js: improve handler method annotations,
      remove "get" prefix from method names, get rid of unnecessary
      delegation (e.g. see _handleCut).
      
      No new tests: no change in behaviour.
      
      * inspector/front-end/DefaultTextEditor.js:
      (WebInspector.DefaultTextEditor):
      (WebInspector.DefaultTextEditor.prototype._contextMenu):
      (WebInspector.DefaultTextEditor.prototype.selection):
      (WebInspector.DefaultTextEditor.prototype.lastSelection):
      (WebInspector.DefaultTextEditor.prototype.wasShown):
      (WebInspector.DefaultTextEditor.prototype.willHide):
      (WebInspector.TextEditorChunkedPanel.prototype.createNewChunk):
      (WebInspector.TextEditorMainPanel):
      (WebInspector.TextEditorMainPanel.prototype.wasShown):
      (WebInspector.TextEditorMainPanel.prototype.willHide):
      (WebInspector.TextEditorMainPanel.prototype.populateContextMenu):
      (WebInspector.TextEditorMainPanel.prototype.splitChunkOnALine):
      (WebInspector.TextEditorMainPanel.prototype.expandChunks):
      (WebInspector.TextEditorMainPanel.prototype._paintLineChunks):
      (WebInspector.TextEditorMainPanel.prototype.selection):
      (WebInspector.TextEditorMainPanel.prototype.lastSelection):
      (WebInspector.TextEditorMainPanel.prototype._applyDomUpdates):
      (WebInspector.TextEditorMainPanel.prototype._handleSelectionChange):
      (WebInspector.TextEditorMainPanel.prototype._handleTextInput):
      (WebInspector.TextEditorMainPanel.prototype.handleKeyDown):
      (WebInspector.TextEditorMainPanel.prototype._handleCut):
      
      LayoutTests: Web Inspector: refactor DefaultTextEditor
      https://bugs.webkit.org/show_bug.cgi?id=105829
      
      Patch by Andrey Lushnikov <lushnikov@chromium.com> on 2012-12-29
      Reviewed by Pavel Feldman.
      
      Fix test to correlate with refactoring of DefaultTextEditor.
      
      * inspector/editor/text-editor-selection.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138560 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      55fa4419
    • zandobersek@gmail.com's avatar
      [webkitpy] Omit webkitpy/thirdparty/BeautifulSoup.py from code coverage checking · dc4470f8
      zandobersek@gmail.com authored
      https://bugs.webkit.org/show_bug.cgi?id=105835
      
      Reviewed by Dirk Pranke.
      
      The BeautifulSoup module is a third-party import and as such we don't have much control
      over its testing. Because of that it should be omitted from code coverage checking.
      
      * Scripts/webkitpy/test/main.py:
      (Tester._run_tests):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138559 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dc4470f8
  3. 28 Dec, 2012 16 commits
    • commit-queue@webkit.org's avatar
      REGRESSION: r138555 asserts on Linux EFL/Qt debug builds · cb06479b
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=105848
      
      Unreviewed test fix.
      
      Patch by No'am Rosenthal <noam@webkit.org> on 2012-12-28
      
      * platform/graphics/texmap/TextureMapperShaderManager.cpp:
          Added parameter name to noop shader.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138558 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cb06479b
    • ryuan.choi@samsung.com's avatar
      [EFL][WK2] MiniBrowser could not be launched on specific machine · e4a6ae2d
      ryuan.choi@samsung.com authored
      https://bugs.webkit.org/show_bug.cgi?id=105844
      
      Reviewed by Gyuyoung Kim.
      
      * UIProcess/Launcher/efl/ProcessLauncherEfl.cpp:
      (WebKit::ProcessLauncher::launchProcess):
      Modified to avoid bad use of temporary object.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138557 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e4a6ae2d
    • commit-queue@webkit.org's avatar
      [Texmap] Use a transform uniform instead of u_flip/u_textureSize · f6a74a0a
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=105809
      
      Patch by No'am Rosenthal <noam@webkit.org> on 2012-12-28
      Reviewed by Martin Robinson.
      
      In order to support tiled-patterns, we'd have to apply texture-space transformations in the
      vertex shader.
      This patch cleans up the current texture-space transformations, and uses
      single matrix uniform instead of the current uniforms.
      
      No new tests, refactor only.
      
      * platform/graphics/texmap/TextureMapperGL.cpp:
      (WebCore::TextureMapperGL::drawTexturedQuadWithProgram):
      * platform/graphics/texmap/TextureMapperShaderManager.cpp:
      (WebCore):
      * platform/graphics/texmap/TextureMapperShaderManager.h:
      (TextureMapperShaderProgram):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138556 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f6a74a0a
    • commit-queue@webkit.org's avatar
      [Texmap] Edge antialiasing in TextureMapper could be done with less per-pixel calls · b10133be
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=105377
      
      Patch by No'am Rosenthal <noam@webkit.org> on 2012-12-28
      Reviewed by Kenneth Rohde Christiansen.
      
      Instead of passing 8 quad edge coefficients as uniforms and analyze the distance in the
      fragment shader, we render the antialiased quad as 4 edge triangles, which originate in the
      center of the quad.
      
      The vertex shader expands the quad based on the screen transform, and applies a value to each vertex to be interpolated by the GPU.
      
      It is very difficult to test performance gain; However, the following is apparent:
      - The matrix multiplications and inversions done before in the quad inflation code were
        always visible in instruments/valgrind and they are now gone.
      - We now perform a single smoothstep() command per pixel instead of 8 clamp(dot()) commands.
      - It should now be possible to antialias individual edges.
      
      Covered by existing tests.
      
      * platform/graphics/texmap/TextureMapperGL.cpp:
      (WebCore::TextureMapperGLData::getStaticVBO):
          Cache the unit-rect and edge-triangle vertex data in a VBO.
      
      (WebCore::TextureMapperGLData::~TextureMapperGLData):
          Clear the cached VBOs upon destruction.
      
      (WebCore::TextureMapperGL::drawBorder):
      (WebCore::TextureMapperGL::drawTexture):
          Removed call to useProgram, since it's already called in drawTexturedQuadWithProgram.
      
      (WebCore::TextureMapperGL::drawTexturedQuadWithProgram):
      (WebCore::TextureMapperGL::drawSolidColor):
          Use the new signature "draw" instead of "drawQuad".
      
      (WebCore::TextureMapperGL::drawEdgeTriangles):
      (WebCore::TextureMapperGL::drawUnitRect):
      (WebCore::TextureMapperGL::draw):
          Removed DrawQuad, instead draw either a unit rect or edge triangles.
      
      (WebCore::TextureMapperGL::beginClip):
          Use the new setMatrix function.
      
      * platform/graphics/texmap/TextureMapperGL.h:
          Added a paint flag for antialiasing.
      
      * platform/graphics/texmap/TextureMapperShaderManager.cpp:
      (WebCore::TextureMapperShaderProgram::setMatrix):
          Since we now set the matrix in multiple locations, added a convenience
          function for matrix uniform.
      
      (WebCore::getShaderSpec):
          Update the vertex and fragment shader to account for the new antialiasing
          mechanism.
      * platform/graphics/texmap/TextureMapperShaderManager.h:
      (TextureMapperShaderProgram):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138555 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b10133be
    • joone.hur@intel.com's avatar
      [EFL][WK2] Implement ewk_context_resource_cache_clear · f1dd30a1
      joone.hur@intel.com authored
      https://bugs.webkit.org/show_bug.cgi?id=104782
      
      The purpose of this API is to clear HTTP caches in local storage and
      all resources cached in memory such as images, CSS, JavaScript, XSL,
      and fonts.
      
      Reviewed by Kenneth Rohde Christiansen.
      
      * UIProcess/API/efl/ewk_context.cpp:
      (EwkContext::clearResourceCache): Call WebResourceCacheManager::ClearCacheForAllOrigins.
      (ewk_context_resource_cache_clear):
      * UIProcess/API/efl/ewk_context.h: Add ewk_context_resource_cache_clear.
      * UIProcess/API/efl/ewk_context_private.h:
      (EwkContext):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138554 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f1dd30a1
    • mrowe@apple.com's avatar
      Move logic for extracting the OS X marketing version in to WebCore · e553ba2a
      mrowe@apple.com authored
      <http://webkit.org/b/105841> / <rdar://problem/10736041>
      
      Reviewed by Dan Bernstein.
      
      Source/WebCore:
      
      The logic for extracting the OS X markerting version is moved in to systemMarketingVersion
      from WebKitSystemInterface (post-10.8) and WebKit (pre-10.8).
      
      * WebCore.exp.in: Export systemMarketingVersion and remove the old WKSI symbol.
      * WebCore.xcodeproj/project.pbxproj: Add the new files.
      * platform/mac/SystemVersionMac.h: Added.
      * platform/mac/SystemVersionMac.mm: Added.
      (WebCore::createSystemMarketingVersion): Read the marketing version out of SystemVersion.plist
      (WebCore::callGestalt):
      (WebCore::createSystemMarketingVersion): Build the marketing version by piecing together the results
      of calls to Gestalt.
      (WebCore::systemMarketingVersion): Return the cached string.
      * platform/mac/WebCoreSystemInterface.h: Remove the old WKSI symbol.
      * platform/mac/WebCoreSystemInterface.mm: Ditto.
      
      Source/WebKit/mac:
      
      * WebCoreSupport/WebSystemInterface.mm:
      (InitWebCoreSystemInterface): Remove the code related to the WKSI symbol.
      * WebView/WebView.mm:
      (systemMarketingVersionForUserAgentString): Call the WebCore function instead of the WKSI function.
      (+[WebView _standardUserAgentWithApplicationName:]): Retain the result now that our helper doesn't
      do that for us.
      
      Source/WebKit2:
      
      * UIProcess/mac/WebPageProxyMac.mm:
      (WebKit::systemMarketingVersionForUserAgentString): Call the WebCore function instead
      of the WKSI function.
      (WebKit::WebPageProxy::standardUserAgent):
      * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
      (InitWebCoreSystemInterface): Remove the code related to the WKSI symbol.
      
      WebKitLibraries:
      
      * WebKitSystemInterface.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138553 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e553ba2a
    • fsamuel@chromium.org's avatar
      Unreviewed rebaseline. · 1234e0da
      fsamuel@chromium.org authored
      * platform/chromium-win-xp/inspector/extensions/extensions-resources-expected.txt: Removed.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138552 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1234e0da
    • fsamuel@chromium.org's avatar
      Unreviewed updated test expectations · c2514278
      fsamuel@chromium.org authored
      * platform/chromium/TestExpectations:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138551 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c2514278
    • fsamuel@chromium.org's avatar
      Unreviewed updated TestExpectations. Mark test as fail on XP only. · 0fae5962
      fsamuel@chromium.org authored
      * platform/chromium/TestExpectations:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138550 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0fae5962
    • fsamuel@chromium.org's avatar
      [Templates]: Fix assert in colgroup parse handling · 7af3c582
      fsamuel@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=105837
      
      Patch by Rafael Weinstein <rafaelw@chromium.org> on 2012-12-28
      Reviewed by Eric Seidel.
      
      * html5lib/resources/template.dat:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138549 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7af3c582
    • fsamuel@chromium.org's avatar
      Roll Chromium DEPS to r174739 · ad01e021
      fsamuel@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=105813
      
      Unreviewed.
      
      
      * DEPS:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138548 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ad01e021
    • weinig@apple.com's avatar
      Fix assert seen when adding a custom protocol handler before an initial · 58c44576
      weinig@apple.com authored
      web process has been created.
      
      * UIProcess/WebContext.h:
      (WebKit::WebContext::sendToNetworkingProcess):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138547 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      58c44576
    • rafaelw@chromium.org's avatar
      [Templates]: Fix assert in colgroup parse handling · 6a85714f
      rafaelw@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=105837
      
      Reviewed by Eric Seidel.
      
      Source/WebCore:
      
      Tests added to html5lib.
      
      * html/parser/HTMLTreeBuilder.cpp:
      (WebCore::HTMLTreeBuilder::processEndTag):
      
      LayoutTests:
      
      * html5lib/resources/template.dat:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138546 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6a85714f
    • philn@webkit.org's avatar
      [GStreamer] GstMessage handler in AudioDestination · 3cf6fc62
      philn@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=105292
      
      Reviewed by Martin Robinson.
      
      Handle GStreamer warnings and errors coming from the playback
      pipeline. For now we only display warnings on the console.
      
      * platform/audio/gstreamer/AudioDestinationGStreamer.cpp:
      (WebCore::messageCallback):
      (WebCore):
      (WebCore::AudioDestinationGStreamer::AudioDestinationGStreamer):
      (WebCore::AudioDestinationGStreamer::finishBuildingPipelineAfterWavParserPadReady):
      (WebCore::AudioDestinationGStreamer::handleMessage):
      * platform/audio/gstreamer/AudioDestinationGStreamer.h:
      (AudioDestinationGStreamer):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138545 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3cf6fc62
    • mrobinson@webkit.org's avatar
      [GTK][WK2] Add support for IME Composition · feba23d4
      mrobinson@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=65093
      
      Reviewed by Carlos Garcia Campos.
      
      Source/WebCore:
      
      No new tests. The GtkInputMethodFilter is covered by unit tests in TestWebKitAPI.
      Doing functional tests for this behavior is much more complex.
      
      * platform/gtk/GtkInputMethodFilter.cpp:
      (WebCore::GtkInputMethodFilter::sendCompositionAndPreeditWithFakeKeyEvents): Now
      pass along whether or not an event was faked.
      * platform/gtk/GtkInputMethodFilter.h: Ditto.
      
      Source/WebKit/gtk:
      
      Update the method signatures for concrete WebKit1 implementation of
      the GtkInputMethodFilter.
      
      * WebCoreSupport/WebViewInputMethodFilter.cpp:
      (WebKit::WebViewInputMethodFilter::sendSimpleKeyEvent):
      (WebKit::WebViewInputMethodFilter::sendKeyEventWithCompositionResults):
      * WebCoreSupport/WebViewInputMethodFilter.h:
      (WebViewInputMethodFilter):
      
      Source/WebKit2:
      
      Add a WebKit2 implementation of the GtkInputMethodFilter and provide
      the necessary plumbing to pass composition information along with
      input method events.
      
      * GNUmakefile.list.am: Add new files to the source list.
      * Shared/EditorState.cpp: The cursorRect is now passed for GTK+ as well as
      Qt, so update the encode and decode methods to pass that along.
      * Shared/EditorState.h: Add the cursorRect member for GTK+ as well.
      * Shared/NativeWebKeyboardEvent.h:
      (NativeWebKeyboardEvent): Keyboard events should also have knowledge of
      the compositionResults and whether or not the event was faked for composition
      purposes.
      * Shared/gtk/NativeWebKeyboardEventGtk.cpp: Ditto.
      * Shared/gtk/WebEventFactory.cpp:
      (WebKit::WebEventFactory::createWebKeyboardEvent): Copy the logic of PlatformKeyEvent,
      for properly setting the windows key code and the event text from the composition
      results.
      * Shared/gtk/WebEventFactory.h: The createWebKeyboardEvent factory now takes a
      CompositionResults argument.
      * UIProcess/API/gtk/PageClientImpl.cpp:
      (WebKit::PageClientImpl::doneWithKeyEvent): Don't forward keyboard events that
      were faked for composition reasons. These events originated from WebKit and should
      never be passed to parent classes.
      (WebKit::PageClientImpl::updateTextInputState): Plumb through the updateTextInputState
      method to the WebViewBase.
      * UIProcess/API/gtk/PageClientImpl.h:
      (PageClientImpl): Add a updateTextInputState method.
      * UIProcess/API/gtk/WebKitWebViewBase.cpp:
      (_WebKitWebViewBasePrivate): Instead of having an input method context as a member
      keep a WebViewBaseInputMethodFilter.
      (webkitWebViewBaseRealize): Set the filter widget when the WebViewBase is realized.
      (webkit_web_view_base_init): No longer create a input method context during init.
      (webkitWebViewBaseFocusInEvent): Pass along focus in events to the filter.
      (webkitWebViewBaseFocusOutEvent): Pass along focus out events to the filter.
      (webkitWebViewBaseKeyPressEvent): Instead of passing key presses directly to the WebProcess,
      filter them through the input method filter.
      (webkitWebViewBaseKeyReleaseEvent): Ditto.
      (webkitWebViewBaseButtonPressEvent): Notify the input method filter about button press events.
      (webkitWebViewBaseGetIMContext): The input method filter owns the input method now.
      (webkitWebViewBaseSetInputMethodState): Add a bit of plumbing for the PageClient.
      (webkitWebViewBaseUpdateTextInputState): Ditto.
      * UIProcess/API/gtk/WebKitWebViewBasePrivate.h: Add plumbing declarations.
      * UIProcess/API/gtk/WebViewBaseInputMethodFilter.cpp: Added. An implementation of GtkInputMethodFilter for WebKit2.
      * UIProcess/API/gtk/WebViewBaseInputMethodFilter.h: Copied from Source/WebKit/gtk/WebCoreSupport/WebViewInputMethodFilter.h.
      * UIProcess/PageClient.h:
      (PageClient): updateInputMethod state is now for both Qt and GTK+.
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::editorStateChanged): Pass the editor state for GTK+ as well as Qt.
      (WebKit::WebPageProxy::setComposition): Moved this method from WebPageProxyQt as it's used for GTK+ now as well.
      (WebKit::WebPageProxy::confirmComposition): Ditto.
      (WebKit::WebPageProxy::cancelComposition): Ditto.
      * UIProcess/WebPageProxy.h:
      (WebPageProxy): The setInputMethodState message is for GTK+ as well as Qt now.
      * UIProcess/WebPageProxy.messages.in: Ditto.
      * UIProcess/gtk/WebPageProxyGtk.cpp:
      (WebKit::WebPageProxy::setInputMethodState): Ditto.
      * UIProcess/qt/WebPageProxyQt.cpp: Move some methods to the platform-independent file.
      * WebProcess/WebCoreSupport/gtk/WebEditorClientGtk.cpp: More closely match the WebKit1
      logic for dealing with key events so that composition events will be handled properly.
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::editorState): Properly pass the cursorRect for GTK+.
      (WebKit::targetFrameForEditing): Moved from the Qt file, because its used by GTK+ as well. They
      now pass along the updated EditorState as well, just like the Mac versions.
      (WebKit::WebPage::confirmComposition): Ditto.
      (WebKit::WebPage::setComposition): Ditto.
      (WebKit::WebPage::cancelComposition): Ditto.
      * WebProcess/WebPage/WebPage.h: The above messages are now for GTK+ as well as Qt.
      * WebProcess/WebPage/WebPage.messages.in: Ditto.
      * WebProcess/WebPage/qt/WebPageQt.cpp: Moved some methods to the platform-independent file.
      
      Tools:
      
      Update unit tests for GtkInputMethodFilter to note whether or not an event
      was a fake event synthesized for composition purposes. This is now used
      for WebKit2.
      
      * TestWebKitAPI/Tests/gtk/InputMethodFilter.cpp:
      (TestWebKitAPI::TestInputMethodFilter::sendSimpleKeyEvent):
      (TestWebKitAPI::TestInputMethodFilter::sendKeyEventWithCompositionResults):
      (TestWebKitAPI::TEST):
      * gtk/generate-gtkdoc:
      (get_webkit2_options): Skip new files in the WebKit2 source directory for documentation
      generation.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138544 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      feba23d4
    • eae@chromium.org's avatar
      REGRESSION (r138196): Regions with text-overflow: ellipsis; are being ellipsized unnecessarily · c491d96f
      eae@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=105600
      
      Source/WebCore: 
      
      Reviewed by Darin Adler.
              
      Pixel-snap lineBoxEdge before comparing with the block edge as
      the lineBox edge isn't guaranteed to be snapped to device pixels
      on all platforms.
      
      Test: fast/sub-pixel/ellipsis-table.html
      
      * rendering/RenderBlockLineLayout.cpp:
      (WebCore::RenderBlock::checkLinesForTextOverflow):
      
      LayoutTests: 
      
      Reviewed by Darin Adler.
              
      Add test for text-overflow: ellipsis inside a table. 
      
      * fast/sub-pixel/ellipsis-table-expected.html: Added.
      * fast/sub-pixel/ellipsis-table.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138543 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c491d96f