1. 27 Mar, 2013 13 commits
    • eric.carlson@apple.com's avatar
      [Mac] webkitClosedCaptionsVisible doesn't work · 92907e15
      eric.carlson@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=113417
      
      Reviewed by Jer Noble.
      
      Source/WebCore: 
      
      Test: media/track/track-in-band-legacy-api.html
      
      * html/HTMLMediaElement.cpp:
      (WebCore::HTMLMediaElement::HTMLMediaElement): Delete m_disableCaptions, it is no longer used.
      (WebCore::HTMLMediaElement::configureTextTrackGroup): Pass this to textTrackSelectionScore.
      (WebCore::HTMLMediaElement::setClosedCaptionsVisible):  Delete m_disableCaptions, it is no longer used.
      * html/HTMLMediaElement.h: Ditto.
      
      * page/CaptionUserPreferences.cpp:
      (WebCore::CaptionUserPreferences::textTrackSelectionScore): Add an HTMLMediaElement parameter.
      * page/CaptionUserPreferences.h:
      
      * page/CaptionUserPreferencesMac.h:
      * page/CaptionUserPreferencesMac.mm:
      (WebCore::CaptionUserPreferencesMac::textTrackSelectionScore): Return a score if the media element
          is showing captions, even if the preference says captions are disabled.
      
      LayoutTests: 
      
      * media/track/track-in-band-legacy-api-expected.txt: Added.
      * media/track/track-in-band-legacy-api.html: Added.
      
      * platform/chromium/TestExpectations: Skip new test.
      * platform/efl/TestExpectations: Ditto.
      * platform/gtk/TestExpectations: Ditto.
      * platform/mac/TestExpectations: Ditto.
      * platform/qt/TestExpectations: Ditto.
      * platform/win/TestExpectations: Ditto.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147001 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      92907e15
    • eric.carlson@apple.com's avatar
      [Mac] Text track menu items sometimes labeled incorrectly · d0daea36
      eric.carlson@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=113406
      
      Reviewed by Jer Noble.
      
      Source/WebCore: 
      
      media/video-controls-captions-trackmenu-localized.html was updated to test this.
      
      * page/CaptionUserPreferencesMac.mm:
      (WebCore::trackDisplayName): Use the 'label' attribute for the menu text when necessary.
      
      LayoutTests: 
      
      * media/video-controls-captions-trackmenu-localized.html:
      * platform/mac/media/video-controls-captions-trackmenu-localized-expected.txt:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147000 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d0daea36
    • sergio@webkit.org's avatar
      Inserting a blank (" ") at the end of a line does not insert anything in Overtype mode · 147de161
      sergio@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=113413
      
      Reviewed by Ryosuke Niwa.
      
      Source/WebCore:
      
      Perform a "normal" insert instead of a replace when there is
      nothing to replace (like at the end of a line) as this case is not
      supported by the replacing code path. This will allow us to
      properly rebalance whitespaces in those cases.
      
      Updated the editing/execCommand/overtype.html test to check also
      this use case.
      
      * editing/InsertTextCommand.cpp:
      (WebCore::InsertTextCommand::setEndingSelectionWithoutValidation):
      (WebCore::InsertTextCommand::performTrivialReplace):
      (WebCore::InsertTextCommand::performOverwrite):
      (WebCore::InsertTextCommand::doApply): use the recently added
      setEndingSelectionWithoutValidation() to avoid code duplication.
      * editing/InsertTextCommand.h:
      (InsertTextCommand):
      
      LayoutTests:
      
      Updated the test to include the case of inserting a whitespace
      both in the middle or at the end of a line.
      
      * editing/execCommand/overtype-expected.txt:
      * editing/execCommand/overtype.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146999 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      147de161
    • zandobersek@gmail.com's avatar
      Unreviewed GTK gardening. · 4510cc69
      zandobersek@gmail.com authored
      Addressing layout test failures that are specific to GTK-WK1 by moving the related expectations into the specific
      TestExpectations file or adjusting and moving the baselines into the GTK-WK1 baseline search path.
      
      * platform/gtk-wk1/TestExpectations:
      * platform/gtk-wk1/fast: Added.
      * platform/gtk-wk1/fast/media: Added.
      * platform/gtk-wk1/fast/media/mq-transform-02-expected.html: Copied from LayoutTests/platform/gtk/fast/media/mq-transform-02-expected.html.
      * platform/gtk-wk1/fast/media/mq-transform-03-expected.html: Copied from LayoutTests/platform/gtk/fast/media/mq-transform-03-expected.html.
      * platform/gtk-wk2/TestExpectations:
      * platform/gtk/TestExpectations:
      * platform/gtk/fast/dom/HTMLLinkElement/prefetch-expected.txt: Added.
      * platform/gtk/fast/dom/HTMLLinkElement/subresource-expected.txt: Added.
      * platform/gtk/fast/hidpi/clip-text-in-hidpi-expected.txt:
      * platform/gtk/fast/hidpi/image-set-background-dynamic-expected.txt:
      * platform/gtk/fast/hidpi/image-set-border-image-dynamic-expected.txt:
      * platform/gtk/fast/media/mq-transform-02-expected.html: Removed.
      * platform/gtk/fast/media/mq-transform-03-expected.html: Removed.
      * platform/gtk/fast/preloader: Added.
      * platform/gtk/fast/preloader/document-write-2-expected.txt: Added.
      * platform/gtk/fast/preloader/document-write-expected.txt: Added.
      * platform/gtk/fast/preloader/script-expected.txt: Added.
      * platform/gtk/http/tests/security/XFrameOptions: Removed.
      * platform/gtk/http/tests/security/XFrameOptions/x-frame-options-allowall-expected.txt: Removed.
      * platform/gtk/http/tests/security/XFrameOptions/x-frame-options-invalid-expected.txt: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146994 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4510cc69
    • jer.noble@apple.com's avatar
      Source/WebCore: Source/WebCore: Mac: Media Controls always hide time display elements · 9501cbc6
      jer.noble@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=113355
      
      Reviewed by Eric Carlson.
      
      No new tests; rebaselined existing tests against correct behavior.
      
      A prior commit set the "min-width:0" property on the time display elements, which, combined
      with the "-webkit-flex-box:0 0" setting, caused the flex-box container to collapse the width
      of the elements to zero. To achieve the desired effect of hiding the time display elements,
      first set the elements' min-width to the desired width, as the new flex-box spec treats the
      default value of "min-width:auto" as the intrinsic width, and will collapse the text display
      elements to the intrinsic width of its contained text node.
      
      The above allows the timeline container to collapse beyond the sum of its childrens'
      intrinsic width. Create a custom renderer that detects when this happens, and hide the time
      display controls.
      
      * css/mediaControls.css:
      * css/mediaControlsQuickTime.css:
      (audio::-webkit-media-controls-current-time-display, video::-webkit-media-controls-current-time-display):
          Set the "min-width:" property to equal the "width:" property.
      (audio::-webkit-media-controls-time-remaining-display, video::-webkit-media-controls-time-remaining-display):
          Ditto.
      * css/mediaControlsChromium.css:
      (audio::-webkit-media-controls-time-remaining-display, video::-webkit-media-controls-time-remaining-display):
          Chromium assumes the time display controls are flex-boxes, so make that explicit.
      * html/shadow/MediaControlElementTypes.cpp: Removed MediaControlTimeDisplayElement::createRenderer().
      * html/shadow/MediaControlElementTypes.h:
      (MediaControlTimeDisplayElement): Ditto.
      * html/shadow/MediaControlElements.cpp:
      (WebCore::MediaControlTimelineContainerElement::setTimeDisplaysHidden): Added, walks through the
          container's children and shows or hides time display elements.
      (WebCore::MediaControlTimelineContainerElement::createRenderer): Added, creates a RenderMediaControlTimelineContainer.
      (WebCore::getMediaControlTimeRemainingDisplayElementShadowPseudoId): Added, allow setTimeDisplaysHidden to
          query against children's shadowPseudoId().
      (WebCore::MediaControlTimeRemainingDisplayElement::shadowPseudoId): Moved contents to getMediaControlTimeRemainingDisplayElementShadowPseudoId.
      (WebCore::getMediaControlCurrentTimeDisplayElementShadowPseudoId): Added, allow setTimeDisplaysHidden to
          query against children's shadowPseudoId().
      (WebCore::MediaControlCurrentTimeDisplayElement::shadowPseudoId): Moved contents to getMediaControlCurrentTimeDisplayElementShadowPseudoId.
      * html/shadow/MediaControlElements.h:
      (MediaControlTimelineContainerElement):
      * rendering/RenderMediaControlElements.cpp:
      (WebCore::RenderMediaControlTimelineContainer::RenderMediaControlTimelineContainer): Added, simple constructor.
      (WebCore::RenderMediaControlTimelineContainer::layout): Detect when the controller's width is greater than
          a certain value, and show or hide the time display elements in response.
      * rendering/RenderMediaControlElements.h:
      (RenderMediaControlTimelineContainer):
      
      LayoutTests: Mac: Media Controls always hide time display elements
      https://bugs.webkit.org/show_bug.cgi?id=113355
      
      Reviewed by Eric Carlson.
      
      Rebaseline mac results.
      
      * platform/mac/media/audio-controls-rendering-expected.png:
      * platform/mac/media/audio-controls-rendering-expected.txt:
      * platform/mac/media/controls-after-reload-expected.png:
      * platform/mac/media/controls-after-reload-expected.txt:
      * platform/mac/media/controls-strict-expected.png:
      * platform/mac/media/controls-strict-expected.txt:
      * platform/mac/media/controls-styling-strict-expected.png: Added.
      * platform/mac/media/controls-styling-strict-expected.txt:
      * platform/mac/media/controls-without-preload-expected.png:
      * platform/mac/media/controls-without-preload-expected.txt:
      * platform/mac/media/video-controls-rendering-expected.png:
      * platform/mac/media/video-controls-rendering-expected.txt:
      * platform/mac/media/video-display-toggle-expected.png:
      * platform/mac/media/video-display-toggle-expected.txt:
      * platform/mac/media/video-no-audio-expected.png:
      * platform/mac/media/video-no-audio-expected.txt:
      * platform/mac/media/video-playing-and-pause-expected.png:
      * platform/mac/media/video-playing-and-pause-expected.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146992 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9501cbc6
    • cfleizach@apple.com's avatar
      Regression in tests due to https://bugs.webkit.org/show_bug.cgi?id=113339 · ae539ad0
      cfleizach@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=113361
      
      Source/WebCore: 
      
      Fix the red bots. No review.
      
      Ensure only pop-up buttons get the AXRequired attribute instead of all buttons.        
      
      * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
      (-[WebAccessibilityObjectWrapper additionalAccessibilityAttributeNames]):
      (-[WebAccessibilityObjectWrapper accessibilityAttributeNames]):
      
      LayoutTests: 
      
      Remove skipped tests.
      
      * platform/mac/TestExpectations:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146986 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ae539ad0
    • zarvai@inf.u-szeged.hu's avatar
      [Qt] Unreviewed gardening. Cleanup after r146756 and r146786. · 30430b7a
      zarvai@inf.u-szeged.hu authored
      * platform/qt/fast/frames/frame-set-scaling-rotate-expected.txt: Removed.
      * platform/qt/fast/frames/frame-set-scaling-skew-expected.txt: Removed.
      * platform/qt/fast/gradients/border-image-gradient-sides-and-corners-expected.txt: Removed.
      * platform/qt/fast/line-grid/line-align-left-edges-expected.txt: Removed.
      * platform/qt/fast/reflections/reflection-masks-expected.txt: Removed.
      * platform/qt/fast/reflections/reflection-masks-opacity-expected.txt: Removed.
      * platform/qt/fast/reflections/reflection-masks-outset-expected.txt: Removed.
      * platform/qt/fast/repaint/background-misaligned-expected.txt: Removed.
      * platform/qt/fast/repaint/overhanging-float-detach-repaint-expected.txt: Removed.
      * platform/qt/fast/repaint/transform-absolute-child-expected.txt: Removed.
      * platform/qt/fast/replaced/border-radius-clip-content-edge-expected.txt: Removed.
      * platform/qt/fast/table/border-collapsing/equal-precedence-resolution-expected.txt: Removed.
      * platform/qt/fast/text/bidi-embedding-pop-and-push-same-2-expected.txt: Removed.
      * platform/qt/fast/writing-mode/block-level-images-expected.txt: Removed.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146985 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      30430b7a
    • vsevik@chromium.org's avatar
      Web Inspector: Breakpoint manager should restore breakpoints when uiSourceCode is added. · 580ec8f1
      vsevik@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=113381
      
      Reviewed by Pavel Feldman.
      
      Source/WebCore:
      
      Breakpoint manager now restores breakpoints on UISourceCodeAdded event.
      Breakpoint manager now only resets breakpoints in debugger when source mapping is changed to/from non identity one.
      
      * inspector/front-end/BreakpointManager.js:
      (WebInspector.BreakpointManager.prototype._uiSourceCodeAdded):
      (WebInspector.BreakpointManager.prototype._resetBreakpoints):
      (WebInspector.BreakpointManager.prototype._uiSourceCodeMappingChanged):
      * inspector/front-end/CompilerScriptMapping.js:
      (WebInspector.CompilerScriptMapping.prototype.get isIdentity):
      * inspector/front-end/DefaultScriptMapping.js:
      (WebInspector.DefaultScriptMapping.prototype.isIdentity):
      * inspector/front-end/ResourceScriptMapping.js:
      (WebInspector.ResourceScriptMapping.prototype.isIdentity):
      * inspector/front-end/SASSSourceMapping.js:
      (WebInspector.SASSSourceMapping.prototype.isIdentity):
      * inspector/front-end/ScriptSnippetModel.js:
      (WebInspector.SnippetScriptMapping.prototype.isIdentity):
      * inspector/front-end/SourceMapping.js:
      (WebInspector.SourceMapping.prototype.isIdentity):
      * inspector/front-end/StylesSourceMapping.js:
      (WebInspector.StylesSourceMapping.prototype.isIdentity):
      * inspector/front-end/UISourceCode.js:
      (WebInspector.UISourceCode.prototype.setSourceMapping):
      
      LayoutTests:
      
      * inspector/debugger/breakpoint-manager-expected.txt:
      * inspector/debugger/breakpoint-manager.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146983 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      580ec8f1
    • dominik.rottsches@intel.com's avatar
      Unreviewed, rolling out r146864. · f254adb0
      dominik.rottsches@intel.com authored
      http://trac.webkit.org/changeset/146864
      https://bugs.webkit.org/show_bug.cgi?id=113391
      
      causes crashes on Wk2 EFL release bot (Requested by drott on
      #webkit).
      
      Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2013-03-27
      
      .:
      
      * Source/cmake/OptionsEfl.cmake:
      
      Tools:
      
      * Scripts/webkitperl/FeatureList.pm:
      
      LayoutTests:
      
      * platform/efl/TestExpectations:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146980 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f254adb0
    • commit-queue@webkit.org's avatar
      [EFL] Remove a duplicated test from TestExpectations · 5a3d20f5
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=113385
      
      Unreviewed, EFL gardening.
      
      Patch by Seokju Kwon <seokju.kwon@gmail.com> on 2013-03-27
      
      * platform/efl/TestExpectations:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146978 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5a3d20f5
    • vsevik@chromium.org's avatar
      Web Inspector: Follow-up to r146898: test that uiSourceCodes are not leaking in breakpoint manager. · 3d818cc7
      vsevik@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=113368
      
      Reviewed by Pavel Feldman.
      
      Source/WebCore:
      
      Added a missed line and a test.
      
      * inspector/front-end/BreakpointManager.js:
      (WebInspector.BreakpointManager.prototype._projectWillReset):
      
      LayoutTests:
      
      * inspector/debugger/breakpoint-manager.html:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146973 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3d818cc7
    • tasak@google.com's avatar
      [shadow] styleForText should consider the case where parent node has no style · 20d93810
      tasak@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=113275
      
      Source/WebCore:
      
      If a text node is distributed, its parent node for rendering and
      styling might have no style. In the case, styleForText should return
      default style.
      
      Reviewed by Hajime Morrita.
      
      Test: fast/dom/shadow/text-node-distributed-crash.html
      
      * css/StyleResolver.cpp:
      (WebCore::StyleResolver::styleForText):
      Check whether a parent node has any style or not. If not, return
      default style. This is the same behavior as styleForElement.
      
      LayoutTests:
      
      Reviewed by Hajime Morrita.
      
      * fast/dom/shadow/text-node-distributed-crash-expected.txt: Added.
      * fast/dom/shadow/text-node-distributed-crash.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146967 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      20d93810
    • yurys@chromium.org's avatar
      Unreviewed. Rebaseline fast/replaced/border-radius-clip-content-edge.html · 5280dfdc
      yurys@chromium.org authored
      * platform/chromium-win/fast/replaced/border-radius-clip-content-edge-expected.png:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146966 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5280dfdc
  2. 26 Mar, 2013 27 commits
    • pdr@google.com's avatar
      Rebaseline expectations for fast/replaced/border-radius-clip-content-edge.html · f59fab4e
      pdr@google.com authored
      Unreviewed rebaseline of test expectations after r146955 
      
      * platform/chromium-linux/fast/replaced/border-radius-clip-content-edge-expected.png:
      * platform/chromium-mac/fast/replaced/border-radius-clip-content-edge-expected.png:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146963 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f59fab4e
    • mark.lam@apple.com's avatar
      Greening the mac bots. · fe93356e
      mark.lam@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=113361.
      
      Not Reviewed.
      
      * platform/mac/TestExpectations:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146958 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fe93356e
    • antti@apple.com's avatar
      Test if non-immediate descendants obscure background · 4f141bf6
      antti@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=113137
      
      Reviewed by Simon Fraser.
      
      Source/WebCore: 
      
      The current obscuration test only covers immediate children. We can find more cases by looking deeper into descendants.
              
      The patch makes the test sufficiently smart to stop a heavy fully obscured gif animation on micrsoft.com.
      
      * loader/cache/CachedImage.cpp:
      (WebCore::CachedImage::animationAdvanced):
      * rendering/RenderBox.cpp:
      (WebCore::RenderBox::styleDidChange):
              
          Invalidate parents to max test depth.
      
      (WebCore::RenderBox::backgroundPaintedExtent):
              
          Background painting is pixel snapped.
      
      (WebCore::isCandidateForOpaquenessTest):
      (WebCore::RenderBox::foregroundIsKnownToBeOpaqueInRect):
              
          Separate foreground testing and make it recursive.
          Add fast bailout for common static positioned case.
          Remove maximum child count, the fast bailouts should prevent long tests.
          Add maximum depth so we know how deep we need to invalidate in styleDidChange.
      
      (WebCore::RenderBox::computeBackgroundIsKnownToBeObscured):
      (WebCore):
      * rendering/RenderBox.h:
      (RenderBox):
      * rendering/RenderImage.cpp:
      (WebCore::RenderImage::foregroundIsKnownToBeOpaqueInRect):
      (WebCore):
      (WebCore::RenderImage::computeBackgroundIsKnownToBeObscured):
              
      * rendering/RenderImage.h:
      (RenderImage):
      
      LayoutTests: 
      
      * fast/backgrounds/obscured-background-child-style-change-expected.html:
      * fast/backgrounds/obscured-background-child-style-change.html:
      * fast/repaint/obscured-background-no-repaint-expected.txt:
      * fast/repaint/obscured-background-no-repaint.html:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146955 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4f141bf6
    • cfleizach@apple.com's avatar
      WebKit does not expose @required or @aria-required as AXRequired on select elements · 1f897272
      cfleizach@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=113339
      
      Reviewed by Tim Horton.
      
      Source/WebCore: 
      
      Make sure button types can return the AXRequired attribute.
      
      Tests: platform/mac/accessibility/aria-required-popup-button.html
      
      * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
      (-[WebAccessibilityObjectWrapper accessibilityAttributeNames]):
      
      LayoutTests: 
      
      * platform/mac/accessibility/aria-required-popup-button-expected.txt: Added.
      * platform/mac/accessibility/aria-required-popup-button.html: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146949 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1f897272
    • fpizlo@apple.com's avatar
      REGRESSION: Sometimes, operations on proven strings ignore changes to the string prototype · f0d8277b
      fpizlo@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=113353
      <rdar://problem/13510778>
      
      Source/JavaScriptCore: 
      
      Reviewed by Mark Hahnenberg and Geoffrey Garen.
              
      ToString should call speculateStringObject() even if you know that it's a string object, since
      it calls it to also get the watchpoint. Note that even with this change, if you do
      Phantom(Check:StringObject:@a), it might get eliminated just because we proved that @a is a
      string object (thereby eliminating the prototype watchpoint); that's fine since ToString is
      MustGenerate and never decays to Phantom.
      
      * dfg/DFGSpeculativeJIT.cpp:
      (JSC::DFG::SpeculativeJIT::compileToStringOnCell):
      (JSC::DFG::SpeculativeJIT::speculateStringObject):
      (JSC::DFG::SpeculativeJIT::speculateStringOrStringObject):
      * dfg/DFGSpeculativeJIT.h:
      (SpeculativeJIT):
      (JSC::DFG::SpeculativeJIT::speculateStringObjectForStructure):
      
      LayoutTests: 
      
      Reviewed by Mark Hahnenberg and Geoffrey Garen.
      
      * fast/js/jsc-test-list:
      * fast/js/dfg-phantom-base-expected.txt: Added.
      * fast/js/dfg-phantom-base.html: Added.
      * fast/js/dfg-to-string-toString-becomes-bad-with-check-structure-expected.txt: Added.
      * fast/js/dfg-to-string-toString-becomes-bad-with-check-structure.html: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146947 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f0d8277b
    • dino@apple.com's avatar
      When a primary plugin is restarted, also start similar plugins · cf69686e
      dino@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=113265
      
      Reviewed by Tim Horton.
      
      Source/WebCore:
      
      If we detect a primary plugin that is snapshotted, we immediately restart it.
      When this happens, we should also restart any other plugins that
      match the same origin and type. This allows sites with a lot of
      (geometrically) nearby plugins to behave as if they are a single big plugin.
      
      Tests: plugins/snapshotting/autoplay-similar-to-dominant-after-delay.html
             plugins/snapshotting/autoplay-similar-to-dominant.html
      
      * WebCore.exp.in: Export mimeTypeFromURL.
      * html/HTMLPlugInImageElement.cpp:
      (WebCore::addPlugInsFromNodeListMatchingPlugInOrigin): Use loadedMimeType helper.
      (WebCore::HTMLPlugInImageElement::restartSimilarPlugIns): New method, which copied the
          existing code from userDidClickSnapshot.
      (WebCore::HTMLPlugInImageElement::userDidClickSnapshot): Move the similar plugin detection
          out into another function and call it.
      (WebCore::HTMLPlugInImageElement::setIsPrimarySnapshottedPlugIn): Call restartSimilarPlugIns.
      (WebCore::HTMLPlugInImageElement::subframeLoaderWillCreatePlugIn): Use loadedMimeType helper.
      * html/HTMLPlugInImageElement.h: Declaration of restartSimilarPlugIns.
      (WebCore::HTMLPlugInImageElement::loadedMimeType): New helper method since this
          code was being often duplicated.
      
      Source/WebKit2:
      
      Remember the origin of the primary plugin, so that we can
      autostart anything that is similar.
      
      * WebProcess/WebCoreSupport/WebPlugInClient.cpp:
      (WebKit::WebPlugInClient::WebPlugInClient): Keep a pointer to the WebPage.
      (WebKit::WebPlugInClient::shouldAutoStartFromOrigin): Pass the page onto the process.
      * WebProcess/WebCoreSupport/WebPlugInClient.h:
      (WebPlugInClient): New member variable for the WebPage we were created with.
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::determinePrimarySnapshottedPlugIn): Remember the origin information
          for the primary plugin.
      (WebKit::WebPage::matchesPrimaryPlugIn): Returns true if we're seeing something that
          looks like the primary plugin.
      * WebProcess/WebPage/WebPage.h: New method matchesPrimaryPlugIn.
      * WebProcess/WebProcess.cpp:
      (WebKit::WebProcess::shouldPlugInAutoStartFromOrigin): Check if the page thinks this is
          the primary plugin.
      * WebProcess/WebProcess.h: Accept a reference to the page in shouldPlugInAutoStartFromOrigin.
      
      LayoutTests:
      
      Two new tests. The first has one big plugin (that should be detected as the primary)
      and then a few smaller versions (which should autostart along with the primary).
      The second has one big plugin, and then adds a similar one after a short delay.
      
      * platform/mac-wk2/plugins/snapshotting/autoplay-similar-to-dominant-after-delay-expected.txt: Added.
      * platform/mac-wk2/plugins/snapshotting/autoplay-similar-to-dominant-expected.txt: Added.
      * plugins/snapshotting/autoplay-similar-to-dominant-after-delay.html: Added.
      * plugins/snapshotting/autoplay-similar-to-dominant.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146946 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cf69686e
    • zoltan@webkit.org's avatar
      Unreviewed. Fix test after r146938. Since CSS Exclusions is still an... · 95572ae6
      zoltan@webkit.org authored
      Unreviewed. Fix test after r146938. Since CSS Exclusions is still an experimental feature, shape-inside-on-nested-container-with-unresolved-height.html
      test should enable CSS Exclusions for the testrunners first.  
      
      * fast/exclusions/shape-inside/shape-inside-on-nested-container-with-unresolved-height.html: Set CSSExclisions enabled for DRT/WTR.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146943 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      95572ae6
    • alokp@chromium.org's avatar
      Unreviewed gardening. · 062a284b
      alokp@chromium.org authored
      Marked compositing/rtl/rtl-iframe-* tests as ImageOnlyFailure instead of Failure.
      
      * platform/chromium/TestExpectations:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146942 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      062a284b
    • wangxianzhu@chromium.org's avatar
      Non-paintsContent fixed position layer should not cause slow scrolling · 50666458
      wangxianzhu@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=113238
      
      Reviewed by James Robinson.
      
      Source/WebCore:
      
      Added NotCompositedForNoVisibleContent in ViewportConstrainedNotCompositedReason and set it in RLC.
      
      Test: compositing/layer-creation/fixed-position-no-content-scroll-reason.html
      
      * rendering/RenderLayer.h: Add NotCompositedForNoVisibleContent.
      * rendering/RenderLayerCompositor.cpp:
      (WebCore::RenderLayerCompositor::requiresCompositingForPosition): Set NotCompositedForNoVisibleContent reason when the fixed position layer has no visible content.
      
      LayoutTests:
      
      * compositing/layer-creation/fixed-position-no-content-scroll-reason-expected.txt: Added.
      * compositing/layer-creation/fixed-position-no-content-scroll-reason.html: Copied from LayoutTests/compositing/layer-creation/fixed-position-out-of-view-scroll-reason.html. Test case for the bug.
      * compositing/layer-creation/fixed-position-in-view-dynamic.html: Set background of fixed layer to distinguish out-of-view case from no-content case.
      * compositing/layer-creation/fixed-position-out-of-view-dynamic.html: Ditto.
      * compositing/layer-creation/fixed-position-out-of-view-scroll-reason.html: Ditto.
      * platform/chromium/compositing/layer-creation/fixed-position-in-view-dynamic-expected.txt: Removed. This was a wrong rebaseline related to this bug.
      * platform/chromium/platform/chromium/virtual/softwarecompositing/layer-creation/fixed-position-in-view-dynamic-expected.txt: Removed. This was a wrong rebaseline related to this bug.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146940 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      50666458
    • alokp@chromium.org's avatar
      Unreviewed gardening. · 0b992bb7
      alokp@chromium.org authored
      Marked compositing/iframes/scrolling-iframe.html flaky on all platforms.
      
      * platform/chromium/TestExpectations:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146939 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0b992bb7
    • zoltan@webkit.org's avatar
      [CSS Exclusions] The radius of a circle should be computed based on the shorter available dimension · fda9d1d6
      zoltan@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=113255
      
      Reviewed by Julien Chaffraix.
      
      When we decide what should be the radius of a circle, we should choose the smallest available space. For instance when the
      width or height is not resolvable for the circle we should not have a radius for it. This change modifies the behavior to
      use the smaller available space, so we won't render unnecessary circle shapes.
      
      Source/WebCore: 
      
      Test: fast/exclusions/shape-inside/shape-inside-on-nested-container-with-unresolved-height.html
      
      * rendering/ExclusionShape.cpp:
      (WebCore::ExclusionShape::createExclusionShape):
      
      LayoutTests: 
      
      * fast/exclusions/shape-inside/shape-inside-on-nested-container-with-unresolved-height-expected.html: Added.
      * fast/exclusions/shape-inside/shape-inside-on-nested-container-with-unresolved-height.html: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146938 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fda9d1d6
    • jamesr@google.com's avatar
      Clean up last failing expectations from solid color layer patch. · 9d65243a
      jamesr@google.com authored
      * platform/chromium-mac-lion/platform/chromium/virtual/softwarecompositing/reflections/animation-inside-reflection-expected.png:
      * platform/chromium-mac-lion/platform/chromium/virtual/softwarecompositing/rtl/rtl-iframe-absolute-expected.txt:
      * platform/chromium-mac-lion/platform/chromium/virtual/softwarecompositing/rtl/rtl-iframe-fixed-expected.txt:
      * platform/chromium-mac-lion/platform/chromium/virtual/softwarecompositing/rtl/rtl-iframe-relative-expected.txt:
      * platform/chromium-mac-lion/platform/chromium/virtual/softwarecompositing/transitions/scale-transition-no-start-expected.png:
      * platform/chromium-mac-snowleopard/platform/chromium/virtual/softwarecompositing/reflections/animation-inside-reflection-expected.png:
      * platform/chromium-mac-snowleopard/platform/chromium/virtual/softwarecompositing/rtl/rtl-iframe-absolute-expected.txt:
      * platform/chromium-mac-snowleopard/platform/chromium/virtual/softwarecompositing/rtl/rtl-iframe-fixed-expected.txt:
      * platform/chromium-mac-snowleopard/platform/chromium/virtual/softwarecompositing/rtl/rtl-iframe-relative-expected.txt:
      * platform/chromium-mac-snowleopard/platform/chromium/virtual/softwarecompositing/transitions/scale-transition-no-start-expected.png:
      * platform/chromium-mac/platform/chromium/virtual/softwarecompositing/reflections/animation-inside-reflection-expected.png:
      * platform/chromium-mac/platform/chromium/virtual/softwarecompositing/rtl/rtl-iframe-absolute-expected.txt:
      * platform/chromium-mac/platform/chromium/virtual/softwarecompositing/rtl/rtl-iframe-fixed-expected.txt:
      * platform/chromium-mac/platform/chromium/virtual/softwarecompositing/rtl/rtl-iframe-relative-expected.txt:
      * platform/chromium-mac/platform/chromium/virtual/softwarecompositing/transitions/scale-transition-no-start-expected.png:
      * platform/chromium-win-xp/platform/chromium/virtual/softwarecompositing/rtl/rtl-iframe-absolute-expected.txt:
      * platform/chromium-win-xp/platform/chromium/virtual/softwarecompositing/rtl/rtl-iframe-fixed-expected.txt:
      * platform/chromium-win-xp/platform/chromium/virtual/softwarecompositing/rtl/rtl-iframe-relative-expected.txt:
      * platform/chromium-win/platform/chromium/virtual/softwarecompositing/reflections/animation-inside-reflection-expected.png:
      * platform/chromium-win/platform/chromium/virtual/softwarecompositing/transitions/scale-transition-no-start-expected.png:
      * platform/chromium/TestExpectations:
      * platform/chromium/platform/chromium/virtual/softwarecompositing/overflow/composited-scrolling-creates-a-stacking-container-expected.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146936 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9d65243a
    • csaavedra@igalia.com's avatar
      Convert test from UTF-16 to UTF-8 · 5f297c9e
      csaavedra@igalia.com authored
      Rubber stamped by James Robinson.
      
      * fast/dom/34176.html: Convert from little endian UTF-16 to UTF-8
      to make git diff happy.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146927 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5f297c9e
    • alokp@chromium.org's avatar
      Rebaseline text output for opaque GraphicsLayers · 5b2faeab
      alokp@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=109507
      
      Unreviewed rebaseline.
      
      * platform/chromium-linux-x86/compositing/overflow/composited-scrolling-paint-phases-expected.txt: Removed.
      * platform/chromium-linux/compositing/overflow/composited-scrolling-paint-phases-expected.txt:
      * platform/chromium-linux/compositing/rtl/rtl-iframe-absolute-overflow-expected.txt:
      * platform/chromium-linux/compositing/rtl/rtl-iframe-absolute-overflow-scrolled-expected.txt:
      * platform/chromium-linux/compositing/rtl/rtl-iframe-fixed-overflow-expected.txt:
      * platform/chromium-linux/compositing/rtl/rtl-iframe-fixed-overflow-scrolled-expected.txt:
      * platform/chromium-linux/platform/chromium/virtual/gpu/compositedscrolling/overflow/composited-scrolling-paint-phases-expected.txt:
      * platform/chromium-linux/platform/chromium/virtual/softwarecompositing/overflow/composited-scrolling-paint-phases-expected.txt:
      * platform/chromium-linux/platform/chromium/virtual/softwarecompositing/rtl/rtl-iframe-absolute-overflow-expected.txt:
      * platform/chromium-linux/platform/chromium/virtual/softwarecompositing/rtl/rtl-iframe-absolute-overflow-scrolled-expected.txt:
      * platform/chromium-linux/platform/chromium/virtual/softwarecompositing/rtl/rtl-iframe-fixed-overflow-expected.txt:
      * platform/chromium-linux/platform/chromium/virtual/softwarecompositing/rtl/rtl-iframe-fixed-overflow-scrolled-expected.txt:
      * platform/chromium-mac-lion/platform/chromium/virtual/softwarecompositing/rtl/rtl-fixed-overflow-scrolled-expected.txt:
      * platform/chromium-mac-snowleopard/platform/chromium/virtual/softwarecompositing/rtl/rtl-fixed-overflow-scrolled-expected.txt:
      * platform/chromium-mac/compositing/overflow/composited-scrolling-paint-phases-expected.txt: Copied from LayoutTests/platform/chromium/platform/chromium/virtual/gpu/compositedscrolling/overflow/composited-scrolling-paint-phases-expected.txt.
      * platform/chromium-mac/platform/chromium/virtual/softwarecompositing/rtl/rtl-fixed-overflow-scrolled-expected.txt:
      * platform/chromium-mac/platform/chromium/virtual/softwarecompositing/tiling/huge-layer-add-remove-child-expected.txt:
      * platform/chromium-mac/platform/chromium/virtual/softwarecompositing/tiling/huge-layer-with-layer-children-expected.txt:
      * platform/chromium-win-xp/platform/chromium/virtual/softwarecompositing/rtl/rtl-fixed-overflow-scrolled-expected.txt:
      * platform/chromium-win/compositing/overflow/composited-scrolling-paint-phases-expected.txt: Copied from LayoutTests/platform/chromium/platform/chromium/virtual/gpu/compositedscrolling/overflow/composited-scrolling-paint-phases-expected.txt.
      * platform/chromium/TestExpectations:
      * platform/chromium/compositing/rtl/rtl-iframe-absolute-overflow-expected.txt: Copied from LayoutTests/platform/chromium-linux/compositing/rtl/rtl-iframe-absolute-overflow-expected.txt.
      * platform/chromium/compositing/rtl/rtl-iframe-absolute-overflow-scrolled-expected.txt: Copied from LayoutTests/platform/chromium-linux/platform/chromium/virtual/softwarecompositing/rtl/rtl-iframe-absolute-overflow-scrolled-expected.txt.
      * platform/chromium/compositing/rtl/rtl-iframe-fixed-overflow-expected.txt: Copied from LayoutTests/platform/chromium-linux/compositing/rtl/rtl-iframe-fixed-overflow-expected.txt.
      * platform/chromium/compositing/rtl/rtl-iframe-fixed-overflow-scrolled-expected.txt: Copied from LayoutTests/platform/chromium-linux/platform/chromium/virtual/softwarecompositing/rtl/rtl-iframe-fixed-overflow-scrolled-expected.txt.
      * platform/chromium/platform/chromium/virtual/gpu/compositedscrolling/overflow/composited-scrolling-paint-phases-expected.txt:
      * platform/chromium/platform/chromium/virtual/softwarecompositing/overflow/composited-scrolling-paint-phases-expected.txt:
      * platform/chromium/platform/chromium/virtual/softwarecompositing/rtl/rtl-iframe-absolute-overflow-expected.txt: Copied from LayoutTests/platform/chromium-linux/compositing/rtl/rtl-iframe-absolute-overflow-expected.txt.
      * platform/chromium/platform/chromium/virtual/softwarecompositing/rtl/rtl-iframe-absolute-overflow-scrolled-expected.txt: Copied from LayoutTests/platform/chromium-linux/platform/chromium/virtual/softwarecompositing/rtl/rtl-iframe-absolute-overflow-scrolled-expected.txt.
      * platform/chromium/platform/chromium/virtual/softwarecompositing/rtl/rtl-iframe-fixed-overflow-expected.txt: Copied from LayoutTests/platform/chromium-linux/compositing/rtl/rtl-iframe-fixed-overflow-expected.txt.
      * platform/chromium/platform/chromium/virtual/softwarecompositing/rtl/rtl-iframe-fixed-overflow-scrolled-expected.txt: Copied from LayoutTests/platform/chromium-linux/platform/chromium/virtual/softwarecompositing/rtl/rtl-iframe-fixed-overflow-scrolled-expected.txt.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146925 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5b2faeab
    • rafaelw@chromium.org's avatar
      Remove stray newline. This newline is messing up mozilla's test harness · 7fb5e702
      rafaelw@chromium.org authored
      and we share this file with them via html5lib.
      
      * html5lib/resources/template.dat:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146923 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7fb5e702
    • rniwa@webkit.org's avatar
      Remove some entries since those tests have been passing. · 9f73ae37
      rniwa@webkit.org authored
      Also update the test expectations for the bug 113227 flaky since they're passing most of the time.
      
      * platform/mac/TestExpectations:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146916 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9f73ae37
    • allan.jensen@digia.com's avatar
      [Qt] editing/pasteboard/can-read-in-dragstart-event.html and... · 7bc0f8b1
      allan.jensen@digia.com authored
      [Qt] editing/pasteboard/can-read-in-dragstart-event.html and /can-read-in-copy-and-cut-events.html are crashing
      https://bugs.webkit.org/show_bug.cgi?id=113126
      
      Reviewed by Jocelyn Turcotte.
      
      Source/WebCore:
      
      Make it possible to read from a writable Clipboard.
      
      Test: editing/pasteboard/can-read-in-copy-and-cut-events.html
      
      * platform/qt/ClipboardQt.cpp:
      (WebCore::ClipboardQt::getData):
      (WebCore::ClipboardQt::types):
      (WebCore::ClipboardQt::files):
      (WebCore::ClipboardQt::readClipboardData):
      (WebCore::ClipboardQt::hasData):
      (WebCore::ClipboardQt::items):
      * platform/qt/ClipboardQt.h:
      (ClipboardQt):
      
      LayoutTests:
      
      Unskip now working editing/pasteboard/can-read-in-copy-and-cut-events.html.
      The other test still needs better drag-and-drop support in DRT.
      
      * platform/qt/TestExpectations:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146910 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7bc0f8b1
    • sergio@webkit.org's avatar
      Implement overtype mode for editable content · 1874d7a9
      sergio@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=112126
      
      Reviewed by Ryosuke Niwa.
      
      Source/WebCore:
      
      Tests: editing/execCommand/overtype-support.html
             editing/execCommand/overtype.html
      
      Add a new Overwrite command to the editor. This command will
      perform overtype operations when enabled instead of "normal" text
      insertions. As IE does, we maintain a single toggle state in the
      editor (enabled/disabled) for all the editable content in the
      page.
      
      This new command will be only available for richly editable
      content via keybindings or the context menu. For testing purposes
      it is also accessible via internals.
      
      * editing/CompositeEditCommand.cpp:
      (WebCore::CompositeEditCommand::replaceTextInNode): Use RefPtr for
      local variables.
      * editing/Editor.cpp:
      (WebCore::Editor::Editor):
      * editing/Editor.h:
      (WebCore::Editor::isOverwriteModeEnabled):
      (WebCore::Editor::toggleOverwriteModeEnabled):
      (Editor): Added two new functions and a new attribute.
      * editing/EditorCommand.cpp:
      (WebCore::executeToggleOverwrite): Enables/disables overwrite mode.
      (WebCore):
      (WebCore::createCommandMap): New OverWrite command.
      * editing/InsertTextCommand.cpp:
      (WebCore::InsertTextCommand::setEndingSelectionWithoutValidation):
      Refactored from performTrivialReplace(), shared by
      performOverwrite().
      (WebCore):
      (WebCore::InsertTextCommand::performTrivialReplace):
      (WebCore::InsertTextCommand::performOverwrite):
      (WebCore::InsertTextCommand::doApply): Perform overwrite if enabled.
      * editing/InsertTextCommand.h:
      (InsertTextCommand):
      * testing/Internals.cpp:
      (WebCore::Internals::resetToConsistentState): Reset OverWrite mode
      to false.
      (WebCore::Internals::isOverwriteModeEnabled):
      (WebCore):
      (WebCore::Internals::toggleOverwriteModeEnabled): Provide access
      to overwrite functionality in Editor for testing purposes.
      * testing/Internals.h:
      (Internals):
      * testing/Internals.idl:
      
      Source/WebKit/mac:
      
      Added the OverWrite editing command to the WebCore editing
      commands lists.
      
      * WebView/WebHTMLView.mm:
      * WebView/WebView.h:
      * WebView/WebView.mm:
      
      LayoutTests:
      
      Two new layout tests for the new overtype mode. We use
      overtype-support.html to check that the Overwrite command is not
      exported to JavaScript but accessible through Internals. The
      overtype.html one is used to test the actual behaviour of the
      command.
      
      The new command was also added to enabling-and-selection-2.js to
      check that it is only available for richly editable content.
      
      * editing/execCommand/enabling-and-selection-2-expected.txt:
      Updated expectations for OverWrite command.
      * editing/execCommand/overtype-expected.txt: Added.
      * editing/execCommand/overtype-support-expected.txt: Added.
      * editing/execCommand/overtype-support.html: Added.
      * editing/execCommand/overtype.html: Added.
      * editing/execCommand/script-tests/enabling-and-selection-2.js:
      Added a check for OverWrite command.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146907 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1874d7a9
    • commit-queue@webkit.org's avatar
      Unreviewed, rolling out r146901. · 72190cac
      commit-queue@webkit.org authored
      http://trac.webkit.org/changeset/146901
      https://bugs.webkit.org/show_bug.cgi?id=113321
      
      Was landed to soon (Requested by pfeldman on #webkit).
      
      Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2013-03-26
      
      Source/WebCore:
      
      * inspector/front-end/ConsoleView.js:
      (WebInspector.ConsoleView.prototype.):
      (WebInspector.ConsoleView.prototype.filter):
      (WebInspector.ConsoleView.prototype._scheduleScrollIntoView.scrollIntoView):
      (WebInspector.ConsoleView.prototype._scheduleScrollIntoView):
      (WebInspector.ConsoleView.prototype._consoleMessageAdded):
      (WebInspector.ConsoleView.prototype._appendConsoleMessage):
      (WebInspector.ConsoleView.prototype._consoleCleared):
      (WebInspector.ConsoleView.prototype._handleContextMenuEvent.monitoringXHRItemAction):
      (WebInspector.ConsoleView.prototype._handleContextMenuEvent.get preserveLogItemAction):
      (WebInspector.ConsoleView.prototype._shouldBeVisible):
      (WebInspector.ConsoleView.prototype._updateMessageList):
      (WebInspector.ConsoleView.prototype._promptKeyDown):
      (WebInspector.ConsoleView.prototype._printResult):
      (WebInspector.ConsoleCommand.prototype.highlightSearchResults):
      * inspector/front-end/inspector.css:
      (.console-warning-level, .console-error-level, .console-log-level, .console-debug-level):
      (.filter-all .console-debug-level, .filter-debug .console-debug-level):
      (.filter-all .console-debug-level.repeated-message, .filter-debug .console-debug-level.repeated-message):
      
      LayoutTests:
      
      * inspector/console/console-preserve-log.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146905 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      72190cac
    • rafaelw@chromium.org's avatar
      HTMLStackItem should include <template> as a special tag · 16bce4e9
      rafaelw@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=113016
      
      Reviewed by Eric Seidel.
      
      Source/WebCore:
      
      New test added to html5lib suite.
      
      * html/parser/HTMLStackItem.h:
      (WebCore::HTMLStackItem::isSpecialNode):
      
      LayoutTests:
      
      * html5lib/resources/template.dat:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146904 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      16bce4e9
    • vsevik@chromium.org's avatar
      Web Inspector: Distinguish breakpoints and breakpoint locations in BreakpointManager API · ccde99ef
      vsevik@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=113311
      
      Reviewed by Pavel Feldman.
      
      Source/WebCore:
      
      Made independent handling of breakpoints and breakpoint location in breakpoint manager consistent.
      JavaScriptSourceFrame now removes breakpoints originally set in it based on primary UI location.
      
      * inspector/front-end/BreakpointManager.js:
      (WebInspector.BreakpointManager.prototype.breakpointsForUISourceCode):
      (WebInspector.BreakpointManager.prototype.allBreakpoints):
      (WebInspector.BreakpointManager.prototype.breakpointLocationsForUISourceCode):
      (WebInspector.BreakpointManager.prototype.allBreakpointLocations):
      (WebInspector.BreakpointManager.prototype._projectWillReset.get for):
      (WebInspector.BreakpointManager.prototype._projectWillReset):
      * inspector/front-end/JavaScriptSourceFrame.js:
      (WebInspector.JavaScriptSourceFrame.prototype.onUISourceCodeContentChanged):
      (WebInspector.JavaScriptSourceFrame.prototype._restoreBreakpointsAfterEditing):
      (WebInspector.JavaScriptSourceFrame.prototype._removeAllBreakpoints):
      
      LayoutTests:
      
      * inspector/debugger/live-edit-breakpoints-expected.txt:
      * inspector/debugger/live-edit-breakpoints.html:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146903 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ccde99ef
    • commit-queue@webkit.org's avatar
      Web Inspector: Remove remainings of CSS-based console message filtering. · 8a1b945c
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=112710
      
      Patch by Dmitry Zvorygin <zvorygin@chromium.org> on 2013-03-26
      Reviewed by Pavel Feldman.
      
      Source/WebCore:
      
      * inspector/front-end/ConsoleView.js:
      (WebInspector.ConsoleView.get this):
      (WebInspector.ConsoleView.prototype.):
      (WebInspector.ConsoleView.prototype.filter):
      (WebInspector.ConsoleView.prototype._consoleMessageAdded):
      (WebInspector.ConsoleView.prototype._appendConsoleMessage):
      (WebInspector.ConsoleView.prototype._consoleCleared):
      (WebInspector.ConsoleView.prototype._shouldBeVisible):
      (WebInspector.ConsoleView.prototype._updateMessageList):
      (WebInspector.ConsoleView.prototype._promptKeyDown):
      (WebInspector.ConsoleView.prototype._printResult):
      (WebInspector.ConsoleCommand.prototype.highlightSearchResults):
      * inspector/front-end/inspector.css:
      (.console-debug-level.repeated-message):
      
      LayoutTests:
      
      * inspector/console/console-preserve-log.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146901 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8a1b945c
    • apavlov@chromium.org's avatar
      Web Inspector: [Elements] Unable to "Edit as HTML" XHTML/SVG documents. · e2f25b07
      apavlov@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=113290
      
      Reviewed by Pavel Feldman.
      
      Source/WebCore:
      
      DOMPatchSupport has been slightly augmented to handle XML (XHTML and SVG) documents.
      
      Test: inspector/elements/set-outer-html-for-xhtml.xhtml
      
      * inspector/DOMPatchSupport.cpp:
      (WebCore::DOMPatchSupport::patchDocument):
      (WebCore::DOMPatchSupport::patchNode):
      * inspector/InspectorDOMAgent.cpp:
      (WebCore::InspectorDOMAgent::setOuterHTML): Let HTML, XHTML, and SVG documents through.
      
      LayoutTests:
      
      * inspector/elements/set-outer-html-for-xhtml-expected.txt: Added.
      * inspector/elements/set-outer-html-for-xhtml.xhtml: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146897 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e2f25b07
    • morrita@google.com's avatar
      https://bugs.webkit.org/show_bug.cgi?id=113164 · 85bdf051
      morrita@google.com authored
      Custom Elements: readyCallback should be called for outerHTML and insertAdjecentHTML
      
      Source/WebCore:
      
      These APIs also create new elements thus should have V8DeliverCustomElementCallbacks attribute.
      
      Reviewed by Dimitri Glazkov.
      
      Test: Updated lifecycle-ready-creation-api.html.
      
      * html/HTMLElement.idl:
      
      LayoutTests:
      
      Reviewed by Dimitri Glazkov.
      
      * fast/dom/custom/lifecycle-ready-creation-api-expected.txt:
      * fast/dom/custom/lifecycle-ready-creation-api.html:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146896 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      85bdf051
    • jochen@chromium.org's avatar
      Fix incorrect test name in content shell expectations · cd773224
      jochen@chromium.org authored
      Unreviewed. Typing is hard.
      
      * platform/chromium/ContentShellTestExpectations:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146895 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cd773224
    • mkwst@chromium.org's avatar
      CSP 1.1: Experiment with 'base-uri' directive. · 5b0379f6
      mkwst@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=113307
      
      Reviewed by Jochen Eisinger.
      
      Source/WebCore:
      
      The 'base-uri' directive was introduced[1] as an experimental directive
      in CSP 1.1 after a bit of discussion[2][3]. The exact semantics will
      likely change, but it would be good for us to get some implementation
      experience with the API as currently specified, and to allow folks to
      play with the implementation to determine whether it meets the
      requirements the way we think it might.
      
      This patch is a first pass at that implementation: it will have no
      effect on ports that haven't enabled the CSP_NEXT flag.
      
      [1]: https://dvcs.w3.org/hg/content-security-policy/rev/4b89c246ea16
      [2]: http://lists.w3.org/Archives/Public/public-webappsec/2012Oct/0022.html
      [3]: http://lists.w3.org/Archives/Public/public-webappsec/2013Feb/0074.html
      
      Tests: http/tests/security/contentSecurityPolicy/1.1/base-uri-allow.html
             http/tests/security/contentSecurityPolicy/1.1/base-uri-deny.html
      
      * dom/Document.cpp:
      (WebCore::Document::processBaseElement):
          Check that the new base URI is allowed by CSP before using it as
          the document's base URI.
      * page/ContentSecurityPolicy.cpp:
          Add a constant for the new directive name (and, as a drive-by, split
          the list into CSP 1.0 and CSP 1.1 for clarity).
      (CSPDirectiveList):
          Add a property to hold the base URI policy directive value.
      (WebCore::CSPDirectiveList::checkSourceAndReportViolation):
          Customize the error message iff we're dealing with 'base-uri'.
      (WebCore::CSPDirectiveList::allowBaseURI):
          Check the given URI against the 'base-uri' directive's value,
          exactly as we do for every other source-list type of directive.
      (WebCore::CSPDirectiveList::addDirective):
          Accept 'base-uri' as a valid directive iff CSP_NEXT is set, and
          the embedder has opted-in via the runtime flag.
      (WebCore::ContentSecurityPolicy::allowBaseURI):
          Expose an API method on ContentSecurityPolicy to check URIs against
          the 'base-uri' directive's value.
      
      LayoutTests:
      
      * http/tests/security/contentSecurityPolicy/1.1/base-uri-allow-expected.txt: Added.
      * http/tests/security/contentSecurityPolicy/1.1/base-uri-allow.html: Added.
      * http/tests/security/contentSecurityPolicy/1.1/base-uri-deny-expected.txt: Added.
      * http/tests/security/contentSecurityPolicy/1.1/base-uri-deny.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146886 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5b0379f6
    • commit-queue@webkit.org's avatar
      Unreviewed, rolling out r146879. · 5df66a42
      commit-queue@webkit.org authored
      http://trac.webkit.org/changeset/146879
      https://bugs.webkit.org/show_bug.cgi?id=113312
      
      Multiple layout test crashes in
      WebCore::RenderListItem::updateListMarkerNumbers (Requested by
      yurys on #webkit).
      
      Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2013-03-26
      
      Source/WebCore:
      
      * dom/Node.cpp:
      * dom/Node.h:
      (Node):
      * dom/NodeTraversal.cpp:
      * dom/NodeTraversal.h:
      (ElementTraversal):
      (NodeTraversal):
      * html/HTMLLIElement.cpp:
      (WebCore::HTMLLIElement::attach):
      * html/HTMLOListElement.cpp:
      (WebCore::HTMLOListElement::updateItemValues):
      (WebCore::HTMLOListElement::recalculateItemCount):
      * rendering/RenderCounter.cpp:
      (WebCore::previousInPreOrder):
      (WebCore::previousSiblingOrParent):
      (WebCore::parentElement):
      (WebCore::nextInPreOrder):
      * rendering/RenderListItem.cpp:
      (WebCore::enclosingList):
      (WebCore::RenderListItem::nextListItem):
      (WebCore::previousListItem):
      (WebCore::RenderListItem::calcValue):
      (WebCore::RenderListItem::explicitValueChanged):
      (WebCore::previousOrNextItem):
      (WebCore::RenderListItem::updateListMarkerNumbers):
      * rendering/RenderListItem.h:
      (RenderListItem):
      
      LayoutTests:
      
      * fast/dom/shadow/shadow-and-list-elements-expected.html:
      * fast/lists/positioned-count-crash-expected.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146883 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5df66a42