1. 24 Feb, 2012 40 commits
    • abarth@webkit.org's avatar
      Move mediastream into Modules/mediastream · 03faf506
      abarth@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=79517
      
      Reviewed by Eric Seidel.
      
      This patch moves the mediastream directory into Modules.  mediastream
      is a self-contained feature and is a good candidate for being a module.
      
      * GNUmakefile.am:
      * GNUmakefile.list.am:
      * Modules/mediastream: Copied from Source/WebCore/mediastream.
      * WebCore.gyp/WebCore.gyp:
      * WebCore.gypi:
      * mediastream: Removed.
      * mediastream/DOMWindowMediaStream.idl: Removed.
      * mediastream/LocalMediaStream.cpp: Removed.
      * mediastream/LocalMediaStream.h: Removed.
      * mediastream/LocalMediaStream.idl: Removed.
      * mediastream/MediaStream.cpp: Removed.
      * mediastream/MediaStream.h: Removed.
      * mediastream/MediaStream.idl: Removed.
      * mediastream/MediaStreamEvent.cpp: Removed.
      * mediastream/MediaStreamEvent.h: Removed.
      * mediastream/MediaStreamEvent.idl: Removed.
      * mediastream/MediaStreamList.cpp: Removed.
      * mediastream/MediaStreamList.h: Removed.
      * mediastream/MediaStreamList.idl: Removed.
      * mediastream/MediaStreamRegistry.cpp: Removed.
      * mediastream/MediaStreamRegistry.h: Removed.
      * mediastream/MediaStreamTrack.cpp: Removed.
      * mediastream/MediaStreamTrack.h: Removed.
      * mediastream/MediaStreamTrack.idl: Removed.
      * mediastream/MediaStreamTrackList.cpp: Removed.
      * mediastream/MediaStreamTrackList.h: Removed.
      * mediastream/MediaStreamTrackList.idl: Removed.
      * mediastream/NavigatorMediaStream.cpp: Removed.
      * mediastream/NavigatorMediaStream.h: Removed.
      * mediastream/NavigatorMediaStream.idl: Removed.
      * mediastream/NavigatorUserMediaError.h: Removed.
      * mediastream/NavigatorUserMediaError.idl: Removed.
      * mediastream/NavigatorUserMediaErrorCallback.h: Removed.
      * mediastream/NavigatorUserMediaErrorCallback.idl: Removed.
      * mediastream/NavigatorUserMediaSuccessCallback.h: Removed.
      * mediastream/NavigatorUserMediaSuccessCallback.idl: Removed.
      * mediastream/PeerConnection.cpp: Removed.
      * mediastream/PeerConnection.h: Removed.
      * mediastream/PeerConnection.idl: Removed.
      * mediastream/SignalingCallback.h: Removed.
      * mediastream/SignalingCallback.idl: Removed.
      * mediastream/UserMediaClient.h: Removed.
      * mediastream/UserMediaController.cpp: Removed.
      * mediastream/UserMediaController.h: Removed.
      * mediastream/UserMediaRequest.cpp: Removed.
      * mediastream/UserMediaRequest.h: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108849 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      03faf506
    • jamesr@google.com's avatar
      [chromium] Move WebGraphicsContext3D header into the Platform directory · df23a7fb
      jamesr@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=79301
      
      Reviewed by Adam Barth.
      
      Moves WebGraphicsContext3D and WebNonCopyable (which WGC3D depends on).
      
      Source/Platform:
      
      * Platform.gypi:
      * chromium/public/WebGraphicsContext3D.h: Copied from Source/WebKit/chromium/public/platform/WebGraphicsContext3D.h.
      (WebKit):
      (WebGraphicsContext3D):
      (ActiveInfo):
      (WebKit::WebGraphicsContext3D::Attributes::Attributes):
      (Attributes):
      (WebGraphicsContextLostCallback):
      (WebKit::WebGraphicsContext3D::WebGraphicsContextLostCallback::~WebGraphicsContextLostCallback):
      (WebGraphicsErrorMessageCallback):
      (WebKit::WebGraphicsContext3D::WebGraphicsErrorMessageCallback::~WebGraphicsErrorMessageCallback):
      (WebGraphicsSwapBuffersCompleteCallbackCHROMIUM):
      (WebKit::WebGraphicsContext3D::WebGraphicsSwapBuffersCompleteCallbackCHROMIUM::~WebGraphicsSwapBuffersCompleteCallbackCHROMIUM):
      (WebGraphicsMemoryAllocationChangedCallbackCHROMIUM):
      (WebKit::WebGraphicsContext3D::WebGraphicsMemoryAllocationChangedCallbackCHROMIUM::~WebGraphicsMemoryAllocationChangedCallbackCHROMIUM):
      (WebKit::WebGraphicsContext3D::~WebGraphicsContext3D):
      (WebKit::WebGraphicsContext3D::setMemoryAllocationChangedCallbackCHROMIUM):
      (WebKit::WebGraphicsContext3D::setParentContext):
      (WebKit::WebGraphicsContext3D::setSwapBuffersCompleteCallbackCHROMIUM):
      (WebKit::WebGraphicsContext3D::rateLimitOffscreenContextCHROMIUM):
      (WebKit::WebGraphicsContext3D::setContextLostCallback):
      (WebKit::WebGraphicsContext3D::setErrorMessageCallback):
      (WebKit::WebGraphicsContext3D::getGraphicsResetStatusARB):
      (WebKit::WebGraphicsContext3D::getTranslatedShaderSourceANGLE):
      (WebKit::WebGraphicsContext3D::texImageIOSurface2DCHROMIUM):
      (WebKit::WebGraphicsContext3D::texStorage2DEXT):
      (WebKit::WebGraphicsContext3D::onCreateGrGLInterface):
      * chromium/public/WebNonCopyable.h: Copied from Source/WebKit/chromium/public/platform/WebNonCopyable.h.
      (WebKit):
      (WebNonCopyable):
      (WebKit::WebNonCopyable::WebNonCopyable):
      (WebKit::WebNonCopyable::~WebNonCopyable):
      
      Source/WebKit/chromium:
      
      * public/platform/WebGraphicsContext3D.h:
      * public/platform/WebNonCopyable.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108848 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      df23a7fb
    • inferno@chromium.org's avatar
      Overhanging floats not removed from new flex box. · 3e8d5810
      inferno@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=79522
      
      Reviewed by Ojan Vafai.
      
      Source/WebCore:
      
      Similar to r69476.
      
      Test: fast/flexbox/overhanging-floats-not-removed-crash.html
      
      * rendering/RenderBox.cpp:
      (WebCore::RenderBox::removeFloatingOrPositionedChildFromBlockLists):
      
      LayoutTests:
      
      * fast/flexbox/overhanging-floats-not-removed-crash-expected.txt: Added.
      * fast/flexbox/overhanging-floats-not-removed-crash.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108847 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3e8d5810
    • rniwa@webkit.org's avatar
      Rename dom*_*attributes.html to dom*-*attributes.html to follow the WebKit convention. · 7281a127
      rniwa@webkit.org authored
      * Bindings/dom-attributes.html: Copied from PerformanceTests/Bindings/dom_attributes.html.
      * Bindings/dom_attributes.html: Removed.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108846 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7281a127
    • rniwa@webkit.org's avatar
      Increment perf-o-matic version. · f5b70ba5
      rniwa@webkit.org authored
      * Websites/webkit-perf.appspot.com/app.yaml:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108845 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f5b70ba5
    • commit-queue@webkit.org's avatar
      Adding myself to ScrollingCoordinator watchlist · d105d9d8
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=79525
      
      Patch by Antonio Gomes <agomes@rim.com> on 2012-02-24
      Reviewed by Rob Buis.
      
      * Scripts/webkitpy/common/config/watchlist:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108844 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d105d9d8
    • bfulgham@webkit.org's avatar
      [WinCairo] Compute more acurate font heights. · 57164743
      bfulgham@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=79524
      
      Reviewed by Adam Roben.
      
      Adjust font handling as suggested by Lynn Neir to use the proper
      xHeight value for the font, rather than the fall-back guess
      used in the current code.
      
      css1/text_properties/line_height.html
      
      * platform/graphics/win/SimpleFontDataCairoWin.cpp:
      (WebCore::SimpleFontData::platformInit): Properly initialize a
        few elements.
      (WebCore::SimpleFontData::platformWidthForGlyph): Use the Cairo
        cairo_scaled_font_text_extents call, rather than attempting
        to compute the value from ::GetGlyphOutline.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108843 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      57164743
    • fpizlo@apple.com's avatar
      DFG should be able to handle variables getting captured · b0da6b6b
      fpizlo@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=79469
      
      Reviewed by Oliver Hunt.
              
      Made captured variables work by placing a Flush on the SetLocal and
      forcing the emission of the GetLocal even if copy propagation tells us
      who has the value.
              
      Changed the CFA and various prediction codes to understand that we can't
      really prove anything about captured variables. Well, we could in the
      future by just looking at what side effects are happening, but in this
      first cut we just assume that we can't reason about captured variables.
              
      Also added a mode where the DFG pretends that all variables and arguments
      got captured. Used this mode to harden the code.
              
      This is performance neutral. Capturing all variables is a slow down, but
      not too big of one. This seems to predict that when we add activation
      support, the amount of speed benefit we'll get from increased coverage
      will far outweigh the pessimism that we'll have to endure for captured
      variables.
      
      * bytecode/CodeType.h:
      (JSC::codeTypeToString):
      * dfg/DFGAbstractState.cpp:
      (JSC::DFG::AbstractState::initialize):
      (JSC::DFG::AbstractState::endBasicBlock):
      (JSC::DFG::AbstractState::execute):
      (JSC::DFG::AbstractState::merge):
      * dfg/DFGAbstractState.h:
      (AbstractState):
      * dfg/DFGByteCodeParser.cpp:
      (JSC::DFG::ByteCodeParser::getLocal):
      (JSC::DFG::ByteCodeParser::setLocal):
      (JSC::DFG::ByteCodeParser::getArgument):
      (JSC::DFG::ByteCodeParser::setArgument):
      (JSC::DFG::ByteCodeParser::flushArgument):
      (JSC::DFG::ByteCodeParser::handleInlining):
      (JSC::DFG::ByteCodeParser::processPhiStack):
      (JSC::DFG::ByteCodeParser::parseCodeBlock):
      (JSC::DFG::ByteCodeParser::parse):
      * dfg/DFGCapabilities.h:
      (JSC::DFG::mightInlineFunctionForCall):
      (JSC::DFG::mightInlineFunctionForConstruct):
      * dfg/DFGCommon.h:
      * dfg/DFGGraph.h:
      (JSC::DFG::Graph::needsActivation):
      (Graph):
      (JSC::DFG::Graph::argumentIsCaptured):
      (JSC::DFG::Graph::localIsCaptured):
      (JSC::DFG::Graph::isCaptured):
      * dfg/DFGNode.h:
      (JSC::DFG::Node::shouldGenerate):
      * dfg/DFGPredictionPropagationPhase.cpp:
      (JSC::DFG::PredictionPropagationPhase::propagate):
      (JSC::DFG::PredictionPropagationPhase::doRoundOfDoubleVoting):
      * dfg/DFGSpeculativeJIT.cpp:
      (DFG):
      (JSC::DFG::ValueSource::dump):
      (JSC::DFG::SpeculativeJIT::compile):
      * dfg/DFGSpeculativeJIT.h:
      (ValueSource):
      * dfg/DFGSpeculativeJIT32_64.cpp:
      (JSC::DFG::SpeculativeJIT::compile):
      * dfg/DFGSpeculativeJIT64.cpp:
      (JSC::DFG::SpeculativeJIT::compile):
      * dfg/DFGVirtualRegisterAllocationPhase.cpp:
      (JSC::DFG::VirtualRegisterAllocationPhase::run):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108842 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b0da6b6b
    • barraclough@apple.com's avatar
      Should not allow malformed \x escapes · 2f3e1e6c
      barraclough@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=79462
      
      Reviewed by Oliver Hunt.
      
      Source/JavaScriptCore: 
      
      * parser/Lexer.cpp:
      (JSC::::parseString):
      (JSC::::parseStringSlowCase):
          - Prohibit malformed '\x' escapes
      * tests/mozilla/ecma/Array/15.4.5.1-1.js:
      * tests/mozilla/ecma/LexicalConventions/7.7.4.js:
      * tests/mozilla/ecma_2/RegExp/hex-001.js:
      * tests/mozilla/js1_2/regexp/hexadecimal.js:
          - Remove erroneous test cases (correct behaviour is tested by LayoutTests/sputnik).
      
      LayoutTests: 
      
      * fast/regex/script-tests/pcre-test-1.js:
          - Fix bad escapes in test case.
      * sputnik/Conformance/07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A4.3_T6-expected.txt:
      * sputnik/Conformance/07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A6.1_T4-expected.txt:
      * sputnik/Conformance/07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A6.2_T1-expected.txt:
      * sputnik/Conformance/07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A6.2_T2-expected.txt:
          - Check in passing results.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108841 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2f3e1e6c
    • commit-queue@webkit.org's avatar
      [chromium] Purge Skia's GPU texture cache using GL_CHROMIUM_gpu_memory_manager · c32840ac
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=78265
      
      Patch by Michal Mocny <mmocny@google.com> on 2012-02-24
      Reviewed by Stephen White.
      
      * src/GraphicsContext3DChromium.cpp:
      (GrMemoryAllocationChangedCallback):
      (WebCore::GrMemoryAllocationChangedCallback::GrMemoryAllocationChangedCallback):
      (WebCore::GrMemoryAllocationChangedCallback::onGpuMemoryAllocationChanged):
      (WebCore):
      (WebCore::GraphicsContext3DPrivate::grContext):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108840 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c32840ac
    • enne@google.com's avatar
      Fix flaky tests by removing call to dumpResourceResponseMIMETypes · 6f14f1ed
      enne@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=79505
      
      Reviewed by Daniel Bates.
      
      It appears to be a race condition (on Chromium at least) between when
      script executes and the style sheet resource response occurs. This
      prevents some of the text to be output if the response occurs before
      the call to set the flag to dump responses. Since the tests themselves
      already test the results of loading stylesheets properly, this extra
      text is superfluous and can be removed.
      
      This change modifies all tests using link-load-utilities.js to dump
      stylesheet resource responses. Other tests are using
      dumpResponseResponseMIMEType, but for things other than stylesheets.
      
      * fast/dom/HTMLLinkElement/link-onerror-stylesheet-with-existent-and-non-existent-import-expected.txt:
      * fast/dom/HTMLLinkElement/link-onerror-stylesheet-with-non-existent-import-expected.txt:
      * fast/dom/HTMLLinkElement/link-onload-before-page-load-expected.txt:
      * fast/dom/HTMLLinkElement/link-onload-expected.txt:
      * fast/dom/HTMLLinkElement/link-onload-stylesheet-with-import-expected.txt:
      * fast/dom/HTMLLinkElement/link-onload2-expected.txt:
      * fast/dom/HTMLLinkElement/programmatically-add-link-with-onload-handler-expected.txt:
      * fast/dom/HTMLLinkElement/resources/link-load-utilities.js:
      * fast/dom/HTMLStyleElement/style-onerror-with-existent-and-non-existent-import-expected.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108839 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6f14f1ed
    • darin@chromium.org's avatar
      Update watchlist for ChromiumPublicApi to include Platform/chromium/public/ · 2406263c
      darin@chromium.org authored
      Reviewed by Adam Barth.
      
      * Scripts/webkitpy/common/config/watchlist:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108838 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2406263c
    • dpranke@chromium.org's avatar
      webkitpy: config_unittest is sensitive to other tests that might've already run · db171b03
      dpranke@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=79382
      
      Reviewed by Adam Barth.
      
      If another test runs prior to config_unittest and pokes the
      cached configuration, the first test in config_unittest might
      fail; the tearDown() will then allow subsequent tests to pass.
      Clearing the configuration prior to each test makes things
      slightly slower but safer.
      
      * Scripts/webkitpy/layout_tests/port/config_unittest.py:
      (ConfigTest.setUp):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108837 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      db171b03
    • ddkilzer@apple.com's avatar
      Use xcrun to find compiler paths for Generate Derived Sources build phase script · 4e8d565a
      ddkilzer@apple.com authored
      <http://webkit.org/b/79512>
      
      Reviewed by Dan Bernstein.
      
      * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj:
      (Generate Derived Sources): Use xcrun to find the path to the
      compiler since that works on both iOS and OS X.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108836 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4e8d565a
    • commit-queue@webkit.org's avatar
      Make fast/canvas/canvas-strokePath-shadow.html allow for pixel tolerance · a5bd2cc3
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=79488
      
      Patch by Elliot Poger <epoger@google.com> on 2012-02-24
      Reviewed by Adam Barth.
      
      * fast/canvas/script-tests/canvas-strokePath-shadow.js:
      (shouldBeAlmost):
      * fast/js/resources/js-test-pre.js:
      (shouldBeCloseTo):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108835 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a5bd2cc3
    • timothy_horton@apple.com's avatar
      Infinite repaint loop with SVGImageCache and deferred repaint timers · eab481e7
      timothy_horton@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=78315
      <rdar://problem/10651634>
      
      Reviewed by Dean Jackson.
      
      Only defer image redraw on a timer if we're in layout. This breaks
      the repaint loop while still preventing us from drawing inside layout.
      
      No new tests, as the problem only occurs in a nonstandard configuration.
      
      * svg/graphics/SVGImage.cpp:
      (WebCore::SVGImage::draw):
      (WebCore::SVGImage::frameView):
      (WebCore):
      * svg/graphics/SVGImage.h:
      (WebCore):
      * svg/graphics/SVGImageCache.cpp:
      (WebCore::SVGImageCache::imageContentChanged):
      (WebCore::SVGImageCache::redraw):
      (WebCore::SVGImageCache::redrawTimerFired):
      (WebCore):
      * svg/graphics/SVGImageCache.h:
      (SVGImageCache):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108834 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      eab481e7
    • jamesr@google.com's avatar
      [chromium] Remove deprecated and unused WebGraphicsContext3D::initialize call · 52be4885
      jamesr@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=79296
      
      Reviewed by Kenneth Russell.
      
      The old way to initialize a WebGraphicsContext3D from inside WebKit was to call initialize() on it with a
      WebView*. The new way to do this is via the WebViewClient interface. This deletes the old, unused path.
      
      * public/platform/WebGraphicsContext3D.h:
      (WebKit):
      * tests/CCLayerTreeHostImplTest.cpp:
      * tests/FakeWebGraphicsContext3D.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108833 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      52be4885
    • timothy_horton@apple.com's avatar
      SVG should be supported in Dashboard compatibility mode · 69736612
      timothy_horton@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=78322
      <rdar://problem/5861278>
      
      Reviewed by Dean Jackson.
      
      Enable SVG elements inside Dashboard, more or less reverting r21418.
      
      Tests: http/tests/xmlhttprequest/svg-created-by-xhr-allowed-in-dashboard.html
             svg/custom/embedded-svg-allowed-in-dashboard.xml
             svg/custom/manually-parsed-embedded-svg-allowed-in-dashboard.html
             svg/custom/manually-parsed-svg-allowed-in-dashboard.html
             svg/custom/svg-allowed-in-dashboard-object.html
      
      * dom/DOMImplementation.cpp:
      (WebCore::DOMImplementation::createDocument):
      * dom/Document.cpp:
      (WebCore::Document::importNode):
      * dom/make_names.pl:
      (printFactoryCppFile):
      
      Change tests that ensured that SVG didn't work in Dashboard to instead test that it does!
      
      * http/tests/xmlhttprequest/svg-created-by-xhr-allowed-in-dashboard-expected.txt: Added.
      * http/tests/xmlhttprequest/svg-created-by-xhr-allowed-in-dashboard.html: Renamed from LayoutTests/http/tests/xmlhttprequest/svg-created-by-xhr-disallowed-in-dashboard.html.
      * http/tests/xmlhttprequest/svg-created-by-xhr-disallowed-in-dashboard-expected.txt: Removed.
      * svg/custom/embedded-svg-allowed-in-dashboard-expected.txt: Added.
      * svg/custom/embedded-svg-allowed-in-dashboard.xml: Renamed from LayoutTests/svg/custom/embedded-svg-disallowed-in-dashboard.xml.
      * svg/custom/embedded-svg-disallowed-in-dashboard-expected.txt: Removed.
      * svg/custom/manually-parsed-embedded-svg-allowed-in-dashboard-expected.txt: Added.
      * svg/custom/manually-parsed-embedded-svg-allowed-in-dashboard.html: Renamed from LayoutTests/svg/custom/manually-parsed-embedded-svg-disallowed-in-dashboard.html.
      * svg/custom/manually-parsed-embedded-svg-disallowed-in-dashboard-expected.txt: Removed.
      * svg/custom/manually-parsed-svg-allowed-in-dashboard-expected.txt: Added.
      * svg/custom/manually-parsed-svg-allowed-in-dashboard.html: Renamed from LayoutTests/svg/custom/manually-parsed-svg-disallowed-in-dashboard.html.
      * svg/custom/manually-parsed-svg-disallowed-in-dashboard-expected.txt: Removed.
      * svg/custom/svg-allowed-in-dashboard-object-expected.txt: Added.
      * svg/custom/svg-allowed-in-dashboard-object.html: Renamed from LayoutTests/svg/custom/svg-disallowed-in-dashboard-object.html.
      * svg/custom/svg-disallowed-in-dashboard-object-expected.txt: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108832 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      69736612
    • commit-queue@webkit.org's avatar
      Expose a setting to exempt media playback from user gesture requirement after... · 447cf0cd
      commit-queue@webkit.org authored
      Expose a setting to exempt media playback from user gesture requirement after a user gesture is initiated on loading/playing a media
      https://bugs.webkit.org/show_bug.cgi?id=79167
      
      Patch by Min Qin <qinmin@google.com> on 2012-02-24
      Reviewed by Adam Barth.
      
      Source/WebCore:
      
      Test: media/video-play-require-user-gesture.html
      
      * html/HTMLMediaElement.cpp:
      (WebCore::HTMLMediaElement::load):
      (WebCore::HTMLMediaElement::play):
      (WebCore::HTMLMediaElement::removeBehaviorsRestrictionsAfterFirstUserGesture):
      (WebCore):
      * html/HTMLMediaElement.h:
      (HTMLMediaElement):
      * testing/Internals.cpp:
      (WebCore::Internals::setMediaPlaybackRequiresUserGesture):
      (WebCore):
      * testing/Internals.h:
      (Internals):
      * testing/Internals.idl:
      
      LayoutTests:
      
      * media/video-play-require-user-gesture-expected.txt: Added.
      * media/video-play-require-user-gesture.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108831 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      447cf0cd
    • abarth@webkit.org's avatar
      DOMWindow*.idl should have had the same license block as DOMWindow.idl did originally · 2d4768a2
      abarth@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=79507
      
      Reviewed by Alexey Proskuryakov.
      
      In moving pieces of DOMWindow.idl into separate files, we mistakenly
      changed some of the license blocks.  All these files should have a
      license block that matches the file that originally contained the code.
      
      * Modules/intents/DOMWindowIntents.idl:
      * fileapi/DOMWindowFileSystem.idl:
      * html/DOMWindowHTML.idl:
      * html/canvas/DOMWindowWebGL.idl:
      * mediastream/DOMWindowMediaStream.idl:
      * storage/DOMWindowSQLDatabase.idl:
      * svg/DOMWindowSVG.idl:
      * webaudio/DOMWindowWebAudio.idl:
      * websockets/DOMWindowWebSocket.idl:
      * workers/DOMWindowWorker.idl:
      * xml/DOMWindowXML.idl:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108830 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2d4768a2
    • jamesr@google.com's avatar
      [chromium] Move Web*Layer* headers into Platform · 257e8549
      jamesr@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=79425
      
      Reviewed by Adam Barth.
      
      Source/Platform:
      
      This moves the Web*Layer* headers and their dependencies from WebKit/chromium/public/platform/ into
      Platform/chromium/public.
      
      * Platform.gypi:
      * chromium/public/WebCanvas.h: Copied from Source/WebKit/chromium/public/platform/WebCanvas.h.
      (WebKit):
      * chromium/public/WebColor.h: Copied from Source/WebKit/chromium/public/platform/WebColor.h.
      (WebKit):
      * chromium/public/WebColorName.h: Copied from Source/WebKit/chromium/public/platform/WebColorName.h.
      (WebKit):
      * chromium/public/WebContentLayer.h: Copied from Source/WebKit/chromium/public/platform/WebContentLayer.h.
      (WebKit):
      (WebContentLayer):
      (WebKit::WebContentLayer::WebContentLayer):
      (WebKit::WebContentLayer::~WebContentLayer):
      (WebKit::WebContentLayer::operator=):
      * chromium/public/WebContentLayerClient.h: Copied from Source/WebKit/chromium/public/platform/WebContentLayerClient.h.
      (WebKit):
      (WebContentLayerClient):
      (WebKit::WebContentLayerClient::~WebContentLayerClient):
      * chromium/public/WebExternalTextureLayer.h: Copied from Source/WebKit/chromium/public/platform/WebExternalTextureLayer.h.
      (WebKit):
      (WebExternalTextureLayer):
      (WebKit::WebExternalTextureLayer::WebExternalTextureLayer):
      (WebKit::WebExternalTextureLayer::~WebExternalTextureLayer):
      (WebKit::WebExternalTextureLayer::operator=):
      * chromium/public/WebLayer.h: Copied from Source/WebKit/chromium/public/platform/WebLayer.h.
      (WebKit):
      (WebLayer):
      (WebKit::WebLayer::WebLayer):
      (WebKit::WebLayer::~WebLayer):
      (WebKit::WebLayer::operator=):
      (WebKit::WebLayer::isNull):
      (WebKit::WebLayer::to):
      (WebKit::WebLayer::toConst):
      (WebKit::WebLayer::unwrap):
      (WebKit::WebLayer::constUnwrap):
      (WebKit::operator==):
      (WebKit::operator!=):
      * chromium/public/WebLayerTreeView.h: Copied from Source/WebKit/chromium/public/platform/WebLayerTreeView.h.
      (WebCore):
      (WebKit):
      (WebLayerTreeView):
      (WebKit::WebLayerTreeView::Settings::Settings):
      (Settings):
      (WebKit::WebLayerTreeView::WebLayerTreeView):
      (WebKit::WebLayerTreeView::~WebLayerTreeView):
      (WebKit::WebLayerTreeView::operator=):
      (WebKit::operator==):
      (WebKit::operator!=):
      * chromium/public/WebLayerTreeViewClient.h: Copied from Source/WebKit/chromium/public/platform/WebLayerTreeViewClient.h.
      (WebKit):
      (WebLayerTreeViewClient):
      (WebKit::WebLayerTreeViewClient::~WebLayerTreeViewClient):
      * chromium/public/WebPrivatePtr.h: Copied from Source/WebKit/chromium/public/platform/WebPrivatePtr.h.
      (WebKit):
      (WebPrivatePtr):
      (WebKit::WebPrivatePtr::WebPrivatePtr):
      (WebKit::WebPrivatePtr::~WebPrivatePtr):
      (WebKit::WebPrivatePtr::isNull):
      (WebKit::WebPrivatePtr::reset):
      (WebKit::WebPrivatePtr::operator=):
      (WebKit::WebPrivatePtr::get):
      (WebKit::WebPrivatePtr::operator->):
      (WebKit::WebPrivatePtr::assign):
      * chromium/public/WebSolidColorLayer.h: Copied from Source/WebKit/chromium/public/platform/WebSolidColorLayer.h.
      (WebKit):
      (WebSolidColorLayer):
      
      Source/WebKit/chromium:
      
      Adds forwarding headers for Web*Layer* APIs and their dependencies.  The forwarding headers for the Web*Layer*
      APIs are temporary since Web*Layer* is not exposed in the client interface.  The other headers (such as
      WebColor) are exposed in both the client and platform APIs, so the forwarding headers are permanent, although we
      might move them back down to public/ at some point.
      
      * public/platform/WebCanvas.h:
      * public/platform/WebColor.h:
      * public/platform/WebColorName.h:
      * public/platform/WebContentLayer.h:
      * public/platform/WebContentLayerClient.h:
      * public/platform/WebExternalTextureLayer.h:
      * public/platform/WebLayer.h:
      * public/platform/WebLayerTreeView.h:
      * public/platform/WebLayerTreeViewClient.h:
      * public/platform/WebPrivatePtr.h:
      * public/platform/WebSolidColorLayer.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108829 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      257e8549
    • lforschler@apple.com's avatar
      Versioning. · 42d7249a
      lforschler@apple.com authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108828 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      42d7249a
    • ddkilzer@apple.com's avatar
      Use xcrun to find compiler paths for Generate Derived Sources build phase script · 5e0beb4e
      ddkilzer@apple.com authored
      <http://webkit.org/b/79512>
      
      Reviewed by Mark Rowe.
      
      * WebCore.xcodeproj/project.pbxproj:
      (Generate Derived Sources): Use xcrun to find the path to the
      compiler since that works on both iOS and OS X.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108826 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5e0beb4e
    • andersca@apple.com's avatar
      Crash in TileCache::revalidateTiles · 620477cf
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=79510
      <rdar://problem/10928035>
      
      Reviewed by Sam Weinig.
      
      Handle the tile cache layer's PlatformCALayer going away before the
      CALayer itself has been deallocated.
      
      * platform/graphics/ca/mac/TileCache.mm:
      (WebCore::TileCache::revalidateTiles):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108825 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      620477cf
    • jamesr@google.com's avatar
      Create a watchlist for ScrollingCoordinator changes · 227397f0
      jamesr@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=79511
      
      Reviewed by Anders Carlsson.
      
      * Scripts/webkitpy/common/config/watchlist:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108824 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      227397f0
    • commit-queue@webkit.org's avatar
      Remove spurious mac-specific tests · 37bad3c6
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=75091
      
      Patch by Philip Rogers <pdr@google.com> on 2012-02-24
      Reviewed by Daniel Bates.
      
      * platform/mac/svg/text/text-rescale.html: Removed.
      * platform/mac/svg/text/text-viewbox-rescale.html: Removed.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108823 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      37bad3c6
    • jberlin@webkit.org's avatar
      requestPermission callback not invoked if the WebProcess doesn't have to ask the UI Process · c652416f
      jberlin@webkit.org authored
      about the permission level.
      https://bugs.webkit.org/show_bug.cgi?id=79494
      
      Reviewed by Jon Honeycutt.
      
      Invoke the callback in the case where the permission level is known and no message is sent
      to the UI Process.
      
      * WebProcess/Notifications/NotificationPermissionRequestManager.cpp:
      (WebKit::NotificationPermissionRequestManager::startRequest):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108822 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c652416f
    • commit-queue@webkit.org's avatar
      [chromium] Have WebFrameImpl::selectionAsMarkup create interchange markup. · e36845e4
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77307
      
      Patch by Peter Collingbourne <peter@pcc.me.uk> on 2012-02-24
      Reviewed by Tony Chang.
      
      This function is currently used to build markup in order to
      print the selection, and will also be used to build markup for
      the clipboard.  Without this change, the markup will refer to
      (for example) nonexistent CSS classes and invalid relative
      paths and therefore will not be interpreted correctly.
      
      Chromium bug: http://crbug.com/23329
      
      * src/WebFrameImpl.cpp:
      (WebKit::WebFrameImpl::selectionAsMarkup):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108821 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e36845e4
    • dbates@webkit.org's avatar
      Fix change log entry for changeset r108819; add bug URL · 0aaf98d9
      dbates@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=79504
      
      Changeset r108819 is associated with bug #79504.
      
      * ChangeLog
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108820 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0aaf98d9
    • dbates@webkit.org's avatar
      Substitute ENABLE(CLASSIC_INTERPRETER) for ENABLE(INTERPRETER) in Interpreter.cpp · 1a7891fa
      dbates@webkit.org authored
      Reviewed by Oliver Hunt.
      
      There are a few places in Interpreter.cpp that need to be updated to use
      ENABLE(CLASSIC_INTERPRETER) following the renaming of ENABLE_INTERPRETER to
      ENABLE_CLASSIC_INTERPRETER in changeset <http://trac.webkit.org/changeset/108020>
      (https://bugs.webkit.org/show_bug.cgi?id=78791).
      
      * interpreter/Interpreter.cpp:
      (JSC::getLineNumberForCallFrame):
      (JSC::getCallerInfo):
      (JSC::getSourceURLFromCallFrame):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108819 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1a7891fa
    • adamk@chromium.org's avatar
      Don't notify the inspector of Node insertions initiated by the parser · a1a78c56
      adamk@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=79388
      
      Reviewed by Adam Barth.
      
      This is part of a series of changes to make ContainerNode's
      implementation simpler and more internally consistent.
      
      I don't know of a way to break on parser-initiated insertions,
      and the code already doesn't notify on parser-initiated removes
      (in ContainerNode::parserRemoveChild).
      
      No new tests, should already be covered by
      inspector/debugger/dom-breakpoints.html.
      
      * dom/ContainerNode.cpp:
      (WebCore::ContainerNode::parserInsertBefore):
      (WebCore::ContainerNode::parserAddChild):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108817 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a1a78c56
    • jocelyn.turcotte@nokia.com's avatar
      [Qt] Signal and property cleanup in QQuickWebView · 31d9a7fb
      jocelyn.turcotte@nokia.com authored
      https://bugs.webkit.org/show_bug.cgi?id=78820
      
      Reviewed by Simon Hausmann.
      
      - Remove parameters from property change notify signals:
        titleChanged, urlChanged, iconChanged, loadProgressChanged
      - Rename the parameters of linkHovered to prevent shadoing properties of WebView
      - Rename navigationStateChanged to navigationHistoryChanged
      
      * UIProcess/API/qt/qquickwebview.cpp:
      (QQuickWebViewPrivate::QQuickWebViewPrivate):
      (QQuickWebViewPrivate::initialize):
      (QQuickWebViewPrivate::_q_onUrlChanged):
      (QQuickWebViewPrivate::setIcon):
      * UIProcess/API/qt/qquickwebview_p.h:
      * UIProcess/API/qt/qquickwebview_p_p.h:
      (QQuickWebViewPrivate):
      * UIProcess/API/qt/tests/publicapi/tst_publicapi.cpp:
      * UIProcess/API/qt/tests/qmltests/DesktopBehavior/tst_linkHovered.qml:
      * UIProcess/API/qt/tests/qmltests/DesktopBehavior/tst_loadHtml.qml:
      * UIProcess/API/qt/tests/qquickwebview/tst_qquickwebview.cpp:
      (tst_QQuickWebView::loadProgress):
      * UIProcess/qt/QtWebPageLoadClient.cpp:
      (QtWebPageLoadClient::didCommitLoadForFrame):
      (QtWebPageLoadClient::didSameDocumentNavigationForFrame):
      (QtWebPageLoadClient::didReceiveTitleForFrame):
      (QtWebPageLoadClient::setLoadProgress):
      * UIProcess/qt/QtWebPageLoadClient.h:
      (QtWebPageLoadClient):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108816 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      31d9a7fb
    • jocelyn.turcotte@nokia.com's avatar
      [Qt] API: Unify the loading properties and signals. · b6c249f1
      jocelyn.turcotte@nokia.com authored
      https://bugs.webkit.org/show_bug.cgi?id=79486
      
      Reviewed by Simon Hausmann.
      
      Source/WebKit/qt:
      
      * declarative/plugin.cpp:
      (WebKitQmlPlugin::registerTypes):
      
      Source/WebKit2:
      
      - Remove the canReload signal, instead assume that calling reload in those cases
        won't have any effect.
      - Replace loadStarted, loadSucceeded and loadFailed by a single signal: loadingChanged.
        The signal carries an argument with a status and error codes giving the intended context.
      - Use loadingChanged as the notification signal for the property "loading" instead of
        navigationStateChanged.
      
      Also update all API tests to use the new loading signals and add some utility functions
      to track the loading since the new API aims to be more adapted to declarative logic
      and the auto tests are using an imperative logic.
      
      * Target.pri:
      * UIProcess/API/qt/qquickwebview.cpp:
      (QQuickWebViewPrivate::QQuickWebViewPrivate):
      (QQuickWebViewPrivate::loadDidSucceed):
      (QQuickWebViewPrivate::didChangeLoadingState):
      (QQuickWebViewPrivate::processDidCrash):
      (QQuickWebViewPrivate::didRelaunchProcess):
      * UIProcess/API/qt/qquickwebview_p.h:
      * UIProcess/API/qt/qquickwebview_p_p.h:
      (QQuickWebViewPrivate):
      * UIProcess/API/qt/qwebloadrequest.cpp: Added.
      (QWebLoadRequestPrivate):
      (QWebLoadRequestPrivate::QWebLoadRequestPrivate):
      (QWebLoadRequest::QWebLoadRequest):
      (QWebLoadRequest::~QWebLoadRequest):
      (QWebLoadRequest::url):
      (QWebLoadRequest::status):
      (QWebLoadRequest::errorString):
      (QWebLoadRequest::errorDomain):
      (QWebLoadRequest::errorCode):
      * UIProcess/API/qt/qwebloadrequest_p.h: Added.
      * UIProcess/API/qt/tests/publicapi/tst_publicapi.cpp:
      * UIProcess/API/qt/tests/qmltests/DesktopBehavior/tst_itemSelector.qml:
      * UIProcess/API/qt/tests/qmltests/DesktopBehavior/tst_linkHovered.qml:
      * UIProcess/API/qt/tests/qmltests/DesktopBehavior/tst_loadHtml.qml:
      * UIProcess/API/qt/tests/qmltests/DesktopBehavior/tst_messaging.qml:
      * UIProcess/API/qt/tests/qmltests/DesktopBehavior/tst_navigationRequested.qml:
      * UIProcess/API/qt/tests/qmltests/WebView/tst_favIconLoad.qml:
      * UIProcess/API/qt/tests/qmltests/WebView/tst_javaScriptDialogs.qml:
      * UIProcess/API/qt/tests/qmltests/WebView/tst_loadFail.qml:
      * UIProcess/API/qt/tests/qmltests/WebView/tst_loadHtml.qml:
      * UIProcess/API/qt/tests/qmltests/WebView/tst_loadProgress.qml:
      * UIProcess/API/qt/tests/qmltests/WebView/tst_loadProgressSignal.qml:
      * UIProcess/API/qt/tests/qmltests/WebView/tst_loadUrl.qml:
      * UIProcess/API/qt/tests/qmltests/WebView/tst_navigationHistory.qml:
      * UIProcess/API/qt/tests/qmltests/WebView/tst_preferences.qml:
      * UIProcess/API/qt/tests/qmltests/WebView/tst_properties.qml:
      * UIProcess/API/qt/tests/qmltests/WebView/tst_titleChanged.qml:
      * UIProcess/API/qt/tests/qmltests/common/TestWebView.qml: Added.
      * UIProcess/API/qt/tests/qquickwebview/tst_qquickwebview.cpp:
      (tst_QQuickWebView::navigationStatusAtStartup):
      (LoadStartedCatcher::LoadStartedCatcher):
      (LoadStartedCatcher::onLoadingChanged):
      (tst_QQuickWebView::stopEnabledAfterLoadStarted):
      (tst_QQuickWebView::loadEmptyPageViewHidden):
      (tst_QQuickWebView::loadNonexistentFileUrl):
      (tst_QQuickWebView::backAndForward):
      (tst_QQuickWebView::reload):
      (tst_QQuickWebView::stop):
      (tst_QQuickWebView::loadProgress):
      (tst_QQuickWebView::showWebView):
      (tst_QQuickWebView::multipleWebViewWindows):
      (tst_QQuickWebView::multipleWebViews):
      (tst_QQuickWebView::scrollRequest):
      * UIProcess/API/qt/tests/util.cpp:
      (LoadSpy):
      (LoadSpy::LoadSpy):
      (LoadSpy::onLoadingChanged):
      (waitForLoadSucceeded):
      (waitForLoadFailed):
      * UIProcess/API/qt/tests/util.h:
      * UIProcess/qt/QtWebError.h:
      * UIProcess/qt/QtWebPageLoadClient.cpp:
      (QtWebPageLoadClient::didStartProvisionalLoadForFrame):
      (QtWebPageLoadClient::dispatchLoadFailed):
      * UIProcess/qt/QtWebPageLoadClient.h:
      (QtWebPageLoadClient):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108815 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b6c249f1
    • dbates@webkit.org's avatar
      Attempt to fix the Windows and WinCE build after changeset r108809 · 3bf6ab23
      dbates@webkit.org authored
      <http://trac.webkit.org/changeset/108809> (https://bugs.webkit.org/show_bug.cgi?id=38995)
      
      Substitute styleLoadEventSender() for loadEventSender() in HTMLStyleElement.cpp
      and substitute linkLoadEventSender() for loadEventSender() in HTMLLinkElement.cpp. 
      
      * html/HTMLLinkElement.cpp:
      (WebCore::linkLoadEventSender):
      (WebCore::HTMLLinkElement::~HTMLLinkElement):
      (WebCore::HTMLLinkElement::dispatchPendingLoadEvents):
      (WebCore::HTMLLinkElement::dispatchPendingEvent):
      (WebCore::HTMLLinkElement::notifyLoadedSheetAndAllCriticalSubresources):
      * html/HTMLStyleElement.cpp:
      (WebCore::styleLoadEventSender):
      (WebCore::HTMLStyleElement::~HTMLStyleElement):
      (WebCore::HTMLStyleElement::dispatchPendingLoadEvents):
      (WebCore::HTMLStyleElement::dispatchPendingEvent):
      (WebCore::HTMLStyleElement::notifyLoadedSheetAndAllCriticalSubresources):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108814 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3bf6ab23
    • aroben@apple.com's avatar
      Undo the BUILDING_WTF part of r108808 · 04065167
      aroben@apple.com authored
      This broke the build, which is obviously worse than the linker warning it was trying to
      solve.
      
      * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCoreCommon.vsprops:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108813 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      04065167
    • peter@chromium.org's avatar
      [Chromium] Fix Chromium Android build by building HarfBuzzShaperBase.cpp · fcc004b0
      peter@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=79497
      
      Reviewed by Tony Gentilcore.
      
      The Chromium Android build was broken by revision r108733, as the
      HarfBuzzShaperBase.cpp file also should have been included for Android.
      Fix the build by including it.
      
      * WebCore.gyp/WebCore.gyp:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108812 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fcc004b0
    • philn@webkit.org's avatar
      Unreviewed, GTK SVG rebaseline (from 64-bit Release bot) and · ab27e679
      philn@webkit.org authored
      skipping one more fast/dom/shadow test.
      
      * platform/gtk/Skipped:
      * platform/gtk/http/tests/misc/object-embedding-svg-delayed-size-negotiation-2-expected.txt:
      * platform/gtk/svg/carto.net/scrollbar-expected.txt:
      * platform/gtk/svg/carto.net/window-expected.txt:
      * platform/gtk/svg/custom/circle-move-invalidation-expected.txt:
      * platform/gtk/svg/custom/js-late-clipPath-and-object-creation-expected.txt:
      * platform/gtk/svg/custom/js-late-gradient-and-object-creation-expected.txt:
      * platform/gtk/svg/custom/js-late-pattern-and-object-creation-expected.txt:
      * platform/gtk/svg/custom/use-detach-expected.txt:
      * platform/gtk/svg/zoom/page/zoom-replaced-intrinsic-ratio-001-expected.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108811 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ab27e679
    • yael.aharon@nokia.com's avatar
      [Texmap] Consolidate the common parts of TextureMapperGL::drawTexture · f780f0d2
      yael.aharon@nokia.com authored
      https://bugs.webkit.org/show_bug.cgi?id=79143
      
      Reviewed by Noam Rosenthal.
      
      Combine the two drawTexture methods into one, and extract the part that
      could not be combined into its own method.
      No new tests. Refactoring only.
      
      * platform/graphics/texmap/TextureMapperGL.cpp:
      (WebCore):
      (WebCore::TextureMapperGL::drawTexture):
      * platform/graphics/texmap/TextureMapperGL.h:
      (WebCore):
      (BitmapTextureGL):
      (WebCore::BitmapTextureGL::~BitmapTextureGL):
      (WebCore::BitmapTextureGL::id):
      (WebCore::BitmapTextureGL::relativeSize):
      (WebCore::BitmapTextureGL::setTextureMapper):
      (WebCore::BitmapTextureGL::BitmapTextureGL):
      * platform/graphics/texmap/TextureMapperShaderManager.cpp:
      (WebCore::TextureMapperShaderProgramOpacityAndMask::fragmentShaderSource):
      (WebCore):
      (WebCore::TextureMapperShaderProgramOpacityAndMask::prepare):
      * platform/graphics/texmap/TextureMapperShaderManager.h:
      (WebCore):
      (WebCore::TextureMapperShaderProgram::prepare):
      (WebCore::TextureMapperShaderProgram::matrixVariable):
      (WebCore::TextureMapperShaderProgram::sourceMatrixVariable):
      (WebCore::TextureMapperShaderProgram::sourceTextureVariable):
      (WebCore::TextureMapperShaderProgram::opacityVariable):
      (TextureMapperShaderProgram):
      (TextureMapperShaderProgramSimple):
      (TextureMapperShaderProgramOpacityAndMask):
      (WebCore::TextureMapperShaderProgramOpacityAndMask::maskMatrixVariable):
      (WebCore::TextureMapperShaderProgramOpacityAndMask::maskTextureVariable):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108810 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f780f0d2
    • dbates@webkit.org's avatar
      style element and link element for CSS stylesheet should emit load/error event... · 03278c1e
      dbates@webkit.org authored
      style element and link element for CSS stylesheet should emit load/error event when sheet loads/fails to load
      https://bugs.webkit.org/show_bug.cgi?id=38995
      
      Reviewed by Adam Barth and Nate Chapin.
      
      Source/WebCore: 
      
      Tests: fast/dom/HTMLLinkElement/link-onerror-stylesheet-with-existent-and-non-existent-import.html
             fast/dom/HTMLLinkElement/link-onerror-stylesheet-with-non-existent-import.html
             fast/dom/HTMLLinkElement/link-onerror.html
             fast/dom/HTMLLinkElement/link-onload-before-page-load.html
             fast/dom/HTMLLinkElement/link-onload-stylesheet-with-import.html
             fast/dom/HTMLLinkElement/link-onload.html
             fast/dom/HTMLLinkElement/link-onload2.html
             fast/dom/HTMLLinkElement/programmatically-add-link-with-onerror-handler.html
             fast/dom/HTMLLinkElement/programmatically-add-link-with-onload-handler.html
             fast/dom/HTMLStyleElement/programmatically-add-style-with-onerror-handler.html
             fast/dom/HTMLStyleElement/programmatically-add-style-with-onload-handler.html
             fast/dom/HTMLStyleElement/style-onerror-with-existent-and-non-existent-import.html
             fast/dom/HTMLStyleElement/style-onerror.html
             fast/dom/HTMLStyleElement/style-onload-before-page-load.html
             fast/dom/HTMLStyleElement/style-onload.html
             fast/dom/HTMLStyleElement/style-onload2.html
      
      Implements support for firing Load and Error events at HTML Link and HTML Style elements as per
      the HTML5 spec. (draft 05/25/2011) section "The link element" <http://www.w3.org/TR/html5/semantics.html#the-link-element>
      and "The style element" <http://www.w3.org/TR/html5/semantics.html#the-style-element>, respectively.
      
      * css/CSSImportRule.cpp:
      (WebCore::CSSImportRule::setCSSStyleSheet): Modified to call CSSStyleSheet::notifyLoadedSheet()
      after the style sheet associated with the @import rule loaded.
      * css/CSSStyleSheet.cpp: Added instance variable m_didLoadErrorOccur to track whether a network error
      occurred while loading any @import style sheets.
      (WebCore::CSSStyleSheet::CSSStyleSheet):
      (WebCore::CSSStyleSheet::checkLoaded):
      (WebCore):
      (WebCore::CSSStyleSheet::notifyLoadedSheet): Added; update m_didLoadErrorOccur to reflect if a network
      error occurred while loading a style sheet associated with an @import rule.
      * css/CSSStyleSheet.h:
      (WebCore):
      (CSSStyleSheet):
      * dom/Document.cpp:
      (WebCore::Document::implicitClose): Call HTML{LinkElement, StyleElement}::dispatchPendingLoadEvents() to
      ensure that all pending Load events for link and style elements are dispatched before we fire the Load
      event for the window.
      * dom/Node.h:
      (WebCore::Node::notifyLoadedSheetAndAllCriticalSubresources): Added; as stated in its name, this method is
      called once a style sheet and all its critical subresources (@imports) have loaded.
      * html/HTMLLinkElement.cpp:
      (WebCore::loadEventSender):
      (WebCore):
      (WebCore::HTMLLinkElement::HTMLLinkElement):
      (WebCore::HTMLLinkElement::~HTMLLinkElement): Modified to cancel all pending Load events on destruction.
      (WebCore::HTMLLinkElement::parseAttribute): Register event listeners for Load and Error events regardless of whether we
      built with link prefetch support.
      (WebCore::HTMLLinkElement::setCSSStyleSheet):
      (WebCore::HTMLLinkElement::dispatchPendingLoadEvents): Added; called from Document::implicitClose() to
      ensure that all pending Load events for link elements have been dispatched before we fire the Load event
      for the window.
      (WebCore::HTMLLinkElement::dispatchPendingEvent): Added; called by EventSender.
      (WebCore::HTMLLinkElement::notifyLoadedSheetAndAllCriticalSubresources): Added.
      * html/HTMLLinkElement.h:
      (WebCore):
      (HTMLLinkElement):
      * html/HTMLStyleElement.cpp:
      (WebCore::loadEventSender):
      (WebCore):
      (WebCore::HTMLStyleElement::HTMLStyleElement):
      (WebCore::HTMLStyleElement::~HTMLStyleElement): Modified to cancel all pending Load events on destruction.
      (WebCore::HTMLStyleElement::parseAttribute): Register event listeners for Load and Error events.
      (WebCore::HTMLStyleElement::dispatchPendingLoadEvents): Added; called from Document::implicitClose() to
      ensure that all pending Load events for link elements have been dispatched before we fire the Load event
      for the window.
      (WebCore::HTMLStyleElement::dispatchPendingEvent): Added; called by EventSender.
      (WebCore::HTMLStyleElement::notifyLoadedSheetAndAllCriticalSubresources): Added.
      * html/HTMLStyleElement.h:
      (WebCore):
      (HTMLStyleElement):
      
      LayoutTests: 
      
      Add test cases to ensure we dispatch Load/Error events to HTML Link and HTML Style elements.
      
      * fast/dom/HTMLLinkElement/link-onerror-expected.txt: Added.
      * fast/dom/HTMLLinkElement/link-onerror-stylesheet-with-existent-and-non-existent-import-expected.txt: Added.
      * fast/dom/HTMLLinkElement/link-onerror-stylesheet-with-existent-and-non-existent-import.html: Added.
      * fast/dom/HTMLLinkElement/link-onerror-stylesheet-with-non-existent-import-expected.txt: Added.
      * fast/dom/HTMLLinkElement/link-onerror-stylesheet-with-non-existent-import.html: Added.
      * fast/dom/HTMLLinkElement/link-onerror.html: Added.
      * fast/dom/HTMLLinkElement/link-onload-before-page-load-expected.txt: Added.
      * fast/dom/HTMLLinkElement/link-onload-before-page-load.html: Added.
      * fast/dom/HTMLLinkElement/link-onload-expected.txt: Added.
      * fast/dom/HTMLLinkElement/link-onload-stylesheet-with-import-expected.txt: Added.
      * fast/dom/HTMLLinkElement/link-onload-stylesheet-with-import.html: Added.
      * fast/dom/HTMLLinkElement/link-onload.html: Added.
      * fast/dom/HTMLLinkElement/link-onload2-expected.txt: Added.
      * fast/dom/HTMLLinkElement/link-onload2.html: Added.
      * fast/dom/HTMLLinkElement/programmatically-add-link-with-onerror-handler-expected.txt: Added.
      * fast/dom/HTMLLinkElement/programmatically-add-link-with-onerror-handler.html: Added.
      * fast/dom/HTMLLinkElement/programmatically-add-link-with-onload-handler-expected.txt: Added.
      * fast/dom/HTMLLinkElement/programmatically-add-link-with-onload-handler.html: Added.
      * fast/dom/HTMLLinkElement/resources/link-load-utilities.js: Added.
      (shouldComputedColorOfElementBeEqualToRGBString):
      (createLinkElementWithStylesheet):
      (createStyleElementWithString):
      (log):
      (testPassed):
      (testFailed):
      (testPassedAndNotifyDone):
      (testFailedAndNotifyDone):
      (testFinished):
      * fast/dom/HTMLLinkElement/resources/stylesheet-with-existent-and-non-existent-import.css: Added.
      (#test):
      * fast/dom/HTMLLinkElement/resources/stylesheet-with-import.css: Added.
      (#test):
      * fast/dom/HTMLLinkElement/resources/stylesheet-with-non-existent-import.css: Added.
      (#test):
      * fast/dom/HTMLLinkElement/resources/stylesheet.css: Added.
      (#test):
      * fast/dom/HTMLStyleElement/programmatically-add-style-with-onerror-handler-expected.txt: Added.
      * fast/dom/HTMLStyleElement/programmatically-add-style-with-onerror-handler.html: Added.
      * fast/dom/HTMLStyleElement/programmatically-add-style-with-onload-handler-expected.txt: Added.
      * fast/dom/HTMLStyleElement/programmatically-add-style-with-onload-handler.html: Added.
      * fast/dom/HTMLStyleElement/style-onerror-expected.txt: Added.
      * fast/dom/HTMLStyleElement/style-onerror-with-existent-and-non-existent-import-expected.txt: Added.
      * fast/dom/HTMLStyleElement/style-onerror-with-existent-and-non-existent-import.html: Added.
      * fast/dom/HTMLStyleElement/style-onerror.html: Added.
      * fast/dom/HTMLStyleElement/style-onload-before-page-load-expected.txt: Added.
      * fast/dom/HTMLStyleElement/style-onload-before-page-load.html: Added.
      * fast/dom/HTMLStyleElement/style-onload-expected.txt: Added.
      * fast/dom/HTMLStyleElement/style-onload.html: Added.
      * fast/dom/HTMLStyleElement/style-onload2-expected.txt: Added.
      * fast/dom/HTMLStyleElement/style-onload2.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108809 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      03278c1e
    • aroben@apple.com's avatar
      Fix linker warnings on Windows · 3f56690c
      aroben@apple.com authored
      * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def: Removed symbols that are already
      exported via JS_EXPORTDATA.
      
      * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCoreCommon.vsprops: Define BUILDING_WTF. We
      aren't actually building WTF, but we are statically linking it, so we need to define this
      symbol so that we export WTF's exports.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108808 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3f56690c