1. 20 Jan, 2011 39 commits
    • mnaganov@chromium.org's avatar
      2011-01-20 Mikhail Naganov <mnaganov@chromium.org> · 57fe9f7f
      mnaganov@chromium.org authored
              Reviewed by Pavel Feldman.
      
              Web Inspector: [Chromium] CPU Profiles are cleared when navigating back and forth.
      
              Profiles are now not cleared unless renderer instance was changed.
      
              https://bugs.webkit.org/show_bug.cgi?id=52807
      
              * inspector/InspectorController.cpp:
              (WebCore::InspectorController::restoreProfiler):
              * inspector/InspectorProfilerAgent.cpp:
              (WebCore::InspectorProfilerAgent::resetState):
              (WebCore::InspectorProfilerAgent::resetFrontendProfiles):
              * inspector/InspectorProfilerAgent.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76247 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      57fe9f7f
    • apavlov@chromium.org's avatar
      2011-01-20 Alexander Pavlov <apavlov@chromium.org> · 561c2269
      apavlov@chromium.org authored
              Unreviewed, add new JS file refs missing from r76116.
      
              * WebCore.gypi:
              * WebCore.vcproj/WebCore.vcproj:
              * inspector/front-end/WebKit.qrc:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76246 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      561c2269
    • apavlov@chromium.org's avatar
      2011-01-20 Alexander Pavlov <apavlov@chromium.org> · d41cebd0
      apavlov@chromium.org authored
              Reviewed by Pavel Feldman.
      
              Web Inspector: Crash when adding a rule for an ImageDocument
              https://bugs.webkit.org/show_bug.cgi?id=52811
      
              * inspector/InspectorCSSAgent.cpp:
              (WebCore::InspectorCSSAgent::addRule2):
              (WebCore::InspectorCSSAgent::viaInspectorStyleSheet):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76245 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d41cebd0
    • yurys@chromium.org's avatar
      2011-01-20 Yury Semikhatsky <yurys@chromium.org> · 51223959
      yurys@chromium.org authored
              Reviewed by Pavel Feldman.
      
              Make fast/events/window-onerror2.html throw exception in deterministic order
              https://bugs.webkit.org/show_bug.cgi?id=52813
      
              * fast/events/window-onerror2-expected.txt:
              * fast/events/window-onerror2.html: call setTimeout from onload handler to make sure exception
              in the onload handler will be processed before the one in the setTimeout callback
              * platform/chromium/fast/events/window-onerror2-expected.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76244 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      51223959
    • yi.4.shen@nokia.com's avatar
      2011-01-20 Yi Shen <yi.4.shen@nokia.com> · 64ea938b
      yi.4.shen@nokia.com authored
              Unreviewed. 
      
              Adding myself to committers.py.
      
              * Scripts/webkitpy/common/config/committers.py:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76243 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      64ea938b
    • philn@webkit.org's avatar
      2011-01-20 Philippe Normand <pnormand@igalia.com> · 25fcf7cf
      philn@webkit.org authored
              Unreviewed, new GTK svg test baselines as follow-up of r76236.
      
              * platform/gtk/svg/W3C-SVG-1.1-SE/pservers-pattern-04-f-expected.txt: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76242 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      25fcf7cf
    • philn@webkit.org's avatar
      2011-01-20 Philippe Normand <pnormand@igalia.com> · 3384be0c
      philn@webkit.org authored
              Unreviewed, update window-onerror2.html baselines as follow-up of r76216.
      
              * platform/gtk/fast/events/window-onerror2-expected.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76241 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3384be0c
    • loislo@chromium.org's avatar
      2011-01-20 Ilya Tikhonovsky <loislo@chromium.org> · a167d475
      loislo@chromium.org authored
              Reviewed by Pavel Feldman.
      
              Web Inspector: cleanup InspectorController's friends list.
              We have a plan to extract InspectorAgent from InspectorController.
              InspectorAgent will be accessible only from InspectorController.
              As result we can simply made some methods public and remove long
              friends list.
      
              https://bugs.webkit.org/show_bug.cgi?id=52806
      
              * inspector/InjectedScriptHost.cpp:
              (WebCore::InjectedScriptHost::databaseForId):
              (WebCore::InjectedScriptHost::selectDatabase):
              (WebCore::InjectedScriptHost::selectDOMStorage):
              (WebCore::InjectedScriptHost::inspectorDOMAgent):
              (WebCore::InjectedScriptHost::frontend):
              * inspector/InspectorBrowserDebuggerAgent.cpp:
              (WebCore::InspectorBrowserDebuggerAgent::setDOMBreakpoint):
              (WebCore::InspectorBrowserDebuggerAgent::removeDOMBreakpoint):
              (WebCore::InspectorBrowserDebuggerAgent::willInsertDOMNode):
              (WebCore::InspectorBrowserDebuggerAgent::willRemoveDOMNode):
              (WebCore::InspectorBrowserDebuggerAgent::willModifyDOMAttr):
              (WebCore::InspectorBrowserDebuggerAgent::descriptionForDOMEvent):
              (WebCore::InspectorBrowserDebuggerAgent::pauseOnNativeEventIfNeeded):
              (WebCore::InspectorBrowserDebuggerAgent::willSendXMLHttpRequest):
              * inspector/InspectorController.h:
              (WebCore::InspectorController::frontend):
              * inspector/InspectorInstrumentation.cpp:
              (WebCore::InspectorInstrumentation::willInsertDOMNodeImpl):
              (WebCore::InspectorInstrumentation::didInsertDOMNodeImpl):
              (WebCore::InspectorInstrumentation::willRemoveDOMNodeImpl):
              (WebCore::InspectorInstrumentation::didRemoveDOMNodeImpl):
              (WebCore::InspectorInstrumentation::willModifyDOMAttrImpl):
              (WebCore::InspectorInstrumentation::didModifyDOMAttrImpl):
              (WebCore::InspectorInstrumentation::characterDataModifiedImpl):
              (WebCore::InspectorInstrumentation::willSendXMLHttpRequestImpl):
              (WebCore::InspectorInstrumentation::didReceiveResourceResponseImpl):
              (WebCore::InspectorInstrumentation::didFailLoadingImpl):
              (WebCore::InspectorInstrumentation::resourceRetrievedByXMLHttpRequestImpl):
              (WebCore::InspectorInstrumentation::addStartProfilingMessageToConsoleImpl):
              (WebCore::InspectorInstrumentation::pauseOnNativeEventIfNeeded):
              (WebCore::InspectorInstrumentation::cancelPauseOnNativeEvent):
              (WebCore::InspectorInstrumentation::retrieveTimelineAgent):
              (WebCore::InspectorInstrumentation::retrieveResourceAgent):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76240 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a167d475
    • podivilov@chromium.org's avatar
      2011-01-19 Pavel Podivilov <podivilov@chromium.org> · 48a73855
      podivilov@chromium.org authored
              Reviewed by Yury Semikhatsky.
      
              Web Inspector: implement JavaScriptBreakpointsSidebarPane based on events from debugger model.
              https://bugs.webkit.org/show_bug.cgi?id=52723
      
              Extract all breakpoints-related presentation code from debugger model to JavaScriptBreakpointSidebarPane.
      
              * inspector/front-end/Breakpoint.js:
              (WebInspector.Breakpoint):
              (WebInspector.Breakpoint.prototype.get data):
              (WebInspector.Breakpoint.prototype.remove):
              * inspector/front-end/BreakpointsSidebarPane.js:
              (WebInspector.JavaScriptBreakpointsSidebarPane):
              (WebInspector.JavaScriptBreakpointsSidebarPane.prototype._breakpointAdded):
              (WebInspector.JavaScriptBreakpointsSidebarPane.prototype._breakpointRemoved):
              (WebInspector.JavaScriptBreakpointsSidebarPane.prototype._breakpointEnableChanged):
              (WebInspector.JavaScriptBreakpointsSidebarPane.prototype._breakpointItemCheckboxClicked):
              (WebInspector.JavaScriptBreakpointsSidebarPane.prototype._contextMenuEventFired):
              (WebInspector.JavaScriptBreakpointsSidebarPane.prototype._debuggerPaused):
              (WebInspector.JavaScriptBreakpointsSidebarPane.prototype._debuggerResumed):
              (WebInspector.JavaScriptBreakpointsSidebarPane.prototype._addListElement):
              (WebInspector.JavaScriptBreakpointsSidebarPane.prototype._removeListElement):
              (WebInspector.JavaScriptBreakpointsSidebarPane.prototype._projectChanged):
              (WebInspector.JavaScriptBreakpointsSidebarPane.prototype._compare):
              (WebInspector.JavaScriptBreakpointsSidebarPane.prototype._compareBreakpoints):
              (WebInspector.JavaScriptBreakpointsSidebarPane.prototype._setupBreakpointElement.didGetSourceLine):
              (WebInspector.JavaScriptBreakpointsSidebarPane.prototype._setupBreakpointElement):
              (WebInspector.JavaScriptBreakpointsSidebarPane.prototype._breakpointIdForDebuggerPausedEvent):
              (WebInspector.JavaScriptBreakpointsSidebarPane.prototype._setBreakpointEnabled):
              (WebInspector.JavaScriptBreakpointsSidebarPane.prototype._removeBreakpoint):
              (WebInspector.NativeBreakpointsSidebarPane):
              (WebInspector.XHRBreakpointsSidebarPane.prototype.addBreakpointItem):
              * inspector/front-end/DebuggerModel.js:
              (WebInspector.DebuggerModel.prototype.removeBreakpoint):
              (WebInspector.DebuggerModel.prototype.breakpointForId):
              (WebInspector.DebuggerModel.prototype._pausedScript):
              (WebInspector.DebuggerModel.prototype._resumedScript):
              * inspector/front-end/ScriptsPanel.js:
              (WebInspector.ScriptsPanel):
              * inspector/front-end/inspector.js:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76239 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      48a73855
    • philn@webkit.org's avatar
      2011-01-20 Philippe Normand <pnormand@igalia.com> · 6b50f1db
      philn@webkit.org authored
              Unreviewed, new GTK baselines for 2 new tests.
      
              * platform/gtk/fast/block/float/float-overflow-hidden-containing-block-width-expected.txt: Added.
              * platform/gtk/svg/css/text-gradient-shadow-expected.txt: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76238 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6b50f1db
    • yurys@chromium.org's avatar
      2011-01-20 Yury Semikhatsky <yurys@chromium.org> · 5ee99bfa
      yurys@chromium.org authored
              Unreviewed. Update Chromium test expectations.
      
              * platform/chromium-win/http/tests/security/aboutBlank/xss-DENIED-navigate-opener-document-write-expected.txt:
              * platform/chromium-win/http/tests/security/aboutBlank/xss-DENIED-navigate-opener-javascript-url-expected.txt:
              * platform/chromium-win/http/tests/security/xss-DENIED-frame-name-expected.txt:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76237 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5ee99bfa
    • krit@webkit.org's avatar
      2011-01-20 Dirk Schulze <krit@webkit.org> · 7d34db72
      krit@webkit.org authored
              Reviewed by Andreas Kling.
      
              SVG Pattern doesn't take the viewBox of a referenced Pattern
              https://bugs.webkit.org/show_bug.cgi?id=52804
              
              SVGPattern element didn't use the viewBox of another SVGPattern element, referenced
              by xlink:href. Modified PatternAttributes, to take the value of the viewBox of the
              SVGPattern element as well, if the attribute was set.
              This gets checked by a W3C SVG test case.        
      
              Test: svg/W3C-SVG-1.1-SE/pservers-pattern-04-f.svg
      
              * rendering/svg/RenderSVGResourcePattern.cpp:
              (WebCore::RenderSVGResourcePattern::buildTileImageTransform):
              * svg/PatternAttributes.h:
              (WebCore::PatternAttributes::PatternAttributes):
              (WebCore::PatternAttributes::viewBox):
              (WebCore::PatternAttributes::setViewBox):
              (WebCore::PatternAttributes::hasViewBox):
              * svg/SVGPatternElement.cpp:
              (WebCore::SVGPatternElement::collectPatternAttributes):
      2011-01-20  Dirk Schulze  <krit@webkit.org>
      
              Reviewed by Andreas Kling.
      
              SVG Pattern doesn't take the viewBox of a referenced Pattern
              https://bugs.webkit.org/show_bug.cgi?id=52804
              
              Added a test case of the W3C SVG test suite to check, if we take
              the viewBox of a referenced SVGPattern.
      
              * svg/W3C-SVG-1.1-SE/pservers-pattern-04-f.svg: Added.
              * platform/mac/svg/W3C-SVG-1.1-SE/pservers-pattern-04-f-expected.checksum
              * platform/mac/svg/W3C-SVG-1.1-SE/pservers-pattern-04-f-expected.png
              * platform/mac/svg/W3C-SVG-1.1-SE/pservers-pattern-04-f-expected.txt
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76236 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7d34db72
    • senorblanco@chromium.org's avatar
      2011-01-19 Stephen White <senorblanco@chromium.org> · 1b1b979f
      senorblanco@chromium.org authored
              [Re-land of r76159 with a compile fix for the Chromium linux shlib
              build.]
      
              Reviewed by James Robinson.
      
              Implement accelerated path drawing and clipping for the Canvas2D GPU
              path.
              https://bugs.webkit.org/show_bug.cgi?id=52627
              
              This is done with a simple curve interpolator and the GLU tesselator,
              which is good enough for a 3-5X speedup on
              http://ie.microsoft.com/testdrive/Performance/Galactic/Default.html.
      
              Covered by canvas/philip/2d.path.clip.basic.html, and many, many more.
              All tests canvas/philip and fast/canvas paths pass with no
              regressions, although two have minor pixel differences which require
              rebaselining.
      
              * WebCore.gyp/WebCore.gyp:
              Add internal_glu include path to chromium build.
              * WebCore.gypi:
              Add internal_glu files to chromium build.
              * html/canvas/CanvasRenderingContext2D.cpp:
              (WebCore::CanvasRenderingContext2D::reset):
              (WebCore::CanvasRenderingContext2D::platformLayer):
              Make CanvasRenderingContext2D more robust against failure to create
              a DrawingBuffer.
              * platform/graphics/chromium/DrawingBufferChromium.cpp:
              (WebCore::DrawingBuffer::DrawingBuffer):
              As in DrawingBufferMac.cpp, call reset() from the constructor.
              Also initialize size to (-1, -1), so reset() doesn't early-out.
              Add initializers for depthBuffer and stencilBuffer, and remove
              multisampleDepthStencilBuffer.
              * platform/graphics/chromium/GLES2Canvas.cpp:
              Remove some unused #includes.
              (WebCore::GLES2Canvas::State::State):
              Add clipping state, and implement save/restore via the copy constructor.
              (WebCore::operator*):
              (WebCore::Quadratic::Quadratic):
              (WebCore::Quadratic::fromBezier):
              (WebCore::Quadratic::evaluate):
              Quadratic Bezier curve class.
              (WebCore::Cubic::Cubic):
              (WebCore::Cubic::fromBezier):
              (WebCore::Cubic::evaluate):
              Cubic Bezier curve class.
              (WebCore::GLES2Canvas::clearRect):
              Add clipping support to clearRect().
              (WebCore::GLES2Canvas::fillPath):
              Implement fillPath().
              (WebCore::GLES2Canvas::fillRect):
              Add clipping support to fillRect().
              (WebCore::GLES2Canvas::clipPath):
              Implement clipPath().
              (WebCore::GLES2Canvas::clipOut):
              Stub out clipOut() (not called by Canvas 2D).
              (WebCore::GLES2Canvas::restore):
              When restoring, draw any remaining clipping paths to the stencil buffer.
              (WebCore::GLES2Canvas::drawTexturedRect):
              Add clipping support.
              (WebCore::interpolateQuadratic):
              (WebCore::interpolateCubic):
              Simple curve interpolation, using the Cubic and Quadratic classes.
              (WebCore::PolygonData::PolygonData):
              A struct to hold the tesselation data for callbacks.
              (WebCore::beginData):
              (WebCore::edgeFlagData):
              (WebCore::vertexData):
              (WebCore::endData):
              (WebCore::combineData):
              internal_glu tesselation callbacks.
              (WebCore::GLES2Canvas::createVertexBufferFromPath):
              Build an interpolated, tesselated vertex buffer and element array buffer from a given path, suitable for filling.
              (WebCore::GLES2Canvas::beginStencilDraw):
              Enable stencilling, and disable draws to the color buffer.
              (WebCore::GLES2Canvas::applyClipping):
              If clipping is enabled, set the appropriate GL state.
              * platform/graphics/chromium/GLES2Canvas.h:
              Document the flavours of drawTexturedRect() a bit, so I don't get confused.
              * platform/graphics/gpu/DrawingBuffer.cpp:
              (WebCore::DrawingBuffer::clear):
              (WebCore::DrawingBuffer::createSecondaryBuffers):
              (WebCore::DrawingBuffer::resizeDepthStencil):
              (WebCore::DrawingBuffer::reset):
              * platform/graphics/gpu/DrawingBuffer.h:
              Unify m_multisampleDepthStencilBuffer with m_depthStencilBuffer. 
              Implement separate depth and stencil buffers for when
              OES_packed_depth_stencil is not available.  Refactor creation of
              multisampled and non-multisampled depth and stencil buffers into
              resizeDepthStencil().
              * platform/graphics/gpu/SharedGraphicsContext3D.cpp:
              (WebCore::SharedGraphicsContext3D::create):
              Turn on stencil, turn off depth, turn off antialiasing (for now).
              (WebCore::SharedGraphicsContext3D::enableStencil):
              * platform/graphics/gpu/SharedGraphicsContext3D.h:
              Implement stencil enable/disable.
              * platform/graphics/gpu/mac/DrawingBufferMac.mm:
              (WebCore::DrawingBuffer::DrawingBuffer):
              Remove m_multisampleDepthStencilBuffer.  Set the size to (-1, -1)
              on creation, so reset() doesn't early-out.  Initialize m_depthBuffer
              and m_stencilBuffer.
              * platform/graphics/skia/GraphicsContextSkia.cpp:
              (WebCore::GraphicsContext::canvasClip):
              (WebCore::GraphicsContext::clipOut):
              (WebCore::GraphicsContext::clipPath):
              (WebCore::GraphicsContext::fillPath):
              Put in GPU hooks for path clipping, and path drawing.
              * platform/graphics/skia/PlatformContextSkia.cpp:
              (WebCore::PlatformContextSkia::canAccelerate):
              Don't check for clipping paths in canAccelerate() (since we can
              now accelerate them).
              (WebCore::PlatformContextSkia::uploadSoftwareToHardware):
              Don't do clipping when uploading software draws to hardware.
              * thirdparty/glu/README.webkit:
              * thirdparty/glu/gluos.h:
              #undef MIN and MAX, to fix warnings-as-errors in Chrome/Mac build.
              * thirdparty/glu/libtess/geom.c:
              * thirdparty/glu/libtess/priorityq.c:
              * thirdparty/glu/libtess/render.c:
              Use do{}while(0) instead of if(1)else construct in macro.
              * thirdparty/glu/libtess/sweep.c:
              (IsWindingInside):
              (DoneEdgeDict):
              Fix some warnings treated as errors for the Linux Release build.
      
      2011-01-19  Stephen White  <senorblanco@chromium.org>
      
              Reviewed by James Robinson. 
              
              Add two to-be-rebaselined tests for the GPU path. 
              
              * platform/chromium-gpu/test_expectations.txt: 
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76235 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1b1b979f
    • pfeldman@chromium.org's avatar
      2011-01-20 Pavel Feldman <pfeldman@chromium.org> · c5b4f94c
      pfeldman@chromium.org authored
              Not reviewed: rebaselined inspector tests.
      
              * http/tests/inspector/console-xhr-logging.html:
              * inspector/report-API-errors-expected.txt:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76234 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c5b4f94c
    • pfeldman@chromium.org's avatar
      2011-01-20 Pavel Feldman <pfeldman@chromium.org> · 475014dc
      pfeldman@chromium.org authored
              Web Inspector: move releaseObjectGroup to the new Runtime agent.
              https://bugs.webkit.org/show_bug.cgi?id=52803
              (accedentally landed as r76231)
      
              * inspector/InspectorContorller.h:
              * inspector/InspectorContorller.cpp:
              * inspector/InspectorRuntimeAgent.h:
              * inspector/InspectorRuntimeAgent.cpp:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76233 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      475014dc
    • pfeldman@chromium.org's avatar
      2011-01-20 Pavel Feldman <pfeldman@chromium.org> · 606606e4
      pfeldman@chromium.org authored
              Not reviewed: build fix.
      
              * inspector/InspectorState.h:
              (WebCore::InspectorState::setBoolean):
              (WebCore::InspectorState::setString):
              (WebCore::InspectorState::setLong):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76232 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      606606e4
    • pfeldman@chromium.org's avatar
      2011-01-20 Pavel Feldman <pfeldman@chromium.org> · 00355ae7
      pfeldman@chromium.org authored
              Not reviewed: build fix.
      
              * inspector/InspectorState.h:
              (WebCore::InspectorState::setBoolean):
              (WebCore::InspectorState::setString):
              (WebCore::InspectorState::setLong):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76231 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      00355ae7
    • pfeldman@chromium.org's avatar
      2011-01-20 Pavel Feldman <pfeldman@chromium.org> · 631b2ce6
      pfeldman@chromium.org authored
              Reviewed by Yury Semikhatsky.
      
              Web Inspector: further simplify InspectorState.
              https://bugs.webkit.org/show_bug.cgi?id=52731
      
              This change moves XHR logging flag into console agent,
              removes InspectorState pushing to the front-end.
      
              * inspector/Inspector.idl:
              * inspector/InspectorConsoleAgent.cpp:
              (WebCore::InspectorConsoleAgent::InspectorConsoleAgent):
              (WebCore::InspectorConsoleAgent::resourceRetrievedByXMLHttpRequest):
              (WebCore::InspectorConsoleAgent::setMonitoringXHREnabled):
              (WebCore::InspectorConsoleAgent::setConsoleMessagesEnabled):
              (WebCore::InspectorConsoleAgent::addConsoleMessage):
              * inspector/InspectorConsoleAgent.h:
              * inspector/InspectorController.cpp:
              (WebCore::InspectorController::InspectorController):
              * inspector/InspectorController.h:
              (WebCore::InspectorController::state):
              (WebCore::InspectorController::settings):
              * inspector/InspectorState.cpp:
              (WebCore::InspectorState::InspectorState):
              (WebCore::InspectorState::registerBoolean):
              (WebCore::InspectorState::registerString):
              (WebCore::InspectorState::registerLong):
              (WebCore::InspectorState::registerObject):
              (WebCore::InspectorState::Property::create):
              * inspector/InspectorState.h:
              * inspector/front-end/ConsoleView.js:
              (WebInspector.ConsoleView.prototype._registerConsoleDomainDispatcher.dispatcher.consoleMessagesCleared):
              (WebInspector.ConsoleView.prototype._registerConsoleDomainDispatcher.dispatcher.monitoringXHRStateChanged):
              (WebInspector.ConsoleView.prototype._registerConsoleDomainDispatcher):
              (WebInspector.ConsoleView.prototype._handleContextMenuEvent):
              * inspector/front-end/inspector.js:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76230 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      631b2ce6
    • ossy@webkit.org's avatar
      Unreviewed buildfix. · 343ce767
      ossy@webkit.org authored
      [Qt][V8] Remove unnecessary files after r76224.
      
      * WebCore.pro:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76229 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      343ce767
    • jorlow@chromium.org's avatar
      2011-01-20 Jeremy Orlow <jorlow@chromium.org> · ecde3d15
      jorlow@chromium.org authored
              [Chromium] Update baselines and add exception.
      
              * platform/chromium-mac/fast/dom/wrapper-classes-expected.txt:
              * platform/chromium-mac/http/tests/security/aboutBlank/xss-DENIED-navigate-opener-document-write-expected.txt:
              * platform/chromium-mac/http/tests/security/aboutBlank/xss-DENIED-navigate-opener-javascript-url-expected.txt:
              * platform/chromium-mac/http/tests/security/xss-DENIED-frame-name-expected.txt:
              * platform/chromium-win/fast/dom/wrapper-classes-expected.txt:
              * platform/chromium-win/http/tests/security/aboutBlank/xss-DENIED-navigate-opener-document-write-expected.txt:
              * platform/chromium-win/http/tests/security/aboutBlank/xss-DENIED-navigate-opener-javascript-url-expected.txt:
              * platform/chromium-win/http/tests/security/xss-DENIED-frame-name-expected.txt:
              * platform/chromium/test_expectations.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76228 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ecde3d15
    • loislo@chromium.org's avatar
      2011-01-20 Ilya Tikhonovsky <loislo@chromium.org> · f2d264d4
      loislo@chromium.org authored
              Reviewed by Yury Semikhatsky.
      
              Web Inspector: prepare for extracting InspectorAgent from InspectorController.
              https://bugs.webkit.org/show_bug.cgi?id=52797
      
              * inspector/CodeGeneratorInspector.pm:
              * inspector/InspectorController.h:
              (WebCore::InspectorController::inspectorAgent):
              (WebCore::InspectorController::cssAgent):
              (WebCore::InspectorController::injectedScriptAgent):
              (WebCore::InspectorController::resourceAgent):
              (WebCore::InspectorController::runtimeAgent):
              (WebCore::InspectorController::timelineAgent):
              (WebCore::InspectorController::databaseAgent):
              (WebCore::InspectorController::domStorageAgent):
              (WebCore::InspectorController::fileSystemAgent):
              (WebCore::InspectorController::browserDebuggerAgent):
              (WebCore::InspectorController::debuggerAgent):
              (WebCore::InspectorController::profilerAgent):
              (WebCore::InspectorController::applicationCacheAgent):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76227 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f2d264d4
    • jorlow@chromium.org's avatar
      2011-01-20 Sheriff Bot <webkit.review.bot@gmail.com> · 6230e750
      jorlow@chromium.org authored
              Unreviewed, rolling out r76215.
              http://trac.webkit.org/changeset/76215
              https://bugs.webkit.org/show_bug.cgi?id=52799
      
              Caused regressions in Chromium; morrita is going to look at it
              tomrorow (Requested by jorlow on #webkit).
      
              * editing/inserting/insert-composition-whitespace-expected.txt: Removed.
              * editing/inserting/insert-composition-whitespace.html: Removed.
      2011-01-20  Sheriff Bot  <webkit.review.bot@gmail.com>
      
              Unreviewed, rolling out r76215.
              http://trac.webkit.org/changeset/76215
              https://bugs.webkit.org/show_bug.cgi?id=52799
      
              Caused regressions in Chromium; morrita is going to look at it
              tomrorow (Requested by jorlow on #webkit).
      
              * dom/TextEvent.h:
              * dom/TextEventInputType.h:
              * editing/CompositeEditCommand.cpp:
              (WebCore::CompositeEditCommand::rebalanceWhitespaceAt):
              * editing/CompositeEditCommand.h:
              * editing/Editor.cpp:
              (WebCore::Editor::insertTextWithoutSendingTextEvent):
              (WebCore::Editor::confirmComposition):
              (WebCore::Editor::setComposition):
              * editing/Editor.h:
              * editing/InsertTextCommand.cpp:
              (WebCore::InsertTextCommand::input):
              * editing/InsertTextCommand.h:
              * editing/TypingCommand.cpp:
              (WebCore::TypingCommand::TypingCommand):
              (WebCore::TypingCommand::insertText):
              (WebCore::TypingCommand::insertTextRunWithoutNewlines):
              * editing/TypingCommand.h:
              (WebCore::TypingCommand::create):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76226 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6230e750
    • podivilov@chromium.org's avatar
      2011-01-19 Pavel Podivilov <podivilov@chromium.org> · 4c0a1953
      podivilov@chromium.org authored
              Reviewed by Eric Seidel.
      
              Web Inspector: enable debugger-pause-on-breakpoint test (fixed by r76129).
              https://bugs.webkit.org/show_bug.cgi?id=45291
      
              * http/tests/inspector/debugger-test2.js:
              (initialize_DebuggerTest.InspectorTest.setBreakpointInVisibleView):
              * inspector/debugger-breakpoints-not-activated-on-reload.html:
              * inspector/debugger-pause-on-breakpoint.html:
              * platform/gtk/Skipped:
              * platform/mac-leopard/Skipped:
              * platform/win/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76225 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4c0a1953
    • yurys@chromium.org's avatar
      2010-12-14 Yury Semikhatsky <yurys@chromium.org> · 96e9b6ad
      yurys@chromium.org authored
              Reviewed by Adam Barth.
      
              [V8] Get rid of delayed exception reporting in V8ConsoleMessage.cpp
              https://bugs.webkit.org/show_bug.cgi?id=51044
      
              * WebCore.gypi:
              * bindings/v8/V8ConsoleMessage.cpp: Removed.
              * bindings/v8/V8ConsoleMessage.h: Removed.
              * bindings/v8/V8DOMWindowShell.cpp:
              (WebCore::v8UncaughtExceptionHandler):
              (WebCore::reportUnsafeJavaScriptAccess):
              (WebCore::V8DOMWindowShell::initContextIfNeeded):
              * bindings/v8/V8Proxy.cpp:
              (WebCore::addMessageToConsole):
              (WebCore::logInfo):
              (WebCore::V8Proxy::reportUnsafeAccessTo):
              (WebCore::V8Proxy::runScript):
              (WebCore::V8Proxy::callFunction):
              (WebCore::V8Proxy::newInstance):
              * bindings/v8/V8Proxy.h:
              * bindings/v8/WorkerContextExecutionProxy.cpp:
              * bindings/v8/specialization/V8BindingState.cpp:
              (WebCore::::immediatelyReportUnsafeAccessTo):
      2010-12-14  Yury Semikhatsky  <yurys@chromium.org>
      
              Reviewed by Adam Barth.
      
              [V8] Get rid of delayed exception reporting in V8ConsoleMessage.cpp
              https://bugs.webkit.org/show_bug.cgi?id=51044
      
              * src/ChromeClientImpl.cpp:
              (WebKit::ChromeClientImpl::runJavaScriptAlert):
              * src/WebScriptController.cpp:
              (WebKit::WebScriptController::flushConsoleMessages):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76224 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      96e9b6ad
    • philn@webkit.org's avatar
      2011-01-20 Philippe Normand <pnormand@igalia.com> · ce2781ce
      philn@webkit.org authored
              Skip failing tests due to missing trailing white space
              https://bugs.webkit.org/show_bug.cgi?id=52798
      
              * platform/gtk/Skipped: Skip 5 http/tests/security tests.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76223 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ce2781ce
    • abarth@webkit.org's avatar
      2011-01-20 Adam Barth <abarth@webkit.org> · 08e888e3
      abarth@webkit.org authored
              Reviewed by Tony Chang.
      
              Chromium builders don't delete unversioned directories when DEPS change
              https://bugs.webkit.org/show_bug.cgi?id=52745
      
              If we pass this option to gclient sync, gclient will delete directories
              that are no longer part of DEPS instead of leaving them around to
              confuse us later.  Apparently, the downstream buildbots use this option
              already.
      
              * Scripts/update-webkit-chromium:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76222 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      08e888e3
    • morrita@google.com's avatar
      2011-01-19 MORITA Hajime <morrita@google.com> · bd24cfcc
      morrita@google.com authored
              Reviewed by Eric Seidel.
      
              ShadowElement::m_shadowParent should be removed
              https://bugs.webkit.org/show_bug.cgi?id=52558
      
              No new tests. No behavioral change.
      
              * rendering/ShadowElement.h:
              (WebCore::ShadowElement::ShadowElement):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76221 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bd24cfcc
    • mrobinson@webkit.org's avatar
      2011-01-20 Martin Robinson <mrobinson@igalia.com> · 27ca1d79
      mrobinson@webkit.org authored
              Skip a test which requires the textInputController, which
              the GTK+ DRT does not have.
      
              * platform/gtk/Skipped: Skip new test.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76220 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      27ca1d79
    • commit-queue@webkit.org's avatar
      2011-01-20 Sheriff Bot <webkit.review.bot@gmail.com> · a308ebf5
      commit-queue@webkit.org authored
              Unreviewed, rolling out r76172.
              http://trac.webkit.org/changeset/76172
              https://bugs.webkit.org/show_bug.cgi?id=52792
      
              This test still fails on the 32-bit GTK+ debug bot. (Requested
              by mrobinson on #webkit).
      
              * platform/gtk/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76219 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a308ebf5
    • morrita@google.com's avatar
      2011-01-20 MORITA Hajime <morrita@google.com> · d2996d21
      morrita@google.com authored
              Unreviewed, added a skip list entry
      
              * platform/qt/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76218 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d2996d21
    • hans@chromium.org's avatar
      2011-01-20 Hans Wennborg <hans@chromium.org> · 60e43f0b
      hans@chromium.org authored
              Reviewed by Jeremy Orlow.
      
              IndexedDB: IDBObjectStore.get should fire onsuccess rather than onerror
              https://bugs.webkit.org/show_bug.cgi?id=52725
      
              Update layout tests to expect the onsuccess handler to be fired
              when looking up non-existing objects.
      
              * storage/indexeddb/create-and-remove-object-store-expected.txt:
              * storage/indexeddb/create-and-remove-object-store.html:
              * storage/indexeddb/cursor-delete-expected.txt:
              * storage/indexeddb/cursor-delete.html:
              * storage/indexeddb/objectstore-removeobjectstore-expected.txt:
              * storage/indexeddb/objectstore-removeobjectstore.html:
      2011-01-20  Hans Wennborg  <hans@chromium.org>
      
              Reviewed by Jeremy Orlow.
      
              IndexedDB: IDBObjectStore.get should fire onsuccess rather than onerror
              https://bugs.webkit.org/show_bug.cgi?id=52725
      
              Let IDBObjectStore.get() fire the onsuccess handler with the value
              'undefined' for when an object does not exist in the store.
      
              Update SerializedScriptValue to provide such an undefined value.
      
              * bindings/v8/SerializedScriptValue.cpp:
              (WebCore::SerializedScriptValue::nullValue):
              (WebCore::SerializedScriptValue::undefinedValue):
              * bindings/v8/SerializedScriptValue.h:
              * storage/IDBObjectStoreBackendImpl.cpp:
              (WebCore::IDBObjectStoreBackendImpl::getInternal):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76217 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      60e43f0b
    • yurys@chromium.org's avatar
      2010-12-27 yury semikhatsky <yurys@chromium.org> · c8a06eb9
      yurys@chromium.org authored
              reviewed by pavel feldman.
      
              webcore doesn't fire window.onerror event when uncaught javascript exceptions are thrown
              https://bugs.webkit.org/show_bug.cgi?id=8519
      
              uncaught exceptions are propagated to window.onerror hander if one is present.
              the handler is expected to be a function accepting three arguments: error message,
              resource url and line number where the exception occured.
      
              it was decided to dispatch errorevent to all listeners/handlers no matter if they
              were created in the same isolated world where the exception occured or not.
      
              tests: fast/events/window-onerror1.html
                     fast/events/window-onerror10.html
                     fast/events/window-onerror11.html
                     fast/events/window-onerror12.html
                     fast/events/window-onerror2.html
                     fast/events/window-onerror3.html
                     fast/events/window-onerror4.html
                     fast/events/window-onerror5.html
                     fast/events/window-onerror6.html
                     fast/events/window-onerror7.html
                     fast/events/window-onerror8.html
                     fast/events/window-onerror9.html
                     http/tests/security/window-onerror-exception-in-iframe.html
                     userscripts/window-onerror-for-isolated-world-1.html
                     userscripts/window-onerror-for-isolated-world-2.html
      
              * android.jscbindings.mk:
              * cmakelists.txt:
              * gnumakefile.am:
              * webcore.gypi:
              * webcore.order:
              * webcore.pro:
              * webcore.vcproj/webcore.vcproj:
              * webcore.xcodeproj/project.pbxproj:
              * bindings/js/jsbindingsallinone.cpp:
              * bindings/js/jsdombinding.cpp:
              (webcore::reportexception):
              * bindings/js/jserrorhandler.cpp: renamed from webcore/bindings/js/jsworkercontexterrorhandler.cpp.
              (webcore::jserrorhandler::jserrorhandler):
              (webcore::jserrorhandler::~jserrorhandler):
              (webcore::jserrorhandler::handleevent):
              * bindings/js/jserrorhandler.h: copied from webcore/bindings/js/jsworkercontexterrorhandler.h.
              (webcore::jserrorhandler::create):
              (webcore::createjserrorhandler):
              * bindings/js/jseventlistener.h:
              * bindings/scripts/codegeneratorjs.pm:
              * bindings/scripts/codegeneratorv8.pm:
              * bindings/v8/v8consolemessage.cpp:
              (webcore::v8consolemessage::dispatchnow):
              (webcore::v8consolemessage::handler): the method was changed to use generic webcore exception
              reporting mechanism which is also used by jsc bindings.
              * bindings/v8/v8consolemessage.h:
              * bindings/v8/v8eventlistener.h:
              * bindings/v8/v8windowerrorhandler.cpp: renamed from webcore/bindings/js/jsworkercontexterrorhandler.h.
              (webcore::v8windowerrorhandler::v8windowerrorhandler):
              (webcore::v8windowerrorhandler::calllistenerfunction):
              * bindings/v8/v8windowerrorhandler.h: copied from webcore/dom/errorevent.cpp.
              (webcore::v8windowerrorhandler::create):
              * bindings/v8/workercontextexecutionproxy.cpp:
              (webcore::v8messagehandler):
              * bindings/v8/workerscriptcontroller.cpp:
              (webcore::workerscriptcontroller::evaluate):
              * dom/document.cpp:
              (webcore::document::erroreventtarget):
              (webcore::document::logexceptiontoconsole):
              (webcore::document::addmessage):
              * dom/document.h:
              * dom/errorevent.cpp:
              * dom/errorevent.h:
              * dom/event.cpp:
              (webcore::event::iserrorevent):
              * dom/event.h:
              * dom/scriptexecutioncontext.cpp:
              (webcore::scriptexecutioncontext::pendingexception::pendingexception):
              (webcore::scriptexecutioncontext::scriptexecutioncontext):
              (webcore::scriptexecutioncontext::reportexception): this method is not virtual anymore to
              ensure that error event dispatching algorithm is the same in workercontext and in document.
              (webcore::scriptexecutioncontext::dispatcherrorevent):
              * dom/scriptexecutioncontext.h:
              * websockets/websocket.cpp:
              (webcore::websocket::connect):
              * websockets/websocketchannel.cpp:
              (webcore::websocketchannel::didopen):
              (webcore::websocketchannel::didfail):
              (webcore::websocketchannel::appendtobuffer):
              * websockets/websockethandshake.cpp:
              (webcore::websockethandshake::readserverhandshake):
              (webcore::websockethandshake::readstatusline):
              (webcore::websockethandshake::readhttpheaders):
              (webcore::websockethandshake::checkresponseheaders):
              * workers/defaultsharedworkerrepository.cpp:
              (webcore::postexceptiontask):
              (webcore::postconsolemessagetask):
              * workers/workercontext.cpp:
              (webcore::workercontext::workercontext):
              (webcore::workercontext::erroreventtarget):
              (webcore::workercontext::logexceptiontoconsole):
              (webcore::workercontext::addmessage):
              * workers/workercontext.h:
              * workers/workermessagingproxy.cpp:
              (webcore::workerexceptiontask::performtask):
              (webcore::postconsolemessagetask):
              * xml/xmlhttprequest.cpp:
              (webcore::reportunsafeusage):
      
      2010-12-27  Yury Semikhatsky  <yurys@chromium.org>
      
              Reviewed by Pavel Feldman.
      
              WebCore doesn't fire window.onerror event when uncaught JavaScript exceptions are thrown
              https://bugs.webkit.org/show_bug.cgi?id=8519
      
              Uncaught exceptions are propagated to window.onerror hander if one is present.
              The handler is expected to be a function accepting three arguments: error message,
              resource url and line number where the exception occured.
      
              * fast/events/resources/window-onerror.js: Added.
              (throwException):
              * fast/events/window-onerror1-expected.txt: Added.
              * fast/events/window-onerror1.html: Added.
              * fast/events/window-onerror10-expected.txt: Added.
              * fast/events/window-onerror10.html: Added.
              * fast/events/window-onerror11-expected.txt: Added.
              * fast/events/window-onerror11.html: Added.
              * fast/events/window-onerror12-expected.txt: Added.
              * fast/events/window-onerror12.html: Added.
              * fast/events/window-onerror2-expected.txt: Added.
              * fast/events/window-onerror2.html: Added.
              * fast/events/window-onerror3-expected.txt: Added.
              * fast/events/window-onerror3.html: Added.
              * fast/events/window-onerror4-expected.txt: Added.
              * fast/events/window-onerror4.html: Added.
              * fast/events/window-onerror5-expected.txt: Added.
              * fast/events/window-onerror5.html: Added.
              * fast/events/window-onerror6-expected.txt: Added.
              * fast/events/window-onerror6.html: Added.
              * fast/events/window-onerror7-expected.txt: Added.
              * fast/events/window-onerror7.html: Added.
              * fast/events/window-onerror8-expected.txt: Added.
              * fast/events/window-onerror8.html: Added.
              * fast/events/window-onerror9-expected.txt: Added.
              * fast/events/window-onerror9.html: Added.
              * fast/workers/worker-script-error-expected.txt:
              * http/tests/security/resources/onerror-iframe.html: Added.
              * http/tests/security/window-onerror-exception-in-iframe-expected.txt: Added.
              * http/tests/security/window-onerror-exception-in-iframe.html: Added.
              * platform/chromium-win/fast/workers/worker-script-error-expected.txt:
              * platform/chromium/fast/events/window-onerror1-expected.txt: Added.
              * platform/chromium/fast/events/window-onerror10-expected.txt: Added.
              * platform/chromium/fast/events/window-onerror11-expected.txt: Added.
              * platform/chromium/fast/events/window-onerror2-expected.txt: Added.
              * platform/chromium/fast/events/window-onerror3-expected.txt: Added.
              * platform/chromium/fast/events/window-onerror4-expected.txt: Added.
              * platform/chromium/fast/events/window-onerror5-expected.txt: Added.
              * platform/chromium/fast/events/window-onerror6-expected.txt: Added.
              * platform/chromium/fast/events/window-onerror7-expected.txt: Added.
              * platform/chromium/fast/events/window-onerror8-expected.txt: Added.
              * platform/chromium/fast/events/window-onerror9-expected.txt: Added.
              * platform/chromium/http/tests/security/window-onerror-exception-in-iframe-expected.txt: Added.
              * platform/chromium/userscripts/window-onerror-for-isolated-world-1-expected.txt: Added.
              * platform/chromium/userscripts/window-onerror-for-isolated-world-2-expected.txt: Added.
              * platform/gtk/Skipped:
              * userscripts/window-onerror-for-isolated-world-1-expected.txt: Added.
              * userscripts/window-onerror-for-isolated-world-1.html: Added.
              * userscripts/window-onerror-for-isolated-world-2-expected.txt: Added.
              * userscripts/window-onerror-for-isolated-world-2.html: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76216 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c8a06eb9
    • morrita@google.com's avatar
      2011-01-19 MORITA Hajime <morrita@google.com> · 94c27d14
      morrita@google.com authored
              Reviewed by Ryosuke Niwa.
      
              Space and tab characters "sent" by an input method give totally different results than typing them directly.
              https://bugs.webkit.org/show_bug.cgi?id=5241
      
              Added a test that exercises continous whitespace characters and tabs inserted by IME.
      
              * editing/inserting/insert-composition-whitespace-expected.txt: Added.
              * editing/inserting/insert-composition-whitespace.html: Added.
      2011-01-19  MORITA Hajime  <morrita@google.com>
      
              Reviewed by Ryosuke Niwa.
      
              Space and tab characters "sent" by an input method give totally different results than typing them directly
              https://bugs.webkit.org/show_bug.cgi?id=5241
      
              * Introduced TextEvent::InputTypeComposition and TypingCommand::TextCompositionType to
                distinguish text input which is originated by composition.
              * Generalized rebalanceWhitespaceAt() to rebalanceWhitespaceOnTextSubstring() to rebalancing
                range of string on text node, instead of surrounding part of that.
      
              Test: editing/inserting/insert-composition-whitespace.html
      
              * dom/TextEvent.h:
              (WebCore::TextEvent::isComposition):
              * dom/TextEventInputType.h: Added TextEventInputComposition as a member of TextEvent::InputType
              * editing/CompositeEditCommand.cpp:
              (WebCore::containsOnlyWhitespace):
              (WebCore::CompositeEditCommand::shouldRebalanceLeadingWhitespaceFor):
              (WebCore::CompositeEditCommand::canRebalance):
              (WebCore::CompositeEditCommand::rebalanceWhitespaceAt):
              (WebCore::CompositeEditCommand::rebalanceWhitespaceOnTextSubstring): Added: A generalized version of rebalanceWhitespaceAt(), which takes a range inside Text string.
              * editing/CompositeEditCommand.h:
              * editing/Editor.cpp:
              (WebCore::Editor::insertTextForConfirmedComposition): Added.
              (WebCore::Editor::insertTextWithoutSendingTextEvent):
              (WebCore::Editor::confirmComposition): Now uses insertTextForConfirmedComposition().
              (WebCore::Editor::setComposition):
              * editing/Editor.h:
              * editing/InsertTextCommand.cpp:
              (WebCore::InsertTextCommand::input):
              * editing/InsertTextCommand.h:
              * editing/TypingCommand.cpp:
              (WebCore::TypingCommand::TypingCommand):
              (WebCore::TypingCommand::insertText):
              (WebCore::TypingCommand::insertTextRunWithoutNewlines):
              * editing/TypingCommand.h: Added TypingCommand::m_compositionType and TypingCommand::TextCompositionType
              (WebCore::TypingCommand::setCompositionType): Added.
              (WebCore::TypingCommand::create):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76215 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      94c27d14
    • mrowe@apple.com's avatar
      Follow-up to r75766 / <rdar://problem/5469576>. · 39a54697
      mrowe@apple.com authored
      Reviewed by Maciej Stachowiak.
      
      We were failing to initialize the key, causing all sorts of unexpected behavior.
      
      * wtf/FastMalloc.cpp:
      (WTF::setThreadHeap):
      (WTF::TCMalloc_ThreadCache::GetThreadHeap):
      (WTF::TCMalloc_ThreadCache::InitTSD): Ensure that the key is initialized.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76214 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      39a54697
    • mjs@apple.com's avatar
      2011-01-20 Maciej Stachowiak <mjs@apple.com> · 988fa516
      mjs@apple.com authored
              Reviewed by Dan Bernstein.
      
              Skip some tests that are failing on the WebKit2 bot
              https://bugs.webkit.org/show_bug.cgi?id=52789
      
              * platform/mac-wk2/Skipped:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76213 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      988fa516
    • tkent@chromium.org's avatar
      2011-01-19 Dominic Cooney <dominicc@google.com> · 61ef1f5e
      tkent@chromium.org authored
              Reviewed by Kent Tamura.
      
              Update test expectations for QT now that keygen is a HTMLKeygenElement.
              https://bugs.webkit.org/show_bug.cgi?id=52787
      
              * platform/qt/fast/dom/Window/window-properties-expected.txt:
              * platform/qt/fast/dom/Window/window-property-descriptors-expected.txt:
              * platform/qt/fast/dom/prototype-inheritance-expected.txt:
              * platform/qt/fast/js/global-constructors-expected.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76212 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      61ef1f5e
    • mjs@apple.com's avatar
      2011-01-19 Maciej Stachowiak <mjs@apple.com> · 02ba352a
      mjs@apple.com authored
              Reviewed by Dan Bernstein.
      
              Reorganize WebKit2 Skipped list, and remove 56 tests that no longer fail
              https://bugs.webkit.org/show_bug.cgi?id=52786
      
              * platform/mac-wk2/Skipped:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76211 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      02ba352a
    • caseq@chromium.org's avatar
      2011-01-19 Andrey Kosyakov <caseq@chromium.org> · aa08f515
      caseq@chromium.org authored
              Reviewed by Yury Semikhatsky.
      
              Flaky Test: http/tests/inspector/extensions-resources-redirect.html
              https://bugs.webkit.org/show_bug.cgi?id=52709
      
              * http/tests/inspector/extensions-resources-redirect-expected.txt:
              * http/tests/inspector/extensions-resources-redirect.html:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76210 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      aa08f515
    • dimich@chromium.org's avatar
      [Chromium] Unreviewed, build fix. · 3fa655c8
      dimich@chromium.org authored
      During revert of 76203, sheriffbot did not revert "rename+change" correctly.
      
      * src/ChromiumBridge.cpp: Renamed from Source/WebKit/chromium/src/PlatformBridge.cpp.
      (WebCore::toChromeClientImpl):
      (WebCore::toWebWidgetClient):
      (WebCore::getCookieJar):
      (WebCore::ChromiumBridge::cacheMetadata):
      (WebCore::ChromiumBridge::clipboardIsFormatAvailable):
      (WebCore::ChromiumBridge::clipboardReadPlainText):
      (WebCore::ChromiumBridge::clipboardReadHTML):
      (WebCore::ChromiumBridge::clipboardWriteSelection):
      (WebCore::ChromiumBridge::clipboardWritePlainText):
      (WebCore::ChromiumBridge::clipboardWriteURL):
      (WebCore::ChromiumBridge::clipboardWriteImage):
      (WebCore::ChromiumBridge::clipboardWriteData):
      (WebCore::ChromiumBridge::clipboardReadAvailableTypes):
      (WebCore::ChromiumBridge::clipboardReadData):
      (WebCore::ChromiumBridge::clipboardReadFilenames):
      (WebCore::ChromiumBridge::setCookies):
      (WebCore::ChromiumBridge::cookies):
      (WebCore::ChromiumBridge::cookieRequestHeaderFieldValue):
      (WebCore::ChromiumBridge::rawCookies):
      (WebCore::ChromiumBridge::deleteCookie):
      (WebCore::ChromiumBridge::cookiesEnabled):
      (WebCore::ChromiumBridge::prefetchDNS):
      (WebCore::ChromiumBridge::fileExists):
      (WebCore::ChromiumBridge::deleteFile):
      (WebCore::ChromiumBridge::deleteEmptyDirectory):
      (WebCore::ChromiumBridge::getFileSize):
      (WebCore::ChromiumBridge::revealFolderInOS):
      (WebCore::ChromiumBridge::getFileModificationTime):
      (WebCore::ChromiumBridge::directoryName):
      (WebCore::ChromiumBridge::pathByAppendingComponent):
      (WebCore::ChromiumBridge::makeAllDirectories):
      (WebCore::ChromiumBridge::getAbsolutePath):
      (WebCore::ChromiumBridge::isDirectory):
      (WebCore::ChromiumBridge::filePathToURL):
      (WebCore::ChromiumBridge::openFile):
      (WebCore::ChromiumBridge::closeFile):
      (WebCore::ChromiumBridge::seekFile):
      (WebCore::ChromiumBridge::truncateFile):
      (WebCore::ChromiumBridge::readFromFile):
      (WebCore::ChromiumBridge::writeToFile):
      (WebCore::ChromiumBridge::ensureFontLoaded):
      (WebCore::ChromiumBridge::getFontFamilyForCharacters):
      (WebCore::ChromiumBridge::getRenderStyleForStrike):
      (WebCore::ChromiumBridge::loadFont):
      (WebCore::ChromiumBridge::databaseOpenFile):
      (WebCore::ChromiumBridge::databaseDeleteFile):
      (WebCore::ChromiumBridge::databaseGetFileAttributes):
      (WebCore::ChromiumBridge::databaseGetFileSize):
      (WebCore::ChromiumBridge::idbFactory):
      (WebCore::ChromiumBridge::idbShutdown):
      (WebCore::ChromiumBridge::createIDBKeysFromSerializedValuesAndKeyPath):
      (WebCore::ChromiumBridge::signedPublicKeyAndChallengeString):
      (WebCore::ChromiumBridge::computedDefaultLanguage):
      (WebCore::ChromiumBridge::layoutTestMode):
      (WebCore::ChromiumBridge::isSupportedImageMIMEType):
      (WebCore::ChromiumBridge::isSupportedJavaScriptMIMEType):
      (WebCore::ChromiumBridge::isSupportedNonImageMIMEType):
      (WebCore::ChromiumBridge::mimeTypeForExtension):
      (WebCore::ChromiumBridge::mimeTypeFromFile):
      (WebCore::ChromiumBridge::preferredExtensionForMIMEType):
      (WebCore::ChromiumBridge::plugins):
      (WebCore::ChromiumBridge::pluginScriptableObject):
      (WebCore::ChromiumBridge::loadPlatformImageResource):
      (WebCore::ChromiumBridge::loadPlatformAudioResource):
      (WebCore::ChromiumBridge::decodeAudioFileData):
      (WebCore::ChromiumBridge::sandboxEnabled):
      (WebCore::ChromiumBridge::setSharedTimerFiredFunction):
      (WebCore::ChromiumBridge::setSharedTimerFireTime):
      (WebCore::ChromiumBridge::stopSharedTimer):
      (WebCore::ChromiumBridge::decrementStatsCounter):
      (WebCore::ChromiumBridge::incrementStatsCounter):
      (WebCore::ChromiumBridge::histogramCustomCounts):
      (WebCore::ChromiumBridge::histogramEnumeration):
      (WebCore::ChromiumBridge::suddenTerminationChanged):
      (WebCore::ChromiumBridge::currentTime):
      (WebCore::ChromiumBridge::paintButton):
      (WebCore::ChromiumBridge::paintMenuList):
      (WebCore::ChromiumBridge::paintScrollbarArrow):
      (WebCore::ChromiumBridge::paintScrollbarThumb):
      (WebCore::ChromiumBridge::paintScrollbarTrack):
      (WebCore::ChromiumBridge::paintSpinButton):
      (WebCore::ChromiumBridge::paintTextField):
      (WebCore::ChromiumBridge::paintTrackbar):
      (WebCore::ChromiumBridge::paintProgressBar):
      (WebCore::WebThemePart):
      (WebCore::WebThemeState):
      (WebCore::GetWebThemeExtraParams):
      (WebCore::ChromiumBridge::getThemePartSize):
      (WebCore::ChromiumBridge::paintThemePart):
      (WebCore::ChromiumBridge::traceEventBegin):
      (WebCore::ChromiumBridge::traceEventEnd):
      (WebCore::ChromiumBridge::visitedLinkHash):
      (WebCore::ChromiumBridge::isLinkVisited):
      (WebCore::ChromiumBridge::notifyJSOutOfMemory):
      (WebCore::ChromiumBridge::memoryUsageMB):
      (WebCore::ChromiumBridge::actualMemoryUsageMB):
      (WebCore::ChromiumBridge::screenDepth):
      (WebCore::ChromiumBridge::screenDepthPerComponent):
      (WebCore::ChromiumBridge::screenIsMonochrome):
      (WebCore::ChromiumBridge::screenRect):
      (WebCore::ChromiumBridge::screenAvailableRect):
      (WebCore::ChromiumBridge::popupsAllowed):
      (WebCore::WorkerContextProxy::create):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76209 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3fa655c8
  2. 19 Jan, 2011 1 commit
    • tkent@chromium.org's avatar
      2011-01-19 Dominic Cooney <dominicc@google.com> · 8c57bf5d
      tkent@chromium.org authored
              Reviewed by Kent Tamura.
      
              Make <keygen> no longer appear to be a <select> element to script.
              https://bugs.webkit.org/show_bug.cgi?id=52557
      
              The intent is to put <keygen> options into shadow DOM. This change
              takes the first step by hiding the <select> element from
              JavaScript.
      
              Test: fast/dom/HTMLKeygenElement/keygen.html
      
              * CMakeLists.txt: Adds new IDL-derived wrapper.
              * DerivedSources.cpp:
              * DerivedSources.make:
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.pri:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/gobject/GNUmakefile.am:
              * bindings/gobject/WebKitHTMLElementWrapperFactory.cpp:
              (WebKit::createKeygenWrapper):
              (WebKit::createHTMLElementWrapper):
              * bindings/objc/DOM.mm:
              (WebCore::createElementClassMap): Keygen no longer DOMHTMLSelectElement
              * html/HTMLKeygenElement.h:
              (WebCore::HTMLKeygenElement::willValidate): Now public.
              * html/HTMLKeygenElement.idl: Added.
              * html/HTMLTagNames.in: Keygen's wrapper is HTMLKeygenElement.
              * page/DOMWindow.idl: Add HTMLKeygenElement constructor.
      
      2011-01-19  Dominic Cooney  <dominicc@google.com>
      
              Reviewed by Kent Tamura.
      
              Make <keygen> no longer appear to be a <select> element to script.
      
              https://bugs.webkit.org/show_bug.cgi?id=52557
      
              * fast/dom/HTMLKeygenElement/keygen-expected.txt: Added.
              * fast/dom/HTMLKeygenElement/keygen-option-select-expected.txt: Removed.
              * fast/dom/HTMLKeygenElement/keygen-option-select.html: Removed.
              * fast/dom/HTMLKeygenElement/keygen.html: Added.
              * fast/dom/Window/window-properties-expected.txt:
              * fast/dom/Window/window-property-descriptors-expected.txt:
              * fast/dom/prototype-inheritance-2-expected.txt:
              * fast/dom/prototype-inheritance-expected.txt:
              * fast/dom/wrapper-classes-expected.txt:
              * fast/dom/wrapper-classes.html:
              * fast/js/global-constructors-expected.txt:
              * platform/mac/fast/dom/wrapper-classes-objc-expected.txt:
              * platform/mac/fast/dom/wrapper-classes-objc.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76208 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8c57bf5d