1. 05 May, 2009 2 commits
    • ap@webkit.org's avatar
      Reviewed by Dave Hyatt. · d0295906
      ap@webkit.org authored
              <rdar://problem/6576889> REGRESSION (r35185): Cannot watch Flash movies on omg.yahoo.com
      
              The problem was caused by missing <head> element - we used to create it when moving a
              misplaced <style> element, but we now handle those in place. Other browsers always create
              a <head> element.
      
              There is no guarantee that a <head> element always exists - first, it can be removed with
              removeChild or innerHTML, and also, we don't currently create it for frameset documents, or
              for manually created ones (e.g. ImageDocument).
      
              Test: fast/parser/head-element-for-yahoo-player.html
      
      WebKit:
              * dom/Document.cpp: (WebCore::Document::implicitClose): Create a <head> element for about:blank.
              A removed comment talked about rdar://3758785, but that problem doesn't re-occur even if this
              code is removed completely.
      
              * html/HTMLHtmlElement.cpp: (WebCore::HTMLHtmlElement::checkDTD): No longer allow <script>
              elements as children of <html>. This isn't directly related to this bug, but it was easier
              to fix both at once (IE and Firefox both don't allow such mispositioned <script> elements).
      
              * html/HTMLParser.cpp:
              (WebCore::HTMLParser::handleError): Move <script> to <head> if <body> hasn't been created yet.
              Create a <head> it a <body> is created implicitly to contain some other element.
              (WebCore::HTMLParser::bodyCreateErrorCheck): Ensure that a <head> exists when <body> is
              explicitly present in source.
              (WebCore::HTMLParser::createHead): Do the work even if <html> element hasn't been created yet.
      
      LayoutTests:
              * fast/parser/head-element-for-yahoo-player-expected.txt: Added.
              * fast/parser/head-element-for-yahoo-player.html: Added.
              Test the regression case (a misplaced <style> that used to create <head> implicitly).
      
              * editing/selection/select-all-005.html: Use a new index when selecting the body.
      
              * fast/dom/Document/document-write-doctype-expected.txt:
              * fast/dom/Document/resources/document-write-doctype.js:
              Removed checks for "Gecko quirk" of implicitly adding HEAD - that not a quirk, but standard
              behavior per HTML5.
      
              * editing/execCommand/create-list-1-expected.txt:
              * platform/mac/editing/deleting/4845371-expected.txt:
              * platform/mac/editing/deleting/4866671-expected.txt:
              * platform/mac/editing/deleting/4875189-expected.txt:
              * platform/mac/editing/deleting/5026848-1-expected.txt:
              * platform/mac/editing/deleting/5026848-2-expected.txt:
              * platform/mac/editing/deleting/5026848-3-expected.txt:
              * platform/mac/editing/deleting/5032066-expected.txt:
              * platform/mac/editing/deleting/5091898-expected.txt:
              * platform/mac/editing/deleting/5099303-expected.txt:
              * platform/mac/editing/deleting/5115601-expected.txt:
              * platform/mac/editing/deleting/5126166-expected.txt:
              * platform/mac/editing/deleting/5156801-2-expected.txt:
              * platform/mac/editing/deleting/5168598-expected.txt:
              * platform/mac/editing/deleting/5272440-expected.txt:
              * platform/mac/editing/deleting/5300379-expected.txt:
              * platform/mac/editing/deleting/5390681-expected.txt:
              * platform/mac/editing/deleting/5408255-expected.txt:
              * platform/mac/editing/deleting/5433862-2-expected.txt:
              * platform/mac/editing/deleting/5483370-expected.txt:
              * platform/mac/editing/deleting/delete-at-start-or-end-expected.txt:
              * platform/mac/editing/deleting/delete-block-table-expected.txt:
              * platform/mac/editing/deleting/delete-hr-expected.txt:
              * platform/mac/editing/deleting/delete-mixed-editable-content-001-expected.txt:
              * platform/mac/editing/deleting/delete-to-select-table-expected.txt:
              * platform/mac/editing/deleting/deletionUI-single-instance-expected.txt:
              * platform/mac/editing/deleting/merge-endOfParagraph-expected.txt:
              * platform/mac/editing/deleting/merge-no-br-expected.txt:
              * platform/mac/editing/deleting/merge-whitespace-pre-expected.txt:
              * platform/mac/editing/execCommand/4641880-1-expected.txt:
              * platform/mac/editing/execCommand/4641880-2-expected.txt:
              * platform/mac/editing/execCommand/4747450-expected.txt:
              * platform/mac/editing/execCommand/4786404-1-expected.txt:
              * platform/mac/editing/execCommand/4786404-2-expected.txt:
              * platform/mac/editing/execCommand/4916402-expected.txt:
              * platform/mac/editing/execCommand/4916541-expected.txt:
              * platform/mac/editing/execCommand/4916583-expected.txt:
              * platform/mac/editing/execCommand/4920488-expected.txt:
              * platform/mac/editing/execCommand/4920742-1-expected.txt:
              * platform/mac/editing/execCommand/4924441-expected.txt:
              * platform/mac/editing/execCommand/5049671-expected.txt:
              * platform/mac/editing/execCommand/5080333-1-expected.txt:
              * platform/mac/editing/execCommand/5080333-2-expected.txt:
              * platform/mac/editing/execCommand/5119244-expected.txt:
              * platform/mac/editing/execCommand/5120591-expected.txt:
              * platform/mac/editing/execCommand/5136770-expected.txt:
              * platform/mac/editing/execCommand/5142012-1-expected.txt:
              * platform/mac/editing/execCommand/5142012-2-expected.txt:
              * platform/mac/editing/execCommand/5142012-3-expected.txt:
              * platform/mac/editing/execCommand/5144139-1-expected.txt:
              * platform/mac/editing/execCommand/5164796-expected.txt:
              * platform/mac/editing/execCommand/5207369-expected.txt:
              * platform/mac/editing/execCommand/5210032-expected.txt:
              * platform/mac/editing/execCommand/5432254-1-expected.txt:
              * platform/mac/editing/execCommand/5432254-2-expected.txt:
              * platform/mac/editing/execCommand/5481523-expected.txt:
              * platform/mac/editing/execCommand/5482524-expected.txt:
              * platform/mac/editing/execCommand/5569741-expected.txt:
              * platform/mac/editing/execCommand/5573879-expected.txt:
              * platform/mac/editing/execCommand/5700414-1-expected.txt:
              * platform/mac/editing/execCommand/5700414-2-expected.txt:
              * platform/mac/editing/execCommand/insert-list-empty-div-expected.txt:
              * platform/mac/editing/input/5576619-expected.txt:
              * platform/mac/editing/inserting/12882-expected.txt:
              * platform/mac/editing/inserting/4840662-expected.txt:
              * platform/mac/editing/inserting/4875189-1-expected.txt:
              * platform/mac/editing/inserting/4875189-2-expected.txt:
              * platform/mac/editing/inserting/4959067-expected.txt:
              * platform/mac/editing/inserting/4960120-1-expected.txt:
              * platform/mac/editing/inserting/4960120-2-expected.txt:
              * platform/mac/editing/inserting/5002441-expected.txt:
              * platform/mac/editing/inserting/5058163-2-expected.txt:
              * platform/mac/editing/inserting/5156401-2-expected.txt:
              * platform/mac/editing/inserting/5549929-2-expected.txt:
              * platform/mac/editing/inserting/5549929-3-expected.txt:
              * platform/mac/editing/inserting/5607069-2-expected.txt:
              * platform/mac/editing/inserting/5607069-3-expected.txt:
              * platform/mac/editing/inserting/editable-html-element-expected.txt:
              * platform/mac/editing/inserting/editable-inline-element-expected.txt:
              * platform/mac/editing/inserting/edited-whitespace-1-expected.txt:
              * platform/mac/editing/inserting/editing-empty-divs-expected.txt:
              * platform/mac/editing/inserting/typing-tab-designmode-forms-expected.txt:
              * platform/mac/editing/pasteboard/4806874-expected.txt:
              * platform/mac/editing/pasteboard/4861080-expected.txt:
              * platform/mac/editing/pasteboard/4944770-1-expected.txt:
              * platform/mac/editing/pasteboard/4944770-2-expected.txt:
              * platform/mac/editing/pasteboard/4947130-expected.txt:
              * platform/mac/editing/pasteboard/4989774-expected.txt:
              * platform/mac/editing/pasteboard/5027857-expected.txt:
              * platform/mac/editing/pasteboard/5032095-expected.txt:
              * platform/mac/editing/pasteboard/5065605-expected.txt:
              * platform/mac/editing/pasteboard/5071074-2-expected.txt:
              * platform/mac/editing/pasteboard/5071074-expected.txt:
              * platform/mac/editing/pasteboard/5075944-2-expected.txt:
              * platform/mac/editing/pasteboard/5075944-3-expected.txt:
              * platform/mac/editing/pasteboard/5075944-expected.txt:
              * platform/mac/editing/pasteboard/5134759-expected.txt:
              * platform/mac/editing/pasteboard/5156401-1-expected.txt:
              * platform/mac/editing/pasteboard/5247341-expected.txt:
              * platform/mac/editing/pasteboard/5387578-expected.txt:
              * platform/mac/editing/pasteboard/5478250-expected.txt:
              * platform/mac/editing/pasteboard/5483567-expected.txt:
              * platform/mac/editing/pasteboard/5601583-1-expected.txt:
              * platform/mac/editing/pasteboard/copy-paste-bidi-expected.txt:
              * platform/mac/editing/pasteboard/input-field-1-expected.txt:
              * platform/mac/editing/pasteboard/merge-after-delete-1-expected.txt:
              * platform/mac/editing/pasteboard/merge-after-delete-2-expected.txt:
              * platform/mac/editing/pasteboard/merge-after-delete-expected.txt:
              * platform/mac/editing/pasteboard/merge-start-blockquote-expected.txt:
              * platform/mac/editing/pasteboard/paste-unrendered-select-expected.txt:
              * platform/mac/editing/pasteboard/prevent-block-nesting-01-expected.txt:
              * platform/mac/editing/pasteboard/select-element-1-expected.txt:
              * platform/mac/editing/selection/13804-expected.txt:
              * platform/mac/editing/selection/14971-expected.txt:
              * platform/mac/editing/selection/4397952-expected.txt:
              * platform/mac/editing/selection/4818145-expected.txt:
              * platform/mac/editing/selection/4866671-expected.txt:
              * platform/mac/editing/selection/4889598-expected.txt:
              * platform/mac/editing/selection/4895428-1-expected.txt:
              * platform/mac/editing/selection/4895428-2-expected.txt:
              * platform/mac/editing/selection/4895428-3-expected.txt:
              * platform/mac/editing/selection/4895428-4-expected.txt:
              * platform/mac/editing/selection/4932260-1-expected.txt:
              * platform/mac/editing/selection/4932260-2-expected.txt:
              * platform/mac/editing/selection/4932260-3-expected.txt:
              * platform/mac/editing/selection/4947387-expected.txt:
              * platform/mac/editing/selection/4960116-expected.txt:
              * platform/mac/editing/selection/4975120-expected.txt:
              * platform/mac/editing/selection/4983858-expected.txt:
              * platform/mac/editing/selection/5007143-2-expected.txt:
              * platform/mac/editing/selection/5007143-expected.txt:
              * platform/mac/editing/selection/5057506-2-expected.txt:
              * platform/mac/editing/selection/5057506-expected.txt:
              * platform/mac/editing/selection/5076323-1-expected.txt:
              * platform/mac/editing/selection/5076323-2-expected.txt:
              * platform/mac/editing/selection/5076323-3-expected.txt:
              * platform/mac/editing/selection/5081257-1-expected.txt:
              * platform/mac/editing/selection/5081257-2-expected.txt:
              * platform/mac/editing/selection/5099303-expected.txt:
              * platform/mac/editing/selection/5109817-expected.txt:
              * platform/mac/editing/selection/5136696-expected.txt:
              * platform/mac/editing/selection/5195166-1-expected.txt:
              * platform/mac/editing/selection/5195166-2-expected.txt:
              * platform/mac/editing/selection/5234383-1-expected.txt:
              * platform/mac/editing/selection/5234383-2-expected.txt:
              * platform/mac/editing/selection/5240265-expected.txt:
              * platform/mac/editing/selection/5333725-expected.txt:
              * platform/mac/editing/selection/5354455-1-expected.txt:
              * platform/mac/editing/selection/addRange-expected.txt:
              * platform/mac/editing/selection/caret-before-select-expected.txt:
              * platform/mac/editing/selection/contains-boundaries-expected.txt:
              * platform/mac/editing/selection/drag-select-1-expected.txt:
              * platform/mac/editing/selection/editable-html-element-expected.txt:
              * platform/mac/editing/selection/inconsistent-in-removeChildNode-expected.txt:
              * platform/mac/editing/selection/inline-closest-leaf-child-expected.txt:
              * platform/mac/editing/selection/mixed-editability-6-expected.txt:
              * platform/mac/editing/selection/mixed-editability-7-expected.txt:
              * platform/mac/editing/selection/move-by-sentence-linebreak-expected.txt:
              * platform/mac/editing/selection/select-all-005-expected.txt:
              * platform/mac/editing/selection/table-caret-1-expected.txt:
              * platform/mac/editing/selection/table-caret-2-expected.txt:
              * platform/mac/editing/selection/table-caret-3-expected.txt:
              * platform/mac/editing/selection/wrapped-line-caret-1-expected.txt:
              * platform/mac/editing/selection/wrapped-line-caret-2-expected.txt:
              * platform/mac/editing/style/4916887-expected.txt:
              * platform/mac/editing/style/5017613-1-expected.txt:
              * platform/mac/editing/style/5017613-2-expected.txt:
              * platform/mac/editing/style/5046875-1-expected.txt:
              * platform/mac/editing/style/5046875-2-expected.txt:
              * platform/mac/editing/style/5065910-expected.txt:
              * platform/mac/editing/style/5084241-expected.txt:
              * platform/mac/editing/style/5091898-expected.txt:
              * platform/mac/editing/style/5228141-expected.txt:
              * platform/mac/editing/style/5279521-expected.txt:
              * platform/mac/editing/style/font-family-with-space-expected.txt:
              * platform/mac/editing/style/fontsize-1-expected.txt:
              * platform/mac/editing/style/highlight-expected.txt:
              * platform/mac/editing/style/non-inheritable-styles-expected.txt:
              * platform/mac/editing/undo/5378473-expected.txt:
              * platform/mac/fast/block/float/relative-painted-twice-expected.txt:
              * platform/mac/fast/dom/delete-contents-expected.txt:
              * platform/mac/fast/events/context-no-deselect-expected.txt:
              * platform/mac/fast/events/label-focus-expected.txt:
              * platform/mac/fast/forms/input-appearance-focus-expected.txt:
              * platform/mac/fast/forms/input-text-click-inside-expected.txt:
              * platform/mac/fast/forms/input-text-click-outside-expected.txt:
              * platform/mac/fast/forms/input-text-double-click-expected.txt:
              * platform/mac/fast/forms/input-text-drag-down-expected.txt:
              * platform/mac/fast/forms/input-text-option-delete-expected.txt:
              * platform/mac/fast/forms/input-text-scroll-left-on-blur-expected.txt:
              * platform/mac/fast/forms/input-text-self-emptying-click-expected.txt:
              * platform/mac/fast/forms/textfield-drag-into-disabled-expected.txt:
              * platform/mac/fast/forms/textfield-overflow-expected.txt:
              * platform/mac/fast/inline/25277-2-expected.txt:
              * platform/mac/fast/inline/25277-expected.txt:
              * platform/mac/fast/lists/drag-into-marker-expected.txt:
              * platform/mac/fast/overflow/overflow-focus-ring-expected.txt:
              * platform/mac/fast/repaint/4776765-expected.txt:
              * platform/mac/fast/repaint/selection-after-delete-expected.txt:
              * platform/mac/fast/repaint/selection-after-remove-expected.txt:
              * platform/qt/editing/deleting/4845371-expected.txt:
              * platform/qt/editing/deleting/4866671-expected.txt:
              * platform/qt/editing/deleting/4875189-expected.txt:
              * platform/qt/editing/deleting/5026848-1-expected.txt:
              * platform/qt/editing/deleting/5026848-2-expected.txt:
              * platform/qt/editing/deleting/5026848-3-expected.txt:
              * platform/qt/editing/deleting/5032066-expected.txt:
              * platform/qt/editing/deleting/5091898-expected.txt:
              * platform/qt/editing/deleting/5099303-expected.txt:
              * platform/qt/editing/deleting/5115601-expected.txt:
              * platform/qt/editing/deleting/5126166-expected.txt:
              * platform/qt/editing/deleting/5144139-2-expected.txt:
              * platform/qt/editing/deleting/5156801-2-expected.txt:
              * platform/qt/editing/deleting/5168598-expected.txt:
              * platform/qt/editing/deleting/5272440-expected.txt:
              * platform/qt/editing/deleting/5300379-expected.txt:
              * platform/qt/editing/deleting/5390681-expected.txt:
              * platform/qt/editing/deleting/5408255-expected.txt:
              * platform/qt/editing/deleting/delete-at-start-or-end-expected.txt:
              * platform/qt/editing/deleting/delete-block-table-expected.txt:
              * platform/qt/editing/deleting/delete-hr-expected.txt:
              * platform/qt/editing/deleting/delete-link-1-expected.txt:
              * platform/qt/editing/deleting/delete-mixed-editable-content-001-expected.txt:
              * platform/qt/editing/deleting/delete-to-select-table-expected.txt:
              * platform/qt/editing/deleting/deletionUI-single-instance-expected.txt:
              * platform/qt/editing/deleting/merge-endOfParagraph-expected.txt:
              * platform/qt/editing/deleting/merge-no-br-expected.txt:
              * platform/qt/editing/deleting/merge-whitespace-pre-expected.txt:
              * platform/qt/editing/execCommand/4641880-1-expected.txt:
              * platform/qt/editing/execCommand/4641880-2-expected.txt:
              * platform/qt/editing/execCommand/4747450-expected.txt:
              * platform/qt/editing/execCommand/4786404-1-expected.txt:
              * platform/qt/editing/execCommand/4786404-2-expected.txt:
              * platform/qt/editing/execCommand/4916402-expected.txt:
              * platform/qt/editing/execCommand/4916541-expected.txt:
              * platform/qt/editing/execCommand/4916583-expected.txt:
              * platform/qt/editing/execCommand/4920488-expected.txt:
              * platform/qt/editing/execCommand/4920742-1-expected.txt:
              * platform/qt/editing/execCommand/4924441-expected.txt:
              * platform/qt/editing/execCommand/5049671-expected.txt:
              * platform/qt/editing/execCommand/5062376-expected.txt:
              * platform/qt/editing/execCommand/5080333-1-expected.txt:
              * platform/qt/editing/execCommand/5080333-2-expected.txt:
              * platform/qt/editing/execCommand/5119244-expected.txt:
              * platform/qt/editing/execCommand/5120591-expected.txt:
              * platform/qt/editing/execCommand/5136770-expected.txt:
              * platform/qt/editing/execCommand/5142012-1-expected.txt:
              * platform/qt/editing/execCommand/5142012-2-expected.txt:
              * platform/qt/editing/execCommand/5142012-3-expected.txt:
              * platform/qt/editing/execCommand/5144139-1-expected.txt:
              * platform/qt/editing/execCommand/5164796-expected.txt:
              * platform/qt/editing/execCommand/5207369-expected.txt:
              * platform/qt/editing/execCommand/5210032-expected.txt:
              * platform/qt/editing/execCommand/5432254-1-expected.txt:
              * platform/qt/editing/execCommand/5432254-2-expected.txt:
              * platform/qt/editing/execCommand/insert-list-empty-div-expected.txt:
              * platform/qt/editing/inserting/12882-expected.txt:
              * platform/qt/editing/inserting/4840662-expected.txt:
              * platform/qt/editing/inserting/4875189-1-expected.txt:
              * platform/qt/editing/inserting/4875189-2-expected.txt:
              * platform/qt/editing/inserting/4959067-expected.txt:
              * platform/qt/editing/inserting/4960120-1-expected.txt:
              * platform/qt/editing/inserting/4960120-2-expected.txt:
              * platform/qt/editing/inserting/5002441-expected.txt:
              * platform/qt/editing/inserting/5058163-2-expected.txt:
              * platform/qt/editing/inserting/5156401-2-expected.txt:
              * platform/qt/editing/inserting/editable-html-element-expected.txt:
              * platform/qt/editing/inserting/editable-inline-element-expected.txt:
              * platform/qt/editing/inserting/edited-whitespace-1-expected.txt:
              * platform/qt/editing/inserting/editing-empty-divs-expected.txt:
              * platform/qt/editing/inserting/insert-before-link-1-expected.txt:
              * platform/qt/editing/pasteboard/4806874-expected.txt:
              * platform/qt/editing/pasteboard/4840662-expected.txt:
              * platform/qt/editing/pasteboard/4944770-1-expected.txt:
              * platform/qt/editing/pasteboard/4989774-expected.txt:
              * platform/qt/editing/pasteboard/5027857-expected.txt:
              * platform/qt/editing/pasteboard/5032095-expected.txt:
              * platform/qt/editing/pasteboard/5065605-expected.txt:
              * platform/qt/editing/pasteboard/5071074-2-expected.txt:
              * platform/qt/editing/pasteboard/5071074-expected.txt:
              * platform/qt/editing/pasteboard/5075944-2-expected.txt:
              * platform/qt/editing/pasteboard/5075944-3-expected.txt:
              * platform/qt/editing/pasteboard/5075944-expected.txt:
              * platform/qt/editing/pasteboard/5134759-expected.txt:
              * platform/qt/editing/pasteboard/5156401-1-expected.txt:
              * platform/qt/editing/pasteboard/5245519-expected.txt:
              * platform/qt/editing/pasteboard/5247341-expected.txt:
              * platform/qt/editing/pasteboard/5387578-expected.txt:
              * platform/qt/editing/pasteboard/5478250-expected.txt:
              * platform/qt/editing/pasteboard/5483567-expected.txt:
              * platform/qt/editing/pasteboard/copy-paste-bidi-expected.txt:
              * platform/qt/editing/pasteboard/merge-after-delete-1-expected.txt:
              * platform/qt/editing/pasteboard/merge-after-delete-2-expected.txt:
              * platform/qt/editing/pasteboard/merge-after-delete-expected.txt:
              * platform/qt/editing/pasteboard/merge-start-blockquote-expected.txt:
              * platform/qt/editing/pasteboard/paste-unrendered-select-expected.txt:
              * platform/qt/editing/pasteboard/prevent-block-nesting-01-expected.txt:
              * platform/qt/editing/selection/13804-expected.txt:
              * platform/qt/editing/selection/4397952-expected.txt:
              * platform/qt/editing/selection/4818145-expected.txt:
              * platform/qt/editing/selection/4866671-expected.txt:
              * platform/qt/editing/selection/4889598-expected.txt:
              * platform/qt/editing/selection/4895428-2-expected.txt:
              * platform/qt/editing/selection/4895428-3-expected.txt:
              * platform/qt/editing/selection/4932260-1-expected.txt:
              * platform/qt/editing/selection/4932260-2-expected.txt:
              * platform/qt/editing/selection/4932260-3-expected.txt:
              * platform/qt/editing/selection/4960116-expected.txt:
              * platform/qt/editing/selection/4983858-expected.txt:
              * platform/qt/editing/selection/5007143-2-expected.txt:
              * platform/qt/editing/selection/5007143-expected.txt:
              * platform/qt/editing/selection/5076323-1-expected.txt:
              * platform/qt/editing/selection/5076323-2-expected.txt:
              * platform/qt/editing/selection/5076323-3-expected.txt:
              * platform/qt/editing/selection/5081257-1-expected.txt:
              * platform/qt/editing/selection/5081257-2-expected.txt:
              * platform/qt/editing/selection/5099303-expected.txt:
              * platform/qt/editing/selection/5136696-expected.txt:
              * platform/qt/editing/selection/5195166-1-expected.txt:
              * platform/qt/editing/selection/5195166-2-expected.txt:
              * platform/qt/editing/selection/5234383-1-expected.txt:
              * platform/qt/editing/selection/5234383-2-expected.txt:
              * platform/qt/editing/selection/5240265-expected.txt:
              * platform/qt/editing/selection/addRange-expected.txt:
              * platform/qt/editing/selection/caret-before-select-expected.txt:
              * platform/qt/editing/selection/editable-html-element-expected.txt:
              * platform/qt/editing/selection/mixed-editability-6-expected.txt:
              * platform/qt/editing/selection/mixed-editability-7-expected.txt:
              * platform/qt/editing/selection/move-by-sentence-linebreak-expected.txt:
              * platform/qt/editing/selection/select-all-005-expected.txt:
              * platform/qt/editing/selection/table-caret-1-expected.txt:
              * platform/qt/editing/selection/table-caret-2-expected.txt:
              * platform/qt/editing/selection/table-caret-3-expected.txt:
              * platform/qt/editing/style/4916887-expected.txt:
              * platform/qt/editing/style/5017613-1-expected.txt:
              * platform/qt/editing/style/5017613-2-expected.txt:
              * platform/qt/editing/style/5046875-1-expected.txt:
              * platform/qt/editing/style/5046875-2-expected.txt:
              * platform/qt/editing/style/5065910-expected.txt:
              * platform/qt/editing/style/5084241-expected.txt:
              * platform/qt/editing/style/5228141-expected.txt:
              * platform/qt/editing/style/5279521-expected.txt:
              * platform/qt/editing/style/font-family-with-space-expected.txt:
              * platform/qt/editing/style/fontsize-1-expected.txt:
              * platform/qt/editing/style/highlight-expected.txt:
              * platform/qt/editing/style/non-inheritable-styles-expected.txt:
              * platform/qt/editing/undo/5378473-expected.txt:
              * platform/qt/fast/dom/delete-contents-expected.txt:
              * platform/qt/fast/events/label-focus-expected.txt:
              * platform/qt/fast/forms/input-appearance-focus-expected.txt:
              * platform/qt/fast/forms/input-maxlength-2-expected.txt:
              * platform/qt/fast/forms/input-text-click-inside-expected.txt:
              * platform/qt/fast/forms/input-text-option-delete-expected.txt:
              * platform/qt/fast/forms/input-text-self-emptying-click-expected.txt:
              * platform/qt/fast/forms/textfield-drag-into-disabled-expected.txt:
              * platform/qt/fast/forms/textfield-overflow-expected.txt:
              * platform/qt/fast/overflow/overflow-focus-ring-expected.txt:
              * platform/qt/fast/repaint/4776765-expected.txt:
              * platform/qt/fast/repaint/selection-after-delete-expected.txt:
              * platform/qt/fast/repaint/selection-after-remove-expected.txt:
              * platform/win/editing/deleting/5168598-expected.txt:
              * platform/win/editing/inserting/4960120-1-expected.txt:
              * platform/win/editing/inserting/5607069-2-expected.txt:
              * platform/win/editing/inserting/5607069-3-expected.txt:
              * platform/win/editing/inserting/typing-tab-designmode-forms-expected.txt:
              * platform/win/editing/pasteboard/4806874-expected.txt:
              * platform/win/editing/selection/4895428-3-expected.txt:
              * platform/win/editing/selection/5136696-expected.txt:
              * platform/win/editing/selection/drag-select-1-expected.txt:
              * platform/win/fast/events/context-no-deselect-expected.txt:
              * platform/win/fast/events/label-focus-expected.txt:
              * platform/win/fast/forms/input-appearance-focus-expected.txt:
              * platform/win/fast/forms/input-text-click-inside-expected.txt:
              * platform/win/fast/forms/input-text-click-outside-expected.txt:
              * platform/win/fast/forms/input-text-double-click-expected.txt:
              * platform/win/fast/forms/input-text-drag-down-expected.txt:
              * platform/win/fast/forms/input-text-option-delete-expected.txt:
              * platform/win/fast/forms/input-text-scroll-left-on-blur-expected.txt:
              * platform/win/fast/forms/input-text-self-emptying-click-expected.txt:
              * platform/win/fast/forms/textfield-drag-into-disabled-expected.txt:
              * platform/win/fast/forms/textfield-overflow-expected.txt:
              Updated BODY element index in test output (for some tests, it increased because of the
              implicitly added <head>, and for others, it decreased because mispositoned <script> is being
              moved into <head>).
      
              * webarchive/adopt-attribute-styled-body-webarchive-expected.webarchive:
              * webarchive/archive-empty-frame-dom-expected.webarchive:
              Updated to include the implicitly added <head> elements.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43215 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d0295906
    • eric@webkit.org's avatar
      Reviewed by Simon Fraser. · 491b1ff4
      eric@webkit.org authored
              Remove the vestigial calculateLocalTransform()
              https://bugs.webkit.org/show_bug.cgi?id=25532
      
              RenderSVGContainer is now the only render which needs this
              function, but it no longer returns the unused bool.
      
              calculateLocalTransform() previously was called by the DOM before
              transform updates were part of layout().
      
              * rendering/RenderForeignObject.cpp:
              (WebCore::RenderForeignObject::layout):
              * rendering/RenderForeignObject.h:
              (WebCore::RenderForeignObject::localTransform):
              * rendering/RenderPath.cpp:
              (WebCore::RenderPath::layout):
              * rendering/RenderPath.h:
              * rendering/RenderSVGContainer.cpp:
              * rendering/RenderSVGContainer.h:
              (WebCore::RenderSVGContainer::calculateLocalTransform):
              * rendering/RenderSVGImage.cpp:
              (WebCore::RenderSVGImage::layout):
              * rendering/RenderSVGImage.h:
              * rendering/RenderSVGText.cpp:
              (WebCore::RenderSVGText::layout):
              * rendering/RenderSVGText.h:
              * rendering/RenderSVGTransformableContainer.cpp:
              (WebCore::RenderSVGTransformableContainer::calculateLocalTransform):
              * rendering/RenderSVGTransformableContainer.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43211 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      491b1ff4
  2. 04 May, 2009 12 commits
  3. 03 May, 2009 5 commits
  4. 02 May, 2009 5 commits
    • mitz@apple.com's avatar
      WebCore: · fc292c35
      mitz@apple.com authored
              Reviewed by Darin Adler.
      
              - another fix for <rdar://problem/6617298> Typing delete on an unquoted
                blank line unquotes the preceding, quoted blank line
      
              Test: editing/deleting/type-delete-after-quote-2.html
      
              * editing/DeleteSelectionCommand.cpp:
              (WebCore::DeleteSelectionCommand::DeleteSelectionCommand): Initialize
              m_startsAtEmptyLine.
              (WebCore::DeleteSelectionCommand::handleSpecialCaseBRDelete): When the
              selection starts at an empty line, do not prevent the merging of blocks.
              This is what allows the text after the line break to be merged into the
              block containing the line break. Also set m_startsAtEmptyLine to true.
              (WebCore::DeleteSelectionCommand::mergeParagraphs): If
              m_startsAtEmptyLine is true, create a placeholder BR to serve as the
              merge destination.
              * editing/DeleteSelectionCommand.h:
      
      LayoutTests:
      
              Reviewed by Darin Adler.
      
              - another test for <rdar://problem/6617298> Typing delete on an unquoted
                blank line unquotes the preceding, quoted blank line
      
              * editing/deleting/type-delete-after-quote-2-expected.txt: Added.
              * editing/deleting/type-delete-after-quote-2.html: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43154 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fc292c35
    • darin@apple.com's avatar
      WebCore: · ba48d61b
      darin@apple.com authored
      2009-05-02  Darin Adler  <darin@apple.com>
      
              Reviewed by Dan Bernstein.
      
              Bug 25352: REGRESSION(r42322): style isn't applied at bmwusa.com
              https://bugs.webkit.org/show_bug.cgi?id=25352
              rdar://problem/6823239
      
              Test: http/tests/mime/standard-mode-loads-stylesheet-with-text-css-and-invalid-type.html
      
              * platform/network/HTTPParsers.cpp:
              (WebCore::extractMIMETypeFromMediaType): Allow comma as a separator.
      
      LayoutTests:
      
      2009-05-02  Darin Adler  <darin@apple.com>
      
              Reviewed by Dan Bernstein.
      
              Bug 25352: REGRESSION(r42322): style isn't applied at bmwusa.com
              https://bugs.webkit.org/show_bug.cgi?id=25352
              rdar://problem/6823239
      
              * http/tests/mime/resources/style-with-text-css-and-invalid-type.php:
              Copied from LayoutTests/http/tests/mime/resources/style-with-charset.php and adapted.
              * http/tests/mime/standard-mode-loads-stylesheet-with-text-css-and-invalid-type-expected.txt: Added.
              * http/tests/mime/standard-mode-loads-stylesheet-with-text-css-and-invalid-type.html:
              Copied from LayoutTests/http/tests/mime/standard-mode-loads-stylesheet-with-empty-content-type.html and adapted.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43149 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ba48d61b
    • darin@apple.com's avatar
      WebCore: · 40b5df6f
      darin@apple.com authored
      2009-05-02  Darin Adler  <darin@apple.com>
      
              Reviewed by Brady Eidson.
      
              Bug 25491: WebFrame leak when a subframe removes itself
              https://bugs.webkit.org/show_bug.cgi?id=25491
              rdar://problem/6833859
      
              Test: fast/loading/subframe-removes-itself.html
      
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::checkLoadCompleteForThisFrame): When isStopping is true,
              treat load as complete, even if isLoadingInAPISense is still returning true.
      
      LayoutTests:
      
      2009-05-02  Darin Adler  <darin@apple.com>
      
              Reviewed by Brady Eidson (except for the non-fast/loading test fixes).
      
              Bug 25491: WebFrame leak when a subframe removes itself
              https://bugs.webkit.org/show_bug.cgi?id=25491
              rdar://problem/6833859
      
              * fast/loading: Added.
              * fast/loading/resources: Added.
              * fast/loading/resources/subframe-that-removes-itself.html: Added.
              * fast/loading/subframe-removes-itself-expected.txt: Added.
              * fast/loading/subframe-removes-itself.html: Added.
      
              * fast/frames/location-put-after-removal-expected.txt: Updated.
              For some reason, fixing the loader sequence results in output that has one more blank line.
      
              * http/tests/security/XFrameOptions/x-frame-options-deny-meta-tag-in-body.html:
              * http/tests/security/XFrameOptions/x-frame-options-deny-meta-tag-parent-same-origin-deny.html:
              * http/tests/security/XFrameOptions/x-frame-options-deny-meta-tag.html:
              Updated tests so they don't terminate when the partial load of the subframe completes, but
              rather wait until the subsequent load of about:blank occurs.
      
              * platform/gtk/Skipped: Skip loading tests.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43148 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      40b5df6f
    • kov@webkit.org's avatar
      2009-05-02 Gustavo Noronha Silva <gns@gnome.org> · ccfbd203
      kov@webkit.org authored
              Skip test that sometimes fails in GTK+.
      
              * platform/gtk/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43147 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ccfbd203
    • kov@webkit.org's avatar
      2009-05-02 Gustavo Noronha Silva <gns@gnome.org> · 3a1cf996
      kov@webkit.org authored
              Skip new test that does not represent a regression.
      
              * platform/gtk/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43145 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3a1cf996
  5. 01 May, 2009 2 commits
    • kmccullough@apple.com's avatar
      WebCore: · cda4a20f
      kmccullough@apple.com authored
      2009-05-01  Kevin McCullough  <kmccullough@apple.com>
      
              Reviewed by Adele Peterson and Darin Adler.
      
              <rdar://problem/4815598> Stuck in double spacing mode after pasting a
              paragraph with padding/margin (or table mode !)
      
              A lot of the issues in this bug were resolved on Mail's side by using
              WebKit to convert to plain text.  This is the final issue, that floating
              style stays on copied nodes causing them to float when they are pasted
              which is not what the user intended.
      
              * editing/markup.cpp:
              (WebCore::removeExteriorStyles):
              (WebCore::):
              (WebCore::appendStartMarkup):
              (WebCore::getStartMarkup):
              (WebCore::createMarkup):
      
      LayoutTests:
      
      2009-04-30  Kevin McCullough  <kmccullough@apple.com>
      
              Reviewed by Adele Peterson and Darin Adler.
      
              <rdar://problem/4815598> Stuck in double spacing mode after pasting a
              paragraph with padding/margin (or table mode !)
      
              A lot of the issues in this bug were resolved on Mail's side by using
              WebKit to convert to plain text.  This is the final issue, that floating
              style stays on copied nodes causing them to float when they are pasted
              which is not what the user intended.
      
              * editing/pasteboard/copy-paste-float-expected.txt: Added.
              * editing/pasteboard/copy-paste-float.html: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43115 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cda4a20f
    • jmalonzo@webkit.org's avatar
      2009-05-01 Jan Michael Alonzo <jmalonzo@webkit.org> · 411c3fb6
      jmalonzo@webkit.org authored
              Skip the following failing tests:
              fast/replaced/table-percent-height-text-controls.html
              media/video-document-types.html
      
              * platform/gtk/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43112 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      411c3fb6
  6. 30 Apr, 2009 14 commits
    • barraclough@apple.com's avatar
      JavaScriptCore: · 33fd41d8
      barraclough@apple.com authored
      2009-04-30  Gavin Barraclough  <barraclough@apple.com>
      
              Reviewed by Geoff Garen.
      
              Bug fix for rdar:/68455379.  If a case-insensitive regex contains
              a character class containing a range with an upper bound of \uFFFF
              the parser will infinite-loop whist adding other-case characters
              for characters in the range that do have another case.
      
              * yarr/RegexCompiler.cpp:
              (JSC::Yarr::CharacterClassConstructor::putRange):
      
      LayoutTests:
      
      2009-04-30  Gavin Barraclough  <barraclough@apple.com>
      
              Reviewed by Geoff Garen.
      
              Add layout test for rdar:/68455379.
      
              * fast/js/regexp-range-bound-ffff-expected.txt: Added.
              * fast/js/regexp-range-bound-ffff.html: Added.
              * fast/js/resources/regexp-range-bound-ffff.js: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43110 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      33fd41d8
    • eric.carlson@apple.com's avatar
      2009-04-30 Eric Carlson <eric.carlson@apple.com> · 040cbce0
      eric.carlson@apple.com authored
              Reviewed by Simon Fraser.
              
              MediaDocument falls back to plug-in unnecessarily
              https://bugs.webkit.org/show_bug.cgi?id=25504
              <rdar://problem/6844702>
              
              Don't allow harmless media types to cause a MediaDocument to fall
              back to PluginDocument.
      
              Test: media/video-document-types.html
      
              * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
              (WebCore::MediaPlayerPrivate::disableUnsupportedTracks): add timecode, timecode 64,
              odsm, and sdsm to allowed track types.
      
              * platform/graphics/win/QTMovieWin.cpp:
              (QTMovieWin::disableUnsupportedTracks): Ditto.
      
      2009-04-30  Eric Carlson  <eric.carlson@apple.com>
      
              Reviewed by Simon Fraser.
      
              MediaDocument falls back to plug-in unnecessarily
              https://bugs.webkit.org/show_bug.cgi?id=25504
              <rdar://problem/6844702>
      
              Test case for MediaDocument with previously unsupported track
              types. Disabled on Windows for now until https://bugs.webkit.org/show_bug.cgi?id=25220
              has been fixed.
          
              * media/content/counting.mp4: Added.
              * media/video-document-types-expected.txt: Added.
              * media/video-document-types.html: Added.
              * platform/win/Skipped:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43109 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      040cbce0
    • mrowe@apple.com's avatar
      Roll out r43106 as it introduced four regression test failures. · 0e71664c
      mrowe@apple.com authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43107 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0e71664c
    • darin@apple.com's avatar
      WebCore: · 12f9bb8b
      darin@apple.com authored
      2009-04-30  Darin Adler  <darin@apple.com>
      
              Reviewed by Brady Eidson.
      
              Bug 25491: WebFrame leak when a subframe removes itself
              https://bugs.webkit.org/show_bug.cgi?id=25491
              rdar://problem/6833859
      
              Test: fast/loading/subframe-removes-itself.html
      
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::checkLoadCompleteForThisFrame): When isStopping is true,
              treat load as complete, even if isLoadingInAPISense is still returning true.
      
      LayoutTests:
      
      2009-04-30  Darin Adler  <darin@apple.com>
      
              Reviewed by Brady Eidson.
      
              Bug 25491: WebFrame leak when a subframe removes itself
              https://bugs.webkit.org/show_bug.cgi?id=25491
              rdar://problem/6833859
      
              * fast/loading: Added.
              * fast/loading/resources: Added.
              * fast/loading/resources/subframe-that-removes-itself.html: Added.
              * fast/loading/subframe-removes-itself-expected.txt: Added.
              * fast/loading/subframe-removes-itself.html: Added.
      
              * platform/gtk/Skipped: Skip loading tests.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43106 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      12f9bb8b
    • ojan@chromium.org's avatar
      2009-04-30 Ojan Vafai <ojan@chromium.org> · ac0e1aca
      ojan@chromium.org authored
              Reviewed by Eric Seidel.
      
              Fix tests that depend on Mac-specific metrics now that text controls
              are sized according to font metrics (r43007).
      
              Fixes https://bugs.webkit.org/show_bug.cgi?id=25474.
      
              * fast/forms/textarea-appearance-wrap-expected.txt:
              * fast/forms/textarea-appearance-wrap.html:
              This test only really cares that a line-wrap character is submitted
              with forms that have the appropriate wrap value and not with other forms.
              So checking that the submit contents have a line-wrap character, instead of
              looking for it in a specific place, is sufficient. This gets around that we
              wrap in a different place in some cases on Mac and Windows.
      
              * fast/forms/textarea-hard-linewrap-expected.txt: Removed.
              * fast/forms/textarea-hard-linewrap.html: Removed.
              This test is redundant with fast/forms/textarea-appearance-wrap.html.
      
              * fast/replaced/table-percent-height-expected.txt:
              * fast/replaced/table-percent-height-text-controls-expected.txt: Added.
              * fast/replaced/table-percent-height-text-controls.html: Added.
              * fast/replaced/table-percent-height.html:
              Pulled out the cases in table-percent-height.html that had text controls and moved
              them into their own test. The new test doesn't assert specific metrics, it just
              spits them out. This allows us to have different expected results for Windows and
              Mac without having "FAIL" messages in the expected results. It's not perfect, but
              it seems better than any alternatives I could come up with. We do still print "FAIL"
              if the results don't match any platform.
      
              * platform/win/Skipped:
              * platform/win/fast/replaced/table-percent-height-text-controls-expected.txt: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43099 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ac0e1aca
    • simon.fraser@apple.com's avatar
      2009-04-30 Simon Fraser <simon.fraser@apple.com> · 96ce357e
      simon.fraser@apple.com authored
              Reviewed by Darin Adler
      
              <rdar://problem/6839338> VoiceOver does not take into account transforms when drawing outlines
      
              Use transform-aware quad methods when computing the boundingBoxRect for
              an AccessibilityRenderObject. The code follows RenderObject::absoluteBoundingBoxRect().
      
              Test: accessibility/transformed-element.html
      
              * page/AccessibilityRenderObject.cpp:
              (WebCore::AccessibilityRenderObject::boundingBoxRect):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43085 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      96ce357e
    • darin@apple.com's avatar
      2009-04-30 Darin Adler <darin@apple.com> · cbb45ab5
      darin@apple.com authored
              Reviewed by Sam Weinig.
      
              Add a first text iterator test. We'll add more later.
              This test includes some known expected failures. At some point we'll fix those.
      
              * editing/text-iterator: Added.
              * editing/text-iterator/basic-iteration-expected.txt: Added.
              * editing/text-iterator/basic-iteration.html: Added.
              * editing/text-iterator/resources: Added.
              * editing/text-iterator/resources/TEMPLATE.html: Copied from editing/selection/resources/TEMPLATE.html.
              * editing/text-iterator/resources/basic-iteration.js: Added.
      
              * platform/gtk/Skipped: Skip editing/text-iterator since only Mac DumpRenderTree has this at the moment.
              * platform/qt/Skipped: Ditto.
              * platform/win/Skipped: Ditto.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43076 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cbb45ab5
    • weinig@apple.com's avatar
      WebCore: · 8e9ecad1
      weinig@apple.com authored
      2009-04-30  Sam Weinig  <sam@webkit.org>
      
              Reviewed by Alexey Proskuryakov.
      
              Fix bug where the WorkerLocation and WorkerNavigator wrappers would be
              collected even if the WorkerContext is still alive.
      
              Test: fast/workers/worker-context-gc.html
      
              * bindings/js/JSWorkerContextCustom.cpp:
              (WebCore::JSWorkerContext::mark):
              * workers/WorkerContext.cpp:
              (WebCore::WorkerContext::WorkerContext):
              (WebCore::WorkerContext::completeURL):
              (WebCore::WorkerContext::location):
              * workers/WorkerContext.h:
              (WebCore::WorkerContext::optionalNavigator):
              (WebCore::WorkerContext::optionalLocation):
      
      LayoutTests:
      
      2009-04-30  Sam Weinig  <sam@webkit.org>
      
              Reviewed by Alexey Proskuryakov.
      
              Test for bug where the WorkerLocation and WorkerNavigator wrappers would be
              collected even if the WorkerContext is still alive.
      
              * fast/workers/worker-context-gc-expected.txt: Added.
              * fast/workers/worker-context-gc.html: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43073 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8e9ecad1
    • ap@webkit.org's avatar
      Reviewed by Darin Adler. · 2827d623
      ap@webkit.org authored
              https://bugs.webkit.org/show_bug.cgi?id=25379
              <rdar://problem/6809460> REGRESSION (r41772): Selecting a bank in American Express Pay Bill fails
      
              Test: fast/forms/multiple-selected-options-innerHTML.html
      
              This problem was caused by an inconsistency at when Node::instertedIntoTree() is called.
              For normal HTML parsing, it is called immediately after an element is inserted, but for
              innerHTML, it is only called after the whole subtree is inserted into a document.
      
              It may make sense to harmonize these cases one day, but for now, I only made the minimal
              changes necessary to fix the bug.
      
              * html/HTMLSelectElement.cpp: (WebCore::HTMLSelectElement::insertedIntoTree):
              * html/HTMLSelectElement.h:
              Recalculate list items when a SELECT element is inserted. OPTION elements cannot decide
              which one to keep selected themselves, because their logic assumes normal parsing, with
              insertedIntoTree() called after each element is inserted.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43064 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2827d623
    • mitz@apple.com's avatar
      WebCore: · b30433ef
      mitz@apple.com authored
              Reviewed by Simon Fraser.
      
              - fix https://bugs.webkit.org/show_bug.cgi?id=25476
                <rdar://problem/6841919> REGRESSION (r42987): Welcome to Safari 4
                animation is jittery
      
              Reverted r42987.
      
              * platform/graphics/cg/ImageCG.cpp:
              (WebCore::BitmapImage::draw):
      
      LayoutTests:
      
              Reviewed by Simon Fraser.
      
              - updated results for https://bugs.webkit.org/show_bug.cgi?id=25476
                <rdar://problem/6841919> REGRESSION (r42987): Welcome to Safari 4
                animation is jittery
      
              * platform/mac/svg/W3C-SVG-1.1/render-groups-03-t-expected.checksum:
              * platform/mac/svg/W3C-SVG-1.1/render-groups-03-t-expected.png:
              * platform/mac/svg/custom/focus-ring-expected.checksum:
              * platform/mac/svg/custom/focus-ring-expected.png:
              * platform/mac/svg/custom/image-small-width-height-expected.checksum:
              * platform/mac/svg/custom/image-small-width-height-expected.png:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43062 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b30433ef
    • beidson@apple.com's avatar
      WebCore: · dc156cdc
      beidson@apple.com authored
      2009-04-30  Brady Eidson  <beidson@apple.com>
      
              Reviewed by Maciej Stachowiak
      
              <rdar://problem/3785248> http://www.greekembassy.org/ gets in an infinite reload loop
              https://bugs.webkit.org/show_bug.cgi?id=21193
      
              Some websites use for attributes in script elements to specify events that the script 
              should be run for.  One example is greekembassy.org which has the following in their <head>:
      
              <script for=window event=onresize>
                  location.reload(false);
              </script>
      
              Since we don't support the full for attribute syntax, we would just blissfully ignore the
              condition and execute the code unconditionally.  This caused breakage on multiple real-world 
              sites besides greekembassy.org.
      
              https://bugs.webkit.org/show_bug.cgi?id=16915 and <rdar://problem/4471751> track adding full 
              support for the for attribute in scripts.  In the meantime it's best to not execute them
              unconditionally.
      
              Test: fast/dom/HTMLScriptElement/script-for-attribute-unexpected-execution.html
      
              * dom/ScriptElement.cpp:
              (WebCore::ScriptElementData::shouldExecuteAsJavaScript): After all other checks have
                passed, only return true if there is no for attribute in the script element.
              * dom/ScriptElement.h:
      
              * html/HTMLScriptElement.cpp:
              (WebCore::HTMLScriptElement::forAttributeValue): Return the attribute value, if any.
              * html/HTMLScriptElement.h:
      
              * svg/SVGScriptElement.cpp:
              (WebCore::SVGScriptElement::forAttributeValue): Return an empty string (like the other
                attribute getters do for SVGScriptElement)
              * svg/SVGScriptElement.h:
      
      LayoutTests:
      
      2009-04-30  Brady Eidson  <beidson@apple.com>
      
              Reviewed by Maciej Stachowiak
      
              Test for <rdar://problem/3785248> http://www.greekembassy.org/ gets in an infinite reload loop
              https://bugs.webkit.org/show_bug.cgi?id=21193
      
              * fast/dom/HTMLScriptElement/script-for-attribute-unexpected-execution-expected.txt: Added.
              * fast/dom/HTMLScriptElement/script-for-attribute-unexpected-execution.html: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43061 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dc156cdc
    • kov@webkit.org's avatar
      2009-04-30 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> · 89a19ef9
      kov@webkit.org authored
              Skip one more video test that sometimes fails.
      
              * platform/gtk/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43060 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      89a19ef9
    • aroben@apple.com's avatar
      Add a sometimes-timing-out test to the Windows skipped file · 64116f96
      aroben@apple.com authored
              See Bug 25483: http/tests/navigation/redirect-cycle.html sometimes
              times out on Windows
              <https://bugs.webkit.org/show_bug.cgi?id=25483>
      
              * platform/win/Skipped: Added
              http/tests/navigation/redirect-cycle.html.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43059 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      64116f96
    • kov@webkit.org's avatar
      2009-04-30 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> · f7a77e71
      kov@webkit.org authored
              Skip two more tests that I had accidentaly generated results for,
              locally.
      
              * platform/gtk/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43057 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f7a77e71