1. 05 May, 2009 1 commit
    • 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
  2. 29 Apr, 2009 1 commit
    • ojan@chromium.org's avatar
      Reviewed by Dan Bernstein. · 149606a8
      ojan@chromium.org authored
              Make textarea and text input metrics more closely match IEs.
      
              This involves:
              -set text input width to size*avgCharWidth + maxCharWidth - avgCharWidth
              -set textarea width to cols*avgCharWidth
              -Make default CSS match IEs
              -Correctly initializing m_avgCharWidth and m_maxCharWidth for each platform and SVG.
      
              Those values for textarea and inputs were derived by doing a ton of manual
              testing of IE's width values for various textareas and fonts. On Windows we match
              IE exactly except for a couple fonts of the ~12 tested.
      
              To get the average and max character width of a font, we do the following
              for each platform:
              -Win: TextMetrics expose avgCharWidth and maxCharWidth
              -SVG: avgCharWidth = width of an '0', fallback on width of a space glyph, then m_xHeight
                  maxCharWidth = width of a 'W' for roman fonts, fallback on m_ascent
              -Linux: avgCharWidth = width of an '0', fallback on m_xHeight
                  maxCharWidth = max of avgCharWidth and m_ascent
              -Mac: Calculate the avgCharWidth and grab the maxCharWidth off the font.
                  If either one is non-positive, then calculate the value using the Linux approach.
      
              Tests: fast/forms/text-control-intrinsic-widths.html
                     fast/forms/textarea-metrics.html
                     svg/custom/svg-fonts-in-text-controls.html
      
              * css/html4.css:
              * css/themeWin.css:
              * platform/graphics/SimpleFontData.cpp:
              (WebCore::SimpleFontData::SimpleFontData):
              (WebCore::SimpleFontData::initCharWidths):
              * platform/graphics/SimpleFontData.h:
              (WebCore::SimpleFontData::maxCharWidth):
              (WebCore::SimpleFontData::avgCharWidth):
              * platform/graphics/chromium/SimpleFontDataChromiumWin.cpp:
              (WebCore::SimpleFontData::platformCharWidthInit):
              * platform/graphics/chromium/SimpleFontDataLinux.cpp:
              (WebCore::SimpleFontData::platformCharWidthInit):
              * platform/graphics/gtk/SimpleFontDataGtk.cpp:
              (WebCore::SimpleFontData::platformCharWidthInit):
              * platform/graphics/gtk/SimpleFontDataPango.cpp:
              (WebCore::SimpleFontData::platformCharWidthInit):
              * platform/graphics/mac/SimpleFontDataMac.mm:
              (WebCore::SimpleFontData::platformCharWidthInit):
              * platform/graphics/qt/SimpleFontDataQt.cpp:
              (WebCore::SimpleFontData::platformCharWidthInit):
              * platform/graphics/win/SimpleFontDataCGWin.cpp:
              (WebCore::SimpleFontData::platformCharWidthInit):
              * platform/graphics/win/SimpleFontDataCairoWin.cpp:
              (WebCore::SimpleFontData::platformInit):
              (WebCore::SimpleFontData::platformCharWidthInit):
              * platform/graphics/win/SimpleFontDataWin.cpp:
              (WebCore::SimpleFontData::initGDIFont):
              * platform/graphics/wx/SimpleFontDataWx.cpp:
              (WebCore::SimpleFontData::platformCharWidthInit):
              * rendering/RenderTextControl.cpp:
              (WebCore::RenderTextControl::calcPrefWidths):
              * rendering/RenderTextControlMultiLine.cpp:
              (WebCore::RenderTextControlMultiLine::createInnerTextStyle):
              * rendering/RenderTextControlSingleLine.cpp:
              (WebCore::RenderTextControlSingleLine::preferredContentWidth):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43007 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      149606a8
  3. 20 Apr, 2009 2 commits
    • ggaren@apple.com's avatar
      WebCore: · 38f70292
      ggaren@apple.com authored
      2009-04-20  Geoffrey Garen  <ggaren@apple.com>
      
              Approved by Mark Rowe, Cameron Zwarich, Oliver Hunt, and Ojan Vafai.
              
              Used svn merge to roll out revisions 42678, 42690, 42694, 42697 because
              they broke the Tiger and Windows buildbots.
      
              * css/html4.css:
              * css/themeWin.css:
              * platform/graphics/SimpleFontData.cpp:
              * platform/graphics/SimpleFontData.h:
              * platform/graphics/chromium/SimpleFontDataChromiumWin.cpp:
              * platform/graphics/chromium/SimpleFontDataLinux.cpp:
              * platform/graphics/gtk/SimpleFontDataGtk.cpp:
              * platform/graphics/gtk/SimpleFontDataPango.cpp:
              * platform/graphics/mac/SimpleFontDataMac.mm:
              * platform/graphics/qt/SimpleFontDataQt.cpp:
              * platform/graphics/win/SimpleFontDataCGWin.cpp:
              * platform/graphics/win/SimpleFontDataCairoWin.cpp:
              * platform/graphics/win/SimpleFontDataWin.cpp:
              * platform/graphics/wx/SimpleFontDataWx.cpp:
              * rendering/RenderTextControl.cpp:
              * rendering/RenderTextControlMultiLine.cpp:
              * rendering/RenderTextControlSingleLine.cpp:
      
      LayoutTests:
      
      2009-04-20  Geoffrey Garen  <ggaren@apple.com>
      
              Approved by Mark Rowe, Cameron Zwarich, Oliver Hunt, and Ojan Vafai.
              
              Used svn merge to roll out revisions 42678, 42690, 42694, 42697 because
              they broke the Tiger and Windows buildbots.
      
              * fast/forms/drag-out-of-textarea.html:
              * fast/forms/resources/TEMPLATE.html: Removed.
              * fast/forms/resources/text-control-intrinsic-widths.js: Removed.
              * fast/forms/resources/textarea-metrics.js: Removed.
              * fast/forms/search-abs-pos-cancel-button.html:
              * fast/forms/text-control-intrinsic-widths-expected.txt: Removed.
              * fast/forms/text-control-intrinsic-widths.html: Removed.
              * fast/forms/textarea-metrics-expected.txt: Removed.
              * fast/forms/textarea-metrics.html: Removed.
              * fast/forms/textarea-width.html:
              * fast/replaced/table-percent-height-expected.txt:
              * fast/replaced/table-percent-height.html:
              * platform/mac-leopard/fast/forms/input-text-maxlength-expected.checksum:
              * platform/mac-leopard/fast/forms/input-text-maxlength-expected.png:
              * platform/mac-leopard/fast/forms/input-text-maxlength-expected.txt:
              * platform/mac-leopard/fast/forms/input-text-paste-maxlength-expected.checksum:
              * platform/mac-leopard/fast/forms/input-text-paste-maxlength-expected.png:
              * platform/mac-leopard/fast/forms/input-text-paste-maxlength-expected.txt:
              * platform/mac/editing/deleting/5168598-expected.checksum:
              * platform/mac/editing/deleting/5168598-expected.png:
              * platform/mac/editing/deleting/5168598-expected.txt:
              * platform/mac/editing/inserting/4960120-1-expected.checksum:
              * platform/mac/editing/inserting/4960120-1-expected.png:
              * platform/mac/editing/inserting/4960120-1-expected.txt:
              * platform/mac/editing/inserting/5607069-2-expected.checksum:
              * platform/mac/editing/inserting/5607069-2-expected.png:
              * platform/mac/editing/inserting/5607069-2-expected.txt:
              * platform/mac/editing/inserting/5607069-3-expected.checksum:
              * platform/mac/editing/inserting/5607069-3-expected.png:
              * platform/mac/editing/inserting/5607069-3-expected.txt:
              * platform/mac/editing/inserting/before-after-input-element-expected.checksum:
              * platform/mac/editing/inserting/before-after-input-element-expected.png:
              * platform/mac/editing/inserting/before-after-input-element-expected.txt:
              * platform/mac/editing/inserting/typing-tab-designmode-forms-expected.checksum:
              * platform/mac/editing/inserting/typing-tab-designmode-forms-expected.png:
              * platform/mac/editing/inserting/typing-tab-designmode-forms-expected.txt:
              * platform/mac/editing/pasteboard/4806874-expected.checksum:
              * platform/mac/editing/pasteboard/4806874-expected.png:
              * platform/mac/editing/pasteboard/4806874-expected.txt:
              * platform/mac/editing/pasteboard/drop-text-without-selection-expected.checksum:
              * platform/mac/editing/pasteboard/drop-text-without-selection-expected.png:
              * platform/mac/editing/pasteboard/drop-text-without-selection-expected.txt:
              * platform/mac/editing/pasteboard/input-field-1-expected.checksum:
              * platform/mac/editing/pasteboard/input-field-1-expected.png:
              * platform/mac/editing/pasteboard/input-field-1-expected.txt:
              * platform/mac/editing/pasteboard/nested-blocks-with-text-area-expected.checksum:
              * platform/mac/editing/pasteboard/nested-blocks-with-text-area-expected.png:
              * platform/mac/editing/pasteboard/nested-blocks-with-text-area-expected.txt:
              * platform/mac/editing/pasteboard/nested-blocks-with-text-field-expected.checksum:
              * platform/mac/editing/pasteboard/nested-blocks-with-text-field-expected.png:
              * platform/mac/editing/pasteboard/nested-blocks-with-text-field-expected.txt:
              * platform/mac/editing/pasteboard/pasting-tabs-expected.checksum:
              * platform/mac/editing/pasteboard/pasting-tabs-expected.png:
              * platform/mac/editing/pasteboard/pasting-tabs-expected.txt:
              * platform/mac/editing/selection/3690703-2-expected.checksum:
              * platform/mac/editing/selection/3690703-2-expected.png:
              * platform/mac/editing/selection/3690703-2-expected.txt:
              * platform/mac/editing/selection/3690703-expected.checksum:
              * platform/mac/editing/selection/3690703-expected.png:
              * platform/mac/editing/selection/3690703-expected.txt:
              * platform/mac/editing/selection/3690719-expected.checksum:
              * platform/mac/editing/selection/3690719-expected.png:
              * platform/mac/editing/selection/3690719-expected.txt:
              * platform/mac/editing/selection/4895428-3-expected.checksum:
              * platform/mac/editing/selection/4895428-3-expected.png:
              * platform/mac/editing/selection/4895428-3-expected.txt:
              * platform/mac/editing/selection/4975120-expected.checksum:
              * platform/mac/editing/selection/4975120-expected.png:
              * platform/mac/editing/selection/4975120-expected.txt:
              * platform/mac/editing/selection/5136696-expected.checksum:
              * platform/mac/editing/selection/5136696-expected.png:
              * platform/mac/editing/selection/5136696-expected.txt:
              * platform/mac/editing/selection/5213963-expected.checksum:
              * platform/mac/editing/selection/5213963-expected.png:
              * platform/mac/editing/selection/5213963-expected.txt:
              * platform/mac/editing/selection/drag-select-1-expected.checksum:
              * platform/mac/editing/selection/drag-select-1-expected.png:
              * platform/mac/editing/selection/drag-select-1-expected.txt:
              * platform/mac/editing/selection/drag-text-delay-expected.checksum:
              * platform/mac/editing/selection/drag-text-delay-expected.png:
              * platform/mac/editing/selection/drag-text-delay-expected.txt:
              * platform/mac/editing/selection/select-from-textfield-outwards-expected.checksum:
              * platform/mac/editing/selection/select-from-textfield-outwards-expected.png:
              * platform/mac/editing/selection/select-from-textfield-outwards-expected.txt:
              * platform/mac/fast/block/margin-collapse/103-expected.txt:
              * platform/mac/fast/css/line-height-expected.checksum:
              * platform/mac/fast/css/line-height-expected.png:
              * platform/mac/fast/css/line-height-expected.txt:
              * platform/mac/fast/css/resize-corner-tracking-expected.checksum:
              * platform/mac/fast/css/resize-corner-tracking-expected.png:
              * platform/mac/fast/css/resize-corner-tracking-expected.txt:
              * platform/mac/fast/dom/HTMLTextAreaElement/reset-textarea-expected.checksum:
              * platform/mac/fast/dom/HTMLTextAreaElement/reset-textarea-expected.png:
              * platform/mac/fast/dom/HTMLTextAreaElement/reset-textarea-expected.txt:
              * platform/mac/fast/dom/isindex-002-expected.checksum:
              * platform/mac/fast/dom/isindex-002-expected.png:
              * platform/mac/fast/dom/isindex-002-expected.txt:
              * platform/mac/fast/dynamic/008-expected.checksum:
              * platform/mac/fast/dynamic/008-expected.png:
              * platform/mac/fast/dynamic/008-expected.txt:
              * platform/mac/fast/events/autoscroll-expected.checksum:
              * platform/mac/fast/events/autoscroll-expected.png:
              * platform/mac/fast/events/autoscroll-expected.txt:
              * platform/mac/fast/events/context-no-deselect-expected.checksum:
              * platform/mac/fast/events/context-no-deselect-expected.png:
              * platform/mac/fast/events/context-no-deselect-expected.txt:
              * platform/mac/fast/events/label-focus-expected.checksum:
              * platform/mac/fast/events/label-focus-expected.png:
              * platform/mac/fast/events/label-focus-expected.txt:
              * platform/mac/fast/forms/basic-textareas-expected.checksum:
              * platform/mac/fast/forms/basic-textareas-expected.png:
              * platform/mac/fast/forms/basic-textareas-expected.txt:
              * platform/mac/fast/forms/box-shadow-override-expected.checksum:
              * platform/mac/fast/forms/box-shadow-override-expected.png:
              * platform/mac/fast/forms/box-shadow-override-expected.txt:
              * platform/mac/fast/forms/control-restrict-line-height-expected.checksum:
              * platform/mac/fast/forms/control-restrict-line-height-expected.png:
              * platform/mac/fast/forms/control-restrict-line-height-expected.txt:
              * platform/mac/fast/forms/encoding-test-expected.checksum:
              * platform/mac/fast/forms/encoding-test-expected.png:
              * platform/mac/fast/forms/encoding-test-expected.txt:
              * platform/mac/fast/forms/fieldset-align-expected.checksum:
              * platform/mac/fast/forms/fieldset-align-expected.png:
              * platform/mac/fast/forms/fieldset-align-expected.txt:
              * platform/mac/fast/forms/form-element-geometry-expected.checksum:
              * platform/mac/fast/forms/form-element-geometry-expected.png:
              * platform/mac/fast/forms/form-element-geometry-expected.txt:
              * platform/mac/fast/forms/input-align-expected.checksum:
              * platform/mac/fast/forms/input-align-expected.png:
              * platform/mac/fast/forms/input-align-expected.txt:
              * platform/mac/fast/forms/input-appearance-bkcolor-expected.checksum:
              * platform/mac/fast/forms/input-appearance-bkcolor-expected.png:
              * platform/mac/fast/forms/input-appearance-bkcolor-expected.txt:
              * platform/mac/fast/forms/input-appearance-default-bkcolor-expected.checksum:
              * platform/mac/fast/forms/input-appearance-default-bkcolor-expected.png:
              * platform/mac/fast/forms/input-appearance-default-bkcolor-expected.txt:
              * platform/mac/fast/forms/input-appearance-disabled-expected.checksum:
              * platform/mac/fast/forms/input-appearance-disabled-expected.png:
              * platform/mac/fast/forms/input-appearance-disabled-expected.txt:
              * platform/mac/fast/forms/input-appearance-focus-expected.checksum:
              * platform/mac/fast/forms/input-appearance-focus-expected.png:
              * platform/mac/fast/forms/input-appearance-focus-expected.txt:
              * platform/mac/fast/forms/input-appearance-height-expected.checksum:
              * platform/mac/fast/forms/input-appearance-height-expected.png:
              * platform/mac/fast/forms/input-appearance-height-expected.txt:
              * platform/mac/fast/forms/input-appearance-preventDefault-expected.checksum:
              * platform/mac/fast/forms/input-appearance-preventDefault-expected.png:
              * platform/mac/fast/forms/input-appearance-preventDefault-expected.txt:
              * platform/mac/fast/forms/input-appearance-readonly-expected.checksum:
              * platform/mac/fast/forms/input-appearance-readonly-expected.png:
              * platform/mac/fast/forms/input-appearance-readonly-expected.txt:
              * platform/mac/fast/forms/input-appearance-selection-expected.checksum:
              * platform/mac/fast/forms/input-appearance-selection-expected.png:
              * platform/mac/fast/forms/input-appearance-selection-expected.txt:
              * platform/mac/fast/forms/input-appearance-visibility-expected.checksum:
              * platform/mac/fast/forms/input-appearance-visibility-expected.png:
              * platform/mac/fast/forms/input-appearance-visibility-expected.txt:
              * platform/mac/fast/forms/input-appearance-width-expected.checksum:
              * platform/mac/fast/forms/input-appearance-width-expected.png:
              * platform/mac/fast/forms/input-appearance-width-expected.txt:
              * platform/mac/fast/forms/input-baseline-expected.checksum:
              * platform/mac/fast/forms/input-baseline-expected.png:
              * platform/mac/fast/forms/input-baseline-expected.txt:
              * platform/mac/fast/forms/input-disabled-color-expected.checksum:
              * platform/mac/fast/forms/input-disabled-color-expected.png:
              * platform/mac/fast/forms/input-disabled-color-expected.txt:
              * platform/mac/fast/forms/input-double-click-selection-gap-bug-expected.checksum:
              * platform/mac/fast/forms/input-double-click-selection-gap-bug-expected.png:
              * platform/mac/fast/forms/input-double-click-selection-gap-bug-expected.txt:
              * platform/mac/fast/forms/input-paste-undo-expected.checksum:
              * platform/mac/fast/forms/input-paste-undo-expected.png:
              * platform/mac/fast/forms/input-paste-undo-expected.txt:
              * platform/mac/fast/forms/input-readonly-autoscroll-expected.checksum:
              * platform/mac/fast/forms/input-readonly-autoscroll-expected.png:
              * platform/mac/fast/forms/input-readonly-autoscroll-expected.txt:
              * platform/mac/fast/forms/input-readonly-dimmed-expected.checksum:
              * platform/mac/fast/forms/input-readonly-dimmed-expected.png:
              * platform/mac/fast/forms/input-readonly-dimmed-expected.txt:
              * platform/mac/fast/forms/input-readonly-empty-expected.checksum:
              * platform/mac/fast/forms/input-readonly-empty-expected.png:
              * platform/mac/fast/forms/input-readonly-empty-expected.txt:
              * platform/mac/fast/forms/input-spaces-expected.checksum:
              * platform/mac/fast/forms/input-spaces-expected.png:
              * platform/mac/fast/forms/input-spaces-expected.txt:
              * platform/mac/fast/forms/input-table-expected.txt:
              * platform/mac/fast/forms/input-text-click-inside-expected.checksum:
              * platform/mac/fast/forms/input-text-click-inside-expected.png:
              * platform/mac/fast/forms/input-text-click-inside-expected.txt:
              * platform/mac/fast/forms/input-text-click-outside-expected.checksum:
              * platform/mac/fast/forms/input-text-click-outside-expected.png:
              * platform/mac/fast/forms/input-text-click-outside-expected.txt:
              * platform/mac/fast/forms/input-text-double-click-expected.checksum:
              * platform/mac/fast/forms/input-text-double-click-expected.png:
              * platform/mac/fast/forms/input-text-double-click-expected.txt:
              * platform/mac/fast/forms/input-text-drag-down-expected.checksum:
              * platform/mac/fast/forms/input-text-drag-down-expected.png:
              * platform/mac/fast/forms/input-text-drag-down-expected.txt:
              * platform/mac/fast/forms/input-text-option-delete-expected.checksum:
              * platform/mac/fast/forms/input-text-option-delete-expected.png:
              * platform/mac/fast/forms/input-text-option-delete-expected.txt:
              * platform/mac/fast/forms/input-text-scroll-left-on-blur-expected.checksum:
              * platform/mac/fast/forms/input-text-scroll-left-on-blur-expected.png:
              * platform/mac/fast/forms/input-text-scroll-left-on-blur-expected.txt:
              * platform/mac/fast/forms/input-text-self-emptying-click-expected.checksum:
              * platform/mac/fast/forms/input-text-self-emptying-click-expected.png:
              * platform/mac/fast/forms/input-text-self-emptying-click-expected.txt:
              * platform/mac/fast/forms/input-text-word-wrap-expected.checksum:
              * platform/mac/fast/forms/input-text-word-wrap-expected.png:
              * platform/mac/fast/forms/input-text-word-wrap-expected.txt:
              * platform/mac/fast/forms/input-type-change2-expected.checksum:
              * platform/mac/fast/forms/input-type-change2-expected.png:
              * platform/mac/fast/forms/input-type-change2-expected.txt:
              * platform/mac/fast/forms/input-type-text-min-width-expected.checksum:
              * platform/mac/fast/forms/input-type-text-min-width-expected.png:
              * platform/mac/fast/forms/input-type-text-min-width-expected.txt:
              * platform/mac/fast/forms/input-value-expected.checksum:
              * platform/mac/fast/forms/input-value-expected.png:
              * platform/mac/fast/forms/input-value-expected.txt:
              * platform/mac/fast/forms/input-width-expected.checksum:
              * platform/mac/fast/forms/input-width-expected.png:
              * platform/mac/fast/forms/input-width-expected.txt:
              * platform/mac/fast/forms/linebox-overflow-in-textarea-padding-expected.checksum:
              * platform/mac/fast/forms/linebox-overflow-in-textarea-padding-expected.png:
              * platform/mac/fast/forms/linebox-overflow-in-textarea-padding-expected.txt:
              * platform/mac/fast/forms/negativeLineHeight-expected.checksum:
              * platform/mac/fast/forms/negativeLineHeight-expected.png:
              * platform/mac/fast/forms/negativeLineHeight-expected.txt:
              * platform/mac/fast/forms/password-placeholder-expected.checksum:
              * platform/mac/fast/forms/password-placeholder-expected.png:
              * platform/mac/fast/forms/password-placeholder-expected.txt:
              * platform/mac/fast/forms/password-placeholder-text-security-expected.checksum:
              * platform/mac/fast/forms/password-placeholder-text-security-expected.png:
              * platform/mac/fast/forms/password-placeholder-text-security-expected.txt:
              * platform/mac/fast/forms/placeholder-pseudo-style-expected.checksum:
              * platform/mac/fast/forms/placeholder-pseudo-style-expected.png:
              * platform/mac/fast/forms/placeholder-pseudo-style-expected.txt:
              * platform/mac/fast/forms/placeholder-set-attribute-expected.checksum:
              * platform/mac/fast/forms/placeholder-set-attribute-expected.png:
              * platform/mac/fast/forms/placeholder-set-attribute-expected.txt:
              * platform/mac/fast/forms/placeholder-set-value-expected.checksum:
              * platform/mac/fast/forms/placeholder-set-value-expected.png:
              * platform/mac/fast/forms/placeholder-set-value-expected.txt:
              * platform/mac/fast/forms/search-cancel-button-style-sharing-expected.checksum:
              * platform/mac/fast/forms/search-cancel-button-style-sharing-expected.png:
              * platform/mac/fast/forms/search-cancel-button-style-sharing-expected.txt:
              * platform/mac/fast/forms/search-display-none-cancel-button-expected.checksum:
              * platform/mac/fast/forms/search-display-none-cancel-button-expected.png:
              * platform/mac/fast/forms/search-display-none-cancel-button-expected.txt:
              * platform/mac/fast/forms/search-placeholder-value-changed-expected.checksum:
              * platform/mac/fast/forms/search-placeholder-value-changed-expected.png:
              * platform/mac/fast/forms/search-placeholder-value-changed-expected.txt:
              * platform/mac/fast/forms/search-rtl-expected.checksum:
              * platform/mac/fast/forms/search-rtl-expected.png:
              * platform/mac/fast/forms/search-rtl-expected.txt:
              * platform/mac/fast/forms/search-transformed-expected.checksum:
              * platform/mac/fast/forms/search-transformed-expected.png:
              * platform/mac/fast/forms/search-transformed-expected.txt:
              * platform/mac/fast/forms/search-zoomed-expected.checksum:
              * platform/mac/fast/forms/search-zoomed-expected.png:
              * platform/mac/fast/forms/search-zoomed-expected.txt:
              * platform/mac/fast/forms/searchfield-heights-expected.checksum:
              * platform/mac/fast/forms/searchfield-heights-expected.png:
              * platform/mac/fast/forms/searchfield-heights-expected.txt:
              * platform/mac/fast/forms/tabbing-input-iframe-expected.checksum:
              * platform/mac/fast/forms/tabbing-input-iframe-expected.png:
              * platform/mac/fast/forms/tabbing-input-iframe-expected.txt:
              * platform/mac/fast/forms/textAreaLineHeight-expected.checksum:
              * platform/mac/fast/forms/textAreaLineHeight-expected.png:
              * platform/mac/fast/forms/textAreaLineHeight-expected.txt:
              * platform/mac/fast/forms/textarea-align-expected.checksum:
              * platform/mac/fast/forms/textarea-align-expected.png:
              * platform/mac/fast/forms/textarea-align-expected.txt:
              * platform/mac/fast/forms/textarea-rows-cols-expected.checksum:
              * platform/mac/fast/forms/textarea-rows-cols-expected.png:
              * platform/mac/fast/forms/textarea-rows-cols-expected.txt:
              * platform/mac/fast/forms/textarea-scroll-height-expected.checksum:
              * platform/mac/fast/forms/textarea-scroll-height-expected.png:
              * platform/mac/fast/forms/textarea-scroll-height-expected.txt:
              * platform/mac/fast/forms/textarea-scrollbar-expected.checksum:
              * platform/mac/fast/forms/textarea-scrollbar-expected.png:
              * platform/mac/fast/forms/textarea-scrollbar-expected.txt:
              * platform/mac/fast/forms/textarea-scrolled-type-expected.checksum:
              * platform/mac/fast/forms/textarea-scrolled-type-expected.png:
              * platform/mac/fast/forms/textarea-scrolled-type-expected.txt:
              * platform/mac/fast/forms/textarea-setinnerhtml-expected.checksum:
              * platform/mac/fast/forms/textarea-setinnerhtml-expected.png:
              * platform/mac/fast/forms/textarea-setinnerhtml-expected.txt:
              * platform/mac/fast/forms/textarea-width-expected.checksum:
              * platform/mac/fast/forms/textarea-width-expected.png:
              * platform/mac/fast/forms/textarea-width-expected.txt:
              * platform/mac/fast/forms/textfield-drag-into-disabled-expected.checksum:
              * platform/mac/fast/forms/textfield-drag-into-disabled-expected.png:
              * platform/mac/fast/forms/textfield-drag-into-disabled-expected.txt:
              * platform/mac/fast/forms/textfield-outline-expected.checksum:
              * platform/mac/fast/forms/textfield-outline-expected.png:
              * platform/mac/fast/forms/textfield-outline-expected.txt:
              * platform/mac/fast/forms/textfield-overflow-expected.checksum:
              * platform/mac/fast/forms/textfield-overflow-expected.png:
              * platform/mac/fast/forms/textfield-overflow-expected.txt:
              * platform/mac/fast/forms/visual-hebrew-text-field-expected.txt:
              * platform/mac/fast/invalid/residual-style-expected.txt:
              * platform/mac/fast/lists/dynamic-marker-crash-expected.checksum:
              * platform/mac/fast/lists/dynamic-marker-crash-expected.png:
              * platform/mac/fast/lists/dynamic-marker-crash-expected.txt:
              * platform/mac/fast/overflow/overflow-x-y-expected.checksum:
              * platform/mac/fast/overflow/overflow-x-y-expected.png:
              * platform/mac/fast/overflow/overflow-x-y-expected.txt:
              * platform/mac/fast/parser/comment-in-textarea-expected.checksum:
              * platform/mac/fast/parser/comment-in-textarea-expected.png:
              * platform/mac/fast/parser/comment-in-textarea-expected.txt:
              * platform/mac/fast/parser/entity-comment-in-textarea-expected.checksum:
              * platform/mac/fast/parser/entity-comment-in-textarea-expected.png:
              * platform/mac/fast/parser/entity-comment-in-textarea-expected.txt:
              * platform/mac/fast/parser/open-comment-in-textarea-expected.checksum:
              * platform/mac/fast/parser/open-comment-in-textarea-expected.png:
              * platform/mac/fast/parser/open-comment-in-textarea-expected.txt:
              * platform/mac/fast/repaint/renderer-destruction-by-invalidateSelection-crash-expected.checksum:
              * platform/mac/fast/repaint/renderer-destruction-by-invalidateSelection-crash-expected.png:
              * platform/mac/fast/repaint/renderer-destruction-by-invalidateSelection-crash-expected.txt:
              * platform/mac/fast/repaint/search-field-cancel-expected.checksum:
              * platform/mac/fast/repaint/search-field-cancel-expected.png:
              * platform/mac/fast/repaint/search-field-cancel-expected.txt:
              * platform/mac/fast/repaint/subtree-root-skipped-expected.checksum:
              * platform/mac/fast/repaint/subtree-root-skipped-expected.png:
              * platform/mac/fast/repaint/subtree-root-skipped-expected.txt:
              * platform/mac/fast/replaced/replaced-breaking-expected.checksum:
              * platform/mac/fast/replaced/replaced-breaking-expected.png:
              * platform/mac/fast/replaced/replaced-breaking-expected.txt:
              * platform/mac/fast/replaced/replaced-breaking-mixture-expected.checksum:
              * platform/mac/fast/replaced/replaced-breaking-mixture-expected.png:
              * platform/mac/fast/replaced/replaced-breaking-mixture-expected.txt:
              * platform/mac/fast/replaced/width100percent-searchfield-expected.checksum:
              * platform/mac/fast/replaced/width100percent-searchfield-expected.png:
              * platform/mac/fast/replaced/width100percent-searchfield-expected.txt:
              * platform/mac/fast/replaced/width100percent-textarea-expected.checksum:
              * platform/mac/fast/replaced/width100percent-textarea-expected.png:
              * platform/mac/fast/replaced/width100percent-textarea-expected.txt:
              * platform/mac/fast/replaced/width100percent-textfield-expected.checksum:
              * platform/mac/fast/replaced/width100percent-textfield-expected.png:
              * platform/mac/fast/replaced/width100percent-textfield-expected.txt:
              * platform/mac/fast/table/003-expected.checksum:
              * platform/mac/fast/table/003-expected.png:
              * platform/mac/fast/table/003-expected.txt:
              * platform/mac/fast/table/colspanMinWidth-expected.checksum:
              * platform/mac/fast/table/colspanMinWidth-expected.png:
              * platform/mac/fast/table/colspanMinWidth-expected.txt:
              * platform/mac/fast/table/spanOverlapRepaint-expected.checksum:
              * platform/mac/fast/table/spanOverlapRepaint-expected.png:
              * platform/mac/fast/table/spanOverlapRepaint-expected.txt:
              * platform/mac/fast/table/text-field-baseline-expected.checksum:
              * platform/mac/fast/table/text-field-baseline-expected.png:
              * platform/mac/fast/table/text-field-baseline-expected.txt:
              * platform/mac/fast/text/international/rtl-white-space-pre-wrap-expected.checksum:
              * platform/mac/fast/text/international/rtl-white-space-pre-wrap-expected.png:
              * platform/mac/fast/text/international/rtl-white-space-pre-wrap-expected.txt:
              * platform/mac/fast/text/textIteratorNilRenderer-expected.checksum:
              * platform/mac/fast/text/textIteratorNilRenderer-expected.png:
              * platform/mac/fast/text/textIteratorNilRenderer-expected.txt:
              * platform/mac/fast/transforms/transformed-focused-text-input-expected.checksum:
              * platform/mac/fast/transforms/transformed-focused-text-input-expected.png:
              * platform/mac/fast/transforms/transformed-focused-text-input-expected.txt:
              * platform/mac/http/tests/navigation/anchor-basic-expected.checksum:
              * platform/mac/http/tests/navigation/anchor-basic-expected.png:
              * platform/mac/http/tests/navigation/anchor-basic-expected.txt:
              * platform/mac/http/tests/navigation/anchor-frames-expected.txt:
              * platform/mac/http/tests/navigation/anchor-goback-expected.checksum:
              * platform/mac/http/tests/navigation/anchor-goback-expected.png:
              * platform/mac/http/tests/navigation/anchor-goback-expected.txt:
              * platform/mac/http/tests/navigation/anchor-subframeload-expected.txt:
              * platform/mac/http/tests/navigation/javascriptlink-basic-expected.checksum:
              * platform/mac/http/tests/navigation/javascriptlink-basic-expected.png:
              * platform/mac/http/tests/navigation/javascriptlink-basic-expected.txt:
              * platform/mac/http/tests/navigation/javascriptlink-frames-expected.checksum:
              * platform/mac/http/tests/navigation/javascriptlink-frames-expected.png:
              * platform/mac/http/tests/navigation/javascriptlink-frames-expected.txt:
              * platform/mac/http/tests/navigation/javascriptlink-goback-expected.checksum:
              * platform/mac/http/tests/navigation/javascriptlink-goback-expected.png:
              * platform/mac/http/tests/navigation/javascriptlink-goback-expected.txt:
              * platform/mac/http/tests/navigation/javascriptlink-subframeload-expected.checksum:
              * platform/mac/http/tests/navigation/javascriptlink-subframeload-expected.png:
              * platform/mac/http/tests/navigation/javascriptlink-subframeload-expected.txt:
              * platform/mac/http/tests/navigation/metaredirect-basic-expected.checksum:
              * platform/mac/http/tests/navigation/metaredirect-basic-expected.png:
              * platform/mac/http/tests/navigation/metaredirect-basic-expected.txt:
              * platform/mac/http/tests/navigation/metaredirect-frames-expected.checksum:
              * platform/mac/http/tests/navigation/metaredirect-frames-expected.png:
              * platform/mac/http/tests/navigation/metaredirect-frames-expected.txt:
              * platform/mac/http/tests/navigation/metaredirect-goback-expected.checksum:
              * platform/mac/http/tests/navigation/metaredirect-goback-expected.png:
              * platform/mac/http/tests/navigation/metaredirect-goback-expected.txt:
              * platform/mac/http/tests/navigation/metaredirect-subframeload-expected.checksum:
              * platform/mac/http/tests/navigation/metaredirect-subframeload-expected.png:
              * platform/mac/http/tests/navigation/metaredirect-subframeload-expected.txt:
              * platform/mac/http/tests/navigation/post-goback2-expected.checksum:
              * platform/mac/http/tests/navigation/post-goback2-expected.png:
              * platform/mac/http/tests/navigation/post-goback2-expected.txt:
              * platform/mac/http/tests/navigation/postredirect-goback2-expected.checksum:
              * platform/mac/http/tests/navigation/postredirect-goback2-expected.png:
              * platform/mac/http/tests/navigation/postredirect-goback2-expected.txt:
              * platform/mac/http/tests/navigation/redirect302-basic-expected.checksum:
              * platform/mac/http/tests/navigation/redirect302-basic-expected.png:
              * platform/mac/http/tests/navigation/redirect302-basic-expected.txt:
              * platform/mac/http/tests/navigation/redirect302-frames-expected.checksum:
              * platform/mac/http/tests/navigation/redirect302-frames-expected.png:
              * platform/mac/http/tests/navigation/redirect302-frames-expected.txt:
              * platform/mac/http/tests/navigation/redirect302-goback-expected.checksum:
              * platform/mac/http/tests/navigation/redirect302-goback-expected.png:
              * platform/mac/http/tests/navigation/redirect302-goback-expected.txt:
              * platform/mac/http/tests/navigation/redirect302-subframeload-expected.checksum:
              * platform/mac/http/tests/navigation/redirect302-subframeload-expected.png:
              * platform/mac/http/tests/navigation/redirect302-subframeload-expected.txt:
              * platform/mac/http/tests/navigation/relativeanchor-basic-expected.checksum:
              * platform/mac/http/tests/navigation/relativeanchor-basic-expected.png:
              * platform/mac/http/tests/navigation/relativeanchor-basic-expected.txt:
              * platform/mac/http/tests/navigation/relativeanchor-frames-expected.txt:
              * platform/mac/http/tests/navigation/relativeanchor-goback-expected.checksum:
              * platform/mac/http/tests/navigation/relativeanchor-goback-expected.png:
              * platform/mac/http/tests/navigation/relativeanchor-goback-expected.txt:
              * platform/mac/http/tests/navigation/slowmetaredirect-basic-expected.checksum:
              * platform/mac/http/tests/navigation/slowmetaredirect-basic-expected.png:
              * platform/mac/http/tests/navigation/slowmetaredirect-basic-expected.txt:
              * platform/mac/http/tests/navigation/slowtimerredirect-basic-expected.checksum:
              * platform/mac/http/tests/navigation/slowtimerredirect-basic-expected.png:
              * platform/mac/http/tests/navigation/slowtimerredirect-basic-expected.txt:
              * platform/mac/http/tests/navigation/success200-basic-expected.checksum:
              * platform/mac/http/tests/navigation/success200-basic-expected.png:
              * platform/mac/http/tests/navigation/success200-basic-expected.txt:
              * platform/mac/http/tests/navigation/success200-frames-expected.checksum:
              * platform/mac/http/tests/navigation/success200-frames-expected.png:
              * platform/mac/http/tests/navigation/success200-frames-expected.txt:
              * platform/mac/http/tests/navigation/success200-frames-loadsame-expected.checksum:
              * platform/mac/http/tests/navigation/success200-frames-loadsame-expected.png:
              * platform/mac/http/tests/navigation/success200-frames-loadsame-expected.txt:
              * platform/mac/http/tests/navigation/success200-goback-expected.checksum:
              * platform/mac/http/tests/navigation/success200-goback-expected.png:
              * platform/mac/http/tests/navigation/success200-goback-expected.txt:
              * platform/mac/http/tests/navigation/success200-loadsame-expected.checksum:
              * platform/mac/http/tests/navigation/success200-loadsame-expected.png:
              * platform/mac/http/tests/navigation/success200-loadsame-expected.txt:
              * platform/mac/http/tests/navigation/success200-reload-expected.checksum:
              * platform/mac/http/tests/navigation/success200-reload-expected.png:
              * platform/mac/http/tests/navigation/success200-reload-expected.txt:
              * platform/mac/http/tests/navigation/success200-subframeload-expected.checksum:
              * platform/mac/http/tests/navigation/success200-subframeload-expected.png:
              * platform/mac/http/tests/navigation/success200-subframeload-expected.txt:
              * platform/mac/http/tests/navigation/timerredirect-basic-expected.checksum:
              * platform/mac/http/tests/navigation/timerredirect-basic-expected.png:
              * platform/mac/http/tests/navigation/timerredirect-basic-expected.txt:
              * platform/mac/http/tests/navigation/timerredirect-frames-expected.checksum:
              * platform/mac/http/tests/navigation/timerredirect-frames-expected.png:
              * platform/mac/http/tests/navigation/timerredirect-frames-expected.txt:
              * platform/mac/http/tests/navigation/timerredirect-goback-expected.checksum:
              * platform/mac/http/tests/navigation/timerredirect-goback-expected.png:
              * platform/mac/http/tests/navigation/timerredirect-goback-expected.txt:
              * platform/mac/http/tests/navigation/timerredirect-subframeload-expected.checksum:
              * platform/mac/http/tests/navigation/timerredirect-subframeload-expected.png:
              * platform/mac/http/tests/navigation/timerredirect-subframeload-expected.txt:
              * platform/mac/svg/custom/inline-svg-in-xhtml-expected.checksum:
              * platform/mac/svg/custom/inline-svg-in-xhtml-expected.png:
              * platform/mac/svg/custom/inline-svg-in-xhtml-expected.txt:
              * platform/mac/svg/hixie/mixed/003-expected.checksum:
              * platform/mac/svg/hixie/mixed/003-expected.png:
              * platform/mac/svg/hixie/mixed/003-expected.txt:
              * platform/mac/tables/mozilla/bugs/bug1188-expected.checksum:
              * platform/mac/tables/mozilla/bugs/bug1188-expected.png:
              * platform/mac/tables/mozilla/bugs/bug1188-expected.txt:
              * platform/mac/tables/mozilla/bugs/bug12384-expected.checksum:
              * platform/mac/tables/mozilla/bugs/bug12384-expected.png:
              * platform/mac/tables/mozilla/bugs/bug12384-expected.txt:
              * platform/mac/tables/mozilla/bugs/bug18359-expected.checksum:
              * platform/mac/tables/mozilla/bugs/bug18359-expected.png:
              * platform/mac/tables/mozilla/bugs/bug18359-expected.txt:
              * platform/mac/tables/mozilla/bugs/bug194024-expected.checksum:
              * platform/mac/tables/mozilla/bugs/bug194024-expected.png:
              * platform/mac/tables/mozilla/bugs/bug194024-expected.txt:
              * platform/mac/tables/mozilla/bugs/bug24200-expected.checksum:
              * platform/mac/tables/mozilla/bugs/bug24200-expected.png:
              * platform/mac/tables/mozilla/bugs/bug24200-expected.txt:
              * platform/mac/tables/mozilla/bugs/bug2479-2-expected.checksum:
              * platform/mac/tables/mozilla/bugs/bug2479-2-expected.png:
              * platform/mac/tables/mozilla/bugs/bug2479-2-expected.txt:
              * platform/mac/tables/mozilla/bugs/bug2479-3-expected.checksum:
              * platform/mac/tables/mozilla/bugs/bug2479-3-expected.png:
              * platform/mac/tables/mozilla/bugs/bug2479-3-expected.txt:
              * platform/mac/tables/mozilla/bugs/bug2479-4-expected.txt:
              * platform/mac/tables/mozilla/bugs/bug28928-expected.checksum:
              * platform/mac/tables/mozilla/bugs/bug28928-expected.png:
              * platform/mac/tables/mozilla/bugs/bug28928-expected.txt:
              * platform/mac/tables/mozilla/bugs/bug30559-expected.checksum:
              * platform/mac/tables/mozilla/bugs/bug30559-expected.png:
              * platform/mac/tables/mozilla/bugs/bug30559-expected.txt:
              * platform/mac/tables/mozilla/bugs/bug30692-expected.checksum:
              * platform/mac/tables/mozilla/bugs/bug30692-expected.png:
              * platform/mac/tables/mozilla/bugs/bug30692-expected.txt:
              * platform/mac/tables/mozilla/bugs/bug4382-expected.checksum:
              * platform/mac/tables/mozilla/bugs/bug4382-expected.png:
              * platform/mac/tables/mozilla/bugs/bug4382-expected.txt:
              * platform/mac/tables/mozilla/bugs/bug4527-expected.checksum:
              * platform/mac/tables/mozilla/bugs/bug4527-expected.png:
              * platform/mac/tables/mozilla/bugs/bug4527-expected.txt:
              * platform/mac/tables/mozilla/bugs/bug46368-1-expected.checksum:
              * platform/mac/tables/mozilla/bugs/bug46368-1-expected.png:
              * platform/mac/tables/mozilla/bugs/bug46368-1-expected.txt:
              * platform/mac/tables/mozilla/bugs/bug46368-2-expected.checksum:
              * platform/mac/tables/mozilla/bugs/bug46368-2-expected.png:
              * platform/mac/tables/mozilla/bugs/bug46368-2-expected.txt:
              * platform/mac/tables/mozilla/bugs/bug51037-expected.checksum:
              * platform/mac/tables/mozilla/bugs/bug51037-expected.png:
              * platform/mac/tables/mozilla/bugs/bug51037-expected.txt:
              * platform/mac/tables/mozilla/bugs/bug55545-expected.checksum:
              * platform/mac/tables/mozilla/bugs/bug55545-expected.png:
              * platform/mac/tables/mozilla/bugs/bug55545-expected.txt:
              * platform/mac/tables/mozilla/bugs/bug59354-expected.checksum:
              * platform/mac/tables/mozilla/bugs/bug59354-expected.png:
              * platform/mac/tables/mozilla/bugs/bug59354-expected.txt:
              * platform/mac/tables/mozilla/bugs/bug7342-expected.checksum:
              * platform/mac/tables/mozilla/bugs/bug7342-expected.png:
              * platform/mac/tables/mozilla/bugs/bug7342-expected.txt:
              * platform/mac/tables/mozilla/bugs/bug96334-expected.checksum:
              * platform/mac/tables/mozilla/bugs/bug96334-expected.png:
              * platform/mac/tables/mozilla/bugs/bug96334-expected.txt:
              * platform/mac/tables/mozilla/bugs/bug99948-expected.checksum:
              * platform/mac/tables/mozilla/bugs/bug99948-expected.png:
              * platform/mac/tables/mozilla/bugs/bug99948-expected.txt:
              * platform/mac/tables/mozilla/dom/tableDom-expected.checksum:
              * platform/mac/tables/mozilla/dom/tableDom-expected.png:
              * platform/mac/tables/mozilla/dom/tableDom-expected.txt:
              * platform/mac/tables/mozilla/other/move_row-expected.checksum:
              * platform/mac/tables/mozilla/other/move_row-expected.png:
              * platform/mac/tables/mozilla/other/move_row-expected.txt:
              * platform/mac/tables/mozilla_expected_failures/bugs/bug2479-5-expected.txt:
              * platform/mac/tables/mozilla_expected_failures/bugs/bug92647-1-expected.checksum:
              * platform/mac/tables/mozilla_expected_failures/bugs/bug92647-1-expected.png:
              * platform/mac/tables/mozilla_expected_failures/bugs/bug92647-1-expected.txt:
              * platform/win/Skipped:
              * svg/custom/resources/svg-fonts-in-text-controls.js:
              * svg/custom/svg-fonts-in-text-controls-expected.txt:
              * svg/custom/svg-fonts-in-text-controls.html: Removed.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@42698 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      38f70292
    • eric@webkit.org's avatar
      Reviewed by Dan Bernstein. · 596d7208
      eric@webkit.org authored
              Make textarea and text input metrics more closely match IEs.
              https://bugs.webkit.org/show_bug.cgi?id=15312
      
              This involves:
              -set text input width to size*avgCharWidth + maxCharWidth - avgCharWidth
              -set textarea width to cols*avgCharWidth
              -Make default CSS match IEs
              -Correctly initializing m_avgCharWidth and m_maxCharWidth for each platform and SVG.
      
              Those values for textarea and inputs were derived by doing a ton of manual
              testing of IE's width values for various textareas and fonts.
      
              To get the average and max character width of a font, we do the following
              for each platform:
              -Win: TextMetrics expose avgCharWidth and maxCharWidth
              -SVG: avgCharWidth = width of an '0', fallback on width of a space glyph, then m_xHeight
                  maxCharWidth = width of a 'W' for roman fonts, fallback on m_ascent
              -Linux: avgCharWidth = width of an '0', fallback on m_xHeight
                  maxCharWidth = max of avgCharWidth and m_ascent
              -Mac: look in the OS/2 table for avgCharWidth and grab the maxCharWidth off the font.
                  If either one is not there, then calculate the value using the Linux approach.
      
              Linux ports could probably dig into the OS/2 table as well, but I'll leave
              that up to them to implement.
      
              Tests: fast/forms/text-control-intrinsic-widths.html
                     fast/forms/textarea-metrics.html
                     svg/custom/svg-fonts-in-text-controls.html
      
              * css/html4.css:
              * css/themeWin.css:
              * platform/graphics/SimpleFontData.cpp:
              (WebCore::SimpleFontData::SimpleFontData):
              (WebCore::SimpleFontData::initCharWidths):
              * platform/graphics/SimpleFontData.h:
              (WebCore::SimpleFontData::maxCharWidth):
              (WebCore::SimpleFontData::avgCharWidth):
              * platform/graphics/chromium/SimpleFontDataChromiumWin.cpp:
              (WebCore::SimpleFontData::platformCharWidthInit):
              * platform/graphics/chromium/SimpleFontDataLinux.cpp:
              (WebCore::SimpleFontData::platformCharWidthInit):
              * platform/graphics/gtk/SimpleFontDataGtk.cpp:
              (WebCore::SimpleFontData::platformCharWidthInit):
              * platform/graphics/gtk/SimpleFontDataPango.cpp:
              (WebCore::SimpleFontData::platformCharWidthInit):
              * platform/graphics/mac/SimpleFontDataMac.mm:
              (WebCore::SimpleFontData::platformCharWidthInit):
              * platform/graphics/qt/SimpleFontDataQt.cpp:
              (WebCore::SimpleFontData::platformCharWidthInit):
              * platform/graphics/win/SimpleFontDataCGWin.cpp:
              (WebCore::SimpleFontData::platformCharWidthInit):
              * platform/graphics/win/SimpleFontDataCairoWin.cpp:
              (WebCore::SimpleFontData::platformInit):
              (WebCore::SimpleFontData::platformCharWidthInit):
              * platform/graphics/win/SimpleFontDataWin.cpp:
              (WebCore::SimpleFontData::initGDIFont):
              * platform/graphics/wx/SimpleFontDataWx.cpp:
              (WebCore::SimpleFontData::platformCharWidthInit):
              * rendering/RenderTextControl.cpp:
              (WebCore::RenderTextControl::calcPrefWidths):
              * rendering/RenderTextControlMultiLine.cpp:
              (WebCore::RenderTextControlMultiLine::createInnerTextStyle):
              * rendering/RenderTextControlSingleLine.cpp:
              (WebCore::RenderTextControlSingleLine::preferredContentWidth):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@42678 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      596d7208
  4. 21 Nov, 2008 1 commit
    • justin.garcia@apple.com's avatar
      WebCore: · e248230a
      justin.garcia@apple.com authored
      2008-11-21  Justin Garcia  <justin.garcia@apple.com>
      
              Reviewed by Darin Adler.
      
              <rdar://problem/5381788> Match NSTextView editing behavior at the end of hyperlink text
              
              Change link editing behavior to match TextEdit and MS Word when editing before and after 
              a link (Pages has two caret positions at link boundaries, Thunderbird and FF behave like we 
              used to, so it's difficult to get out of link editing mode):
              When inserting before or after a link, always insert content outside of the link.  This
              makes it impossible to get stuck in link editing mode, while making it slightly more 
              difficult to edit link labels.  WebKit editors that care about this can add UI for editing 
              link labels, like GMail and GoogleDocs have done.  We never actually had any bugs complaining
              about how it was difficult to edit link labels at the start/end, the code was just introduced 
              with another bug fix without much thought.
              
              Don't remember removed links anymore, no other editor does this and it made it 
              difficult/impossible to get out of link editing mode.  This code was added to fix
              <rdar://problem/4069359>, which is fixed instead by removing the styles from an 
              enclosing anchor element from those styles that we remember when we delete content.
      
              * editing/CompositeEditCommand.cpp:
              (WebCore::CompositeEditCommand::positionAvoidingSpecialElementBoundary):
              * editing/CompositeEditCommand.h:
              * editing/DeleteSelectionCommand.cpp:
              (WebCore::removeEnclosingAnchorStyle):
              (WebCore::DeleteSelectionCommand::saveTypingStyleState):
              (WebCore::DeleteSelectionCommand::doApply):
              * editing/DeleteSelectionCommand.h:
              * editing/EditCommand.cpp:
              (WebCore::EditCommand::apply):
              * editing/Editor.cpp:
              (WebCore::Editor::appliedEditing):
              * editing/InsertTextCommand.cpp:
              (WebCore::InsertTextCommand::prepareForTextInsertion):
              (WebCore::InsertTextCommand::input):
              * editing/RemoveFormatCommand.cpp:
              (WebCore::RemoveFormatCommand::doApply):
              * editing/SelectionController.cpp:
              (WebCore::SelectionController::setSelection):
              * editing/SelectionController.h:
      
      LayoutTests:
      
      2008-11-21  Justin Garcia  <justin.garcia@apple.com>
      
              Reviewed by Darin Adler.
              
              <rdar://problem/5381788> Match NSTextView editing behavior at the end of hyperlink text
              
              Removed tests for behaviors that we're no longer interested in:
              * editing/deleting/delete-link-1.html: Removed.
              * platform/mac/editing/deleting/delete-link-1-expected.checksum: Removed.
              * platform/mac/editing/deleting/delete-link-1-expected.png: Removed.
              * platform/mac/editing/deleting/delete-link-1-expected.txt: Removed.
              * editing/execCommand/19653-4-expected.txt: Removed.
              * editing/execCommand/19653-4.html: Removed.
              
              Reflects new behavior (don't remember removed anchors):
              * platform/mac/editing/deleting/5168598-expected.txt:
              
              Reflects new behavior.  Also made this test cross-platform:
              * editing/inserting/insert-before-link-1-expected.txt: Added.
              * editing/inserting/insert-before-link-1.html:
              * platform/mac/editing/inserting/insert-before-link-1-expected.checksum: Removed.
              * platform/mac/editing/inserting/insert-before-link-1-expected.png: Removed.
              * platform/mac/editing/inserting/insert-before-link-1-expected.txt: Removed.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38683 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e248230a
  5. 03 Oct, 2007 1 commit
  6. 30 Apr, 2007 1 commit
    • justing's avatar
      LayoutTests: · 370e60e8
      justing authored
              Reviewed by darin
              
              <rdar://problem/5168598> Crash when deleting a link inside an input field
      
              * editing/deleting/5168598-expected.checksum: Added.
              * editing/deleting/5168598-expected.png: Added.
              * editing/deleting/5168598-expected.txt: Added.
              * editing/deleting/5168598.html: Added.
      
      WebCore:
      
              Reviewed by darin
      
              <rdar://problem/5168598> 
              Crash when deleting a link inside an input field
              
              Deletion code tries to update one of its positions to keep 
              it valid and nullifies it.  Later in mergeParagraphs we try 
              to find out if it's valid by checking to see if it's still in 
              the document and crash.
              
              The fix is just to not bother keeping the position, 
              m_upstreamStart, valid, since after the point in the code 
              under examination, it doesn't need to be valid anymore.  
              Besides, code to update DeleteSelectionCommand's positions 
              should go in the functions that handle the content removal 
              that might invalid them (there are already FIXMEs about this).
              
              Also, users shouldn't be able to insert links (or any rich content)
              into plaintext-only regions like text fields, even if those
              text fields are inside richly editable regions.  This is a 
              separate bug and is filed as 5171552.
      
              * editing/DeleteSelectionCommand.cpp:
              (WebCore::DeleteSelectionCommand::handleGeneralDelete): Don't
              bother updating m_upstreamStart.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21195 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      370e60e8