1. 09 Mar, 2010 1 commit
    • tony@chromium.org's avatar
      2010-03-09 Tony Chang <tony@chromium.org> · 8c8fa6ce
      tony@chromium.org authored
              Reviewed by Adam Barth.
      
              https://bugs.webkit.org/show_bug.cgi?id=21840
              https://bugs.webkit.org/show_bug.cgi?id=23993
      
              Fix an editing bug where replacing a selection would result in the
              new text ending up inside nodes that were not visibly included in the
              selection.  Instead, move our destination position out of nodes that
              were not visibly included.
      
              Two new tests to verify the new behavior.  Because we're now inserting
              outside of some formatting nodes, some span tags are no longer necessary
              for undoing formatting caused by these formatting nodes.
      
              * editing/deleting/backspace-avoid-preceding-style-expected.txt: Added.
              * editing/deleting/backspace-avoid-preceding-style.html: Added.
              * editing/inserting/replace-at-visible-boundary-expected.txt: Added.
              * editing/inserting/replace-at-visible-boundary.html: Added.
              * platform/mac/editing/deleting/delete-3857753-fix-expected.txt:
              * platform/mac/editing/inserting/insert-div-026-expected.txt:
              * platform/mac/editing/pasteboard/paste-text-at-tabspan-001-expected.txt:
              * platform/mac/editing/pasteboard/paste-text-at-tabspan-002-expected.txt:
              * platform/mac/editing/style/font-family-with-space-expected.txt:
              * platform/mac/editing/style/smoosh-styles-001-expected.txt:
              * platform/mac/editing/style/style-boundary-005-expected.txt:
      2010-03-09  Tony Chang  <tony@chromium.org>
      
              Reviewed by Adam Barth.
      
              https://bugs.webkit.org/show_bug.cgi?id=21840
              https://bugs.webkit.org/show_bug.cgi?id=23993
      
              Fix an editing bug where replacing a selection would result in the
              new text ending up inside nodes that were not visibly included in the
              selection.  Instead, move our destination position out of nodes that
              were not visibly included.
      
              Tests: editing/deleting/backspace-avoid-preceding-style.html
                     editing/inserting/replace-at-visible-boundary.html
      
              * editing/ReplaceSelectionCommand.cpp:
              (WebCore::positionAvoidingPrecedingNodes):
              (WebCore::ReplaceSelectionCommand::doApply):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55762 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8c8fa6ce
  2. 03 Oct, 2007 1 commit
  3. 19 Apr, 2007 1 commit
    • weinig's avatar
      LayoutTests: · 28ce873d
      weinig authored
              Reviewed by Hyatt
      
              - updated results for http://bugs.webkit.org/show_bug.cgi?id=13291
                REGRESSION (r19595): WebViewDidBeginEditingNotification not posted when focusing with the mouse
      
              * editing/deleting/4845371-expected.txt:
              * editing/deleting/collapse-whitespace-3587601-fix-expected.txt:
              * editing/deleting/delete-3608430-fix-expected.txt:
              * editing/deleting/delete-3608445-fix-expected.txt:
              * editing/deleting/delete-3608462-fix-expected.txt:
              * editing/deleting/delete-3775172-fix-expected.txt:
              * editing/deleting/delete-3800834-fix-expected.txt:
              * editing/deleting/delete-3857753-fix-expected.txt:
              * editing/deleting/delete-3865854-fix-expected.txt:
              * editing/deleting/delete-3928305-fix-expected.txt:
              * editing/deleting/delete-3959464-fix-expected.txt:
              * editing/deleting/delete-4038408-fix-expected.txt:
              * editing/deleting/delete-4083333-fix-expected.txt:
              * editing/deleting/delete-after-span-ws-001-expected.txt:
              * editing/deleting/delete-after-span-ws-002-expected.txt:
              * editing/deleting/delete-after-span-ws-003-expected.txt:
              * editing/deleting/delete-all-text-in-text-field-assertion-expected.txt:
              * editing/deleting/delete-and-undo-expected.txt:
              * editing/deleting/delete-at-paragraph-boundaries-001-expected.txt:
              * editing/deleting/delete-at-paragraph-boundaries-002-expected.txt:
              * editing/deleting/delete-at-paragraph-boundaries-003-expected.txt:
              * editing/deleting/delete-at-paragraph-boundaries-004-expected.txt:
              * editing/deleting/delete-at-paragraph-boundaries-005-expected.txt:
              * editing/deleting/delete-at-paragraph-boundaries-006-expected.txt:
              * editing/deleting/delete-at-paragraph-boundaries-007-expected.txt:
              * editing/deleting/delete-at-paragraph-boundaries-008-expected.txt:
              * editing/deleting/delete-at-paragraph-boundaries-009-expected.txt:
              * editing/deleting/delete-at-paragraph-boundaries-010-expected.txt:
              * editing/deleting/delete-at-paragraph-boundaries-011-expected.txt:
              * editing/deleting/delete-at-start-or-end-expected.txt:
              * editing/deleting/delete-block-contents-001-expected.txt:
              * editing/deleting/delete-block-contents-002-expected.txt:
              * editing/deleting/delete-block-contents-003-expected.txt:
              * editing/deleting/delete-block-merge-contents-001-expected.txt:
              * editing/deleting/delete-block-merge-contents-002-expected.txt:
              * editing/deleting/delete-block-merge-contents-003-expected.txt:
              * editing/deleting/delete-block-merge-contents-004-expected.txt:
              * editing/deleting/delete-block-merge-contents-005-expected.txt:
              * editing/deleting/delete-block-merge-contents-006-expected.txt:
              * editing/deleting/delete-block-merge-contents-007-expected.txt:
              * editing/deleting/delete-block-merge-contents-008-expected.txt:
              * editing/deleting/delete-block-merge-contents-009-expected.txt:
              * editing/deleting/delete-block-merge-contents-010-expected.txt:
              * editing/deleting/delete-block-merge-contents-011-expected.txt:
              * editing/deleting/delete-block-merge-contents-012-expected.txt:
              * editing/deleting/delete-block-merge-contents-013-expected.txt:
              * editing/deleting/delete-block-merge-contents-014-expected.txt:
              * editing/deleting/delete-block-merge-contents-015-expected.txt:
              * editing/deleting/delete-block-merge-contents-016-expected.txt:
              * editing/deleting/delete-block-merge-contents-017-expected.txt:
              * editing/deleting/delete-block-merge-contents-018-expected.txt:
              * editing/deleting/delete-block-merge-contents-019-expected.txt:
              * editing/deleting/delete-block-merge-contents-020-expected.txt:
              * editing/deleting/delete-block-merge-contents-021-expected.txt:
              * editing/deleting/delete-block-merge-contents-022-expected.txt:
              * editing/deleting/delete-block-merge-contents-023-expected.txt:
              * editing/deleting/delete-block-merge-contents-024-expected.txt:
              * editing/deleting/delete-block-table-expected.txt:
              * editing/deleting/delete-br-001-expected.txt:
              * editing/deleting/delete-br-002-expected.txt:
              * editing/deleting/delete-br-003-expected.txt:
              * editing/deleting/delete-br-004-expected.txt:
              * editing/deleting/delete-br-005-expected.txt:
              * editing/deleting/delete-br-006-expected.txt:
              * editing/deleting/delete-br-007-expected.txt:
              * editing/deleting/delete-br-008-expected.txt:
              * editing/deleting/delete-br-009-expected.txt:
              * editing/deleting/delete-br-010-expected.txt:
              * editing/deleting/delete-br-011-expected.txt:
              * editing/deleting/delete-br-012-expected.txt:
              * editing/deleting/delete-by-word-001-expected.txt:
              * editing/deleting/delete-by-word-002-expected.txt:
              * editing/deleting/delete-character-001-expected.txt:
              * editing/deleting/delete-contiguous-ws-001-expected.txt:
              * editing/deleting/delete-first-list-item-expected.txt:
              * editing/deleting/delete-hr-expected.txt:
              * editing/deleting/delete-image-001-expected.txt:
              * editing/deleting/delete-image-002-expected.txt:
              * editing/deleting/delete-image-003-expected.txt:
              * editing/deleting/delete-image-004-expected.txt:
              * editing/deleting/delete-leading-ws-001-expected.txt:
              * editing/deleting/delete-line-001-expected.txt:
              * editing/deleting/delete-line-002-expected.txt:
              * editing/deleting/delete-line-003-expected.txt:
              * editing/deleting/delete-line-004-expected.txt:
              * editing/deleting/delete-line-005-expected.txt:
              * editing/deleting/delete-line-006-expected.txt:
              * editing/deleting/delete-line-007-expected.txt:
              * editing/deleting/delete-line-008-expected.txt:
              * editing/deleting/delete-line-009-expected.txt:
              * editing/deleting/delete-line-010-expected.txt:
              * editing/deleting/delete-line-011-expected.txt:
              * editing/deleting/delete-line-012-expected.txt:
              * editing/deleting/delete-line-013-expected.txt:
              * editing/deleting/delete-line-014-expected.txt:
              * editing/deleting/delete-line-015-expected.txt:
              * editing/deleting/delete-line-016-expected.txt:
              * editing/deleting/delete-line-017-expected.txt:
              * editing/deleting/delete-line-end-ws-001-expected.txt:
              * editing/deleting/delete-line-end-ws-002-expected.txt:
              * editing/deleting/delete-link-1-expected.txt:
              * editing/deleting/delete-listitem-001-expected.txt:
              * editing/deleting/delete-listitem-002-expected.txt:
              * editing/deleting/delete-mixed-editable-content-001-expected.txt:
              * editing/deleting/delete-select-all-001-expected.txt:
              * editing/deleting/delete-select-all-002-expected.txt:
              * editing/deleting/delete-select-all-003-expected.txt:
              * editing/deleting/delete-selection-001-expected.txt:
              * editing/deleting/delete-tab-001-expected.txt:
              * editing/deleting/delete-tab-002-expected.txt:
              * editing/deleting/delete-tab-003-expected.txt:
              * editing/deleting/delete-tab-004-expected.txt:
              * editing/deleting/delete-to-end-of-paragraph-expected.txt:
              * editing/deleting/delete-to-select-table-expected.txt:
              * editing/deleting/delete-trailing-ws-001-expected.txt:
              * editing/deleting/delete-trailing-ws-002-expected.txt:
              * editing/deleting/delete-ws-fixup-001-expected.txt:
              * editing/deleting/delete-ws-fixup-002-expected.txt:
              * editing/deleting/delete-ws-fixup-003-expected.txt:
              * editing/deleting/delete-ws-fixup-004-expected.txt:
              * editing/deleting/forward-delete-expected.txt:
              * editing/deleting/list-item-1-expected.txt:
              * editing/deleting/merge-different-styles-expected.txt:
              * editing/deleting/merge-endOfParagraph-expected.txt:
              * editing/deleting/merge-into-empty-block-1-expected.txt:
              * editing/deleting/merge-into-empty-block-2-expected.txt:
              * editing/deleting/merge-no-br-expected.txt:
              * editing/deleting/merge-unrendered-space-expected.txt:
              * editing/deleting/paragraph-in-preserveNewline-expected.txt:
              * editing/deleting/pruning-after-merge-1-expected.txt:
              * editing/deleting/pruning-after-merge-2-expected.txt:
              * editing/deleting/smart-delete-001-expected.txt:
              * editing/deleting/smart-delete-002-expected.txt:
              * editing/deleting/smart-delete-003-expected.txt:
              * editing/deleting/smart-delete-004-expected.txt:
              * editing/deleting/table-cells-expected.txt:
              * editing/deleting/transpose-empty-expected.txt:
              * editing/deleting/whitespace-pre-1-expected.txt:
              * editing/execCommand/4641880-1-expected.txt:
              * editing/execCommand/4641880-2-expected.txt:
              * editing/execCommand/boldSelection-expected.txt:
              * editing/execCommand/create-list-from-range-selection-expected.txt:
              * editing/execCommand/create-list-with-hr-expected.txt:
              * editing/execCommand/createLink-expected.txt:
              * editing/execCommand/format-block-expected.txt:
              * editing/execCommand/format-block-from-range-selection-expected.txt:
              * editing/execCommand/format-block-with-braces-expected.txt:
              * editing/execCommand/format-block-with-trailing-br-expected.txt:
              * editing/execCommand/hilitecolor-expected.txt:
              * editing/execCommand/indent-empty-root-expected.txt:
              * editing/execCommand/indent-list-item-expected.txt:
              * editing/execCommand/indent-selection-expected.txt:
              * editing/execCommand/insert-list-and-stitch-expected.txt:
              * editing/execCommand/insert-list-with-id-expected.txt:
              * editing/execCommand/insertHTML-expected.txt:
              * editing/execCommand/insertHorizontalRule-expected.txt:
              * editing/execCommand/insertImage-expected.txt:
              * editing/execCommand/italicizeByCharacter-expected.txt:
              * editing/execCommand/modifyForeColorByCharacter-expected.txt:
              * editing/execCommand/nsresponder-indent-expected.txt:
              * editing/execCommand/nsresponder-outdent-expected.txt:
              * editing/execCommand/outdent-selection-expected.txt:
              * editing/execCommand/print-expected.txt:
              * editing/execCommand/queryCommandState-01-expected.txt:
              * editing/execCommand/remove-formatting-2-expected.txt:
              * editing/execCommand/remove-formatting-expected.txt:
              * editing/execCommand/remove-list-from-range-selection-expected.txt:
              * editing/execCommand/remove-list-item-1-expected.txt:
              * editing/execCommand/remove-list-items-expected.txt:
              * editing/execCommand/selectAll-expected.txt:
              * editing/execCommand/strikethroughSelection-expected.txt:
              * editing/execCommand/switch-list-type-expected.txt:
              * editing/execCommand/unlink-expected.txt:
              * editing/input/firstrectforcharacterrange-plain-expected.txt:
              * editing/input/firstrectforcharacterrange-styled-expected.txt:
              * editing/input/wrapped-line-char-rect-expected.txt:
              * editing/inserting/4278698-expected.txt:
              * editing/inserting/before-after-input-element-expected.txt:
              * editing/inserting/editable-html-element-expected.txt:
              * editing/inserting/editing-empty-divs-expected.txt:
              * editing/inserting/insert-3654864-fix-expected.txt:
              * editing/inserting/insert-3659587-fix-expected.txt:
              * editing/inserting/insert-3775316-fix-expected.txt:
              * editing/inserting/insert-3778059-fix-expected.txt:
              * editing/inserting/insert-3786362-fix-expected.txt:
              * editing/inserting/insert-3800346-fix-expected.txt:
              * editing/inserting/insert-3851164-fix-expected.txt:
              * editing/inserting/insert-3907422-fix-expected.txt:
              * editing/inserting/insert-after-delete-001-expected.txt:
              * editing/inserting/insert-at-end-01-expected.txt:
              * editing/inserting/insert-at-end-02-expected.txt:
              * editing/inserting/insert-before-link-1-expected.txt:
              * editing/inserting/insert-br-001-expected.txt:
              * editing/inserting/insert-br-002-expected.txt:
              * editing/inserting/insert-br-003-expected.txt:
              * editing/inserting/insert-br-004-expected.txt:
              * editing/inserting/insert-br-005-expected.txt:
              * editing/inserting/insert-br-006-expected.txt:
              * editing/inserting/insert-br-007-expected.txt:
              * editing/inserting/insert-br-008-expected.txt:
              * editing/inserting/insert-br-009-expected.txt:
              * editing/inserting/insert-br-at-tabspan-001-expected.txt:
              * editing/inserting/insert-br-at-tabspan-002-expected.txt:
              * editing/inserting/insert-br-at-tabspan-003-expected.txt:
              * editing/inserting/insert-br-quoted-001-expected.txt:
              * editing/inserting/insert-br-quoted-002-expected.txt:
              * editing/inserting/insert-br-quoted-003-expected.txt:
              * editing/inserting/insert-br-quoted-004-expected.txt:
              * editing/inserting/insert-br-quoted-005-expected.txt:
              * editing/inserting/insert-br-quoted-006-expected.txt:
              * editing/inserting/insert-div-001-expected.txt:
              * editing/inserting/insert-div-002-expected.txt:
              * editing/inserting/insert-div-003-expected.txt:
              * editing/inserting/insert-div-004-expected.txt:
              * editing/inserting/insert-div-005-expected.txt:
              * editing/inserting/insert-div-006-expected.txt:
              * editing/inserting/insert-div-007-expected.txt:
              * editing/inserting/insert-div-008-expected.txt:
              * editing/inserting/insert-div-009-expected.txt:
              * editing/inserting/insert-div-010-expected.txt:
              * editing/inserting/insert-div-011-expected.txt:
              * editing/inserting/insert-div-012-expected.txt:
              * editing/inserting/insert-div-013-expected.txt:
              * editing/inserting/insert-div-014-expected.txt:
              * editing/inserting/insert-div-015-expected.txt:
              * editing/inserting/insert-div-016-expected.txt:
              * editing/inserting/insert-div-017-expected.txt:
              * editing/inserting/insert-div-018-expected.txt:
              * editing/inserting/insert-div-019-expected.txt:
              * editing/inserting/insert-div-020-expected.txt:
              * editing/inserting/insert-div-021-expected.txt:
              * editing/inserting/insert-div-022-expected.txt:
              * editing/inserting/insert-div-023-expected.txt:
              * editing/inserting/insert-div-024-expected.txt:
              * editing/inserting/insert-div-025-expected.txt:
              * editing/inserting/insert-div-026-expected.txt:
              * editing/inserting/insert-div-027-expected.txt:
              * editing/inserting/insert-paragraph-01-expected.txt:
              * editing/inserting/insert-paragraph-02-expected.txt:
              * editing/inserting/insert-paragraph-03-expected.txt:
              * editing/inserting/insert-paragraph-04-expected.txt:
              * editing/inserting/insert-space-in-empty-doc-expected.txt:
              * editing/inserting/insert-tab-001-expected.txt:
              * editing/inserting/insert-tab-002-expected.txt:
              * editing/inserting/insert-tab-003-expected.txt:
              * editing/inserting/insert-tab-004-expected.txt:
              * editing/inserting/insert-text-at-tabspan-001-expected.txt:
              * editing/inserting/insert-text-at-tabspan-002-expected.txt:
              * editing/inserting/insert-text-at-tabspan-003-expected.txt:
              * editing/inserting/insert-text-with-newlines-expected.txt:
              * editing/inserting/line-break-expected.txt:
              * editing/inserting/multiple-lines-selected-expected.txt:
              * editing/inserting/paragraph-separator-01-expected.txt:
              * editing/inserting/paragraph-separator-02-expected.txt:
              * editing/inserting/paragraph-separator-03-expected.txt:
              * editing/inserting/paragraph-separator-in-table-1-expected.txt:
              * editing/inserting/paragraph-separator-in-table-2-expected.txt:
              * editing/inserting/redo-expected.txt:
              * editing/inserting/return-key-with-selection-001-expected.txt:
              * editing/inserting/return-key-with-selection-002-expected.txt:
              * editing/inserting/return-key-with-selection-003-expected.txt:
              * editing/inserting/typing-001-expected.txt:
              * editing/inserting/typing-002-expected.txt:
              * editing/inserting/typing-003-expected.txt:
              * editing/inserting/typing-around-br-001-expected.txt:
              * editing/inserting/typing-around-image-001-expected.txt:
              * editing/pasteboard/3976872-expected.txt:
              * editing/pasteboard/4076267-2-expected.txt:
              * editing/pasteboard/4076267-3-expected.txt:
              * editing/pasteboard/4076267-expected.txt:
              * editing/pasteboard/4242293-1-expected.txt:
              * editing/pasteboard/4242293-expected.txt:
              * editing/pasteboard/4631972-expected.txt:
              * editing/pasteboard/4641033-expected.txt:
              * editing/pasteboard/4700297-expected.txt:
              * editing/pasteboard/4744008-expected.txt:
              * editing/pasteboard/8145-1-expected.txt:
              * editing/pasteboard/8145-2-expected.txt:
              * editing/pasteboard/8145-3-expected.txt:
              * editing/pasteboard/bad-placeholder-expected.txt:
              * editing/pasteboard/block-wrappers-necessary-expected.txt:
              * editing/pasteboard/copy-in-password-field-expected.txt:
              * editing/pasteboard/copy-standalone-image-expected.txt:
              * editing/pasteboard/cut-text-001-expected.txt:
              * editing/pasteboard/displaced-generic-placeholder-expected.txt:
              * editing/pasteboard/displaced-placeholder-expected.txt:
              * editing/pasteboard/display-block-on-spans-expected.txt:
              * editing/pasteboard/drag-drop-modifies-page-expected.txt:
              * editing/pasteboard/drag-selected-image-to-contenteditable-expected.txt:
              * editing/pasteboard/drop-link-expected.txt:
              * editing/pasteboard/emacs-cntl-y-001-expected.txt:
              * editing/pasteboard/emacs-ctrl-a-k-y-expected.txt:
              * editing/pasteboard/emacs-ctrl-k-y-001-expected.txt:
              * editing/pasteboard/interchange-newline-1-expected.txt:
              * editing/pasteboard/interchange-newline-2-expected.txt:
              * editing/pasteboard/interchange-newline-3-expected.txt:
              * editing/pasteboard/interchange-newline-4-expected.txt:
              * editing/pasteboard/merge-after-delete-1-expected.txt:
              * editing/pasteboard/merge-after-delete-2-expected.txt:
              * editing/pasteboard/merge-after-delete-expected.txt:
              * editing/pasteboard/merge-end-3-expected.txt:
              * editing/pasteboard/merge-end-4-expected.txt:
              * editing/pasteboard/merge-end-5-expected.txt:
              * editing/pasteboard/merge-end-blockquote-expected.txt:
              * editing/pasteboard/merge-end-borders-expected.txt:
              * editing/pasteboard/merge-end-list-expected.txt:
              * editing/pasteboard/merge-end-table-expected.txt:
              * editing/pasteboard/merge-start-blockquote-expected.txt:
              * editing/pasteboard/merge-start-list-expected.txt:
              * editing/pasteboard/nested-blocks-with-text-area-expected.txt:
              * editing/pasteboard/nested-blocks-with-text-field-expected.txt:
              * editing/pasteboard/paste-4035648-fix-expected.txt:
              * editing/pasteboard/paste-4038267-fix-expected.txt:
              * editing/pasteboard/paste-4039777-fix-expected.txt:
              * editing/pasteboard/paste-RTFD-expected.txt:
              * editing/pasteboard/paste-TIFF-expected.txt:
              * editing/pasteboard/paste-line-endings-001-expected.txt:
              * editing/pasteboard/paste-line-endings-002-expected.txt:
              * editing/pasteboard/paste-line-endings-003-expected.txt:
              * editing/pasteboard/paste-line-endings-004-expected.txt:
              * editing/pasteboard/paste-line-endings-005-expected.txt:
              * editing/pasteboard/paste-line-endings-006-expected.txt:
              * editing/pasteboard/paste-line-endings-007-expected.txt:
              * editing/pasteboard/paste-line-endings-008-expected.txt:
              * editing/pasteboard/paste-line-endings-009-expected.txt:
              * editing/pasteboard/paste-line-endings-010-expected.txt:
              * editing/pasteboard/paste-list-001-expected.txt:
              * editing/pasteboard/paste-match-style-001-expected.txt:
              * editing/pasteboard/paste-match-style-002-expected.txt:
              * editing/pasteboard/paste-pre-001-expected.txt:
              * editing/pasteboard/paste-pre-002-expected.txt:
              * editing/pasteboard/paste-table-001-expected.txt:
              * editing/pasteboard/paste-table-002-expected.txt:
              * editing/pasteboard/paste-table-003-expected.txt:
              * editing/pasteboard/paste-text-001-expected.txt:
              * editing/pasteboard/paste-text-002-expected.txt:
              * editing/pasteboard/paste-text-003-expected.txt:
              * editing/pasteboard/paste-text-004-expected.txt:
              * editing/pasteboard/paste-text-005-expected.txt:
              * editing/pasteboard/paste-text-006-expected.txt:
              * editing/pasteboard/paste-text-007-expected.txt:
              * editing/pasteboard/paste-text-008-expected.txt:
              * editing/pasteboard/paste-text-009-expected.txt:
              * editing/pasteboard/paste-text-010-expected.txt:
              * editing/pasteboard/paste-text-011-expected.txt:
              * editing/pasteboard/paste-text-012-expected.txt:
              * editing/pasteboard/paste-text-013-expected.txt:
              * editing/pasteboard/paste-text-014-expected.txt:
              * editing/pasteboard/paste-text-015-expected.txt:
              * editing/pasteboard/paste-text-016-expected.txt:
              * editing/pasteboard/paste-text-017-expected.txt:
              * editing/pasteboard/paste-text-018-expected.txt:
              * editing/pasteboard/paste-text-019-expected.txt:
              * editing/pasteboard/paste-text-at-tabspan-001-expected.txt:
              * editing/pasteboard/paste-text-at-tabspan-002-expected.txt:
              * editing/pasteboard/paste-text-at-tabspan-003-expected.txt:
              * editing/pasteboard/paste-xml-expected.txt:
              * editing/pasteboard/pasting-object-expected.txt:
              * editing/pasteboard/pasting-tabs-expected.txt:
              * editing/pasteboard/prevent-block-nesting-01-expected.txt:
              * editing/pasteboard/quirks-mode-br-1-expected.txt:
              * editing/pasteboard/quirks-mode-br-2-expected.txt:
              * editing/pasteboard/smart-paste-001-expected.txt:
              * editing/pasteboard/smart-paste-002-expected.txt:
              * editing/pasteboard/smart-paste-003-expected.txt:
              * editing/pasteboard/smart-paste-004-expected.txt:
              * editing/pasteboard/smart-paste-005-expected.txt:
              * editing/pasteboard/smart-paste-006-expected.txt:
              * editing/pasteboard/smart-paste-007-expected.txt:
              * editing/pasteboard/smart-paste-008-expected.txt:
              * editing/pasteboard/styled-element-markup-expected.txt:
              * editing/pasteboard/subframe-dragndrop-1-expected.txt:
              * editing/pasteboard/testcase-9507-expected.txt:
              * editing/pasteboard/undoable-fragment-removes-expected.txt:
              * editing/pasteboard/unrendered-br-expected.txt:
              * editing/selection/3690703-2-expected.txt:
              * editing/selection/3690703-expected.txt:
              * editing/selection/3690719-expected.txt:
              * editing/selection/4397952-expected.txt:
              * editing/selection/4932260-1-expected.txt:
              * editing/selection/4932260-2-expected.txt:
              * editing/selection/4932260-3-expected.txt:
              * editing/selection/4947387-expected.txt:
              * editing/selection/6476-expected.txt:
              * editing/selection/7152-1-expected.txt:
              * editing/selection/7152-2-expected.txt:
              * editing/selection/after-line-wrap-expected.txt:
              * editing/selection/caret-rtl-2-expected.txt:
              * editing/selection/caret-rtl-expected.txt:
              * editing/selection/click-before-and-after-table-expected.txt:
              * editing/selection/click-start-of-line-expected.txt:
              * editing/selection/designmode-no-caret-expected.txt:
              * editing/selection/editable-links-expected.txt:
              * editing/selection/editable-non-editable-crash-expected.txt:
              * editing/selection/end-of-document-expected.txt:
              * editing/selection/expanding-selections-expected.txt:
              * editing/selection/expanding-selections2-expected.txt:
              * editing/selection/extend-by-character-001-expected.txt:
              * editing/selection/extend-by-character-002-expected.txt:
              * editing/selection/extend-by-character-003-expected.txt:
              * editing/selection/extend-by-character-004-expected.txt:
              * editing/selection/extend-by-character-005-expected.txt:
              * editing/selection/extend-by-character-006-expected.txt:
              * editing/selection/extend-by-sentence-001-expected.txt:
              * editing/selection/extend-by-word-001-expected.txt:
              * editing/selection/extend-by-word-002-expected.txt:
              * editing/selection/fake-doubleclick-expected.txt:
              * editing/selection/fake-drag-expected.txt:
              * editing/selection/iframe-expected.txt:
              * editing/selection/image-before-linebreak-expected.txt:
              * editing/selection/inline-table-expected.txt:
              * editing/selection/leave-requested-block-expected.txt:
              * editing/selection/mixed-editability-1-expected.txt:
              * editing/selection/mixed-editability-3-expected.txt:
              * editing/selection/mixed-editability-4-expected.txt:
              * editing/selection/mixed-editability-5-expected.txt:
              * editing/selection/move-3875618-fix-expected.txt:
              * editing/selection/move-3875641-fix-expected.txt:
              * editing/selection/move-backwords-by-word-001-expected.txt:
              * editing/selection/move-between-blocks-no-001-expected.txt:
              * editing/selection/move-between-blocks-yes-001-expected.txt:
              * editing/selection/move-by-character-001-expected.txt:
              * editing/selection/move-by-character-002-expected.txt:
              * editing/selection/move-by-character-003-expected.txt:
              * editing/selection/move-by-character-004-expected.txt:
              * editing/selection/move-by-character-005-expected.txt:
              * editing/selection/move-by-character-6-expected.txt:
              * editing/selection/move-by-line-001-expected.txt:
              * editing/selection/move-by-line-002-expected.txt:
              * editing/selection/move-by-word-001-expected.txt:
              * editing/selection/previous-line-position-expected.txt:
              * editing/selection/replace-selection-1-expected.txt:
              * editing/selection/replaced-boundaries-1-expected.txt:
              * editing/selection/replaced-boundaries-2-expected.txt:
              * editing/selection/replaced-boundaries-3-expected.txt:
              * editing/selection/select-all-001-expected.txt:
              * editing/selection/select-all-002-expected.txt:
              * editing/selection/select-all-003-expected.txt:
              * editing/selection/select-all-004-expected.txt:
              * editing/selection/select-all-005-expected.txt:
              * editing/selection/select-all-006-expected.txt:
              * editing/selection/select-all-iframe-expected.txt:
              * editing/selection/select-box-expected.txt:
              * editing/selection/select-element-paragraph-boundary-expected.txt:
              * editing/selection/select-missing-image-expected.txt:
              * editing/selection/selection-3748164-fix-expected.txt:
              * editing/selection/skip-non-editable-1-expected.txt:
              * editing/selection/skip-non-editable-2-expected.txt:
              * editing/selection/table-caret-1-expected.txt:
              * editing/selection/table-caret-2-expected.txt:
              * editing/selection/table-caret-3-expected.txt:
              * editing/selection/triple-click-in-pre-expected.txt:
              * editing/selection/unrendered-001-expected.txt:
              * editing/selection/unrendered-002-expected.txt:
              * editing/selection/unrendered-003-expected.txt:
              * editing/selection/unrendered-004-expected.txt:
              * editing/selection/unrendered-005-expected.txt:
              * editing/selection/unrendered-space-expected.txt:
              * editing/spelling/spelling-expected.txt:
              * editing/style/apple-style-editable-mix-expected.txt:
              * editing/style/block-style-001-expected.txt:
              * editing/style/block-style-002-expected.txt:
              * editing/style/block-style-003-expected.txt:
              * editing/style/block-style-004-expected.txt:
              * editing/style/block-style-005-expected.txt:
              * editing/style/block-style-006-expected.txt:
              * editing/style/block-styles-007-expected.txt:
              * editing/style/create-block-for-style-001-expected.txt:
              * editing/style/create-block-for-style-002-expected.txt:
              * editing/style/create-block-for-style-003-expected.txt:
              * editing/style/create-block-for-style-004-expected.txt:
              * editing/style/create-block-for-style-005-expected.txt:
              * editing/style/create-block-for-style-006-expected.txt:
              * editing/style/create-block-for-style-007-expected.txt:
              * editing/style/create-block-for-style-008-expected.txt:
              * editing/style/create-block-for-style-009-expected.txt:
              * editing/style/create-block-for-style-010-expected.txt:
              * editing/style/create-block-for-style-011-expected.txt:
              * editing/style/create-block-for-style-012-expected.txt:
              * editing/style/create-block-for-style-013-expected.txt:
              * editing/style/designmode-expected.txt:
              * editing/style/non-inheritable-styles-expected.txt:
              * editing/style/relative-font-size-change-001-expected.txt:
              * editing/style/relative-font-size-change-002-expected.txt:
              * editing/style/relative-font-size-change-003-expected.txt:
              * editing/style/relative-font-size-change-004-expected.txt:
              * editing/style/remove-underline-across-paragraph-expected.txt:
              * editing/style/remove-underline-across-paragraph-in-bold-expected.txt:
              * editing/style/remove-underline-after-paragraph-expected.txt:
              * editing/style/remove-underline-after-paragraph-in-bold-expected.txt:
              * editing/style/remove-underline-expected.txt:
              * editing/style/remove-underline-from-stylesheet-expected.txt:
              * editing/style/remove-underline-in-bold-expected.txt:
              * editing/style/smoosh-styles-001-expected.txt:
              * editing/style/smoosh-styles-002-expected.txt:
              * editing/style/smoosh-styles-003-expected.txt:
              * editing/style/style-3681552-fix-001-expected.txt:
              * editing/style/style-3681552-fix-002-expected.txt:
              * editing/style/style-3690704-fix-expected.txt:
              * editing/style/style-3998892-fix-expected.txt:
              * editing/style/style-boundary-001-expected.txt:
              * editing/style/style-boundary-002-expected.txt:
              * editing/style/style-boundary-003-expected.txt:
              * editing/style/style-boundary-004-expected.txt:
              * editing/style/style-boundary-005-expected.txt:
              * editing/style/table-selection-expected.txt:
              * editing/style/typing-style-001-expected.txt:
              * editing/style/typing-style-002-expected.txt:
              * editing/style/typing-style-003-expected.txt:
              * editing/style/unbold-in-bold-expected.txt:
              * editing/style/underline-expected.txt:
              * editing/undo/4063751-expected.txt:
              * editing/undo/redo-typing-001-expected.txt:
              * editing/undo/undo-iframe-location-change-expected.txt:
              * editing/undo/undo-misspellings-expected.txt:
              * editing/undo/undo-typing-001-expected.txt:
              * editing/unsupported-content/list-delete-001-expected.txt:
              * editing/unsupported-content/list-delete-002-expected.txt:
              * editing/unsupported-content/list-delete-003-expected.txt:
              * editing/unsupported-content/list-type-after-expected.txt:
              * editing/unsupported-content/list-type-before-expected.txt:
              * editing/unsupported-content/table-delete-001-expected.txt:
              * editing/unsupported-content/table-delete-002-expected.txt:
              * editing/unsupported-content/table-delete-003-expected.txt:
              * editing/unsupported-content/table-type-after-expected.txt:
              * editing/unsupported-content/table-type-before-expected.txt:
              * fast/forms/focus-selection-input-expected.txt:
      
      WebCore:
      
              Reviewed by Hyatt.
      
              - fix http://bugs.webkit.org/show_bug.cgi?id=13291
                REGRESSION (r19595): WebViewDidBeginEditingNotification not posted when focusing with the mouse
      
              Covered by editing tests.
      
              * dom/Document.cpp:
              (WebCore::Document::setFocusedNode): Moved the call to Editor::didBeginEditing()
              back into here.
              * dom/Element.cpp:
              (WebCore::Element::updateFocusAppearance): Removed the call to didBeginEditing().
              * html/HTMLInputElement.cpp:
              (WebCore::HTMLInputElement::updateFocusAppearance): Ditto.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20950 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      28ce873d
  4. 14 Mar, 2007 1 commit
    • justing's avatar
      LayoutTests: · 867f199a
      justing authored
              Reviewed by darin
      
              Removed unnecessary style spans:
              * editing/deleting/delete-3857753-fix-expected.txt:
              * editing/execCommand/4916541-expected.txt:
              * editing/execCommand/create-list-from-range-selection-expected.txt:
              * editing/execCommand/format-block-expected.txt:
              * editing/execCommand/format-block-from-range-selection-expected.txt:
              * editing/execCommand/format-block-with-braces-expected.txt:
              * editing/execCommand/indent-selection-expected.txt:
              * editing/execCommand/remove-list-from-range-selection-expected.txt:
              * editing/execCommand/remove-list-items-expected.txt:
              * editing/execCommand/switch-list-type-expected.txt:
              * editing/pasteboard/4861080-expected.txt:
              * editing/pasteboard/display-block-on-spans-expected.txt:
              * editing/pasteboard/drag-drop-modifies-page-expected.txt:
              * editing/pasteboard/paste-table-002-expected.txt:
              * editing/pasteboard/paste-text-001-expected.txt:
              * editing/pasteboard/paste-text-at-tabspan-001-expected.txt:
              * editing/pasteboard/paste-text-at-tabspan-002-expected.txt:
              * editing/pasteboard/paste-text-at-tabspan-003-expected.txt:
              * editing/style/smoosh-styles-001-expected.txt:
              * editing/style/smoosh-styles-002-expected.txt:
      
      WebCore:
      
              Reviewed by darin
              
              ~3x speedup pasting 5k lines of rich text:
              http://shakespeare.mit.edu/hamlet/full.html
              ~2x speedup pasting 10k lines of plain text
              
              * css/CSSComputedStyleDeclaration.cpp:
              (WebCore::computedStyle): Added for convenience.
              * css/CSSComputedStyleDeclaration.h:
              * editing/ReplaceSelectionCommand.cpp:
              (WebCore::ReplaceSelectionCommand::removeRedundantStyles):
              The code that pushed down the top level style span had
              a bug in it that made it do unnecessary work.  Instead of
              fixing the bug I removed the code because it was used to 
              help see more redundancies in second level style spans, but 
              createMarkup now *only* creates a top level style span.
              Only remove redundant styles from style spans and only remove
              unstyled elements if they are style spans.  FF doesn't
              remove redundant styles from elements, or remove redundant 
              font tags on copy/paste.  We could offer this functionality 
              through a separate "cleanup" command.
              * editing/markup.cpp:
              (WebCore::createMarkup): Only add markup for ancestors of 
              lastClosed if we're including markup for acommonAncestorBlock 
              (we do this for commonAncestorBlocks like tables and lists),
              otherwise it's unnecessary/redundant.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20191 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      867f199a
  5. 15 Feb, 2007 1 commit
    • justing's avatar
      LayoutTests: · 9634eb54
      justing authored
              Reviewed by harrison
              
              <rdar://problem/4989774>
              REGRESSION: Pasting a image into a plain text message can place image on a new line
      
              Added:
              * editing/pasteboard/4989774-expected.checksum: Added.
              * editing/pasteboard/4989774-expected.png: Added.
              * editing/pasteboard/4989774-expected.txt: Added.
              * editing/pasteboard/4989774.html: Added.
              Equivalent trees:
              * editing/deleting/delete-3857753-fix-expected.txt:
              * editing/pasteboard/paste-list-001-expected.txt:
              * editing/pasteboard/paste-table-001-expected.txt:
              * editing/pasteboard/paste-text-001-expected.txt:
              * editing/pasteboard/paste-text-at-tabspan-001-expected.txt:
              * editing/pasteboard/paste-text-at-tabspan-002-expected.txt:
              * editing/pasteboard/paste-text-at-tabspan-003-expected.txt:
      
      WebCore:
      
              Reviewed by harrison
              
              <rdar://problem/4989774>
              REGRESSION: Pasting a image into a plain text message can place image on a new line
      
              <span><img><span><img></span></span> will appear as two
              images on different lines because of a layout/rendering
              bug.  This patch avoids the bug by producing cleaner
              markup so that the paste code can safely remove the style 
              spans.
      
              * editing/markup.cpp:
              (WebCore::createMarkup): Get the default style from the
              editable root or body instead of the document element.
              This produces cleaner markup since we don't inline the 
              root's styles.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@19648 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9634eb54
  6. 13 Feb, 2007 1 commit
    • darin's avatar
      - update test results for Hyatt's focus node enhancement (fix for 12149) · e20f1beb
      darin authored
                518 of tests had extra "begin editing" delegate callbacks.
      
              * editing: Updated test results of many tests in this directory.
      
              - removed tests for rolled-out fix for rdar://problem/4922454
      
              * http/tests/security/local-JavaScript-from-remote-expected.txt: Removed.
              * http/tests/security/local-JavaScript-from-remote.html: Removed.
              * http/tests/security/local-iFrame-from-remote-expected.txt: Removed.
              * http/tests/security/local-iFrame-from-remote.html: Removed.
              * http/tests/security/local-image-from-remote-expected.txt: Removed.
              * http/tests/security/local-image-from-remote.html: Removed.
              * http/tests/security/resources/compass.jpg: Removed.
              * http/tests/security/resources/green250x50.png: Removed.
              * http/tests/security/resources/localPage.html: Removed.
              * http/tests/security/resources/localScript.js: Removed.
              * http/tests/security/resources/red200x100.png: Removed.
              * http/tests/security/resources/showRefererImage.php: Removed.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@19605 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e20f1beb
  7. 22 Aug, 2006 1 commit
    • justing's avatar
      LayoutTests: · 2cf76b52
      justing authored
              Reviewed by harrison
      
              <rdar://problem/4052343&4052343&4426622> Mail hung on paste text
              
              Bugs exposed:
              * editing/pasteboard/paste-4039777-fix-expected.checksum:
              * editing/pasteboard/paste-4039777-fix-expected.png:
              * editing/pasteboard/paste-4039777-fix-expected.txt:
              * editing/deleting/delete-3857753-fix-expected.txt:
              * editing/pasteboard/styled-element-markup-expected.checksum:
              * editing/pasteboard/styled-element-markup-expected.png:
              * editing/pasteboard/styled-element-markup-expected.txt:
              * editing/execCommand/insertHTML-expected.checksum:
              * editing/execCommand/insertHTML-expected.png:
              * editing/execCommand/insertHTML-expected.txt:
              * editing/execCommand/insertHTML.html:
              
              Removed some empty style spans, font tags are replaced by style spans
              in a couple of cases:
              * editing/deleting/merge-different-styles-expected.txt:
              * editing/deleting/pruning-after-merge-1-expected.txt:
              * editing/deleting/pruning-after-merge-2-expected.txt:
              * editing/inserting/insert-3786362-fix-expected.txt:
              * editing/pasteboard/block-wrappers-necessary-expected.txt:
              * editing/pasteboard/display-block-on-spans-expected.txt:
              * editing/pasteboard/merge-end-table-expected.txt:
              * editing/pasteboard/paste-4035648-fix-expected.txt:
              * editing/pasteboard/paste-line-endings-001-expected.txt:
              * editing/pasteboard/paste-line-endings-006-expected.txt:
              * editing/pasteboard/paste-list-001-expected.txt:
              * editing/pasteboard/paste-pre-001-expected.txt:
              * editing/pasteboard/paste-pre-002-expected.txt:
              * editing/pasteboard/paste-table-001-expected.txt:
              * editing/pasteboard/paste-table-002-expected.txt:
              * editing/pasteboard/paste-text-001-expected.txt:
              * editing/pasteboard/paste-text-002-expected.txt:
              * editing/pasteboard/paste-text-003-expected.txt:
              * editing/pasteboard/paste-text-004-expected.txt:
              * editing/pasteboard/paste-text-005-expected.txt:
              * editing/pasteboard/paste-text-006-expected.txt:
              * editing/pasteboard/paste-text-011-expected.txt:
              * editing/pasteboard/paste-text-012-expected.txt:
              * editing/pasteboard/paste-text-013-expected.txt:
              * editing/pasteboard/paste-text-014-expected.txt:
              * editing/pasteboard/paste-text-015-expected.txt:
              * editing/pasteboard/paste-text-016-expected.txt:
              * editing/pasteboard/paste-text-017-expected.txt:
              * editing/pasteboard/paste-text-at-tabspan-001-expected.txt:
              * editing/pasteboard/paste-text-at-tabspan-002-expected.txt:
              * editing/pasteboard/paste-text-at-tabspan-003-expected.txt:
              * editing/pasteboard/styled-element-markup.html:
              * editing/pasteboard/testcase-9507-expected.txt:
              * editing/style/smoosh-styles-001-expected.txt:
              * editing/style/smoosh-styles-002-expected.txt:
      
      WebCore:
      
              Reviewed by harrison
      
              <rdar://problem/4052343&4052343&4426622> Mail hung on paste text
              
              * editing/ReplaceSelectionCommand.cpp:
              (WebCore::isInterchangeNewlineNode):
              (WebCore::isInterchangeConvertedSpaceSpan):
              (WebCore::ReplacementFragment::ReplacementFragment):
              (WebCore::ReplaceSelectionCommand::removeRedundantStyles): Compute the redundant inheritable styles and
              remove them and remove style nodes and style spans which were only contributing redundant styles.
              (WebCore::ReplaceSelectionCommand::doApply):
              * editing/ReplaceSelectionCommand.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15975 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2cf76b52
  8. 16 Aug, 2006 1 commit
    • justing's avatar
      LayoutTests: · 84273708
      justing authored
              Reviewed by thatcher
              
              Added:
              * editing/pasteboard/interchange-newline-4-expected.checksum: Added.
              * editing/pasteboard/interchange-newline-4-expected.png: Added.
              * editing/pasteboard/interchange-newline-4-expected.txt: Added.
              * editing/pasteboard/interchange-newline-4.html: Added.
              * editing/deleting/paragraph-in-preserveNewline-expected.checksum: Added.
              * editing/deleting/paragraph-in-preserveNewline-expected.png: Added.
              * editing/deleting/paragraph-in-preserveNewline-expected.txt: Added.
              * editing/deleting/paragraph-in-preserveNewline.html: Added.
              
              Equivalent render trees, fixes, or bugs exposed (10427, 10428):
              * editing/execCommand/insertHTML-expected.checksum:
              * editing/execCommand/insertHTML-expected.png:
              * editing/execCommand/insertHTML-expected.txt:
              * editing/execCommand/insertHTML.html:
              * editing/execCommand/insertHorizontalRule-expected.checksum:
              * editing/execCommand/insertHorizontalRule-expected.png:
              * editing/execCommand/insertHorizontalRule-expected.txt:
              * editing/inserting/insert-3786362-fix-expected.checksum:
              * editing/inserting/insert-3786362-fix-expected.png:
              * editing/inserting/insert-3786362-fix-expected.txt:
              * editing/inserting/insert-3786362-fix.html:
              * editing/inserting/insert-3907422-fix-expected.txt:
              * editing/pasteboard/3976872-expected.checksum:
              * editing/pasteboard/3976872-expected.png:
              * editing/pasteboard/3976872-expected.txt:
              * editing/pasteboard/4076267-3-expected.checksum:
              * editing/pasteboard/4076267-3-expected.png:
              * editing/pasteboard/4076267-3-expected.txt:
              * editing/pasteboard/4076267-3.html:
              * editing/pasteboard/4076267-expected.checksum:
              * editing/pasteboard/4076267-expected.png:
              * editing/pasteboard/4076267-expected.txt:
              * editing/pasteboard/4076267.html:
              * editing/pasteboard/4242293-1-expected.txt:
              * editing/pasteboard/4242293-expected.checksum:
              * editing/pasteboard/4242293-expected.png:
              * editing/pasteboard/4242293-expected.txt:
              * editing/pasteboard/4631972-expected.txt:
              * editing/pasteboard/8145-1-expected.txt:
              * editing/pasteboard/8145-3-expected.txt:
              * editing/pasteboard/block-wrappers-necessary-expected.txt:
              * editing/pasteboard/copy-paste-bidi-expected.txt:
              * editing/pasteboard/display-block-on-spans-expected.checksum:
              * editing/pasteboard/display-block-on-spans-expected.png:
              * editing/pasteboard/display-block-on-spans-expected.txt:
              * editing/pasteboard/interchange-newline-1-expected.txt:
              * editing/pasteboard/merge-end-1-expected.checksum:
              * editing/pasteboard/merge-end-1-expected.png:
              * editing/pasteboard/merge-end-1-expected.txt:
              * editing/pasteboard/merge-end-1.html:
              * editing/pasteboard/merge-end-2-expected.checksum:
              * editing/pasteboard/merge-end-2-expected.png:
              * editing/pasteboard/merge-end-2-expected.txt:
              * editing/pasteboard/merge-end-2.html:
              * editing/pasteboard/merge-end-4-expected.txt:
              * editing/pasteboard/merge-end-list-expected.txt:
              * editing/pasteboard/merge-end-table-expected.checksum:
              * editing/pasteboard/merge-end-table-expected.png:
              * editing/pasteboard/merge-end-table-expected.txt:
              * editing/pasteboard/nested-blocks-with-text-area-expected.txt:
              * editing/pasteboard/nested-blocks-with-text-field-expected.txt:
              * editing/pasteboard/paste-4039777-fix-expected.checksum:
              * editing/pasteboard/paste-4039777-fix-expected.png:
              * editing/pasteboard/paste-4039777-fix-expected.txt:
              * editing/pasteboard/paste-line-endings-002-expected.txt:
              * editing/pasteboard/paste-line-endings-004-expected.txt:
              * editing/pasteboard/paste-line-endings-007-expected.txt:
              * editing/pasteboard/paste-line-endings-008-expected.txt:
              * editing/pasteboard/paste-line-endings-009-expected.txt:
              * editing/pasteboard/paste-match-style-002-expected.txt:
              * editing/pasteboard/paste-pre-001-expected.txt:
              * editing/pasteboard/paste-pre-002-expected.txt:
              * editing/pasteboard/paste-table-001-expected.checksum:
              * editing/pasteboard/paste-table-001-expected.png:
              * editing/pasteboard/paste-table-001-expected.txt:
              * editing/pasteboard/paste-table-003-expected.txt:
              * editing/pasteboard/paste-text-001-expected.txt:
              * editing/pasteboard/paste-text-003-expected.txt:
              * editing/pasteboard/paste-text-007-expected.checksum:
              * editing/pasteboard/paste-text-007-expected.png:
              * editing/pasteboard/paste-text-007-expected.txt:
              * editing/pasteboard/paste-text-008-expected.txt:
              * editing/pasteboard/paste-text-009-expected.txt:
              * editing/pasteboard/paste-text-010-expected.txt:
              * editing/pasteboard/paste-text-011-expected.txt:
              * editing/pasteboard/paste-text-012-expected.checksum:
              * editing/pasteboard/paste-text-012-expected.png:
              * editing/pasteboard/paste-text-012-expected.txt:
              * editing/pasteboard/paste-text-012.html:
              * editing/pasteboard/paste-text-013-expected.checksum:
              * editing/pasteboard/paste-text-013-expected.png:
              * editing/pasteboard/paste-text-013-expected.txt:
              * editing/pasteboard/paste-text-015-expected.txt:
              * editing/pasteboard/paste-text-017-expected.txt:
              * editing/pasteboard/paste-text-019-expected.checksum:
              * editing/pasteboard/paste-text-019-expected.png:
              * editing/pasteboard/paste-text-019-expected.txt:
              * editing/pasteboard/paste-text-019.html:
              * editing/pasteboard/paste-text-at-tabspan-001-expected.txt:
              * editing/pasteboard/paste-text-at-tabspan-002-expected.txt:
              * editing/pasteboard/paste-text-at-tabspan-003-expected.txt:
              * editing/pasteboard/pasting-object-expected.txt:
              * editing/pasteboard/prevent-block-nesting-01-expected.txt:
              * editing/pasteboard/quirks-mode-br-1-expected.txt:
              * editing/pasteboard/smart-paste-001-expected.txt:
              * editing/pasteboard/smart-paste-002-expected.txt:
              * editing/pasteboard/smart-paste-003-expected.txt:
              * editing/pasteboard/smart-paste-004-expected.txt:
              * editing/pasteboard/smart-paste-005-expected.txt:
              * editing/pasteboard/smart-paste-006-expected.txt:
              * editing/pasteboard/smart-paste-007-expected.txt:
              * editing/pasteboard/smart-paste-008-expected.txt:
              * editing/pasteboard/undoable-fragment-removes-expected.checksum:
              * editing/pasteboard/undoable-fragment-removes-expected.png:
              * editing/pasteboard/undoable-fragment-removes-expected.txt:
              * editing/pasteboard/undoable-fragment-removes.html:
              * editing/style/smoosh-styles-001-expected.txt:
              * editing/style/smoosh-styles-002-expected.txt:
      
      WebCore:
      
              Reviewed by thatcher
              
              First part of fix for:
              <rdar://problem/4384589>
              Mail hung on paste text
              
              Fixes:
              <http://bugzilla.opendarwin.org/show_bug.cgi?id=8592>
              Extra line left after deleting whitespace:pre text
              <rdar://problem/4128080> Paste as HTML does not yield equivalent style
              <rdar://problem/4046469> Box styles on first element aren't copied/pasted
              Copy/paste of arstechnica.com
              
              Here's how we avoid adding redundant style information on paste: insert 
              the fragment and do a test rendering, save away style information for 
              every node in the fragment, remove all style information from the fragment, 
              remove the fragment, insert it into the appropriate place in the document, 
              then restore only those styles gathered during the test insertion that aren't
              redundant.  Restoring the styles in this way results in an ApplyStyleCommand 
              and a layout for nearly every inserted node.  
              Instead we want to insert the fragment into the document without removing the 
              style information, then mark style nodes and inline style declarations for 
              removal if they are redundant, and sweep to remove them.  This means that we 
              can't rely on ReplacementFragment::wasBlock anymore, because blocks will now 
              have style spans around them.  This patch removes the use of wasBlock in 
              ReplaceSelectionCommand.
              
              * editing/CompositeEditCommand.cpp:
              (WebCore::CompositeEditCommand::moveParagraphs): Added code
              to remove the line placeholder left after a move from preserveNewline text.
              * editing/DeleteSelectionCommand.cpp:
              (WebCore::DeleteSelectionCommand::doApply): Don't add a placeholder if 
              we're deleting a paragraph in preserveNewline text.
              * editing/JSEditor.cpp: Pass true to prevent nesting.
              * editing/ReplaceSelectionCommand.cpp: Removed wasBlock and friends.
              (WebCore::ReplacementFragment::ReplacementFragment): Ditto.
              (WebCore::ReplacementFragment::saveRenderingInfo): Ditto.
              (WebCore::RenderingInfo::RenderingInfo): Ditto.
              (WebCore::ReplaceSelectionCommand::ReplaceSelectionCommand):
              (WebCore::ReplaceSelectionCommand::shouldMergeStart): Combined the to/from
              merging rules into one method.
              (WebCore::ReplaceSelectionCommand::shouldMergeEnd):
              (WebCore::ReplaceSelectionCommand::shouldMerge):
              (WebCore::ReplaceSelectionCommand::doApply): 
              Don't do nesting prevention when pasting into an empty paragraph, this
              fixes 4046469, the common cause of paste fidelity bugs, but needs
              to be tweaked a little because this can lead to margin/border build-up
              on repeated copy/pastes.
              Don't track startPos in addition to insertionPos.  It was never used.
              Fixed a bug where a fragment starting with an interchange newline would
              cause content to be put outside of an editable region when pasting at the 
              very end of it.
              Adjust insertionPos before insertion (not during) and do not consult wasBlock
              to decide whether or not to do so.
              Changed the way we do the start merge: insert the fragment, then stich 
              paragraphs together, in the same way that we do the end merge.  This 
              doesn't require wasBlock and fixes bugs.
              Replaced some uses of insertionPos with endOfInsertedContent.
              Fixed a bug in the expansion of the last incoming br (a "collapsed" br
              is one where !isStartOfParagraph([br,0])).
              Removed the special case code that did the end merge for the preserveNewline 
              case, since this patch fixes the moveParagraph bug in the preserveNewline case.
              Removed some unused variables.
              (WebCore::ReplaceSelectionCommand::shouldRemoveEndBR): An endBR that was 
              holding a line open should always be displaced by inserted content, unless 
              the inserted content ends with a br.
              (WebCore::ReplaceSelectionCommand::updateNodesInserted):
              * editing/ReplaceSelectionCommand.h:
              (WebCore::RenderingInfo::style):
              * editing/markup.cpp:
              (WebCore::createMarkup): Only add mail blockquotes and list/table/pre when
              annotate is true (when we're creating markup for the pasteboard).
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15918 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      84273708
  9. 02 Jun, 2006 1 commit
    • ddkilzer's avatar
      LayoutTests: · 249f410d
      ddkilzer authored
              Reviewed by mjs.
      
              http://bugzilla.opendarwin.org/show_bug.cgi?id=9183
              Finish renaming of RenderCanvas to RenderView
      
              * editing/selection/7152-1-expected.checksum: Layout changed due to text change in HTML file.
              * editing/selection/7152-1-expected.png: Ditto.
              * editing/selection/7152-1-expected.txt: Ditto.
              * editing/selection/7152-1.html: Changed text in HTML content.
              * editing/selection/7152-2-expected.checksum: Layout changed due to text change in HTML file.
              * editing/selection/7152-2-expected.png: Ditto.
              * editing/selection/7152-2-expected.txt: Ditto.
              * editing/selection/7152-2.html: Changed text in HTML content.
              * *-expected.txt: Replaced "RenderCanvas" with "RenderView" in 3023 more files.
      
      WebCore:
      
              Reviewed by mjs.
      
              http://bugzilla.opendarwin.org/show_bug.cgi?id=9183
              Finish renaming of RenderCanvas to RenderView
      
              * rendering/RenderView.h: Changed renderName from "RenderCanvas" to "RenderView".
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14684 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      249f410d
  10. 11 May, 2006 1 commit
    • justing's avatar
      LayoutTests: · 4a5959b4
      justing authored
              Reviewed by thatcher, levi
              
              Inserting an <hr> into <div>foo^bar</div> now produces 
              <div>foo</div><hr><div>bar</div>, instead of <div>foo<hr>bar</div>, 
              which means that removing an inserted <hr> programmatically from 
              javascript produces a different visual result than before (the 
              new result is arguably more correct):
              * editing/execCommand/insertHorizontalRule.html:
              * editing/execCommand/insertHorizontalRule-expected.checksum:
              * editing/execCommand/insertHorizontalRule-expected.png:
              * editing/execCommand/insertHorizontalRule-expected.txt:
              
              Equivalent render trees or changes in the editing delegate
              notifications that reflect the fact that we are doing an end
              merge more often:
              * editing/pasteboard/paste-text-001-expected.txt:
              * editing/pasteboard/paste-text-at-tabspan-001-expected.txt:
              * editing/pasteboard/paste-text-at-tabspan-002-expected.txt:
              * editing/pasteboard/paste-text-at-tabspan-003-expected.txt:
              * editing/pasteboard/smart-paste-003-expected.txt:
              * editing/pasteboard/smart-paste-004-expected.txt:
              * editing/pasteboard/smart-paste-005-expected.txt:
              * editing/pasteboard/smart-paste-006-expected.txt:
              * editing/pasteboard/smart-paste-007-expected.txt:
              * editing/style/smoosh-styles-001-expected.txt:
              * editing/style/smoosh-styles-002-expected.txt:
      
      WebCore:
      
              Reviewed by thatcher, levi
      
              * editing/ReplaceSelectionCommand.cpp:
              (WebCore::ReplaceSelectionCommand::doApply):
              Removed a use fragment.hasMoreThanOneBlock to decide if the paragraph containing the
              position pasted into must be split to avoid block nesting.  We now split unnecessarily
              some times, but the end merge cleans up for us.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14310 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4a5959b4
  11. 14 Apr, 2006 1 commit
  12. 09 Feb, 2006 1 commit
  13. 16 Nov, 2005 1 commit
  14. 09 Nov, 2005 1 commit
    • harrison's avatar
      Layout tests for <rdar://problem/4313925> · 90eb479a
      harrison authored
              Denver Regression: Mail: "TAB+paste+insert before" actually inserts after the pasted text
      
              * editing/inserting/insert-br-at-tabspan-001-expected.checksum: Added.
              * editing/inserting/insert-br-at-tabspan-001-expected.png: Added.
              * editing/inserting/insert-br-at-tabspan-001-expected.txt: Added.
              * editing/inserting/insert-br-at-tabspan-001.html: Added.
              * editing/inserting/insert-br-at-tabspan-002-expected.checksum: Added.
              * editing/inserting/insert-br-at-tabspan-002-expected.png: Added.
              * editing/inserting/insert-br-at-tabspan-002-expected.txt: Added.
              * editing/inserting/insert-br-at-tabspan-002.html: Added.
              * editing/inserting/insert-br-at-tabspan-003-expected.checksum: Added.
              * editing/inserting/insert-br-at-tabspan-003-expected.png: Added.
              * editing/inserting/insert-br-at-tabspan-003-expected.txt: Added.
              * editing/inserting/insert-br-at-tabspan-003.html: Added.
              * editing/inserting/insert-text-at-tabspan-001-expected.checksum: Added.
              * editing/inserting/insert-text-at-tabspan-001-expected.png: Added.
              * editing/inserting/insert-text-at-tabspan-001-expected.txt: Added.
              * editing/inserting/insert-text-at-tabspan-001.html: Added.
              * editing/inserting/insert-text-at-tabspan-002-expected.checksum: Added.
              * editing/inserting/insert-text-at-tabspan-002-expected.png: Added.
              * editing/inserting/insert-text-at-tabspan-002-expected.txt: Added.
              * editing/inserting/insert-text-at-tabspan-002.html: Added.
              * editing/inserting/insert-text-at-tabspan-003-expected.checksum: Added.
              * editing/inserting/insert-text-at-tabspan-003-expected.png: Added.
              * editing/inserting/insert-text-at-tabspan-003-expected.txt: Added.
              * editing/inserting/insert-text-at-tabspan-003.html: Added.
              * editing/pasteboard/paste-text-at-tabspan-001-expected.checksum: Added.
              * editing/pasteboard/paste-text-at-tabspan-001-expected.png: Added.
              * editing/pasteboard/paste-text-at-tabspan-001-expected.txt: Added.
              * editing/pasteboard/paste-text-at-tabspan-001.html: Added.
              * editing/pasteboard/paste-text-at-tabspan-002-expected.checksum: Added.
              * editing/pasteboard/paste-text-at-tabspan-002-expected.png: Added.
              * editing/pasteboard/paste-text-at-tabspan-002-expected.txt: Added.
              * editing/pasteboard/paste-text-at-tabspan-002.html: Added.
              * editing/pasteboard/paste-text-at-tabspan-003-expected.checksum: Added.
              * editing/pasteboard/paste-text-at-tabspan-003-expected.png: Added.
              * editing/pasteboard/paste-text-at-tabspan-003-expected.txt: Added.
              * editing/pasteboard/paste-text-at-tabspan-003.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@11101 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      90eb479a
  15. 14 Aug, 2005 1 commit
    • mjs's avatar
      - updated test cases for new editing delegate output · 56392556
      mjs authored
              * layout-tests/editing/deleting/collapse-whitespace-3587601-fix-expected.txt:
              * layout-tests/editing/deleting/delete-3608430-fix-expected.txt:
              * layout-tests/editing/deleting/delete-3608445-fix-expected.txt:
              * layout-tests/editing/deleting/delete-3608462-fix-expected.txt:
              * layout-tests/editing/deleting/delete-3775172-fix-expected.txt:
              * layout-tests/editing/deleting/delete-3800834-fix-expected.txt:
              * layout-tests/editing/deleting/delete-3857753-fix-expected.txt:
              * layout-tests/editing/deleting/delete-3865854-fix-expected.txt:
              * layout-tests/editing/deleting/delete-3928305-fix-expected.txt:
              * layout-tests/editing/deleting/delete-3959464-fix-expected.txt:
              * layout-tests/editing/deleting/delete-4038408-fix-expected.txt:
              * layout-tests/editing/deleting/delete-4083333-fix-expected.txt:
              * layout-tests/editing/deleting/delete-after-span-ws-001-expected.txt:
              * layout-tests/editing/deleting/delete-after-span-ws-002-expected.txt:
              * layout-tests/editing/deleting/delete-after-span-ws-003-expected.txt:
              * layout-tests/editing/deleting/delete-and-undo-expected.txt:
              * layout-tests/editing/deleting/delete-at-paragraph-boundaries-001-expected.txt:
              * layout-tests/editing/deleting/delete-at-paragraph-boundaries-002-expected.txt:
              * layout-tests/editing/deleting/delete-at-paragraph-boundaries-003-expected.txt:
              * layout-tests/editing/deleting/delete-at-paragraph-boundaries-004-expected.txt:
              * layout-tests/editing/deleting/delete-at-paragraph-boundaries-005-expected.txt:
              * layout-tests/editing/deleting/delete-at-paragraph-boundaries-006-expected.txt:
              * layout-tests/editing/deleting/delete-at-paragraph-boundaries-007-expected.txt:
              * layout-tests/editing/deleting/delete-at-paragraph-boundaries-008-expected.txt:
              * layout-tests/editing/deleting/delete-at-paragraph-boundaries-009-expected.txt:
              * layout-tests/editing/deleting/delete-at-paragraph-boundaries-010-expected.txt:
              * layout-tests/editing/deleting/delete-at-paragraph-boundaries-011-expected.txt:
              * layout-tests/editing/deleting/delete-block-contents-001-expected.txt:
              * layout-tests/editing/deleting/delete-block-contents-002-expected.txt:
              * layout-tests/editing/deleting/delete-block-contents-003-expected.txt:
              * layout-tests/editing/deleting/delete-block-merge-contents-001-expected.txt:
              * layout-tests/editing/deleting/delete-block-merge-contents-002-expected.txt:
              * layout-tests/editing/deleting/delete-block-merge-contents-003-expected.txt:
              * layout-tests/editing/deleting/delete-block-merge-contents-004-expected.txt:
              * layout-tests/editing/deleting/delete-block-merge-contents-005-expected.txt:
              * layout-tests/editing/deleting/delete-block-merge-contents-006-expected.txt:
              * layout-tests/editing/deleting/delete-block-merge-contents-007-expected.txt:
              * layout-tests/editing/deleting/delete-block-merge-contents-008-expected.txt:
              * layout-tests/editing/deleting/delete-block-merge-contents-009-expected.txt:
              * layout-tests/editing/deleting/delete-block-merge-contents-010-expected.txt:
              * layout-tests/editing/deleting/delete-block-merge-contents-012-expected.txt:
              * layout-tests/editing/deleting/delete-block-merge-contents-013-expected.txt:
              * layout-tests/editing/deleting/delete-block-merge-contents-014-expected.txt:
              * layout-tests/editing/deleting/delete-block-merge-contents-015-expected.txt:
              * layout-tests/editing/deleting/delete-block-merge-contents-016-expected.txt:
              * layout-tests/editing/deleting/delete-block-merge-contents-017-expected.txt:
              * layout-tests/editing/deleting/delete-block-merge-contents-018-expected.txt:
              * layout-tests/editing/deleting/delete-block-merge-contents-019-expected.txt:
              * layout-tests/editing/deleting/delete-block-merge-contents-020-expected.txt:
              * layout-tests/editing/deleting/delete-block-merge-contents-021-expected.txt:
              * layout-tests/editing/deleting/delete-br-001-expected.txt:
              * layout-tests/editing/deleting/delete-br-002-expected.txt:
              * layout-tests/editing/deleting/delete-br-003-expected.txt:
              * layout-tests/editing/deleting/delete-br-004-expected.txt:
              * layout-tests/editing/deleting/delete-br-005-expected.txt:
              * layout-tests/editing/deleting/delete-br-006-expected.txt:
              * layout-tests/editing/deleting/delete-br-007-expected.txt:
              * layout-tests/editing/deleting/delete-br-008-expected.txt:
              * layout-tests/editing/deleting/delete-br-009-expected.txt:
              * layout-tests/editing/deleting/delete-br-010-expected.txt:
              * layout-tests/editing/deleting/delete-br-011-expected.txt:
              * layout-tests/editing/deleting/delete-character-001-expected.txt:
              * layout-tests/editing/deleting/delete-contiguous-ws-001-expected.txt:
              * layout-tests/editing/deleting/delete-image-001-expected.txt:
              * layout-tests/editing/deleting/delete-image-002-expected.txt:
              * layout-tests/editing/deleting/delete-image-003-expected.txt:
              * layout-tests/editing/deleting/delete-image-004-expected.txt:
              * layout-tests/editing/deleting/delete-leading-ws-001-expected.txt:
              * layout-tests/editing/deleting/delete-line-001-expected.txt:
              * layout-tests/editing/deleting/delete-line-002-expected.txt:
              * layout-tests/editing/deleting/delete-line-003-expected.txt:
              * layout-tests/editing/deleting/delete-line-004-expected.txt:
              * layout-tests/editing/deleting/delete-line-005-expected.txt:
              * layout-tests/editing/deleting/delete-line-006-expected.txt:
              * layout-tests/editing/deleting/delete-line-007-expected.txt:
              * layout-tests/editing/deleting/delete-line-008-expected.txt:
              * layout-tests/editing/deleting/delete-line-009-expected.txt:
              * layout-tests/editing/deleting/delete-line-010-expected.txt:
              * layout-tests/editing/deleting/delete-line-011-expected.txt:
              * layout-tests/editing/deleting/delete-line-012-expected.txt:
              * layout-tests/editing/deleting/delete-line-013-expected.txt:
              * layout-tests/editing/deleting/delete-line-014-expected.txt:
              * layout-tests/editing/deleting/delete-line-015-expected.txt:
              * layout-tests/editing/deleting/delete-line-016-expected.txt:
              * layout-tests/editing/deleting/delete-line-017-expected.txt:
              * layout-tests/editing/deleting/delete-line-end-ws-001-expected.txt:
              * layout-tests/editing/deleting/delete-line-end-ws-002-expected.txt:
              * layout-tests/editing/deleting/delete-select-all-001-expected.txt:
              * layout-tests/editing/deleting/delete-select-all-002-expected.txt:
              * layout-tests/editing/deleting/delete-select-all-003-expected.txt:
              * layout-tests/editing/deleting/delete-selection-001-expected.txt:
              * layout-tests/editing/deleting/delete-tab-001-expected.txt:
              * layout-tests/editing/deleting/delete-tab-002-expected.txt:
              * layout-tests/editing/deleting/delete-tab-003-expected.txt:
              * layout-tests/editing/deleting/delete-tab-004-expected.txt:
              * layout-tests/editing/deleting/delete-trailing-ws-001-expected.txt:
              * layout-tests/editing/deleting/delete-trailing-ws-002-expected.txt:
              * layout-tests/editing/deleting/delete-ws-fixup-001-expected.txt:
              * layout-tests/editing/deleting/delete-ws-fixup-002-expected.txt:
              * layout-tests/editing/deleting/delete-ws-fixup-003-expected.txt:
              * layout-tests/editing/deleting/delete-ws-fixup-004-expected.txt:
              * layout-tests/editing/deleting/forward-delete-expected.txt:
              * layout-tests/editing/deleting/smart-delete-001-expected.txt:
              * layout-tests/editing/deleting/smart-delete-002-expected.txt:
              * layout-tests/editing/execCommand/boldSelection-expected.txt:
              * layout-tests/editing/execCommand/italicizeByCharacter-expected.txt:
              * layout-tests/editing/execCommand/modifyForeColorByCharacter-expected.txt:
              * layout-tests/editing/execCommand/selectAll-expected.txt:
              * layout-tests/editing/inserting/insert-3654864-fix-expected.txt:
              * layout-tests/editing/inserting/insert-3659587-fix-expected.txt:
              * layout-tests/editing/inserting/insert-3775316-fix-expected.txt:
              * layout-tests/editing/inserting/insert-3778059-fix-expected.txt:
              * layout-tests/editing/inserting/insert-3786362-fix-expected.txt:
              * layout-tests/editing/inserting/insert-3800346-fix-expected.txt:
              * layout-tests/editing/inserting/insert-3851164-fix-expected.txt:
              * layout-tests/editing/inserting/insert-3907422-fix-expected.txt:
              * layout-tests/editing/inserting/insert-after-delete-001-expected.txt:
              * layout-tests/editing/inserting/insert-br-001-expected.txt:
              * layout-tests/editing/inserting/insert-br-002-expected.txt:
              * layout-tests/editing/inserting/insert-br-003-expected.txt:
              * layout-tests/editing/inserting/insert-br-004-expected.txt:
              * layout-tests/editing/inserting/insert-br-005-expected.txt:
              * layout-tests/editing/inserting/insert-br-006-expected.txt:
              * layout-tests/editing/inserting/insert-br-007-expected.txt:
              * layout-tests/editing/inserting/insert-br-008-expected.txt:
              * layout-tests/editing/inserting/insert-div-001-expected.txt:
              * layout-tests/editing/inserting/insert-div-002-expected.txt:
              * layout-tests/editing/inserting/insert-div-003-expected.txt:
              * layout-tests/editing/inserting/insert-div-004-expected.txt:
              * layout-tests/editing/inserting/insert-div-005-expected.txt:
              * layout-tests/editing/inserting/insert-div-006-expected.txt:
              * layout-tests/editing/inserting/insert-div-007-expected.txt:
              * layout-tests/editing/inserting/insert-div-008-expected.txt:
              * layout-tests/editing/inserting/insert-div-009-expected.txt:
              * layout-tests/editing/inserting/insert-div-010-expected.txt:
              * layout-tests/editing/inserting/insert-div-011-expected.txt:
              * layout-tests/editing/inserting/insert-div-012-expected.txt:
              * layout-tests/editing/inserting/insert-div-013-expected.txt:
              * layout-tests/editing/inserting/insert-div-014-expected.txt:
              * layout-tests/editing/inserting/insert-div-015-expected.txt:
              * layout-tests/editing/inserting/insert-div-016-expected.txt:
              * layout-tests/editing/inserting/insert-div-017-expected.txt:
              * layout-tests/editing/inserting/insert-div-018-expected.txt:
              * layout-tests/editing/inserting/insert-div-019-expected.txt:
              * layout-tests/editing/inserting/insert-div-020-expected.txt:
              * layout-tests/editing/inserting/insert-div-021-expected.txt:
              * layout-tests/editing/inserting/insert-div-022-expected.txt:
              * layout-tests/editing/inserting/insert-div-023-expected.txt:
              * layout-tests/editing/inserting/insert-div-024-expected.txt:
              * layout-tests/editing/inserting/insert-div-025-expected.txt:
              * layout-tests/editing/inserting/insert-div-026-expected.txt:
              * layout-tests/editing/inserting/insert-div-027-expected.txt:
              * layout-tests/editing/inserting/insert-space-in-empty-doc-expected.txt:
              * layout-tests/editing/inserting/insert-tab-001-expected.txt:
              * layout-tests/editing/inserting/insert-tab-002-expected.txt:
              * layout-tests/editing/inserting/insert-tab-003-expected.txt:
              * layout-tests/editing/inserting/insert-tab-004-expected.txt:
              * layout-tests/editing/inserting/insert-text-with-newlines-expected.txt:
              * layout-tests/editing/inserting/return-key-with-selection-001-expected.txt:
              * layout-tests/editing/inserting/return-key-with-selection-002-expected.txt:
              * layout-tests/editing/inserting/return-key-with-selection-003-expected.txt:
              * layout-tests/editing/inserting/typing-001-expected.txt:
              * layout-tests/editing/inserting/typing-002-expected.txt:
              * layout-tests/editing/inserting/typing-003-expected.txt:
              * layout-tests/editing/inserting/typing-around-br-001-expected.txt:
              * layout-tests/editing/inserting/typing-around-image-001-expected.txt:
              * layout-tests/editing/pasteboard/cut-text-001-expected.txt:
              * layout-tests/editing/pasteboard/paste-4035648-fix-expected.txt:
              * layout-tests/editing/pasteboard/paste-4038267-fix-expected.txt:
              * layout-tests/editing/pasteboard/paste-line-endings-001-expected.txt:
              * layout-tests/editing/pasteboard/paste-line-endings-002-expected.txt:
              * layout-tests/editing/pasteboard/paste-line-endings-003-expected.txt:
              * layout-tests/editing/pasteboard/paste-line-endings-004-expected.txt:
              * layout-tests/editing/pasteboard/paste-line-endings-005-expected.txt:
              * layout-tests/editing/pasteboard/paste-line-endings-006-expected.txt:
              * layout-tests/editing/pasteboard/paste-line-endings-007-expected.txt:
              * layout-tests/editing/pasteboard/paste-line-endings-008-expected.txt:
              * layout-tests/editing/pasteboard/paste-line-endings-009-expected.txt:
              * layout-tests/editing/pasteboard/paste-line-endings-010-expected.txt:
              * layout-tests/editing/pasteboard/paste-match-style-001-expected.txt:
              * layout-tests/editing/pasteboard/paste-match-style-002-expected.txt:
              * layout-tests/editing/pasteboard/paste-pre-001-expected.txt:
              * layout-tests/editing/pasteboard/paste-text-001-expected.txt:
              * layout-tests/editing/pasteboard/paste-text-002-expected.txt:
              * layout-tests/editing/pasteboard/paste-text-003-expected.txt:
              * layout-tests/editing/pasteboard/paste-text-004-expected.txt:
              * layout-tests/editing/pasteboard/paste-text-005-expected.txt:
              * layout-tests/editing/pasteboard/paste-text-006-expected.txt:
              * layout-tests/editing/pasteboard/paste-text-007-expected.txt:
              * layout-tests/editing/pasteboard/paste-text-008-expected.txt:
              * layout-tests/editing/pasteboard/paste-text-009-expected.txt:
              * layout-tests/editing/pasteboard/paste-text-010-expected.txt:
              * layout-tests/editing/pasteboard/paste-text-011-expected.txt:
              * layout-tests/editing/pasteboard/paste-text-012-expected.txt:
              * layout-tests/editing/pasteboard/paste-text-013-expected.txt:
              * layout-tests/editing/pasteboard/paste-text-014-expected.txt:
              * layout-tests/editing/pasteboard/paste-text-015-expected.txt:
              * layout-tests/editing/pasteboard/paste-text-016-expected.txt:
              * layout-tests/editing/pasteboard/paste-text-017-expected.txt:
              * layout-tests/editing/pasteboard/paste-text-018-expected.txt:
              * layout-tests/editing/pasteboard/smart-paste-001-expected.txt:
              * layout-tests/editing/pasteboard/smart-paste-002-expected.txt:
              * layout-tests/editing/pasteboard/smart-paste-003-expected.txt:
              * layout-tests/editing/pasteboard/smart-paste-004-expected.txt:
              * layout-tests/editing/pasteboard/smart-paste-005-expected.txt:
              * layout-tests/editing/pasteboard/smart-paste-006-expected.txt:
              * layout-tests/editing/pasteboard/smart-paste-007-expected.txt:
              * layout-tests/editing/selection/move-between-blocks-no-001-expected.txt:
              * layout-tests/editing/selection/select-all-001-expected.txt:
              * layout-tests/editing/selection/select-all-002-expected.txt:
              * layout-tests/editing/selection/select-all-003-expected.txt:
              * layout-tests/editing/selection/select-all-004-expected.txt:
              * layout-tests/editing/style/block-style-001-expected.txt:
              * layout-tests/editing/style/block-style-002-expected.txt:
              * layout-tests/editing/style/block-style-003-expected.txt:
              * layout-tests/editing/style/block-style-004-expected.txt:
              * layout-tests/editing/style/block-style-005-expected.txt:
              * layout-tests/editing/style/block-style-006-expected.txt:
              * layout-tests/editing/style/block-styles-007-expected.txt:
              * layout-tests/editing/style/create-block-for-style-001-expected.txt:
              * layout-tests/editing/style/create-block-for-style-002-expected.txt:
              * layout-tests/editing/style/create-block-for-style-003-expected.txt:
              * layout-tests/editing/style/create-block-for-style-004-expected.txt:
              * layout-tests/editing/style/create-block-for-style-005-expected.txt:
              * layout-tests/editing/style/create-block-for-style-006-expected.txt:
              * layout-tests/editing/style/create-block-for-style-007-expected.txt:
              * layout-tests/editing/style/create-block-for-style-008-expected.txt:
              * layout-tests/editing/style/create-block-for-style-009-expected.txt:
              * layout-tests/editing/style/create-block-for-style-010-expected.txt:
              * layout-tests/editing/style/create-block-for-style-011-expected.txt:
              * layout-tests/editing/style/create-block-for-style-012-expected.txt:
              * layout-tests/editing/style/create-block-for-style-013-expected.txt:
              * layout-tests/editing/style/relative-font-size-change-001-expected.txt:
              * layout-tests/editing/style/relative-font-size-change-002-expected.txt:
              * layout-tests/editing/style/relative-font-size-change-003-expected.txt:
              * layout-tests/editing/style/relative-font-size-change-004-expected.txt:
              * layout-tests/editing/style/remove-underline-across-paragraph-expected.txt:
              * layout-tests/editing/style/remove-underline-across-paragraph-in-bold-expected.txt:
              * layout-tests/editing/style/remove-underline-after-paragraph-expected.txt:
              * layout-tests/editing/style/remove-underline-after-paragraph-in-bold-expected.txt:
              * layout-tests/editing/style/remove-underline-expected.txt:
              * layout-tests/editing/style/remove-underline-from-stylesheet-expected.txt:
              * layout-tests/editing/style/remove-underline-in-bold-expected.txt:
              * layout-tests/editing/style/smoosh-styles-001-expected.txt:
              * layout-tests/editing/style/smoosh-styles-002-expected.txt:
              * layout-tests/editing/style/smoosh-styles-003-expected.txt:
              * layout-tests/editing/style/style-3681552-fix-001-expected.txt:
              * layout-tests/editing/style/style-3681552-fix-002-expected.txt:
              * layout-tests/editing/style/style-3690704-fix-expected.txt:
              * layout-tests/editing/style/style-3998892-fix-expected.txt:
              * layout-tests/editing/style/style-boundary-001-expected.txt:
              * layout-tests/editing/style/style-boundary-002-expected.txt:
              * layout-tests/editing/style/style-boundary-003-expected.txt:
              * layout-tests/editing/style/style-boundary-004-expected.txt:
              * layout-tests/editing/style/typing-style-001-expected.txt:
              * layout-tests/editing/style/typing-style-002-expected.txt:
              * layout-tests/editing/style/typing-style-003-expected.txt:
              * layout-tests/editing/style/unbold-in-bold-expected.txt:
              * layout-tests/editing/style/underline-expected.txt:
              * layout-tests/editing/undo/redo-typing-001-expected.txt:
              * layout-tests/editing/undo/undo-typing-001-expected.txt:
              * layout-tests/editing/unsupported-content/list-delete-001-expected.txt:
              * layout-tests/editing/unsupported-content/list-delete-002-expected.txt:
              * layout-tests/editing/unsupported-content/list-delete-003-expected.txt:
              * layout-tests/editing/unsupported-content/list-type-after-expected.txt:
              * layout-tests/editing/unsupported-content/list-type-before-expected.txt:
              * layout-tests/editing/unsupported-content/table-delete-001-expected.txt:
              * layout-tests/editing/unsupported-content/table-delete-002-expected.txt:
              * layout-tests/editing/unsupported-content/table-delete-003-expected.txt:
              * layout-tests/editing/unsupported-content/table-type-after-expected.txt:
              * layout-tests/editing/unsupported-content/table-type-before-expected.txt:
              * layout-tests/fast/selectors/159-expected.txt:
              * layout-tests/fast/selectors/177a-expected.txt:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@10188 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      56392556
  16. 31 Jul, 2005 1 commit
  17. 29 Jul, 2005 1 commit
    • harrison's avatar
      Reviewed by Dave Hyatt (rendering) and Maciej (editing and performance improvements). · 208ea79f
      harrison authored
              Test cases added: Existing tab-related basic editing tests were updated.  More complex tests are coming soon.
      
              <rdar://problem/3792529> REGRESSION (Mail): Tabs do not work the way they did in Panther (especially useful in plain text mail)
      
              Basic strategy is to put tabs into spans with white-space:pre style, and
              render them with tabs stops every 8th space, where the space width and
              the left margin are those of the enclosing block.
      
              * khtml/editing/apply_style_command.cpp:
              (khtml::ApplyStyleCommand::removeCSSStyle):
              (khtml::ApplyStyleCommand::addInlineStyleIfNeeded):
              * khtml/editing/delete_selection_command.cpp:
              (khtml::DeleteSelectionCommand::saveTypingStyleState):
              * khtml/editing/edit_command.cpp:
              (khtml::EditCommand::styleAtPosition):
              * khtml/editing/html_interchange.h:
              * khtml/editing/htmlediting.cpp:
              (khtml::isSpecialElement):
              (khtml::isTabSpanNode):
              (khtml::isTabSpanTextNode):
              (khtml::positionBeforeTabSpan):
              (khtml::createTabSpanElement):
              * khtml/editing/htmlediting.h:
              * khtml/editing/insert_text_command.cpp:
              (khtml::InsertTextCommand::prepareForTextInsertion):
              (khtml::InsertTextCommand::input):
              (khtml::InsertTextCommand::insertTab):
              * khtml/editing/insert_text_command.h:
              * khtml/editing/markup.cpp:
              (khtml::createParagraphContentsFromString):
              (khtml::createFragmentFromText):
              * khtml/editing/replace_selection_command.cpp:
              (khtml::ReplacementFragment::removeStyleNodes):
              * khtml/html/htmltokenizer.cpp:
              (khtml::HTMLTokenizer::begin):
              (khtml::HTMLTokenizer::processListing):
              (khtml::HTMLTokenizer::parseSpecial):
              (khtml::HTMLTokenizer::parseText):
              (khtml::HTMLTokenizer::parseEntity):
              (khtml::HTMLTokenizer::parseTag):
              (khtml::HTMLTokenizer::addPending):
              (khtml::HTMLTokenizer::write):
              * khtml/html/htmltokenizer.h:
              (khtml::HTMLTokenizer::):
              * khtml/rendering/bidi.cpp:
              (khtml::addRun):
              (khtml::RenderBlock::tabWidth):
              (khtml::RenderBlock::computeHorizontalPositionsForLine):
              (khtml::RenderBlock::layoutInlineChildren):
              (khtml::RenderBlock::skipWhitespace):
              (khtml::RenderBlock::findNextLineBreak):
              (khtml::RenderBlock::checkLinesForTextOverflow):
              * khtml/rendering/break_lines.cpp:
              (khtml::isBreakable):
              * khtml/rendering/font.cpp:
              (Font::drawHighlightForText):
              (Font::drawText):
              (Font::floatWidth):
              (Font::floatCharacterWidths):
              (Font::checkSelectionPoint):
              (Font::width):
              * khtml/rendering/font.h:
              * khtml/rendering/render_block.cpp:
              (khtml:::RenderFlow):
              (khtml::RenderBlock::setStyle):
              (khtml::stripTrailingSpace):
              (khtml::RenderBlock::calcInlineMinMaxWidth):
              * khtml/rendering/render_block.h:
              * khtml/rendering/render_br.h:
              (khtml::RenderBR::width):
              * khtml/rendering/render_flexbox.cpp:
              (khtml::RenderFlexibleBox::layoutVerticalBox):
              * khtml/rendering/render_image.cpp:
              (RenderImage::setPixmap):
              (RenderImage::paint):
              * khtml/rendering/render_line.cpp:
              (khtml::EllipsisBox::paint):
              * khtml/rendering/render_line.h:
              (khtml::InlineBox::width):
              (khtml::InlineBox::xPos):
              (khtml::InlineBox::yPos):
              (khtml::InlineBox::height):
              (khtml::InlineBox::baseline):
              * khtml/rendering/render_list.cpp:
              (RenderListMarker::paint):
              (RenderListMarker::calcMinMaxWidth):
              * khtml/rendering/render_object.cpp:
              (RenderObject::tabWidth):
              (RenderObject::recalcMinMaxWidths):
              * khtml/rendering/render_object.h:
              * khtml/rendering/render_replaced.cpp:
              * khtml/rendering/render_text.cpp:
              (InlineTextBox::selectionRect):
              (InlineTextBox::paint):
              (InlineTextBox::paintSelection):
              (InlineTextBox::paintMarkedTextBackground):
              (InlineTextBox::textPos):
              (InlineTextBox::offsetForPosition):
              (InlineTextBox::positionForOffset):
              (RenderText::cacheWidths):
              (RenderText::widthFromCache):
              (RenderText::trimmedMinMaxWidth):
              (RenderText::calcMinMaxWidth):
              (RenderText::containsOnlyWhitespace):
              (RenderText::width):
              * khtml/rendering/render_text.h:
              * kwq/KWQFontMetrics.h:
              * kwq/KWQFontMetrics.mm:
              (QFontMetrics::width):
              (QFontMetrics::charWidth):
              (QFontMetrics::floatWidth):
              (QFontMetrics::floatCharacterWidths):
              (QFontMetrics::checkSelectionPoint):
              (QFontMetrics::boundingRect):
              (QFontMetrics::size):
              * kwq/KWQPainter.h:
              * kwq/KWQPainter.mm:
              (QPainter::drawRect):
              (QPainter::drawLine):
              (QPainter::drawText):
              (QPainter::drawHighlightForText):
              (_fillRectXX):
              (QPainter::fillRect):
              * kwq/WebCoreTextRenderer.h:
              * kwq/WebCoreTextRendererFactory.mm:
              (WebCoreInitializeEmptyTextStyle):
              * layout-tests/editing/deleting/delete-tab-001-expected.txt:
              * layout-tests/editing/deleting/delete-tab-001.html:
              * layout-tests/editing/deleting/delete-tab-002-expected.txt:
              * layout-tests/editing/deleting/delete-tab-002.html:
              * layout-tests/editing/deleting/delete-tab-003-expected.txt:
              * layout-tests/editing/deleting/delete-tab-003.html:
              * layout-tests/editing/deleting/delete-tab-004-expected.txt:
              * layout-tests/editing/deleting/delete-tab-004.html:
              * layout-tests/editing/inserting/insert-tab-001-expected.txt:
              * layout-tests/editing/inserting/insert-tab-002-expected.txt:
              * layout-tests/editing/inserting/insert-tab-003-expected.txt:
              * layout-tests/editing/inserting/insert-tab-004-expected.txt:
              * layout-tests/fast/js/string-replace-2-expected.txt:
              * layout-tests/fast/table/039-expected.txt:
              * layout-tests/fast/table/border-collapsing/004-expected.txt:
              * layout-tests/fast/tokenizer/script_extra_close-expected.txt:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9963 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      208ea79f
  18. 06 Jul, 2005 1 commit
    • ggaren's avatar
      Reviewed by adele. · 322abd0e
      ggaren authored
              Modified layout tests to match rollout of changes for <rdar://problem/3792529>
              REGRESSION (Mail): Tabs do not work the way they did in Panther
      
              Tests modified:
              * layout-tests/editing/deleting/delete-tab-001-expected.txt:
              * layout-tests/editing/deleting/delete-tab-002-expected.txt:
              * layout-tests/editing/deleting/delete-tab-003-expected.txt:
              * layout-tests/editing/deleting/delete-tab-004-expected.txt:
              * layout-tests/editing/inserting/insert-tab-001-expected.txt:
              * layout-tests/editing/inserting/insert-tab-002-expected.txt:
              * layout-tests/editing/inserting/insert-tab-003-expected.txt:
              * layout-tests/editing/inserting/insert-tab-004-expected.txt:
              * layout-tests/fast/dom/quadraticCurveTo-expected.txt:
              * layout-tests/fast/js/string-replace-2-expected.txt:
              * layout-tests/fast/table/039-expected.txt:
              * layout-tests/fast/table/border-collapsing/004-expected.txt:
              * layout-tests/fast/tokenizer/script_extra_close-expected.txt:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9603 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      322abd0e
  19. 05 Jul, 2005 2 commits
    • ggaren's avatar
      Rolled in patch by opendarwin.org@mitzpettel.com · ef026b22
      ggaren authored
              -fixes http://bugzilla.opendarwin.org/show_bug.cgi?id=3733
              Incorrect bidi layout of ETs, ANs, and ENs in some contexts
      
              Reviewed by hyatt.
      
              * khtml/rendering/bidi.cpp:
              (khtml::appendRun):
              (khtml::RenderBlock::bidiReorderLine):
              (khtml::RenderBlock::layoutInlineChildren):
      
              Modified test results to account for run splitting.
              This is a known bug that we need to fix separately:
              http://bugzilla.opendarwin.org/show_bug.cgi?id=3838
      
              * layout-tests/css1/basic/containment-expected.txt:
              * layout-tests/css1/box_properties/float_on_text_elements-expected.txt:
              * layout-tests/css1/font_properties/font-expected.txt:
              * layout-tests/css1/formatting_model/inline_elements-expected.txt:
              * layout-tests/css1/pseudo/anchor-expected.txt:
              * layout-tests/editing/deleting/delete-tab-001-expected.txt:
              * layout-tests/editing/deleting/delete-tab-002-expected.txt:
              * layout-tests/editing/deleting/delete-tab-003-expected.txt:
              * layout-tests/editing/deleting/delete-tab-004-expected.txt:
              * layout-tests/editing/inserting/insert-tab-001-expected.txt:
              * layout-tests/editing/inserting/insert-tab-002-expected.txt:
              * layout-tests/editing/inserting/insert-tab-003-expected.txt:
              * layout-tests/editing/inserting/insert-tab-004-expected.txt:
              * layout-tests/editing/style/relative-font-size-change-001-expected.txt:
              * layout-tests/editing/style/relative-font-size-change-004-expected.txt:
              * layout-tests/fast/block/basic/018-expected.txt:
              * layout-tests/fast/dom/quadraticCurveTo-expected.txt:
              * layout-tests/fast/invalid/nestedh3s-expected.txt:
              * layout-tests/fast/js/string-replace-2-expected.txt:
              * layout-tests/fast/lists/003-expected.txt:
              * layout-tests/fast/selectors/166-expected.txt:
              * layout-tests/fast/table/039-expected.txt:
              * layout-tests/fast/table/border-collapsing/004-expected.txt:
              * layout-tests/fast/text/basic/004-expected.txt:
              * layout-tests/fast/tokenizer/script_extra_close-expected.txt:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9596 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ef026b22
    • adele's avatar
      WebCore: · 945819d9
      adele authored
             Rolling out changes for <rdar://problem/3792529> REGRESSION (Mail): Tabs do not work the way they did in Panther (especially useful in plain text mail)
             since it caused a 2% performance regression.
      
              * khtml/editing/apply_style_command.cpp:
              (khtml::createStyleSpanElement):
              (khtml::ApplyStyleCommand::removeCSSStyle):
              (khtml::ApplyStyleCommand::addInlineStyleIfNeeded):
              * khtml/editing/delete_selection_command.cpp:
              (khtml::DeleteSelectionCommand::saveTypingStyleState):
              * khtml/editing/edit_command.cpp:
              (khtml::EditCommand::styleAtPosition):
              * khtml/editing/html_interchange.h:
              * khtml/editing/htmlediting.cpp:
              (khtml::isSpecialElement):
              * khtml/editing/htmlediting.h:
              * khtml/editing/insert_text_command.cpp:
              (khtml::InsertTextCommand::prepareForTextInsertion):
              (khtml::InsertTextCommand::input):
              * khtml/editing/insert_text_command.h:
              * khtml/editing/markup.cpp:
              (khtml::createFragmentFromText):
              * khtml/editing/replace_selection_command.cpp:
              (khtml::ReplacementFragment::removeStyleNodes):
              * khtml/html/htmltokenizer.cpp:
              (khtml::HTMLTokenizer::begin):
              (khtml::HTMLTokenizer::processListing):
              (khtml::HTMLTokenizer::parseEntity):
              (khtml::HTMLTokenizer::parseTag):
              (khtml::HTMLTokenizer::addPending):
              (khtml::HTMLTokenizer::write):
              * khtml/html/htmltokenizer.h:
              (khtml::HTMLTokenizer::):
              * khtml/rendering/bidi.cpp:
              (khtml::addRun):
              (khtml::RenderBlock::computeHorizontalPositionsForLine):
              (khtml::RenderBlock::skipWhitespace):
              (khtml::RenderBlock::findNextLineBreak):
              (khtml::RenderBlock::checkLinesForTextOverflow):
              * khtml/rendering/break_lines.cpp:
              (khtml::isBreakable):
              * khtml/rendering/font.cpp:
              (Font::drawHighlightForText):
              (Font::drawText):
              (Font::floatWidth):
              (Font::floatCharacterWidths):
              (Font::checkSelectionPoint):
              (Font::width):
              * khtml/rendering/font.h:
              * khtml/rendering/render_block.cpp:
              (khtml::stripTrailingSpace):
              (khtml::RenderBlock::calcInlineMinMaxWidth):
              * khtml/rendering/render_block.h:
              * khtml/rendering/render_br.h:
              (khtml::RenderBR::width):
              * khtml/rendering/render_flexbox.cpp:
              (khtml::RenderFlexibleBox::layoutVerticalBox):
              * khtml/rendering/render_image.cpp:
              (RenderImage::setPixmap):
              (RenderImage::paint):
              * khtml/rendering/render_line.cpp:
              (khtml::EllipsisBox::paint):
              * khtml/rendering/render_line.h:
              (khtml::InlineBox::width):
              (khtml::InlineBox::xPos):
              (khtml::InlineBox::yPos):
              (khtml::InlineBox::height):
              (khtml::InlineBox::baseline):
              * khtml/rendering/render_list.cpp:
              (RenderListMarker::paint):
              (RenderListMarker::calcMinMaxWidth):
              * khtml/rendering/render_object.cpp:
              (RenderObject::recalcMinMaxWidths):
              * khtml/rendering/render_object.h:
              * khtml/rendering/render_replaced.cpp:
              * khtml/rendering/render_text.cpp:
              (InlineTextBox::selectionRect):
              (InlineTextBox::paint):
              (InlineTextBox::paintSelection):
              (InlineTextBox::paintMarkedTextBackground):
              (InlineTextBox::offsetForPosition):
              (InlineTextBox::positionForOffset):
              (RenderText::cacheWidths):
              (RenderText::widthFromCache):
              (RenderText::trimmedMinMaxWidth):
              (RenderText::calcMinMaxWidth):
              (RenderText::containsOnlyWhitespace):
              (RenderText::width):
              * khtml/rendering/render_text.h:
              * kwq/KWQFontMetrics.h:
              * kwq/KWQFontMetrics.mm:
              (QFontMetrics::width):
              (QFontMetrics::charWidth):
              (QFontMetrics::floatWidth):
              (QFontMetrics::floatCharacterWidths):
              (QFontMetrics::checkSelectionPoint):
              (QFontMetrics::boundingRect):
              (QFontMetrics::size):
              * kwq/KWQPainter.h:
              * kwq/KWQPainter.mm:
              (QPainter::drawText):
              (QPainter::drawHighlightForText):
              * kwq/WebCoreTextRenderer.h:
              * kwq/WebCoreTextRendererFactory.mm:
              (WebCoreInitializeEmptyTextStyle):
              * layout-tests/editing/deleting/delete-tab-001-expected.txt:
              * layout-tests/editing/deleting/delete-tab-001.html:
              * layout-tests/editing/deleting/delete-tab-002-expected.txt:
              * layout-tests/editing/deleting/delete-tab-002.html:
              * layout-tests/editing/deleting/delete-tab-003-expected.txt:
              * layout-tests/editing/deleting/delete-tab-003.html:
              * layout-tests/editing/deleting/delete-tab-004-expected.txt:
              * layout-tests/editing/deleting/delete-tab-004.html:
              * layout-tests/editing/inserting/insert-tab-001-expected.txt:
              * layout-tests/editing/inserting/insert-tab-002-expected.txt:
              * layout-tests/editing/inserting/insert-tab-003-expected.txt:
              * layout-tests/editing/inserting/insert-tab-004-expected.txt:
              * layout-tests/fast/dom/quadraticCurveTo-expected.txt:
              * layout-tests/fast/js/string-replace-2-expected.txt:
              * layout-tests/fast/table/039-expected.txt:
              * layout-tests/fast/table/border-collapsing/004-expected.txt:
              * layout-tests/fast/tokenizer/script_extra_close-expected.txt:
      
      WebKit:
      
             Rolling out changes for <rdar://problem/3792529> REGRESSION (Mail): Tabs do not work the way they did in Panther (especially useful in plain text mail)
             since it caused a 2% performance regression.
      
              * WebCoreSupport.subproj/WebTextRenderer.m:
              (isSpace):
              (-[WebTextRenderer _CG_drawHighlightForRun:style:geometry:]):
              (-[WebTextRenderer _CG_floatWidthForRun:style:widths:fonts:glyphs:startPosition:numGlyphs:]):
              (-[WebTextRenderer _extendCharacterToGlyphMapToInclude:]):
              (-[WebTextRenderer _CG_pointToOffset:style:position:reversed:includePartialGlyphs:]):
              (initializeCharacterWidthIterator):
              (widthForNextCharacter):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9595 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      945819d9
  20. 29 Jun, 2005 1 commit
    • harrison's avatar
      Reviewed by Dave Hyatt (rendering) and Maciej (editing). · b43c5185
      harrison authored
              Test cases added:  Coming soon.  Will include with next round of changes for this bug.
      
              This is the first checkin for...
      
              <rdar://problem/3792529> REGRESSION (Mail): Tabs do not work the way they did in Panther (especially useful in plain text mail)
      
              Basic strategy is to put tabs into spans with white-space:pre style, and
              render them with tabs stops every 8th space, where the space width and
              the left margin are those of the enclosing block.
      
              What's left is to switch to implement white-space:pre-wrap so
              that we can coalesce consecutive tabs while maintaining proper
              line breaking.  That will keep the markup smaller.
      
              * khtml/editing/apply_style_command.cpp:
              (khtml::createStyleSpanElement):
              (khtml::ApplyStyleCommand::removeCSSStyle):
              (khtml::ApplyStyleCommand::addInlineStyleIfNeeded):
              * khtml/editing/delete_selection_command.cpp:
              (khtml::DeleteSelectionCommand::saveTypingStyleState):
              * khtml/editing/edit_command.cpp:
              (khtml::EditCommand::styleAtPosition):
              * khtml/editing/html_interchange.h:
              * khtml/editing/htmlediting.cpp:
              (khtml::isSpecialElement):
              (khtml::isTabSpanNode):
              (khtml::isTabSpanTextNode):
              (khtml::positionBeforeTabSpan):
              (khtml::createTabSpanElement):
              * khtml/editing/htmlediting.h:
              * khtml/editing/insert_text_command.cpp:
              (khtml::InsertTextCommand::prepareForTextInsertion):
              (khtml::InsertTextCommand::input):
              (khtml::InsertTextCommand::insertTab):
              * khtml/editing/insert_text_command.h:
              * khtml/editing/markup.cpp:
              (khtml::createParagraphContentsFromString):
              (khtml::createFragmentFromText):
              * khtml/editing/replace_selection_command.cpp:
              (khtml::ReplacementFragment::removeStyleNodes):
              * khtml/html/htmltokenizer.cpp:
              (khtml::HTMLTokenizer::begin):
              (khtml::HTMLTokenizer::processListing):
              (khtml::HTMLTokenizer::parseEntity):
              (khtml::HTMLTokenizer::parseTag):
              (khtml::HTMLTokenizer::addPending):
              (khtml::HTMLTokenizer::write):
              * khtml/html/htmltokenizer.h:
              (khtml::HTMLTokenizer::):
              * khtml/rendering/bidi.cpp:
              (khtml::addRun):
              (khtml::RenderBlock::tabWidth):
              (khtml::RenderBlock::computeHorizontalPositionsForLine):
              (khtml::RenderBlock::skipWhitespace):
              (khtml::RenderBlock::findNextLineBreak):
              (khtml::RenderBlock::checkLinesForTextOverflow):
              * khtml/rendering/break_lines.cpp:
              (khtml::isBreakable):
              * khtml/rendering/font.cpp:
              (Font::drawHighlightForText):
              (Font::drawText):
              (Font::floatWidth):
              (Font::floatCharacterWidths):
              (Font::checkSelectionPoint):
              (Font::width):
              * khtml/rendering/font.h:
              * khtml/rendering/render_block.cpp:
              (khtml::stripTrailingSpace):
              (khtml::RenderBlock::calcInlineMinMaxWidth):
              * khtml/rendering/render_block.h:
              * khtml/rendering/render_br.h:
              (khtml::RenderBR::width):
              * khtml/rendering/render_flexbox.cpp:
              (khtml::RenderFlexibleBox::layoutVerticalBox):
              * khtml/rendering/render_image.cpp:
              (RenderImage::setPixmap):
              (RenderImage::paint):
              * khtml/rendering/render_line.cpp:
              (khtml::EllipsisBox::paint):
              * khtml/rendering/render_line.h:
              (khtml::InlineBox::width):
              (khtml::InlineBox::xPos):
              (khtml::InlineBox::yPos):
              (khtml::InlineBox::height):
              (khtml::InlineBox::baseline):
              * khtml/rendering/render_list.cpp:
              (RenderListMarker::paint):
              (RenderListMarker::calcMinMaxWidth):
              * khtml/rendering/render_object.cpp:
              (RenderObject::tabWidth):
              (RenderObject::recalcMinMaxWidths):
              * khtml/rendering/render_object.h:
              * khtml/rendering/render_replaced.cpp:
              * khtml/rendering/render_text.cpp:
              (InlineTextBox::selectionRect):
              (InlineTextBox::paint):
              (InlineTextBox::paintSelection):
              (InlineTextBox::paintMarkedTextBackground):
              (InlineTextBox::textPos):
              (InlineTextBox::offsetForPosition):
              (InlineTextBox::positionForOffset):
              (RenderText::cacheWidths):
              (RenderText::widthFromCache):
              (RenderText::trimmedMinMaxWidth):
              (RenderText::calcMinMaxWidth):
              (RenderText::containsOnlyWhitespace):
              (RenderText::width):
              * khtml/rendering/render_text.h:
              * kwq/KWQFontMetrics.h:
              * kwq/KWQFontMetrics.mm:
              (QFontMetrics::width):
              (QFontMetrics::charWidth):
              (QFontMetrics::floatWidth):
              (QFontMetrics::floatCharacterWidths):
              (QFontMetrics::checkSelectionPoint):
              (QFontMetrics::boundingRect):
              (QFontMetrics::size):
              * kwq/KWQPainter.h:
              * kwq/KWQPainter.mm:
              (QPainter::drawText):
              (QPainter::drawHighlightForText):
              * kwq/WebCoreTextRenderer.h:
              * kwq/WebCoreTextRendererFactory.mm:
              (WebCoreInitializeEmptyTextStyle):
              * layout-tests/editing/deleting/delete-tab-001-expected.txt:
              * layout-tests/editing/deleting/delete-tab-001.html:
              * layout-tests/editing/deleting/delete-tab-002-expected.txt:
              * layout-tests/editing/deleting/delete-tab-002.html:
              * layout-tests/editing/deleting/delete-tab-003-expected.txt:
              * layout-tests/editing/deleting/delete-tab-003.html:
              * layout-tests/editing/deleting/delete-tab-004-expected.txt:
              * layout-tests/editing/deleting/delete-tab-004.html:
              * layout-tests/editing/inserting/insert-tab-001-expected.txt:
              * layout-tests/editing/inserting/insert-tab-002-expected.txt:
              * layout-tests/editing/inserting/insert-tab-003-expected.txt:
              * layout-tests/editing/inserting/insert-tab-004-expected.txt:
              * layout-tests/fast/dom/quadraticCurveTo-expected.txt:
              * layout-tests/fast/js/string-replace-2-expected.txt:
              * layout-tests/fast/table/039-expected.txt:
              * layout-tests/fast/table/border-collapsing/004-expected.txt:
              * layout-tests/fast/tokenizer/script_extra_close-expected.txt:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9540 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b43c5185
  21. 14 Jun, 2005 1 commit
    • hyatt's avatar
      The behavior of <pre> is broken so that the newline · 32589e4b
      hyatt authored
      	is not always properly being eaten after the open of the tag.  In addition we were eating the first newline
      	after all other tags.  This patch stops eating newlines after other tags and refines the behavior for pre
      	to catch all cases.
      
              Reviewed by sullivan
      
              Test cases added: fast/text/whitespace/030.html
      
              * khtml/html/htmltokenizer.cpp:
              (khtml::HTMLTokenizer::parseTag):
              (khtml::HTMLTokenizer::write):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9396 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      32589e4b
  22. 29 Apr, 2005 1 commit
    • darin's avatar
      Reviewed by Dave Harrison. · c1b3e23b
      darin authored
              - changed layout tests to dump more minimal information about caret and selection
      
              * kwq/KWQRenderTreeDebug.cpp:
              (nodePosition): Changed name; now does position relative to document.
              (writeSelection): Removed upstream/downstream code and changed format slightly.
      
              * layout-tests/editing/*-expected.txt: Regenerated in new format.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9082 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c1b3e23b
  23. 21 Oct, 2004 1 commit
    • kocienda's avatar
      Reviewed by Darin · 25cd0855
      kocienda authored
              Significant improvement to the way that whitespace is handled during editing.
      
              * khtml/editing/htmlediting.cpp:
              (khtml::CompositeEditCommand::deleteInsignificantText): New functions (there are actually
              two being added with this name) that delete "insignificant" unrendered text.
              (khtml::CompositeEditCommand::deleteInsignificantTextDownstream): Takes a position,
              calculates the downstream position to use as the endpoint for the deletion, and
              then calls deleteInsignificantText with this start and end.
              (khtml::DeleteSelectionCommand::doApply): Call new deleteInsignificantTextDownstream function.
              (khtml::InputNewlineCommand::doApply): Ditto.
              (khtml::InputTextCommand::input): Ditto.
              * khtml/editing/htmlediting.h: Add new declarations.
      
              Modified layout test results:
              * layout-tests/editing/deleting/delete-block-merge-contents-016-expected.txt:
              * layout-tests/editing/deleting/delete-block-merge-contents-017-expected.txt:
              * layout-tests/editing/deleting/delete-contiguous-ws-001-expected.txt:
              * layout-tests/editing/deleting/delete-selection-001-expected.txt:
              * layout-tests/editing/deleting/delete-tab-001-expected.txt:
              * layout-tests/editing/deleting/delete-tab-004-expected.txt:
              * layout-tests/editing/deleting/delete-trailing-ws-001-expected.txt:
              * layout-tests/editing/inserting/insert-3659587-fix-expected.txt:
              * layout-tests/editing/inserting/insert-3775316-fix-expected.txt:
              * layout-tests/editing/inserting/insert-3778059-fix-expected.txt:
              * layout-tests/editing/inserting/insert-br-001-expected.txt:
              * layout-tests/editing/inserting/insert-br-004-expected.txt:
              * layout-tests/editing/inserting/insert-br-005-expected.txt:
              * layout-tests/editing/inserting/insert-br-006-expected.txt:
              * layout-tests/editing/inserting/insert-tab-001-expected.txt:
              * layout-tests/editing/inserting/insert-tab-002-expected.txt:
              * layout-tests/editing/inserting/insert-tab-004-expected.txt:
              * layout-tests/editing/inserting/insert-text-with-newlines-expected.txt:
              * layout-tests/editing/inserting/typing-001-expected.txt:
              * layout-tests/editing/inserting/typing-around-br-001-expected.txt:
              * layout-tests/editing/inserting/typing-around-image-001-expected.txt:
              * layout-tests/editing/style/typing-style-003-expected.txt:
              * layout-tests/editing/undo/redo-typing-001-expected.txt:
              * layout-tests/editing/undo/undo-typing-001-expected.txt:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@7875 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      25cd0855
  24. 31 Aug, 2004 1 commit
    • kocienda's avatar
      Reviewed by me · eecaf1f7
      kocienda authored
              Added more editing layout tests.
      
              * layout-tests/editing/deleting/delete-tab-001-expected.txt: Added.
              * layout-tests/editing/deleting/delete-tab-001.html: Added.
              * layout-tests/editing/deleting/delete-tab-002-expected.txt: Added.
              * layout-tests/editing/deleting/delete-tab-002.html: Added.
              * layout-tests/editing/deleting/delete-tab-003-expected.txt: Added.
              * layout-tests/editing/deleting/delete-tab-003.html: Added.
              * layout-tests/editing/deleting/delete-tab-004-expected.txt: Added.
              * layout-tests/editing/deleting/delete-tab-004.html: Added.
              * layout-tests/editing/editing.js: Fixed a little bug in one of the "delayed" commands.
              * layout-tests/editing/inserting/insert-tab-001-expected.txt: Added.
              * layout-tests/editing/inserting/insert-tab-001.html: Added.
              * layout-tests/editing/inserting/insert-tab-002-expected.txt: Added.
              * layout-tests/editing/inserting/insert-tab-002.html: Added.
              * layout-tests/editing/inserting/insert-tab-003-expected.txt: Added.
              * layout-tests/editing/inserting/insert-tab-003.html: Added.
              * layout-tests/editing/inserting/insert-tab-004-expected.txt: Added.
              * layout-tests/editing/inserting/insert-tab-004.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@7418 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      eecaf1f7
  25. 26 Apr, 2004 1 commit
  26. 12 Apr, 2004 1 commit
    • kocienda's avatar
      WebCore: · 69706495
      kocienda authored
              Reviewed by Dave
      
              Added execCommand support for cut/copy/paste.
      
              * khtml/xml/dom_docimpl.cpp:
              (DocumentImpl::execCommand): Added cut/copy/paste atoms and added else if cases
              for the commands.
              * kwq/KWQKHTMLPart.h:
              * kwq/KWQKHTMLPart.mm:
              (KWQKHTMLPart::issueCutCommand): Glue for calling from WebCore to do a cut in Cocoa.
              (KWQKHTMLPart::issueCopyCommand): Same as above, but for copy.
              (KWQKHTMLPart::issuePasteCommand): Same as above, but for paste.
              * kwq/WebCoreBridge.h: Declared issueCutCommand, issueCopyCommand, and issuePasteCommand
              to be implemented on the WebKit side of the bridge.
              * layout-tests/editing/editing.js: Added cut/copy/paste support to js library to support
              making layout tests.
              * layout-tests/editing/pasteboard/copy-paste-text-001-expected.txt: Added.
              * layout-tests/editing/pasteboard/copy-paste-text-001.html: Added.
              * layout-tests/editing/pasteboard/cut-paste-text-002-expected.txt: Added.
              * layout-tests/editing/pasteboard/cut-paste-text-002.html: Added.
              * layout-tests/editing/pasteboard/cut-text-001-expected.txt: Added.
              * layout-tests/editing/pasteboard/cut-text-001.html: Added.
      
      WebKit:
      
              Reviewed by Dave
      
              Added execCommand support for cut/copy/paste.
      
              * WebCoreSupport.subproj/WebBridge.m:
              (-[WebBridge issueCutCommand]): Glue for calling from WebCore to do a cut in Cocoa.
              (-[WebBridge issueCopyCommand]): Same as above, but for copy.
              (-[WebBridge issuePasteCommand]): Same as above, but for paste.
              * WebView.subproj/WebHTMLView.m:
              (-[WebHTMLView copy:]): Move this to private implementation category so the bridge can see it.
              (-[WebHTMLView cut:]): Ditto.
              (-[WebHTMLView paste:]): Ditto.
              * WebView.subproj/WebHTMLViewPrivate.h: Move copy;, cut:, and paste: to private implementation
              category so the bridge can see it.
              * WebView.subproj/WebView.m:
              (-[WebView copy:]): Implemented by calling WebHTMLView to do the work.
              (-[WebView cut:]): Ditto.
              (-[WebView paste:]): Ditto.
              * WebView.subproj/WebViewPrivate.h: Added all the NSReponder methods we plan to implement as
              part of the WebKit editing API.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@6352 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      69706495
  27. 06 Apr, 2004 1 commit
    • kocienda's avatar
      Reviewed by me · 495c303e
      kocienda authored
              Added a new suite of layout tests for editing, all added
              in the new layout-tests/editing subtree.
      
              * layout-tests/editing/abe.jpg: Added.
              * layout-tests/editing/deleting/delete-block-contents-001-expected.txt: Added.
              * layout-tests/editing/deleting/delete-block-contents-001.html: Added.
              * layout-tests/editing/deleting/delete-block-contents-002-expected.txt: Added.
              * layout-tests/editing/deleting/delete-block-contents-002.html: Added.
              * layout-tests/editing/deleting/delete-block-contents-003-expected.txt: Added.
              * layout-tests/editing/deleting/delete-block-contents-003.html: Added.
              * layout-tests/editing/deleting/delete-br-001-expected.txt: Added.
              * layout-tests/editing/deleting/delete-br-001.html: Added.
              * layout-tests/editing/deleting/delete-br-002-expected.txt: Added.
              * layout-tests/editing/deleting/delete-br-002.html: Added.
              * layout-tests/editing/deleting/delete-br-003-expected.txt: Added.
              * layout-tests/editing/deleting/delete-br-003.html: Added.
              * layout-tests/editing/deleting/delete-br-004-expected.txt: Added.
              * layout-tests/editing/deleting/delete-br-004.html: Added.
              * layout-tests/editing/deleting/delete-br-005-expected.txt: Added.
              * layout-tests/editing/deleting/delete-br-005.html: Added.
              * layout-tests/editing/deleting/delete-br-006-expected.txt: Added.
              * layout-tests/editing/deleting/delete-br-006.html: Added.
              * layout-tests/editing/deleting/delete-character-001-expected.txt: Added.
              * layout-tests/editing/deleting/delete-character-001.html: Added.
              * layout-tests/editing/deleting/delete-contiguous-ws-001-expected.txt: Added.
              * layout-tests/editing/deleting/delete-contiguous-ws-001.html: Added.
              * layout-tests/editing/deleting/delete-image-001-expected.txt: Added.
              * layout-tests/editing/deleting/delete-image-001.html: Added.
              * layout-tests/editing/deleting/delete-image-002-expected.txt: Added.
              * layout-tests/editing/deleting/delete-image-002.html: Added.
              * layout-tests/editing/deleting/delete-image-003-expected.txt: Added.
              * layout-tests/editing/deleting/delete-image-003.html: Added.
              * layout-tests/editing/deleting/delete-leading-ws-001-expected.txt: Added.
              * layout-tests/editing/deleting/delete-leading-ws-001.html: Added.
              * layout-tests/editing/deleting/delete-selection-001-expected.txt: Added.
              * layout-tests/editing/deleting/delete-selection-001.html: Added.
              * layout-tests/editing/deleting/delete-trailing-ws-001-expected.txt: Added.
              * layout-tests/editing/deleting/delete-trailing-ws-001.html: Added.
              * layout-tests/editing/editing.js: Added.
              * layout-tests/editing/inserting/typing-001-expected.txt: Added.
              * layout-tests/editing/inserting/typing-001.html: Added.
              * layout-tests/editing/inserting/typing-002-expected.txt: Added.
              * layout-tests/editing/inserting/typing-002.html: Added.
              * layout-tests/editing/inserting/typing-around-br-001-expected.txt: Added.
              * layout-tests/editing/inserting/typing-around-br-001.html: Added.
              * layout-tests/editing/inserting/typing-around-image-001-expected.txt: Added.
              * layout-tests/editing/inserting/typing-around-image-001.html: Added.
              * layout-tests/editing/selection/extend-by-character-001-expected.txt: Added.
              * layout-tests/editing/selection/extend-by-character-001.html: Added.
              * layout-tests/editing/selection/extend-by-character-002-expected.txt: Added.
              * layout-tests/editing/selection/extend-by-character-002.html: Added.
              * layout-tests/editing/selection/extend-by-character-003-expected.txt: Added.
              * layout-tests/editing/selection/extend-by-character-003.html: Added.
              * layout-tests/editing/selection/extend-by-character-004-expected.txt: Added.
              * layout-tests/editing/selection/extend-by-character-004.html: Added.
              * layout-tests/editing/selection/extend-by-character-005-expected.txt: Added.
              * layout-tests/editing/selection/extend-by-character-005.html: Added.
              * layout-tests/editing/selection/move-by-character-001-expected.txt: Added.
              * layout-tests/editing/selection/move-by-character-001.html: Added.
              * layout-tests/editing/selection/move-by-character-002-expected.txt: Added.
              * layout-tests/editing/selection/move-by-character-002.html: Added.
              * layout-tests/editing/selection/move-by-character-003-expected.txt: Added.
              * layout-tests/editing/selection/move-by-character-003.html: Added.
              * layout-tests/editing/selection/move-by-character-004-expected.txt: Added.
              * layout-tests/editing/selection/move-by-character-004.html: Added.
              * layout-tests/editing/selection/move-by-character-005-expected.txt: Added.
              * layout-tests/editing/selection/move-by-character-005.html: Added.
              * layout-tests/editing/undo/redo-typing-001-expected.txt: Added.
              * layout-tests/editing/undo/redo-typing-001.html: Added.
              * layout-tests/editing/undo/undo-typing-001-expected.txt: Added.
              * layout-tests/editing/undo/undo-typing-001.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@6315 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      495c303e