1. 17 Nov, 2006 2 commits
    • thatcher's avatar
      Reviewed by Harrison. · 3d53764a
      thatcher authored
              <rdar://problem/4796730> table deletion elements are serialized out if they are visible when innerHTML or a Web Archive is made
      
              Disable the delete button controller when cloning nodes, Mail does this before saving a draft.
      
              * dom/ContainerNode.cpp:
              (WebCore::ContainerNode::cloneChildNodes):
              * editing/markup.cpp:
              (WebCore::createFragmentFromNodes):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17833 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3d53764a
    • justing's avatar
      LayoutTests: · e3143cdd
      justing authored
              Reviewed by harrison
              
              <rdar://problem/4237467> REGRESSION: Pasting word from quoted text quotes the destination
              <rdar://problem/4017358> quoted text is wrong color, when pasted as quotation
      
              Fixed:
              * editing/pasteboard/merge-end-blockquote-expected.checksum:
              * editing/pasteboard/merge-end-blockquote-expected.png:
              * editing/pasteboard/merge-end-blockquote-expected.txt:
              * editing/pasteboard/merge-end-blockquote.html:
              
              Added:
              * editing/pasteboard/paste-blockquote-1-expected.checksum: Added.
              * editing/pasteboard/paste-blockquote-1-expected.png: Added.
              * editing/pasteboard/paste-blockquote-1-expected.txt: Added.
              * editing/pasteboard/paste-blockquote-1.html: Added.
              * editing/pasteboard/paste-blockquote-2-expected.checksum: Added.
              * editing/pasteboard/paste-blockquote-2-expected.png: Added.
              * editing/pasteboard/paste-blockquote-2-expected.txt: Added.
              * editing/pasteboard/paste-blockquote-2.html: Added.
              * editing/pasteboard/paste-blockquote-3-expected.checksum: Added.
              * editing/pasteboard/paste-blockquote-3-expected.png: Added.
              * editing/pasteboard/paste-blockquote-3-expected.txt: Added.
              * editing/pasteboard/paste-blockquote-3.html: Added.
      
      WebCore:
      
              Reviewed by harrison
              
              <rdar://problem/4237467> REGRESSION: Pasting word from quoted text quotes the destination
              <rdar://problem/4017358> quoted text is wrong color, when pasted as quotation
      
              * editing/ReplaceSelectionCommand.cpp:
              (WebCore::isMailPasteAsQuotationNode): Added.  Checks for the node
              that Mail wraps around an incoming fragment when it wants it to be pasted
              with quoting (no merging should be done).
              (WebCore::ReplaceSelectionCommand::removeNodePreservingChildren): Added
              this virtual method in order to adjust the nodes that ReplaceSelectionCommand
              tracks.
              (WebCore::ReplaceSelectionCommand::shouldMerge): Don't merge from content
              inside a Mail Paste as Quotation node.  Allow merging from Mail blockquotes.
              (WebCore::ReplaceSelectionCommand::removeRedundantStyles): When pasting into
              a Mail blockquote, we ignore the parts of the source document's default style
              that are overriden by styles from the Mail blockquote.  This is necessary in order
              for text that's black (because black is the source document's default font color) 
              to appear blue/green/whatever when it's pasted into a Mail blockquote.
              (WebCore::ReplaceSelectionCommand::handlePasteAsQuotationNode): Turn an inserted
              Mail Paste as Quotation node into a normal Mail blockquote.  This will prevent
              a copied blockquote that was inserted into the document using Paste as Quotation
              from triggering Paste as Quotation behavior when it's pasted.
              (WebCore::ReplaceSelectionCommand::doApply): Call the new/altered methods.
              * editing/ReplaceSelectionCommand.h:
              * editing/markup.cpp:
              (WebCore::styleFromMatchedRulesForElement): Put this code into a subroutine.
              (WebCore::removeEnclosingMailBlockquoteStyle): Added.
              (WebCore::startMarkup): When wrapping text nodes in style spans, leave out
              styles that Mail blockquotes contribute, so that Mail blockquote styles can
              be differentiated from styles that the user has applied.  When creating markup
              for elements, do the same thing.
              (WebCore::createMarkup): Call the new subroutine.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17832 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e3143cdd
  2. 16 Nov, 2006 2 commits
  3. 14 Nov, 2006 1 commit
    • justing's avatar
      LayoutTests: · 34a4dd57
      justing authored
              Reviewed by harrison
              
              <rdar://problem/4806874>
              Missing background image after paste
      
              Checking in new expected results for fixes:
              * editing/inserting/insert-3851164-fix-expected.checksum:
              * editing/inserting/insert-3851164-fix-expected.png:
              * editing/selection/drag-in-iframe-expected.checksum:
              * editing/selection/drag-in-iframe-expected.png:
      
              Same, but also removing an outdated comment about a bug:
              * 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:
              
              Added:
              * editing/pasteboard/4806874-expected.checksum: Added.
              * editing/pasteboard/4806874-expected.png: Added.
              * editing/pasteboard/4806874-expected.txt: Added.
              * editing/pasteboard/4806874.html: Added.
              
              Equivalent render trees:        
              * editing/inserting/insert-3907422-fix-expected.txt:
              * editing/pasteboard/paste-text-011-expected.txt:
              * editing/pasteboard/paste-text-015-expected.txt:
      
      WebCore:
      
              Reviewed by harrison
              
              <rdar://problem/4806874>
              Missing background image after paste
              
              * editing/markup.cpp:
              (WebCore::createMarkup): If the body is fully selected, add a 
              div with its CSS properties to the markup.  Migrated a use of 
              enclosingBlockFlowElement to enclosingBlock to fix an infinite 
              loop when pasting <div><input></div>.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17772 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      34a4dd57
  4. 13 Nov, 2006 1 commit
    • justing's avatar
      LayoutTests: · 6340ec9b
      justing authored
              Reviewed by Oliver
      
              * editing/pasteboard/paste-unrendered-select-expected.checksum: Added.
              * editing/pasteboard/paste-unrendered-select-expected.png: Added.
              * editing/pasteboard/paste-unrendered-select-expected.txt: Added.
              * editing/pasteboard/paste-unrendered-select.html: Added.
      
      WebCore:
      
              Reviewed by Oliver
              
              <rdar://problem/4820026>
              copy/paste of news.google.com yields text from hidden select element options
      
              We were adding descendants of unrendered select elements. 
      
              * editing/markup.cpp:
              (WebCore::createMarkup): Don't traverse into nodes without renderers, unless 
              they are grandfathered in by a rendered select element.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17751 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6340ec9b
  5. 07 Nov, 2006 1 commit
    • harrison's avatar
      LayoutTests: · 10181c90
      harrison authored
              Reviewed by Darin.
      
              <rdar://problem/4714993> REGRESSION: After replacing a misspelled word in a sentence, the selected word wraps down to next line (10428)
      
              * editing/pasteboard/3976872-expected.txt:
              * editing/pasteboard/4076267-2-expected.txt:
              * editing/pasteboard/4076267-3-expected.txt:
              * editing/pasteboard/4076267-expected.txt:
              * editing/pasteboard/8145-1-expected.txt:
              * editing/pasteboard/paste-empty-startcontainer-expected.txt: Removed.
              * editing/pasteboard/paste-match-style-001-expected.txt:
              * editing/pasteboard/paste-match-style-002-expected.txt:
              * editing/pasteboard/paste-text-019-expected.txt:
              * editing/pasteboard/pasting-tabs-expected.txt:
      
      WebCore:
      
              Reviewed by Darin.
      
              <rdar://problem/4714993> REGRESSION: After replacing a misspelled word in a sentence, the selected word wraps down to next line (10428)
      
              * editing/pasteboard/3976872-expected.txt:
              * editing/pasteboard/4076267-2-expected.txt:
              * editing/pasteboard/4076267-3-expected.txt:
              * editing/pasteboard/4076267-expected.txt:
              * editing/pasteboard/8145-1-expected.txt:
              * editing/pasteboard/paste-empty-startcontainer-expected.txt: Removed.
              * editing/pasteboard/paste-match-style-001-expected.txt:
              * editing/pasteboard/paste-match-style-002-expected.txt:
              * editing/pasteboard/paste-text-019-expected.txt:
              * editing/pasteboard/pasting-tabs-expected.txt:
              Updated because pasting text with no newlines does not use intermediate div.
              
              * editing/markup.cpp:
              (WebCore::fillContainerFromString):
              First parameter is now a Container so a fragment can be passed.
              
              (WebCore::createFragmentFromText):
              A string with no newlines gets added inline, rather than being put into a paragraph.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17643 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      10181c90
  6. 01 Nov, 2006 1 commit
    • justing's avatar
      LayoutTests: · 0e8af8dc
      justing authored
              Reviewed by darin
              
              <rdar://problem/4062865>
              Copy/paste of a select element fails to include the options
      
              Updated to reflect fix:
              * editing/pasteboard/4641033-expected.checksum:
              * editing/pasteboard/4641033-expected.png:
              * editing/pasteboard/4641033-expected.txt:
              * editing/pasteboard/4641033.html:
              
              Added:
              * editing/inserting/before-after-input-element-expected.checksum: Added.
              * editing/inserting/before-after-input-element-expected.png: Added.
              * editing/inserting/before-after-input-element-expected.txt: Added.
              * editing/inserting/before-after-input-element.html: Added.
              * editing/pasteboard/input-field-1-expected.checksum: Added.
              * editing/pasteboard/input-field-1-expected.png: Added.
              * editing/pasteboard/input-field-1-expected.txt: Added.
              * editing/pasteboard/input-field-1.html: Added.
              * editing/pasteboard/select-element-1-expected.checksum: Added.
              * editing/pasteboard/select-element-1-expected.png: Added.
              * editing/pasteboard/select-element-1-expected.txt: Added.
              * editing/pasteboard/select-element-1.html: Added.
              * editing/selection/select-element-paragraph-boundary-expected.checksum: Added.
              * editing/selection/select-element-paragraph-boundary-expected.png: Added.
              * editing/selection/select-element-paragraph-boundary-expected.txt: Added.
              * editing/selection/select-element-paragraph-boundary.html: Added.
      
      WebCore:
      
              Reviewed by darin
      
              <rdar://problem/4062865>
              Copy/paste of a select element fails to include the options
              
              * editing/SelectionController.cpp:
              (WebCore::SelectionController::modify): Added paragraphBoundary.
              * editing/htmlediting.cpp:
              (WebCore::canHaveChildrenForEditing): Added checks for input elements
              and textareas.  Insertion operations would fail when performed just 
              before/after one of these elements b/c the content would be put inside 
              the element.
              (WebCore::enclosingNodeWithTag): Fixed a problem when calling these in non
              editable content, and made the code to stop at an root faster (don't check
              isDescendantOf on every iteration).
              (WebCore::enclosingNodeOfType): Ditto.
              (WebCore::enclosingList): Ditto.
              (WebCore::enclosingListChild): Ditto.  Added a FIXME, this function seems
              inappropriately named.
              * editing/markup.cpp:
              (WebCore::startMarkup): Use the text node's value instead of its rendered
              content for text nodes inside select elements.  One might also turn off
              annotation when createMarkup enters a select element, but createMarkup
              is iterative, not recursive, so doing so would be complicated.
              (WebCore::createMarkup): Add markup for unrendered nodes if they are 
              descendants of a select element.
              * editing/visible_units.cpp:
              (WebCore::startOfParagraph): Migrate to isBlock/enclosingBlock.  Fixes bug
              where various replaced elements can't be copied when they are the only
              thing selected.
              (WebCore::endOfParagraph): Ditto.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17532 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0e8af8dc
  7. 02 Oct, 2006 1 commit
    • justing's avatar
      LayoutTests: · 538ce8bc
      justing authored
              Reviewed by john
      
              * editing/execCommand/create-list-with-hr-expected.checksum: Added.
              * editing/execCommand/create-list-with-hr-expected.png: Added.
              * editing/execCommand/create-list-with-hr-expected.txt: Added.
              * editing/execCommand/create-list-with-hr.html: Added.
      
      WebCore:
      
              Reviewed by john
              
              <rdar://problem/4755287>
              Writely Editor: Crash occurs at WebCore::maxDeepOffset(WebCore::Node const*) when attempting to create a OL/UL following a HR element
      
              * editing/markup.cpp:
              (WebCore::createMarkup): Migrate to isBlock (isBlockFlow is true for inline replaced 
              elements).  Don't skip blocks that aren't containers (like horizontal rules).
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16728 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      538ce8bc
  8. 01 Oct, 2006 1 commit
    • andersca's avatar
      2006-10-01 Anders Carlsson <acarlsson@apple.com> · 6c1f4217
      andersca authored
              Reviewed by Geoff.
      
              * dom/Document.cpp:
              (WebCore::Document::recalcStyleSelector):
              * dom/Document.h:
              Get rid of availableStyleSheets() and remove DeprecatedStringList.h include.
              
              * dom/Node.h:
              Remove DeprecatedStringList class forward declaration.
              
              * editing/markup.cpp:
              Include DeprecatedStringList.h here since it's not included by Document.h anymore.
              
              * kcanvas/KCanvasTreeDebug.cpp:
              * kcanvas/KCanvasTreeDebug.h:
              Remove unused functions.
              
              * loader/loader.cpp:
              * page/Frame.cpp:
              * page/Frame.h:
              * page/FrameView.h:
              Fixup DeprecatedStringList.h includes.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16701 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6c1f4217
  9. 22 Sep, 2006 1 commit
    • justing's avatar
      WebCore: · 5b9c5a0a
      justing authored
              Reviewed by darin
      
              <http://bugzilla.opendarwin.org/show_bug.cgi?id=8029>
              Rename Node::isAncestor and RenderObject::hasAncestor to isDescendantOf
      
              * dom/Document.cpp:
              (WebCore::Document::clearSelectionIfNeeded):
              * dom/Element.cpp:
              (WebCore::Element::contains):
              * dom/Node.cpp:
              (WebCore::Node::traverseNextNode):
              (WebCore::Node::traverseNextSibling):
              (WebCore::Node::traversePreviousNodePostOrder):
              (WebCore::Node::checkAddChild):
              (WebCore::Node::isDescendantOf):
              * dom/Node.h:
              * dom/NodeIterator.cpp:
              (WebCore::NodeIterator::notifyBeforeNodeRemoval):
              * editing/ApplyStyleCommand.cpp:
              (WebCore::ApplyStyleCommand::applyBlockStyle):
              (WebCore::ApplyStyleCommand::applyRelativeFontStyleChange):
              (WebCore::ApplyStyleCommand::applyInlineStyle):
              (WebCore::ApplyStyleCommand::pushDownTextDecorationStyleAroundNode):
              * editing/CompositeEditCommand.cpp:
              (WebCore::CompositeEditCommand::mergeIdenticalElements):
              (WebCore::CompositeEditCommand::moveParagraphContentsToNewBlockIfNecessary):
              * editing/DeleteSelectionCommand.cpp:
              (WebCore::updatePositionForNodeRemoval):
              (WebCore::DeleteSelectionCommand::handleGeneralDelete):
              (WebCore::DeleteSelectionCommand::mergeParagraphs):
              * editing/FormatBlockCommand.cpp:
              (WebCore::FormatBlockCommand::doApply):
              * editing/IndentOutdentCommand.cpp:
              (WebCore::enclosingListOrBlockquote):
              * editing/Selection.cpp:
              (WebCore::Selection::validate):
              * editing/SelectionController.cpp:
              (WebCore::SelectionController::nodeWillBeRemoved):
              * editing/TextIterator.cpp:
              (WebCore::SimplifiedBackwardsTextIterator::advance):
              * editing/VisiblePosition.cpp:
              (WebCore::VisiblePosition::next):
              (WebCore::VisiblePosition::previous):
              (WebCore::VisiblePosition::canonicalPosition):
              (WebCore::isFirstVisiblePositionInNode):
              (WebCore::isLastVisiblePositionInNode):
              * editing/htmlediting.cpp:
              (WebCore::firstEditablePositionAfterPositionInRoot):
              (WebCore::lastEditablePositionBeforePositionInRoot):
              (WebCore::enclosingNodeWithTag):
              (WebCore::enclosingList):
              (WebCore::enclosingListChild):
              * editing/markup.cpp:
              (WebCore::createMarkup):
      
      WebKitTools:
      
              Reviewed by darin
      
              * Scripts/do-webcore-rename:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16538 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5b9c5a0a
  10. 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
  11. 03 Aug, 2006 1 commit
    • justing's avatar
      LayoutTests: · 151eed4a
      justing authored
              Reviewed by harrison
              
              * editing/style/non-inheritable-styles-expected.checksum: Added.
              * editing/style/non-inheritable-styles-expected.png: Added.
              * editing/style/non-inheritable-styles-expected.txt: Added.
              * editing/style/non-inheritable-styles.html: Added.
      
      WebCore:
      
              Reviewed by harrison
              
              <rdar://problem/4641033/4515463/4052426/4046570/4053718/4053724/4060115/4062858>
              Copy/Paste fidelity was bad.
      
              * editing/ApplyStyleCommand.cpp:
              (WebCore::ApplyStyleCommand::applyInlineStyle):
              * editing/markup.cpp:
              (WebCore::startMarkup): We were not adding non-inheritable styles
              to the markup for an element unless they were in the elements inline
              style declaration.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15790 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      151eed4a
  12. 28 Jul, 2006 1 commit
    • justing's avatar
      LayoutTests: · 94d07250
      justing authored
              Reviewed by levi
              
              <rdar://problem/4242293>
              Poor paste fidelity of http://www.google.com/
      
              Removed one of the two extraneous newlines that are introduced on paste:
              * editing/pasteboard/paste-table-003-expected.checksum:
              * editing/pasteboard/paste-table-003-expected.png:
              * editing/pasteboard/paste-table-003-expected.txt:
              
              Fewer pastes remove nodes containing the selection b/c of 
              the changes to interchange newlines:
              * editing/pasteboard/paste-line-endings-007-expected.txt:
              * editing/pasteboard/paste-line-endings-008-expected.txt:
              * editing/pasteboard/paste-line-endings-009-expected.txt:
              
              Added:
              * editing/pasteboard/4242293-1-expected.checksum: Added.
              * editing/pasteboard/4242293-1-expected.png: Added.
              * editing/pasteboard/4242293-1-expected.txt: Added.
              * editing/pasteboard/4242293-1.html: Added.
              * editing/pasteboard/4242293-expected.checksum: Added.
              * editing/pasteboard/4242293-expected.png: Added.
              * editing/pasteboard/4242293-expected.txt: Added.
              * editing/pasteboard/4242293.html: Added.
      
      WebCore:
      
              Reviewed by levi
              
              More changes for:
              <rdar://problem/4242293>
              Poor paste fidelity of http://www.google.com/
      
              * editing/markup.cpp:
              (WebCore::needInterchangeNewlineAfter): Added.
              (WebCore::createMarkup): 
              Only add an interchangeNewline if we're annotating for interchange.  Can't test 
              this until we expose createMarkup in non-annotate mode (I'd expose Range::toHTML).
              Remove the FIXME about prepending the interchangeNewline before creating the rest 
              of the markup.  Its correct to surround the interchangeNewline in ancestors of the
              adjusted startNode.
              Fixed the check to see if an interchangeNewline is needed (!inSameBlock).  This would
              add an interchangeNewline for a selection that started before a table.
              Removed the workaround for the bug where markup for a table was not included when 
              selecting the contents of a table, since this change fixes the general problem of 
              markup for ancestors of the startNode being left out.
              Don't leave out ancestors of the startNode as we leave their subtrees.  Execute the
              code to include them even if we closed ancestors in the ancestorsToClose list.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15673 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      94d07250
  13. 27 Jul, 2006 1 commit
    • justing's avatar
      LayoutTests: · af02b8bb
      justing authored
              Reviewed by levi
              
              <rdar://problem/4242293>
              Poor paste fidelity of http://www.google.com/
      
              * editing/pasteboard/styled-element-markup-expected.checksum: Added.
              * editing/pasteboard/styled-element-markup-expected.png: Added.
              * editing/pasteboard/styled-element-markup-expected.txt: Added.
              * editing/pasteboard/styled-element-markup.html: Added.
      
      WebCore:
      
              Reviewed by levi
              
              <rdar://problem/4242293>
              Poor paste fidelity of http://www.google.com/
      
              * editing/ApplyStyleCommand.cpp:
              (WebCore::ApplyStyleCommand::applyInlineStyle):  Fixed crasher with nil-check.
              * editing/markup.cpp:
              (WebCore::startMarkup): Style information wasn't added to an element if it had
              attributes but no style attribute.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15656 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      af02b8bb
  14. 26 Jul, 2006 1 commit
  15. 24 Jul, 2006 1 commit
    • darin's avatar
      LayoutTests: · 38ae534e
      darin authored
              Reviewed by Adele and Justin.
      
              - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=9630
                REGRESSION: some spaces typed in <textarea> are posted as non-breaking spaces
      
              * fast/forms/textarea-type-spaces-expected.txt: Added.
              * fast/forms/textarea-type-spaces.html: Added.
      
              - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=9939
                REGRESSION: Pasting text into native text area with newline at end does not preserve newline
      
              * fast/forms/textarea-paste-newline-expected.txt: Added.
              * fast/forms/textarea-paste-newline.html: Added.
      
              - updated tests affected by above changes, results are equivalent or better
      
              * editing/pasteboard/4641033-expected.checksum:
              * editing/pasteboard/4641033-expected.png:
              * editing/pasteboard/4641033-expected.txt:
              * editing/pasteboard/paste-table-003-expected.checksum:
              * editing/pasteboard/paste-table-003-expected.png:
              * editing/pasteboard/paste-table-003-expected.txt:
              * editing/pasteboard/paste-text-016-expected.txt:
              * editing/pasteboard/quirks-mode-br-1-expected.txt:
              * editing/pasteboard/quirks-mode-br-2-expected.txt:
              * fast/forms/textarea-scrolled-type-expected.checksum:
              * fast/forms/textarea-scrolled-type-expected.png:
              * fast/forms/textarea-scrolled-type-expected.txt:
      
              - changed a test to be a "dump as text" test
      
              * fast/forms/paste-into-textarea-expected.txt:
              * fast/forms/paste-into-textarea.html:
              * fast/forms/paste-into-textarea-expected.checksum: Removed.
              * fast/forms/paste-into-textarea-expected.png: Removed.
      
              - changed a test to be a "dump as text" test, improved test a bit and also checked in new results
      
              * fast/forms/textarea-scrolled-endline-caret-expected.txt:
              * fast/forms/textarea-scrolled-endline-caret.html:
      
              - fixed a test that was raising an exception every time it ran
      
              * fast/forms/attributed-strings-expected.txt:
              * fast/forms/attributed-strings.html:
      
              - corrected checksums on a bunch of tests (pngs were right, but checksums wrong, apparently)
      
              * editing/deleting/delete-to-select-table-expected.checksum:
              * editing/selection/3690719-expected.checksum:
              * editing/selection/clear-selection-expected.checksum:
              * editing/undo/undo-misspellings-expected.checksum:
      
              - added some missing pixel test results
      
              * editing/pasteboard/nested-blocks-with-text-area-expected.checksum: Added.
              * editing/pasteboard/nested-blocks-with-text-area-expected.png: Added.
              * editing/pasteboard/nested-blocks-with-text-field-expected.checksum: Added.
              * editing/pasteboard/nested-blocks-with-text-field-expected.png: Added.
      
      WebCore:
      
              Reviewed by Adele and Justin.
      
              - fix <rdar://problem/4613616> REGRESSION: some spaces typed in <textarea> are posted as non-breaking spaces (9630)
                http://bugzilla.opendarwin.org/show_bug.cgi?id=9630
              - also fixes http://bugzilla.opendarwin.org/show_bug.cgi?id=9939
                REGRESSION: Pasting text into native text area with newline at end does not preserve newline
              - removed some uses of DeprecatedPtrList in the markup code
      
              Test: fast/forms/textarea-type-spaces.html
              Test: fast/forms/textarea-paste-newline.html
      
              * bindings/objc/DOMHTML.mm: (-[DOMHTMLDocument createDocumentFragmentWithText:]):
              Updated call to pass a range -- in this case it is the range of the entire document,
              so this will not handle the whitespace properly.
      
              * bridge/mac/WebCoreFrameBridge.h: Added range context parameter to the
              documentFragmentWithText: method, so we can handle whitespace properly.
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge nodesFromList:]): Changed from DeprecatedPtrList to Vector.
              (-[WebCoreFrameBridge markupStringFromNode:nodes:]): Ditto.
              (-[WebCoreFrameBridge markupStringFromRange:nodes:]): Ditto.
              (-[WebCoreFrameBridge documentFragmentWithText:inContext:]): Added range context
              parameter -- pass it on to createFragmentFromText.
              (-[WebCoreFrameBridge documentFragmentWithNodesAsParagraphs:]): Changed from
              DeprecatedPtrList to Vector.
              (-[WebCoreFrameBridge replaceSelectionWithText:selectReplacement:smartReplace:]):
              Pass the range of the current selection as context when creating the fragment.
      
              * dom/Position.cpp: (WebCore::Position::inRenderedText): Replace range check with
              a call to the new containsCaretOffset function -- helps make the caret work right when
              it is past the end of the last line in a textarea.
      
              * editing/CompositeEditCommand.cpp:
              (WebCore::CompositeEditCommand::rebalanceWhitespaceAt): Don't do anything if the
              style does not call for collapsing whitespace.
              (WebCore::CompositeEditCommand::rebalanceWhitespace): Call replaceWhitespaceAt
              to share code, including the new logic mentioned above.
      
              * editing/InsertLineBreakCommand.cpp: (WebCore::InsertLineBreakCommand::doApply):
              Use a text node instead of a break element when inserting and the style is preserveNewline.
      
              * editing/JSEditor.cpp: (WebCore::execRemoveFormat): Pass the selection range
              to createFragmentFromText.
      
              * editing/RebalanceWhitespaceCommand.cpp: (WebCore::RebalanceWhitespaceCommand::doApply):
              Assert that we're in a style that collapses whitespace. It's the caller's responsibility
              not to call otherwise.
      
              * editing/ReplaceSelectionCommand.h: Removed unused destructor, type, isSingleTextNode,
              isTreeFragment, m_type, and added a context parameter to inertFragmentForTestRendering.
              Also changed the constructor to take a selection rather than a pointer to the root
              editable element, replaced removeEndBRIfNeeded with shouldRemoveEndBR and removed an
              unused parameter from shouldMergeEnd.
              * editing/ReplaceSelectionCommand.cpp:
              (WebCore::ReplacementFragment::ReplacementFragment): Removed code to set up m_type.
              Compute root editable element from passed-in selection. Used the start of the selection
              as a base node for style purposes for the test rendering. Removed the special case
              "single text node" alternative to createFragmentFromText in the plain text case, since
              createFragmentFromText now handles that correctly.
              (WebCore::ReplacementFragment::insertFragmentForTestRendering): Copy the whitespace
              property from the source location when creating a temporary element for test rendering.
              (WebCore::ReplacementFragment::shouldMergeEnd): Removed unneeded boolean
              parameter fragmentHadInterchangeNewlineAtEnd, which is always false.
              (WebCore::ReplaceSelectionCommand::doApply): Update for ReplacementFragment changes,
              change code to not remove end BR when it can be re-used instead, don't call the
              paragraph separator insertion when the position is at the start of a paragraph already,
              removed redundant computation of identical "next" value, removed unneeded boolean
              parameter to shouldMergeEnd, add case for merging when all we need to do is to delete
              a newline character, removed unneeded code to set insertionPos after all code that uses
              it, and  use spaces instead of non-breaking spaces when doing smart paste if the
              context is one where we do not collapse white space.
              (WebCore::ReplaceSelectionCommand::shouldRemoveEndBR): Renamed and changed to return
              a boolean instead of doing the removal.
      
              * editing/markup.h: Use Vector instead of DeprecatedPtrList. Change the
              createFragmentFromText function to take a range for context instead of a document.
              * editing/markup.cpp:
              (WebCore::markup): Use Vector instead of DeprecatedPtrList.
              (WebCore::createMarkup): Ditto.
              (WebCore::createParagraphContentsFromString): Remove unneeded document parameter
              and changed a couple places to use isEmpty instead of comparing with "".
              (WebCore::createFragmentFromText): Given the new context parameter, if the context
              is one that preserves newlines, then use "\n" instead of <br> elements.
              (WebCore::createFragmentFromNodes): Use Vector instead of DeprecatedPtrList.
      
              * html/HTMLElement.cpp: (WebCore::HTMLElement::setInnerText): Do not use <br>
              elements if the context of this node is one where we preserve newlines.
      
              * rendering/InlineTextBox.h:
              * rendering/InlineTextBox.cpp: (WebCore::InlineTextBox::containsCaretOffset):
              Added. Implements the appropriate rule for determining if a caret position is
              in this line or not. Returns true for both one line and the next in cases where
              affinity must be considered to determine which line the caret is on.
      
              * rendering/RenderText.h: Make atLineWrap no longer be a member function.
              * rendering/RenderText.cpp:
              (WebCore::atLineWrap): Remove special rule about preserveNewline and isLineBreak,
              which will no longer apply due to the new containsCaretOffset function logic.
              (WebCore::RenderText::caretRect): Use containsCaretOffset.
              (WebCore::RenderText::inlineBox): Ditto.
      
              * rendering/RenderTextControl.cpp:
              (WebCore::RenderTextControl::updateFromElement): Make a placeholder <br> element
              after calling setInnerText so that the last newline in the string has the effect
              we expect outside the HTML world (an additional line).
              (WebCore::RenderTextControl::setSelectionRange): Set granularity of the selection
              too. The layout tests caught this problem, which needs a better solution long term.
              (WebCore::RenderTextControl::text): Call textContent with the parameter false
              so it will not include newlines for <br> elements. Now the only <br> element
              that will ever be in the shadow DOM tree is the one to prevent collapsing, and
              that one should not show up in the text value.
      
              * rendering/bidi.cpp: (WebCore::RenderBlock::findNextLineBreak): Took a rule
              that specifically called out the pre whitespace mode and made it work for all
              the modes that preserve newlines. This makes sure we get a last line box for
              text after the last "\n" even in cases where there is no <br> afterward.
      
              * editing/DeleteSelectionCommand.cpp:
              (WebCore::DeleteSelectionCommand::fixupWhitespace):
              * editing/InsertParagraphSeparatorCommand.cpp:
              (WebCore::InsertParagraphSeparatorCommand::doApply):
              Added assertions to make sure we don't do anything when we're not collapsing
              whitespace.
      
              * html/HTMLTextAreaElement.cpp: (WebCore::HTMLTextAreaElement::setDefaultValue):
              Changed to use Vector instead of DeprecatedPtrList.
      
              * editing/HTMLInterchange.cpp: Removed obsolete comment.
      
              * loader/Cache.h: Removed a stray include.
      
      WebKit:
      
              Reviewed by Adele and Justin.
      
              - update for change to require context when creating fragments from text
                (needed to handle whitespace properly)
      
              * WebView/WebHTMLView.m:
              (-[WebHTMLView _documentFragmentFromPasteboard:inContext:allowPlainText:chosePlainText:]):
              Added context parameter, pass through to bridge.
              (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]): Pass selection range as context
              when calling above method.
              (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Pass drag caret as context when
              calling above method.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15617 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      38ae534e
  16. 21 Jul, 2006 1 commit
    • justing's avatar
      LayoutTests: · 2b5ce097
      justing authored
              Reviewed by john
              
              <rdar://problem/4641033>
              REGRESSION: Pasting from web pages into Mail (or Blot) often loses most of the content
      
              * editing/pasteboard/4641033-expected.checksum: Added.
              * editing/pasteboard/4641033-expected.png: Added.
              * editing/pasteboard/4641033-expected.txt: Added.
              * editing/pasteboard/4641033.html: Added.
      
      WebCore:
      
              Reviewed by john
              
              <rdar://problem/4641033>
              REGRESSION: Pasting from web pages into Mail (or Blot) often loses most of the content
              
              * editing/markup.cpp:
              (WebCore::createMarkup): We surround the currently accumulated markup with markup 
              for ancestors of the startNode when the pre-order traversal leaves the trees rooted 
              at those ancestors.  We assumed that any ancestors of the current node not in the 
              ancestorsToClose list were those kind of ancestors.  But we don't add renderer-less 
              containers to the ancestorsToClose list.  So, we were incorrectly surrounding the 
              currently accumulated markup with markup for render-less containers.  Most of the
              content at apple.com was being put inside an <optgroup> inside a <select> element.  
              Then on Paste createContextualFragment would drop it.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15556 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2b5ce097
  17. 19 Jul, 2006 2 commits
    • harrison's avatar
      LayoutTests: · 660dbaaa
      harrison authored
              <rdar://problem/4629307> -[DOMRange markupString] does not include the initial table element if it is at the beginning of the range
              <rdar://problem/4062218> pasting in contents of web.apple.com strips off the <table> element from the first table
      
              (this really only tests the symptoms of <rdar://problem/4062218>, because -[DOMRange markupString] is not testable)
              
              * editing/pasteboard/paste-table-003-expected.checksum: Added.
              * editing/pasteboard/paste-table-003-expected.png: Added.
              * editing/pasteboard/paste-table-003-expected.txt: Added.
              * editing/pasteboard/paste-table-003.html: Added.
      
      WebCore:
      
              Reviewed by Tim Hatcher.
      
              <rdar://problem/4629307> -[DOMRange markupString] does not include the initial table element if it is at the beginning of the range
              <rdar://problem/4062218> pasting in contents of web.apple.com strips off the <table> element from the first table
              
              Better patch than previous checkin.
      
              * test: editing/pasteboard/paste-table-003.html
              
              * editing/markup.cpp:
              (WebCore::createMarkup):
              Make sure to include the table when including a tbody.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15525 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      660dbaaa
    • harrison's avatar
      Reviewed by Tim Hatcher. · 325e742e
      harrison authored
              <rdar://problem/4629307> -[DOMRange markupString] does not include the initial table element if it is at the beginning of the range
      
              No test case as this can only be reproduced through ObjC APIs.
      
              * editing/markup.cpp:
              (WebCore::createMarkup):
              Adjust the range for ancestor markup handling when main loop skips first node.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15523 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      325e742e
  18. 09 Jul, 2006 2 commits
    • darin's avatar
      Reviewed by Tim Hatcher. · f4b05b29
      darin authored
              - put more into the WebCore namespace
              - removed unused code for plain text fields
      
              Put more classes, class templates, enums, functions, and constants into
              the WebCore namespace, including all the headers in the platform directory.
      
              Removed lots of unneeded "WebCore::" qualifiers and "using" directives.
      
              Added some "WebCore::" qualifiers in a few places.
      
              Removed "uses WebCore::" in headers that we said we'd remove "when
              everything is in the WebCore namespace".
      
              * bindings/js/JSDOMParser.cpp:
              * bindings/js/JSHTMLElementWrapperFactory.cpp:
              * bindings/js/JSXSLTProcessor.cpp:
              * bindings/js/kjs_binding.cpp:
              * bindings/js/kjs_css.cpp:
              * bindings/js/kjs_dom.cpp:
              * bindings/js/kjs_dom.h:
              * bindings/js/kjs_events.cpp:
              * bindings/js/kjs_proxy.h:
              * bindings/js/kjs_window.h:
              * bindings/objc/DOM.mm:
              * bridge/History.h:
              * bridge/JavaAppletWidget.h:
              * bridge/mac/FormDataMac.h:
              * bridge/mac/FormDataMac.mm:
              * bridge/mac/WebCoreAXObject.mm:
              * bridge/mac/WebCoreEncodings.mm:
              * bridge/mac/WebCoreFrameBridge.h:
              * bridge/mac/WebCoreIconDatabaseBridge.mm:
              * bridge/mac/WebCorePageState.h:
              * bridge/mac/WebCoreScriptDebugger.mm:
              * bridge/mac/WebCoreSettings.h:
              * css/CSSGrammar.y:
              * css/CSSPageRule.cpp:
              * css/CSSPageRule.h:
              * css/MediaList.cpp:
              * css/cssstyleselector.h:
              * dom/Clipboard.h:
              * dom/Document.cpp:
              * dom/Document.h:
              * dom/EventTargetNode.h:
              * dom/Node.cpp:
              * dom/Node.h:
              * dom/Position.h:
              * dom/Range.cpp:
              * dom/XMLTokenizer.cpp:
              * editing/AppendNodeCommand.h:
              * editing/ApplyStyleCommand.cpp:
              * editing/BreakBlockquoteCommand.cpp:
              * editing/BreakBlockquoteCommand.h:
              * editing/CompositeEditCommand.cpp:
              * editing/CompositeEditCommand.h:
              * editing/CreateLinkCommand.h:
              * editing/DeleteFromTextNodeCommand.h:
              * editing/DeleteSelectionCommand.h:
              * editing/FormatBlockCommand.h:
              * editing/HTMLInterchange.cpp:
              * editing/HTMLInterchange.h:
              * editing/IndentOutdentCommand.h:
              * editing/InsertIntoTextNodeCommand.h:
              * editing/InsertLineBreakCommand.h:
              * editing/InsertListCommand.h:
              * editing/InsertNodeBeforeCommand.h:
              * editing/InsertTextCommand.cpp:
              * editing/InsertTextCommand.h:
              * editing/JSEditor.cpp:
              * editing/JSEditor.h:
              * editing/JoinTextNodesCommand.h:
              * editing/MergeIdenticalElementsCommand.cpp:
              * editing/MergeIdenticalElementsCommand.h:
              * editing/ModifySelectionListLevel.h:
              * editing/MoveSelectionCommand.h:
              * editing/RebalanceWhitespaceCommand.h:
              * editing/RemoveNodeAttributeCommand.h:
              * editing/RemoveNodeCommand.h:
              * editing/RemoveNodePreservingChildrenCommand.h:
              * editing/ReplaceSelectionCommand.h:
              * editing/SetNodeAttributeCommand.h:
              * editing/SplitElementCommand.cpp:
              * editing/SplitElementCommand.h:
              * editing/SplitTextNodeCommand.cpp:
              * editing/SplitTextNodeCommand.h:
              * editing/SplitTextNodeContainingElementCommand.h:
              * editing/TypingCommand.cpp:
              * editing/TypingCommand.h:
              * editing/UnlinkCommand.h:
              * editing/VisiblePosition.cpp:
              * editing/WrapContentsInDummySpanCommand.cpp:
              * editing/WrapContentsInDummySpanCommand.h:
              * editing/markup.cpp:
              * editing/markup.h:
              * html/HTMLAnchorElement.cpp:
              * html/HTMLBodyElement.cpp:
              * html/HTMLButtonElement.h:
              * html/HTMLCollection.h:
              * html/HTMLDocument.h:
              * html/HTMLEmbedElement.cpp:
              * html/HTMLFormElement.cpp:
              * html/HTMLFormElement.h:
              * html/HTMLFrameElement.cpp:
              * html/HTMLFrameSetElement.cpp:
              * html/HTMLKeygenElement.cpp:
              * html/HTMLLabelElement.cpp:
              * html/HTMLObjectElement.cpp:
              * html/HTMLObjectElement.h:
              * html/HTMLTableElement.cpp:
              * html/HTMLTablePartElement.cpp:
              * icon/IconDatabase.h:
              * kcanvas/KCanvasPath.h:
              * kcanvas/KCanvasResources.cpp:
              * kcanvas/KCanvasResources.h:
              * kcanvas/KCanvasTreeDebug.cpp:
              * kcanvas/KCanvasTreeDebug.h:
              * kcanvas/RenderSVGContainer.cpp:
              * kcanvas/RenderSVGText.h:
              * kcanvas/device/KRenderingPaintServer.h:
              * kcanvas/device/KRenderingPaintServerGradient.h:
              * kcanvas/device/KRenderingPaintServerSolid.cpp:
              * ksvg2/misc/SVGImageLoader.cpp:
              * ksvg2/svg/SVGElement.cpp:
              * ksvg2/svg/SVGElement.h:
              * ksvg2/svg/SVGForeignObjectElement.cpp:
              * ksvg2/svg/SVGForeignObjectElement.h:
              * ksvg2/svg/SVGImageElement.cpp:
              * ksvg2/svg/SVGPoint.h:
              * ksvg2/svg/SVGStylable.h:
              * ksvg2/svg/SVGTRefElement.cpp:
              * ksvg2/svg/SVGTRefElement.h:
              * ksvg2/svg/SVGTSpanElement.cpp:
              * ksvg2/svg/SVGTSpanElement.h:
              * ksvg2/svg/SVGTextElement.h:
              * ksvg2/svg/svgpathparser.cpp:
              * ksvg2/svg/svgpathparser.h:
              * loader/Cache.h:
              * loader/DocLoader.h:
              * loader/LoaderFunctions.h:
              * loader/mac/LoaderFunctionsMac.mm:
              * page/Frame.h:
              * page/FrameView.h:
              * page/Page.h:
              * page/Settings.h:
              * platform/AffineTransform.cpp:
              * platform/AffineTransform.h:
              * platform/Arena.cpp:
              * platform/Arena.h:
              * platform/CookieJar.h:
              * platform/DeprecatedCString.cpp:
              * platform/DeprecatedCString.h:
              * platform/DeprecatedPtrList.h:
              * platform/DeprecatedPtrListImpl.cpp:
              * platform/DeprecatedPtrListImpl.h:
              * platform/DeprecatedPtrQueue.h:
              * platform/DeprecatedString.cpp:
              * platform/DeprecatedString.h:
              * platform/DeprecatedStringList.cpp:
              * platform/DeprecatedStringList.h:
              * platform/DeprecatedValueList.h:
              * platform/DeprecatedValueListImpl.cpp:
              * platform/DeprecatedValueListImpl.h:
              * platform/FileButton.h:
              * platform/FloatPoint.h:
              * platform/FloatRect.h:
              * platform/FloatSize.h:
              * platform/FontData.h:
              * platform/FontFallbackList.h:
              * platform/GraphicsContext.h:
              * platform/IntPoint.h:
              * platform/IntRect.h:
              * platform/IntSize.h:
              * platform/KURL.cpp:
              * platform/KURL.h:
              * platform/ListBox.h:
              * platform/Logging.cpp:
              * platform/Logging.h:
              * platform/Pen.h:
              * platform/PopUpButton.h:
              * platform/RegularExpression.cpp:
              * platform/RegularExpression.h:
              * platform/SSLKeyGenerator.h:
              * platform/ScrollBar.h:
              * platform/SegmentedString.h:
              * platform/Shared.h:
              * platform/Slider.h:
              * platform/StringImpl.h:
              * platform/TextBox.h:
              * platform/TextField.h:
              * platform/TextStream.cpp:
              * platform/TextStream.h:
              * platform/TransferJob.h:
              * platform/TransferJobClient.h:
              * platform/Widget.h:
              * platform/cg/AffineTransformCG.cpp:
              * platform/mac/ClipboardMac.h:
              * platform/mac/ClipboardMac.mm:
              * platform/mac/DeprecatedStringListMac.mm:
              * platform/mac/FontCacheMac.mm:
              * platform/mac/KURLMac.mm:
              * platform/mac/ListBoxMac.mm:
              * platform/mac/PopUpButtonMac.mm:
              * platform/mac/SSLKeyGeneratorMac.mm:
              * platform/mac/TextBoxMac.mm:
              * platform/mac/TextFieldMac.mm:
              * platform/mac/WebCoreTextArea.h:
              * platform/mac/WebCoreTextArea.mm:
              * platform/mac/WebCoreTextField.h:
              * platform/mac/WebCoreTextField.mm:
              * rendering/DeprecatedRenderSelect.h:
              * rendering/RenderArena.cpp:
              * rendering/RenderArena.h:
              * rendering/RenderBlock.cpp:
              * rendering/RenderBox.cpp:
              * rendering/RenderContainer.cpp:
              * rendering/RenderFlexibleBox.cpp:
              * rendering/RenderFlow.cpp:
              * rendering/RenderLayer.cpp:
              * rendering/RenderLineEdit.cpp:
              * rendering/RenderObject.h:
              * rendering/RenderStyle.cpp:
              * rendering/RenderStyle.h:
              * rendering/RenderText.cpp:
              * rendering/RenderTextFragment.cpp:
              * rendering/RenderTheme.h:
              * rendering/RenderTreeAsText.cpp:
              * rendering/RenderTreeAsText.h:
              * rendering/RenderView.h:
              * rendering/bidi.h:
              * xml/XSLStyleSheet.cpp:
              * xml/XSLTProcessor.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15286 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f4b05b29
    • darin's avatar
      Rubber stamped by Maciej (kinda). · b53ebdcb
      darin authored
              - did the next pass of renaming (used do-webcore-rename script)
                this takes care of most of the remaining KWQ names (almost all)
      
              * WebCore+SVG/DOMList.h:
              * WebCore.vcproj/WebCore/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              * bindings/js/kjs_dom.cpp:
              * bindings/js/kjs_window.cpp:
              * bindings/objc/DOMHTML.mm:
              * bridge/mac/FrameMac.h:
              * bridge/mac/FrameMac.mm:
              * bridge/mac/WebCoreFrameBridge.mm:
              * bridge/mac/WebCoreSettings.h:
              * bridge/mac/WebCoreSettings.mm:
              * bridge/win/FrameWin.cpp:
              * css/CSSPrimitiveValue.cpp:
              * css/CSSValueKeywords.in:
              * css/MediaQueryEvaluator.cpp:
              * css/cssparser.cpp:
              * css/cssstyleselector.cpp:
              * css/cssstyleselector.h:
              * dom/CharacterData.cpp:
              * dom/CharacterData.h:
              * dom/Document.cpp:
              * dom/Element.cpp:
              * dom/Element.h:
              * dom/EventTargetNode.cpp:
              * dom/EventTargetNode.h:
              * dom/Node.cpp:
              * dom/Node.h:
              * dom/Position.cpp:
              * dom/ProcessingInstruction.cpp:
              * dom/QualifiedName.cpp:
              * dom/QualifiedName.h:
              * dom/XMLTokenizer.cpp: Added.
              * dom/xml_tokenizer.cpp: Removed.
              * dom/xml_tokenizer.h: Removed.
              * editing/EditAction.h:
              * editing/HTMLInterchange.cpp:
              * editing/HTMLInterchange.h:
              * editing/Selection.h:
              * editing/SelectionController.h:
              * editing/TextAffinity.h:
              * editing/TextIterator.cpp:
              * editing/TextIterator.h:
              * editing/VisiblePosition.h:
              * editing/htmlediting.cpp:
              * editing/markup.cpp:
              * editing/markup.h:
              * editing/visible_units.cpp:
              * editing/visible_units.h:
              * html/HTMLDocument.cpp:
              * html/HTMLFontElement.cpp:
              * html/HTMLInputElement.cpp:
              * html/HTMLKeygenElement.cpp:
              * html/HTMLSelectElement.h:
              * html/HTMLTextAreaElement.cpp:
              * html/HTMLTextFieldInnerElement.cpp:
              * html/HTMLTokenizer.cpp:
              * html/HTMLTokenizer.h:
              * kcanvas/KCanvasContainer.cpp: Removed.
              * kcanvas/KCanvasContainer.h: Removed.
              * kcanvas/KCanvasCreator.cpp:
              * kcanvas/KCanvasFilters.cpp:
              * kcanvas/KCanvasFilters.h:
              * kcanvas/KCanvasMatrix.cpp:
              * kcanvas/KCanvasMatrix.h:
              * kcanvas/KCanvasPath.cpp:
              * kcanvas/KCanvasPath.h:
              * kcanvas/KCanvasResources.cpp:
              * kcanvas/KCanvasResources.h:
              * kcanvas/KCanvasTreeDebug.cpp:
              * kcanvas/KCanvasTreeDebug.h:
              * kcanvas/RenderForeignObject.cpp:
              * kcanvas/RenderForeignObject.h:
              * kcanvas/RenderPath.cpp:
              * kcanvas/RenderPath.h:
              * kcanvas/RenderSVGContainer.cpp: Added.
              * kcanvas/RenderSVGContainer.h: Added.
              * kcanvas/RenderSVGImage.cpp:
              * kcanvas/RenderSVGImage.h:
              * kcanvas/RenderSVGText.cpp:
              * kcanvas/RenderSVGText.h:
              * kcanvas/device/KRenderingPaintServer.h:
              * kcanvas/device/KRenderingPaintServerGradient.cpp:
              * kcanvas/device/KRenderingPaintServerGradient.h:
              * kcanvas/device/KRenderingPaintServerPattern.cpp:
              * kcanvas/device/KRenderingPaintServerPattern.h:
              * kcanvas/device/KRenderingPaintServerSolid.cpp:
              * kcanvas/device/KRenderingPaintServerSolid.h:
              * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
              * kcanvas/device/quartz/KCanvasItemQuartz.h:
              * kcanvas/device/quartz/KCanvasResourcesQuartz.h:
              * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
              * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
              * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
              * ksvg2/css/CSSValueKeywords.in:
              * ksvg2/css/SVGRenderStyleDefs.cpp:
              * ksvg2/misc/KCanvasRenderingStyle.cpp:
              * ksvg2/misc/KSVGTimeScheduler.cpp:
              * ksvg2/svg/SVGAElement.cpp:
              * ksvg2/svg/SVGAnimateTransformElement.cpp:
              * ksvg2/svg/SVGAnimateTransformElement.h:
              * ksvg2/svg/SVGGElement.cpp:
              * ksvg2/svg/SVGHelper.cpp:
              * ksvg2/svg/SVGHelper.h:
              * ksvg2/svg/SVGImageElement.cpp:
              * ksvg2/svg/SVGLinearGradientElement.cpp:
              * ksvg2/svg/SVGMarkerElement.cpp:
              * ksvg2/svg/SVGMaskElement.cpp:
              * ksvg2/svg/SVGMatrix.cpp:
              * ksvg2/svg/SVGMatrix.h:
              * ksvg2/svg/SVGPatternElement.cpp:
              * ksvg2/svg/SVGRadialGradientElement.cpp:
              * ksvg2/svg/SVGSVGElement.cpp:
              * ksvg2/svg/SVGStyledElement.h:
              * ksvg2/svg/SVGStyledTransformableElement.cpp:
              * ksvg2/svg/SVGStyledTransformableElement.h:
              * ksvg2/svg/SVGSwitchElement.cpp:
              * ksvg2/svg/SVGTextElement.cpp:
              * ksvg2/svg/SVGTransformable.h:
              * ksvg2/svg/SVGUseElement.cpp:
              * kwq/AffineTransform.cpp: Added.
              * kwq/AffineTransform.h: Added.
              * kwq/DeprecatedCString.cpp: Added.
              * kwq/DeprecatedCString.h: Added.
              * kwq/DeprecatedPtrQueue.h: Added.
              * kwq/FileButton.h: Added.
              * kwq/FileButton.mm: Added.
              * kwq/FormDataMac.mm: Added.
              * kwq/KWQCString.cpp: Removed.
              * kwq/KWQCString.h: Removed.
              * kwq/KWQComboBox.h: Removed.
              * kwq/KWQComboBox.mm: Removed.
              * kwq/KWQEditCommand.h: Removed.
              * kwq/KWQEditCommand.mm: Removed.
              * kwq/KWQFileButton.h: Removed.
              * kwq/KWQFileButton.mm: Removed.
              * kwq/KWQFormData.h: Removed.
              * kwq/KWQFormData.mm: Removed.
              * kwq/KWQKHTMLSettings.h: Removed.
              * kwq/KWQKIOGlobal.h: Removed.
              * kwq/KWQKSSLKeyGen.h: Removed.
              * kwq/KWQKSSLKeyGen.mm: Removed.
              * kwq/KWQLineEdit.h: Removed.
              * kwq/KWQLineEdit.mm: Removed.
              * kwq/KWQListBox.h: Removed.
              * kwq/KWQListBox.mm: Removed.
              * kwq/KWQLoader.h: Removed.
              * kwq/KWQLoader.mm: Removed.
              * kwq/KWQPageState.h: Removed.
              * kwq/KWQPageState.mm: Removed.
              * kwq/KWQPtrQueue.h: Removed.
              * kwq/KWQResourceLoader.h: Removed.
              * kwq/KWQResourceLoader.mm: Removed.
              * kwq/KWQScrollBar.h: Removed.
              * kwq/KWQScrollBar.mm: Removed.
              * kwq/KWQSlider.h: Removed.
              * kwq/KWQSlider.mm: Removed.
              * kwq/KWQTextEdit.h: Removed.
              * kwq/KWQTextEdit.mm: Removed.
              * kwq/KWQTextStream.cpp: Removed.
              * kwq/KWQTextStream.h: Removed.
              * kwq/KWQWMatrix.cpp: Removed.
              * kwq/KWQWMatrix.h: Removed.
              * kwq/ListBox.h: Added.
              * kwq/ListBox.mm: Added.
              * kwq/LoaderFunctions.h: Added.
              * kwq/LoaderFunctions.mm: Added.
              * kwq/PopUpButton.h: Added.
              * kwq/PopUpButton.mm: Added.
              * kwq/SSLKeyGenerator.h: Added.
              * kwq/SSLKeyGenerator.mm: Added.
              * kwq/Settings.h: Added.
              * kwq/TextBox.h: Added.
              * kwq/TextBox.mm: Added.
              * kwq/TextField.h: Added.
              * kwq/TextField.mm: Added.
              * kwq/TextStream.cpp: Added.
              * kwq/TextStream.h: Added.
              * kwq/WebCoreEditCommand.h: Added.
              * kwq/WebCoreEditCommand.mm: Added.
              * kwq/WebCorePageState.h: Added.
              * kwq/WebCorePageState.mm: Added.
              * kwq/WebCoreResourceLoaderImp.h: Added.
              * kwq/WebCoreResourceLoaderImp.mm: Added.
              * kwq/WebCoreScrollBar.h: Added.
              * kwq/WebCoreScrollBar.mm: Added.
              * kwq/WebCoreSlider.h: Added.
              * kwq/WebCoreSlider.mm: Added.
              * loader/Cache.h:
              * loader/CachedCSSStyleSheet.cpp:
              * loader/CachedImage.cpp:
              * loader/CachedObject.h:
              * loader/CachedObjectClientWalker.h:
              * loader/CachedResource.h:
              * loader/CachedResourceClientWalker.h:
              * loader/CachedScript.h:
              * loader/CachedXBLDocument.h:
              * loader/Decoder.h:
              * loader/DocLoader.cpp:
              * loader/DocLoader.h:
              * loader/FormData.h:
              * loader/ImageDocument.cpp:
              * loader/PluginDocument.cpp:
              * loader/TextDocument.cpp:
              * loader/loader.cpp:
              * loader/loader.h:
              * page/Frame.cpp:
              * page/Frame.h:
              * page/FramePrivate.h:
              * page/Page.cpp:
              * page/Page.h:
              * platform/DeprecatedPtrList.h:
              * platform/DeprecatedPtrListImpl.cpp:
              * platform/DeprecatedPtrListImpl.h:
              * platform/DeprecatedString.cpp:
              * platform/DeprecatedString.h:
              * platform/DeprecatedStringList.cpp:
              * platform/DeprecatedStringList.h:
              * platform/DeprecatedValueList.h:
              * platform/DeprecatedValueListImpl.cpp:
              * platform/DeprecatedValueListImpl.h:
              * platform/FloatSize.h:
              * platform/Font.cpp:
              * platform/KURL.cpp:
              * platform/RegularExpression.cpp:
              * platform/RegularExpression.h:
              * platform/SegmentedString.h:
              * platform/StreamingTextDecoder.cpp:
              * platform/String.cpp:
              * platform/StringImpl.cpp:
              * platform/TextEncoding.cpp:
              * platform/TransferJob.cpp:
              * platform/TransferJob.h:
              * platform/TransferJobInternal.h:
              * platform/gdk/FrameGdk.cpp:
              * platform/gdk/TemporaryLinkStubs.cpp:
              * platform/mac/ClipboardMac.h:
              * platform/mac/ClipboardMac.mm:
              * platform/mac/CursorMac.mm:
              * platform/mac/DeprecatedStringMac.mm: Added.
              * platform/mac/FontCacheMac.mm:
              * platform/mac/FontMac.mm:
              * platform/mac/FoundationExtras.h:
              * platform/mac/ImageMac.mm:
              * platform/mac/KURLMac.mm:
              * platform/mac/MouseEventMac.mm: Removed.
              * platform/mac/QStringListMac.mm: Removed.
              * platform/mac/QStringMac.mm: Removed.
              * platform/mac/TransferJobMac.mm:
              * platform/mac/WebCoreTextArea.h:
              * platform/mac/WebCoreTextArea.mm:
              * platform/mac/WebCoreTextField.h:
              * platform/mac/WebCoreTextField.mm:
              * platform/mac/WidgetMac.mm:
              * platform/win/TemporaryLinkStubs.cpp:
              * rendering/DataRef.h:
              * rendering/DeprecatedRenderSelect.cpp:
              * rendering/DeprecatedRenderSelect.h:
              * rendering/DeprecatedSlider.cpp:
              * rendering/InlineFlowBox.cpp:
              * rendering/RenderApplet.cpp:
              * rendering/RenderBlock.cpp:
              * rendering/RenderBlock.h:
              * rendering/RenderContainer.cpp:
              * rendering/RenderFileButton.cpp:
              * rendering/RenderFlexibleBox.cpp:
              * rendering/RenderFlow.cpp:
              * rendering/RenderFormElement.cpp:
              * rendering/RenderFrameSet.cpp:
              * rendering/RenderFrameSet.h:
              * rendering/RenderImage.cpp:
              * rendering/RenderInline.cpp:
              * rendering/RenderLayer.cpp:
              * rendering/RenderLayer.h:
              * rendering/RenderLineEdit.cpp:
              * rendering/RenderListItem.cpp:
              * rendering/RenderListMarker.cpp:
              * rendering/RenderObject.cpp:
              * rendering/RenderObject.h:
              * rendering/RenderPartObject.cpp:
              * rendering/RenderReplaced.cpp:
              * rendering/RenderStyle.cpp: Added.
              * rendering/RenderStyle.h: Added.
              * rendering/RenderTable.cpp:
              * rendering/RenderTable.h:
              * rendering/RenderTableCell.cpp:
              * rendering/RenderTableCell.h:
              * rendering/RenderTableCol.cpp:
              * rendering/RenderTableCol.h:
              * rendering/RenderTableRow.cpp:
              * rendering/RenderTableSection.cpp:
              * rendering/RenderTableSection.h:
              * rendering/RenderText.cpp:
              * rendering/RenderText.h:
              * rendering/RenderTextArea.cpp:
              * rendering/RenderTextControl.cpp: Added.
              * rendering/RenderTextControl.h: Added.
              * rendering/RenderTextField.cpp: Removed.
              * rendering/RenderTextField.h: Removed.
              * rendering/RenderTheme.cpp:
              * rendering/RenderThemeMac.mm:
              * rendering/RenderTreeAsText.cpp:
              * rendering/RenderTreeAsText.h:
              * rendering/RenderView.cpp:
              * rendering/RenderWidget.cpp:
              * rendering/bidi.cpp:
              * rendering/render_style.cpp: Removed.
              * rendering/render_style.h: Removed.
              * xml/XSLStyleSheet.cpp:
              * xml/XSLTProcessor.cpp:
              * xml/xmlhttprequest.cpp:
              * xpath/impl/XPathParser.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15253 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b53ebdcb
  19. 06 Jul, 2006 1 commit
    • harrison's avatar
      LayoutTests: · 31177985
      harrison authored
              Reviewed by Geoff.
      
              <rdar://problem/4565031> innerHTML of XMP tag returns special characters like '&gt;' instead of '>'
      
              * fast/innerHTML/006-expected.checksum: Added.
              * fast/innerHTML/006-expected.png: Added.
              * fast/innerHTML/006-expected.txt: Added.
              * fast/innerHTML/006.html: Added.
      
      WebCore:
      
              Reviewed by Geoff
      
              <rdar://problem/4565031> innerHTML of XMP tag returns special characters like '&gt;' instead of '>'
       
              Test: fast/innerHTML/006.html
             
              * editing/markup.cpp:
              (WebCore::startMarkup):
              (WebCore::createMarkup):
              Do not special quote content of XMP nodes.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15185 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      31177985
  20. 14 Jun, 2006 1 commit
    • justing's avatar
      LayoutTests: · d4b8c320
      justing authored
              Reviewed by levi
              
              <rdar://problem/4439248>
              REGRESSION(412-417): [RTL] Serious problem with RTL signatures in Mail.app in 10.4.4 (7766)
      
              * editing/pasteboard/copy-paste-bidi-expected.checksum: Added.
              * editing/pasteboard/copy-paste-bidi-expected.png: Added.
              * editing/pasteboard/copy-paste-bidi-expected.txt: Added.
              * editing/pasteboard/copy-paste-bidi.html: Added.
      
      WebCore:
      
              Reviewed by levi
      
              <rdar://problem/4439248>
              REGRESSION(412-417): [RTL] Serious problem with RTL signatures in Mail.app in 10.4.4 (7766)
      
              * editing/markup.cpp:
              (WebCore::renderedText): Use plainText so that we'll pull rendered text but in DOM order.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14870 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d4b8c320
  21. 02 Jun, 2006 1 commit
    • darin's avatar
      Reviewed by Geoff, tweaked a bit by Darin. · b4483824
      darin authored
              - http://bugzilla.opendarwin.org/show_bug.cgi?id=9064
                Split dom2_traversalimpl.* into separate files (one class per file).
      
              * WebCore.xcodeproj/project.pbxproj: Updated for new files.
              * WebCore.vcproj/WebCore/WebCore.vcproj: Ditto.
      
              * bindings/js/kjs_traversal.h:
              * bindings/scripts/CodeGeneratorJS.pm:
              * bindings/objc/DOM.mm:
              * dom/Document.cpp:
              * dom/Document.h:
              Updated includes.
      
              * dom/NodeFilter.cpp: Added.
              * dom/NodeFilter.h: Added.
              * dom/NodeFilterCondition.cpp: Added.
              * dom/NodeFilterCondition.h: Added.
              * dom/NodeIterator.cpp: Added.
              * dom/NodeIterator.h: Added.
              * dom/Traversal.cpp: Added.
              * dom/Traversal.h: Added.
              * dom/TreeWalker.cpp: Added.
              * dom/TreeWalker.h: Added.
      
              * dom/dom2_traversalimpl.cpp: Removed.
              * dom/dom2_traversalimpl.h: Removed.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14680 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b4483824
  22. 23 May, 2006 1 commit
    • lweintraub's avatar
      Reviewed by Hyatt. · e6495ca3
      lweintraub authored
              Cleaned up changes to markup by adding the non-virtual
              nodeNamePreservingCase accessor function.
      
              * dom/Element.cpp:
              (WebCore::Element::nodeNamePreservingCase):
              * dom/Element.h:
              * editing/markup.cpp:
              (WebCore::startMarkup):
              (WebCore::endMarkup):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14537 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e6495ca3
  23. 22 May, 2006 1 commit
    • lweintraub's avatar
      LayoutTests: · 568a86c1
      lweintraub authored
              Reviewed by eric.
              
              - http://bugzilla.opendarwin.org/show_bug.cgi?id=8393
                <br>s created by createMarkup aren't valid xhtml
                Changes in case from innerHTML
      
              * editing/execCommand/createLink-expected.txt:
              * editing/execCommand/unlink-expected.txt:
              * editing/input/attributed-substring-from-range-lines-expected.txt:
              * fast/dom/Range/range-exceptions-expected.txt:
              * fast/dom/Range/resources/range-exceptions.js:
              * fast/innerHTML/005-expected.txt:
              * fast/innerHTML/innerHTML-custom-tag-expected.txt:
              * fast/innerHTML/innerHTML-cast.html: Added.
              * fast/innerHTML/innerHTML-cast-expected.txt: Added.
              * fast/xsl/xslt-processer-expected.txt:
      
      WebCore:
      
              Reviewed by Eric.
              
              - Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=8393
                <br>s created by createMarkup aren't valid xhtml
                Fixed uppered output from innerHTML
      
              * editing/markup.cpp:
              (WebCore::startMarkup):
              (WebCore::endMarkup):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14516 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      568a86c1
  24. 15 May, 2006 1 commit
    • eseidel's avatar
      2006-05-15 Eric Seidel <eseidel@apple.com> · 6e4fe45c
      eseidel authored
              Reviewed by ggaren.
      
              Split dom_xmlimpl.* into separate files (one per class).
      
              * WebCore.xcodeproj/project.pbxproj:
              * dom/Entity.cpp: Added.
              (WebCore::Entity::Entity):
              * dom/Entity.h: Added.
              * dom/EntityReference.cpp: Added.
              (WebCore::EntityReference::EntityReference):
              * dom/EntityReference.h: Added.
              * dom/Notation.cpp: Added.
              (WebCore::Notation::Notation):
              * dom/Notation.h: Added.
              * dom/ProcessingInstruction.cpp: Added.
              (WebCore::ProcessingInstruction::ProcessingInstruction):
              * dom/ProcessingInstruction.h: Added.
              * dom/dom_xmlimpl.cpp: Removed.
              * dom/dom_xmlimpl.h: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14395 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6e4fe45c
  25. 09 May, 2006 1 commit
    • darin's avatar
      LayoutTests: · 7ab3109f
      darin authored
              - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=6310
                text-transform: uppercase/lowercase don't handle cases one character becomes two
      
              * fast/css/case-transform.html: Added.
              * fast/css/case-transform-expected.txt: Added.
      
      WebCore:
      
              Rubber stamped by Hyatt.
      
              - http://bugzilla.opendarwin.org/show_bug.cgi?id=8782
                use ICU and UChar more, QChar less
      
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=6310
                text-transform: uppercase/lowercase don't handle cases one character becomes two
      
              Test: fast/css/case-transform.html
      
              By using ICU more, this fixes some bugs in a few places.
      
              * bindings/js/JSXMLSerializer.cpp:
              * css/css_valueimpl.h:
              * kwq/KWQTextStream.cpp:
              * loader/CachedObject.h:
              * platform/Color.cpp:
              Add includes of DeprecatedString.h as needed, now that StringImpl.h no longer
              includes it.
      
              * bindings/js/kjs_css.cpp: (KJS::cssPropertyName):
              Eliminate use of QChar::latin1() in a case where it's not helpful.
      
              * bindings/js/kjs_proxy.cpp: (WebCore::KJSProxy::evaluate):
              Use characters() function instead of the old unicode() function.
      
              * bindings/js/kjs_window.cpp: (KJS::isSeparator):
              Use UChar instead of QChar.
      
              * bindings/objc/DOMInternal.mm:
              (StringImpl::operator NSString*): Remove typecast that's no longer needed.
              (String::String): Ditto. Also use Vector for local buffer to make code read simpler.
      
              * bridge/mac/FrameMac.mm:
              (WebCore::selectorForKeyEvent): Remove call to unicode() function, no longer needed.
              (WebCore::FrameMac::setTitle): Remove QChar cast, no longer needed.
              (WebCore::FrameMac::setStatusBarText): Ditto.
              (WebCore::FrameMac::advanceToNextMisspelling): Use UChar instead of QChar.
              (WebCore::FrameMac::runJavaScriptAlert): Remove QChar cast, no longer needed.
              (WebCore::FrameMac::runJavaScriptConfirm): Ditto.
              (WebCore::FrameMac::runJavaScriptPrompt): Ditto.
              (WebCore::FrameMac::attributedString): Replaces calls of QChar::direction() with
              calls to u_charDirection and use ICU constants instead of QChar ones.
              (WebCore::FrameMac::markMisspellings): Remove QChar cast, no longer needed. Added a
              QChar cast so we can call isSpace -- slated to be removed later.
              (WebCore::FrameMac::shouldClose): Remove QChar cast, no longer needed.
      
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge selectedString]): Remove QChar cast, no longer needed.
              (-[WebCoreFrameBridge stringForRange:]): Ditto.
      
              * css/CSSGrammar.y: Update for field name change from string to characters.
              Use UChar instead of unsigned short. 
      
              * css/css_valueimpl.cpp:
              (WebCore::propertyID): Use UChar instead of unsigned short and get rid of call to
              unicode() function, no longer needed.
              (WebCore::quoteStringIfNeeded): Use strings when building up a resulting string,
              instead of depending on the feature where you can append characters to a string.
      
              * css/csshelper.cpp: (WebCore::parseURL): Remove calls to unicode() function and
              rewrite to obviate the need to call lower() just to check for a few constant
              character values. Also remove a now-unneeded type cast.
      
              * css/cssparser.h: Changed ParseString field to use UChar and to be named characters
              instead of string. Changed many other fields to be UChar instead of unsigned short.
              (WebCore::domString): Update for that.
              (WebCore::atomicString): Ditto.
              * css/cssparser.cpp:
              (WebCore::ParseString::lower): Use u_tolower instead of QChar::lower(). Also change
              name to characters from string.
              (WebCore::CSSParser::setupParser): Use UChar instead of unsigned short.
              (WebCore::CSSParser::lex): Ditto. Also update for characters name change.
              (WebCore::CSSParser::text): Use UChar instead of unsigned short. Also tweak some
              of the code a little bit to handle a couple of overflow cases better and reduce
              type casting.
              (WebCore::deprecatedString): Moved here so we don't have to include DeprecatedString.h
              in the header file.
      
              * css/cssstyleselector.cpp: (WebCore::checkPseudoState): Added a type cast since this
              code now bridges the world between modern code and QChar/DeprecatedString.
      
              * dom/CharacterData.cpp: (WebCore::CharacterData::CharacterData): Changed QChar to UChar.
      
              * dom/Document.h:
              * dom/Document.cpp:
              (WebCore::Document::isValidName): Updated for name change from unicode to characters.
              (WebCore::Document::parseQualifiedName): Ditto.
              (WebCore::Document::backslashAsCurrencySymbol): Changed return type to UChar.
      
              * dom/NamedMappedAttrMap.cpp:
              (WebCore::isClassWhitespace): Changed parameter to UChar from QChar.
              (WebCore::NamedMappedAttrMap::parseClassAttribute): Changed from UChar to QChar and
              from unicode to characters.
      
              * dom/Position.cpp:
              (WebCore::Position::leadingWhitespacePosition): Changed from QChar to UChar.
              (WebCore::Position::trailingWhitespacePosition): Ditto.
      
              * dom/StyledElement.cpp:
              (WebCore::isClassWhitespace): Changed from QChar to UChar.
              (WebCore::StyledElement::addCSSLength): Changed from QChar to UChar, and remove one
              case where latin1() was used and was not helpful.
              (WebCore::StyledElement::addCSSColor): Removed unicode() function call, no longer needed.
      
              * dom/dom2_eventsimpl.cpp: (WebCore::KeyboardEvent::charCode):
              * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::constrainValue):
              Removed unicode() function call, no longer needed.
      
              * dom/xml_tokenizer.h: Removed default parameter for xmlDocPtrForString so we don't have
              to include the DeprecatedString.h header in this file (and since no one uses it).
      
              * editing/HTMLInterchange.cpp: (convertHTMLTextToInterchangeFormat): Added a couple calls
              to the unicode() function to bridge the gap from QChar/DeprecatedString back to modern
              code.
      
              * editing/InsertTextCommand.cpp: Removed unused function.
      
              * editing/TextIterator.h: Changed from QChar to UChar.
              * editing/TextIterator.cpp:
              (WebCore::TextIterator::TextIterator): Initialize m_lastCharacter since it's now a UChar
              (which is just a typedef) rather than a QChar (which was a class with a default value of 0).
              (WebCore::TextIterator::handleTextNode): Updated to use characters() instead of unicode().
              (WebCore::TextIterator::handleTextBox): Removed unicode() call since it's now a UChar instead
              of a QChar.
              (WebCore::TextIterator::emitCharacter): More of the same.
              (WebCore::SimplifiedBackwardsTextIterator::handleTextNode): Ditto.
              (WebCore::SimplifiedBackwardsTextIterator::emitCharacter): Ditto.
              (WebCore::CharacterIterator::string): Ditto.
              (WebCore::WordAwareIterator::advance): Ditto.
              (WebCore::WordAwareIterator::length): Ditto.
              (WebCore::WordAwareIterator::characters): Ditto.
              (WebCore::CircularSearchBuffer::CircularSearchBuffer): Changed to use UChar
              instead of QChar, but also to use foldCase() instead of lower(), because
              we want case folding here, not lowercasing.
              (WebCore::CircularSearchBuffer::append): Ditto, with u_foldCase.
              (WebCore::CircularSearchBuffer::isMatch): Ditto.
              (WebCore::plainText): Added type cast since this bridges the gap from the modern stuff
              to QChar/DeprecatedString.
      
              * editing/VisiblePosition.h: Changed from QChar to UChar.
              * editing/VisiblePosition.cpp: (WebCore::VisiblePosition::characterAfter): Ditto.
      
              * editing/markup.cpp: (WebCore::escapeTextForMarkup): Changed code that used latin1()
              for no good reason to use unicode() instead.
       
              * html/HTMLTokenizer.h: Changed from QChar to UChar.
              * html/HTMLTokenizer.cpp: Changed from QChar to UChar, including removing the
              KHTML_ALLOC_QCHAR_VEC and KHTML_DELETE_QCHAR_VEC macros, which weren't being
              used consistently anyway.
              (WebCore::fixUpChar): More of the same.
              (WebCore::tagMatch): Ditto.
              (WebCore::HTMLTokenizer::reset): Ditto.
              (WebCore::HTMLTokenizer::begin): Ditto. Also corrected anomaly where buffer
              size was not the same as the size value -- this was only true in the initial
              allocation, so I believe there was no value in it.
              (WebCore::HTMLTokenizer::parseSpecial): Ditto. Also removed a use of latin1()
              that was unnnecessary extra work.
              (WebCore::HTMLTokenizer::scriptHandler): More of the same.
              (WebCore::HTMLTokenizer::parseComment): Ditto.
              (WebCore::HTMLTokenizer::parseServer): Ditto.
              (WebCore::HTMLTokenizer::parseProcessingInstruction): Ditto. Another unnecessary
              use of latin1() removed.
              (WebCore::HTMLTokenizer::parseText): Ditto.
              (WebCore::HTMLTokenizer::parseEntity): Ditto. Changed hex-parsing code to handle
              uppercase hex a more-efficient way than calling QChar::lower() on each character.
              Also changed surrogate code logic to fix a couple things -- reject character codes
              > 0x10FFFF as it should and use U16_LEAD and U16_TRAIL instead of writing our
              own versions of these.
              (WebCore::HTMLTokenizer::parseTag): Ditto.
              (WebCore::HTMLTokenizer::write): Ditto.
              (WebCore::HTMLTokenizer::end): Ditto.
              (WebCore::HTMLTokenizer::finish): Ditto.
              (WebCore::HTMLTokenizer::enlargeBuffer): Ditto.
              (WebCore::HTMLTokenizer::enlargeScriptBuffer): Ditto.
              (WebCore::HTMLTokenizer::notifyFinished):
              (WebCore::decodeNamedEntity): Ditto.
      
              * html/html_inlineimpl.cpp: (WebCore::parseFontSizeNumber): Changed from QChar
              to UChar, including using u_isdigit and u_charDigitValue instead of QChar::isNumber
              and QChar::digitValue. Also removed unneeded range checking that's already done
              by WebCore::String.
      
              * kwq/KWQLoader.mm: (KWQIsResponseURLEqualToURL): Rewrote to use Vector and UChar,
              removing all the type casts and making the whole function much shorter.
      
              * kwq/WebCoreAXObject.mm:
              (AXAttributedStringAppendText): Use UChar instead of QChar.
              (-[WebCoreAXObject doAXAttributedStringForTextMarkerRange:]): More of the same.
      
              * loader/Cache.h: Remove unnecessary default parameters, preventing the need to
              include the DeprecatedString.h header in this header. Cleaned up the header
              structure a bit, removing some obsolete and redundant comments and fixing typos.
              * loader/Cache.cpp: Removed unused preload functions.
      
              * page/Frame.h:
              * page/Frame.cpp:
              (WebCore::UserStyleSheetLoader::UserStyleSheetLoader): Added explicit arguments.
              This was the only caller anywhere that took advantage of the default parameter
              values in one of the Cache class request functions.
              (WebCore::Frame::backslashAsCurrencySymbol): Changed QChar to UChar.
      
              * platform/AtomicString.h: Changed QChar to UChar. Removed constructor that makes
              an AtomicString from a single character. Renamed unicode() function to characters().
              Renamed KHTML_ATOMICSTRING_HIDE_GLOBALS to ATOMICSTRING_HIDE_GLOBALS.
              * platform/AtomicString.cpp:
              (WebCore::CStringTranslator::equal): Changed QChar to UChar.
              (WebCore::operator==): Changed unicode() to characters().
              (WebCore::UCharBufferTranslator::hash): More of the same.
              (WebCore::UCharBufferTranslator::equal): Ditto.
              (WebCore::UCharBufferTranslator::translate): Ditto.
              (WebCore::AtomicString::add): Ditto.
              (WebCore::AtomicString::operator Identifier): Ditto.
              (WebCore::AtomicString::operator UString): Ditto.
              (WebCore::AtomicString::AtomicString): Moved here so we don't need DeprecatedString.h
              in the header.
              (WebCore::AtomicString::deprecatedString): Ditto.
      
              * platform/DeprecatedString.h: Removed QChar::Direction enum and all the DirXXX values,
              isDigit, isLetter, isNumber, isLetterOrNumber, isPunct, digitValue, and direction functions.
              (QChar::isSpace): Changed to use u_charDirection instead of QChar::direction.
      
              * platform/Font.h: (WebCore::Font::width): Changed QChar to UChar.
              * platform/Font.cpp: (WebCore::Font::width): Ditto.
      
              * platform/GraphicsContext.h:
              * platform/GraphicsContext.cpp:
              (WebCore::GraphicsContext::drawText): Changed QChar to UChar. Removed horizontalAlignment
              parameter from simplified string drawing entry point, since it's not used.
              (WebCore::GraphicsContext::drawHighlightForText): Changed QChar to UChar.
      
              * platform/PlatformString.h: Changed QChar to UChar. Removed constructor that makes
              a String from a single character. Renamed unicode() function to characters(). Added
              an append function and changed += operator to just call that. Added a foldCase() function.
              Removed the concatenation operators that add individual strings before or after.
              * platform/String.cpp:
              (WebCore::String::String): Changed QChar to UChar.
              (WebCore::String::append): Renamed from operator+= and removed the return value.
              (WebCore::String::operator[]): Changed QChar to UChar.
              (WebCore::String::foldCase): Added.
              (WebCore::String::percentage): More of the same.
              (WebCore::String::characters): Renamed from unicode().
              (WebCore::String::deprecatedString): More of the same.
              (WebCore::String::sprintf): Fixed mistakes in the comments.
              (WebCore::String::isEmpty): Tweaked a bit.
              (WebCore::operator==): More of the same.
              (WebCore::String::operator Identifier): Ditto.
              (WebCore::String::operator UString): Ditto.
      
              * platform/SegmentedString.h: Changed from QChar to UChar. Had to initialize
              data members that are now UChar.
              * platform/SegmentedString.cpp:
              (WebCore::SegmentedString::length): Updated for change from QChar to UChar.
              (WebCore::SegmentedString::append): Ditto.
              (WebCore::SegmentedString::prepend): Ditto.
              (WebCore::SegmentedString::toString): Ditto.
      
              * platform/StringHash.h: Updated to use UChar instead of QChar and for name changes.
              Also changed to use case folding intead of lowercasing for case insensitive hashing.
      
              * platform/StringImpl.h:
              * platform/StringImpl.cpp:
              (WebCore::newUCharVector): Changed to UChar from QChar.
              (WebCore::deleteUCharVector): Ditto.
              (WebCore::StringImpl::StringImpl): Ditto.
              (WebCore::StringImpl::init): Ditto. Also renamed from initWithChar and initWithQChar.
              (WebCore::StringImpl::~StringImpl): Ditto.
              (WebCore::StringImpl::append): Ditto.
              (WebCore::StringImpl::insert): Ditto.
              (WebCore::StringImpl::truncate): Ditto.
              (WebCore::StringImpl::remove): Ditto.
              (WebCore::StringImpl::split): Ditto.
              (WebCore::StringImpl::containsOnlyWhitespace): Ditto. Also added comment because this
              function seems a little broken.
              (WebCore::parseLength): More of the same.
              (WebCore::StringImpl::toCoordsArray): Ditto.
              (WebCore::StringImpl::toLengthArray): Ditto.
              (WebCore::StringImpl::isLower): Ditto.
              (WebCore::StringImpl::lower): Rewrote to use u_strToLower.
              (WebCore::StringImpl::upper): Rewrote to use u_strToUpper.
              (WebCore::StringImpl::foldCase): Added. Uses u_strFoldCase.
              (WebCore::getWordBreakIterator): Changed to use U_FAILURE instead of accepting only
              U_ZERO_ERROR as a success code.
              (WebCore::StringImpl::capitalize): More QChar to UChar changes.
              (WebCore::StringImpl::toInt): Ditto.
              (WebCore::equal): Changed from QChar to UChar and was careful to preserve the old
              semantics where "high ASCII" is treated as U+0080-U+00FF even though I don't know
              if this feature is important.
              (WebCore::equalIgnoringCase): Ditto, but used case folding instead of lowercasing
              by using the u_foldCase and u_memcasecmp functions. Also renamed from
              equalCaseInsensitive for more-consistent naming.
              (WebCore::StringImpl::find): Ditto. Use case folding for the case insensitive branch.
              (WebCore::StringImpl::replace): More of the same.
              (WebCore::StringImpl::computeHash): Ditto.
              (WebCore::StringImpl::ascii): Ditto.
      
              * platform/TextBoundaries.h: Changed from QChar to UChar.
              * platform/mac/TextBoundaries.mm:
              (WebCore::findWordBoundary): Made the change to UChar and removed some type casts.
              (WebCore::findNextWordFromIndex): Ditto.
              (WebCore::findSentenceBoundary): Ditto.
              (WebCore::findNextSentenceFromIndex): Ditto.
      
              * platform/TextEncoding.h:
              * platform/TextEncoding.cpp:
              (WebCore::TextEncoding::backslashAsCurrencySymbol): Changed from QChar to UChar.
              (WebCore::TextEncoding::fromUnicode): More of the same.
              * platform/mac/TextEncodingMac.cpp: (WebCore::TextEncoding::fromUnicode): More
              of the same.
      
              * platform/mac/FontFamilyMac.mm: (WebCore::FontFamily::getNSFamily): Removed a
              now-unneeded type cast.
      
              * platform/mac/FontMac.mm:
              (WebCore::Font::selectionRectForText):
              (WebCore::Font::drawText):
              (WebCore::Font::drawHighlightForText):
              (WebCore::Font::floatWidth):
              (WebCore::Font::checkSelectionPoint):
              Changed QChar to UChar and removed some now-unneeded type casts.
      
              * editing/RebalanceWhitespaceCommand.cpp: (WebCore::isWhitespace):
              * editing/ReplaceSelectionCommand.cpp: (WebCore::ReplaceSelectionCommand::doApply):
              * editing/visible_units.cpp:
              (WebCore::previousBoundary):
              (WebCore::nextBoundary):
              (WebCore::startWordBoundary):
              (WebCore::endWordBoundary):
              (WebCore::previousWordPositionBoundary):
              (WebCore::nextWordPositionBoundary):
              (WebCore::startSentenceBoundary):
              (WebCore::endSentenceBoundary):
              (WebCore::previousSentencePositionBoundary):
              (WebCore::nextSentencePositionBoundary):
              (WebCore::startOfParagraph):
              (WebCore::endOfParagraph):
              * html/HTMLParser.cpp: (WebCore::HTMLParser::handleError):
              * rendering/InlineTextBox.cpp:
              (WebCore::InlineTextBox::selectionRect):
              (WebCore::InlineTextBox::paint):
              (WebCore::InlineTextBox::paintSelection):
              (WebCore::InlineTextBox::paintMarkedTextBackground):
              (WebCore::InlineTextBox::paintTextMatchMarker):
              (WebCore::InlineTextBox::offsetForPosition):
              (WebCore::InlineTextBox::positionForOffset):
              * rendering/RenderBlock.cpp:
              (WebCore::stripTrailingSpace):
              (WebCore::RenderBlock::updateFirstLetter):
              * rendering/RenderFlexibleBox.cpp:
              (WebCore::RenderFlexibleBox::layoutVerticalBox):
              * rendering/RenderObject.h:
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::backslashAsCurrencySymbol):
              * rendering/RenderTreeAsText.cpp: (quoteAndEscapeNonPrintables):
              * rendering/break_lines.cpp: (WebCore::nextBreakablePosition):
              * rendering/break_lines.h: (WebCore::isBreakable):
              * rendering/render_style.h: (WebCore::RenderStyle::isCollapsibleWhiteSpace):
              * xml/XSLStyleSheet.cpp: (WebCore::XSLStyleSheet::parseString):
              * xml/xmlhttprequest.cpp:
              (WebCore::getMIMEType):
              (WebCore::getCharset):
              Changed QChar to UChar.
      
              * rendering/RenderImage.cpp:
              (WebCore::RenderImage::imageChanged): Changed QChar to UChar.
              (WebCore::RenderImage::paint): Changed callers of drawText to no-longer pass 0
              for the horizontal alignment, since I removed that parameters.
      
              * rendering/RenderText.h: Changed QChar to UChar.
              * rendering/RenderText.cpp:
              (WebCore::characterBreakIterator): Update for name change.
              (WebCore::RenderText::RenderText): Ditto.
              (WebCore::RenderText::allAscii): Remove uneeded unicode() and allow the value
              U+007F to count as ASCII.
              (WebCore::RenderText::cacheWidths): Changed QChar to UChar.
              (WebCore::RenderText::widthFromCache): Changed code that deals with direction to
              use the ICU direction calls.
              (WebCore::RenderText::trimmedMinMaxWidth): Changed QChar to UChar.
              (WebCore::RenderText::calcMinMaxWidth): Ditto.
              (WebCore::RenderText::containsOnlyWhitespace): Ditto.
              (WebCore::RenderText::setText): Ditto.
              (WebCore::RenderText::width): Ditto.
      
              * rendering/RenderTextField.cpp:
              (WebCore::RenderTextField::updateFromElement): Removed unneeded QChar cast.
              (WebCore::RenderTextField::calcMinMaxWidth): Changed from QChar to UChar.
      
              * rendering/bidi.h:
              * rendering/bidi.cpp:
              (WebCore::BidiIterator::BidiIterator):
              (WebCore::BidiState::BidiState):
              (WebCore::BidiContext::BidiContext):
              (WebCore::bidiNext):
              (WebCore::bidiFirst):
              (WebCore::BidiIterator::current):
              (WebCore::BidiIterator::direction):
              (WebCore::addRun):
              (WebCore::checkMidpoints):
              (WebCore::appendRun):
              (WebCore::embed):
              (WebCore::RenderBlock::tabWidth):
              (WebCore::RenderBlock::computeHorizontalPositionsForLine):
              (WebCore::RenderBlock::bidiReorderLine):
              (WebCore::RenderBlock::layoutInlineChildren):
              (WebCore::skipNonBreakingSpace):
              (WebCore::RenderBlock::skipWhitespace):
              (WebCore::RenderBlock::findNextLineBreak):
              (WebCore::RenderBlock::checkLinesForTextOverflow):
              Changed from QChar to UChar and all direction from QChar constants to the
              ones from ICU.
      
              * rendering/render_form.cpp:
              (WebCore::RenderLineEdit::updateFromElement):
              (WebCore::RenderSelect::updateFromElement):
              (WebCore::RenderTextArea::updateFromElement):
              (WebCore::RenderTextArea::text):
              (WebCore::RenderTextArea::textWithHardLineBreaks):
              Got rid of now-unneeded QChar type casts.
      
              * rendering/render_line.cpp:
              (WebCore::InlineFlowBox::placeBoxesHorizontally): Updated for change from QChar
              to UChar.
              (WebCore::EllipsisBox::paint): Updated for unicode() -> characters() name change.
      
              * rendering/render_list.cpp:
              (WebCore::toRoman): Updated from QChar to UChar.
              (WebCore::toLetterString): Ditto.
              (WebCore::toHebrew): More of the same, also cleaned up the logic a bit.
              (WebCore::RenderListMarker::paint): Removed the alignment parameters from the
              various functions. Also removed all reliance on the width-measuring functions
              that take a string.
              (WebCore::RenderListMarker::calcMinMaxWidth): More of the same.
              (WebCore::RenderListMarker::getRelativeMarkerRect): Ditto.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14273 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7ab3109f
  26. 08 May, 2006 1 commit
    • andersca's avatar
      2006-05-08 Anders Carlsson <acarlsson@apple.com> · 75fd42c9
      andersca authored
              Reviewed by Darin, Eric and Maciej.
      
              http://bugzilla.opendarwin.org/show_bug.cgi?id=6638
              Support Mozilla's XPathEvaluator object.
              
              * DerivedSources.make:
              Generate XPath grammar, and JavaScript wrappers.
              
              * WebCore.xcodeproj/project.pbxproj:
              Add new files to project
              
              * bindings/js/kjs_binding.cpp:
              (KJS::):
              (KJS::setDOMException):
              Handle setting XPath exceptions.
              
              * bindings/objc/DOM.mm:
              Just return nil for now when trying to create a wrapper for 
              XPath namespace nodes.
      
              * bindings/scripts/CodeGeneratorJS.pm:
              Add XPath types. Also add a "CanBeConstructed" extended attribute
              for interfaces that can be constructed directly.
              
              * bridge/mac/WebCorePageBridge.mm:
              (initializeLoggingChannelsIfNecessary):
              Initialize LogXPath channel.
              
              * dom/DOMImplementation.cpp:
              (WebCore::DOMImplementation::hasFeature):
              Support "xpath" version "3.0".
              
              * dom/Document.cpp:
              (WebCore::Document::Document):
              
              (WebCore::Document::importNode):
              Ignore XPath namespace nodes.
              
              (WebCore::Document::createExpression):
              (WebCore::Document::createNSResolver):
              (WebCore::Document::evaluate):
              New functions which call down to a lazily created XPathEvaluator.
      
              * dom/Document.h:
              Add function declarations.
              
              * dom/Document.idl:
              Add XPath methods.
              
              * dom/Node.h:
              (WebCore::Node::):
              Add XPATH_NAMESPACE_NODE type.
              
              * editing/markup.cpp:
              (WebCore::startMarkup):
              Ignore XPath namespace nodes.
              
              * page/DOMWindow.idl:
              Add constructors for XPathEvaluator and XPathResult.
              
              * platform/Logging.cpp:
              * platform/Logging.h:
              Add XPath log channel
      
              * xpath: Added.
              * xpath/XPathEvaluator.cpp: Added.
              (WebCore::XPathEvaluator::createExpression):
              (WebCore::XPathEvaluator::createNSResolver):
              (WebCore::XPathEvaluator::evaluate):
              * xpath/XPathEvaluator.h: Added.
              (WebCore::):
              * xpath/XPathEvaluator.idl: Added.
              * xpath/XPathExpression.cpp: Added.
              (WebCore::XPathExpression::createExpression):
              (WebCore::XPathExpression::~XPathExpression):
              (WebCore::XPathExpression::evaluate):
              * xpath/XPathExpression.h: Added.
              * xpath/XPathExpression.idl: Added.
              * xpath/XPathNSResolver.cpp: Added.
              (WebCore::XPathNSResolver::XPathNSResolver):
              (WebCore::XPathNSResolver::lookupNamespaceURI):
              * xpath/XPathNSResolver.h: Added.
              * xpath/XPathNSResolver.idl: Added.
              * xpath/XPathNamespace.cpp: Added.
              (WebCore::XPathNamespace::XPathNamespace):
              (WebCore::XPathNamespace::~XPathNamespace):
              (WebCore::XPathNamespace::ownerDocument):
              (WebCore::XPathNamespace::ownerElement):
              (WebCore::XPathNamespace::prefix):
              (WebCore::XPathNamespace::nodeName):
              (WebCore::XPathNamespace::nodeValue):
              (WebCore::XPathNamespace::namespaceURI):
              (WebCore::XPathNamespace::nodeType):
              * xpath/XPathNamespace.h: Added.
              * xpath/XPathResult.cpp: Added.
              (WebCore::InvalidatingEventListener::InvalidatingEventListener):
              (WebCore::InvalidatingEventListener::handleEvent):
              (WebCore::XPathResult::XPathResult):
              (WebCore::XPathResult::~XPathResult):
              (WebCore::XPathResult::convertTo):
              (WebCore::XPathResult::resultType):
              (WebCore::XPathResult::numberValue):
              (WebCore::XPathResult::stringValue):
              (WebCore::XPathResult::booleanValue):
              (WebCore::XPathResult::singleNodeValue):
              (WebCore::XPathResult::invalidateIteratorState):
              (WebCore::XPathResult::invalidIteratorState):
              (WebCore::XPathResult::snapshotLength):
              (WebCore::XPathResult::iterateNext):
              (WebCore::XPathResult::snapshotItem):
              * xpath/XPathResult.h: Added.
              (WebCore::XPathResult::):
              * xpath/XPathResult.idl: Added.
              * xpath/impl: Added.
              * xpath/impl/XPathExpressionNode.cpp: Added.
              (WebCore::XPath::Expression::evaluationContext):
              (WebCore::XPath::Expression::Expression):
              (WebCore::XPath::Expression::~Expression):
              (WebCore::XPath::Expression::evaluate):
              (WebCore::XPath::Expression::addSubExpression):
              (WebCore::XPath::Expression::optimize):
              (WebCore::XPath::Expression::subExprCount):
              (WebCore::XPath::Expression::subExpr):
              (WebCore::XPath::Expression::isConstant):
              * xpath/impl/XPathExpressionNode.h: Added.
              (WebCore::XPath::EvaluationContext::EvaluationContext):
              * xpath/impl/XPathFunctions.cpp: Added.
              (WebCore::XPath::Interval::Interval):
              (WebCore::XPath::Interval::contains):
              (WebCore::XPath::Interval::asString):
              (WebCore::XPath::Function::setArguments):
              (WebCore::XPath::Function::setName):
              (WebCore::XPath::Function::arg):
              (WebCore::XPath::Function::argCount):
              (WebCore::XPath::Function::name):
              (WebCore::XPath::FunLast::doEvaluate):
              (WebCore::XPath::FunLast::isConstant):
              (WebCore::XPath::FunPosition::doEvaluate):
              (WebCore::XPath::FunPosition::isConstant):
              (WebCore::XPath::FunLocalName::isConstant):
              (WebCore::XPath::FunLocalName::doEvaluate):
              (WebCore::XPath::FunNamespaceURI::isConstant):
              (WebCore::XPath::FunNamespaceURI::doEvaluate):
              (WebCore::XPath::FunName::isConstant):
              (WebCore::XPath::FunName::doEvaluate):
              (WebCore::XPath::FunCount::doEvaluate):
              (WebCore::XPath::FunCount::isConstant):
              (WebCore::XPath::FunString::doEvaluate):
              (WebCore::XPath::FunConcat::doEvaluate):
              (WebCore::XPath::FunStartsWith::doEvaluate):
              (WebCore::XPath::FunContains::doEvaluate):
              (WebCore::XPath::FunSubstringBefore::doEvaluate):
              (WebCore::XPath::FunSubstringAfter::doEvaluate):
              (WebCore::XPath::FunSubstring::doEvaluate):
              (WebCore::XPath::FunStringLength::doEvaluate):
              (WebCore::XPath::FunNormalizeSpace::doEvaluate):
              (WebCore::XPath::FunTranslate::doEvaluate):
              (WebCore::XPath::FunBoolean::doEvaluate):
              (WebCore::XPath::FunNot::doEvaluate):
              (WebCore::XPath::FunTrue::doEvaluate):
              (WebCore::XPath::FunTrue::isConstant):
              (WebCore::XPath::FunLang::doEvaluate):
              (WebCore::XPath::FunLang::isConstant):
              (WebCore::XPath::FunFalse::doEvaluate):
              (WebCore::XPath::FunFalse::isConstant):
              (WebCore::XPath::FunNumber::doEvaluate):
              (WebCore::XPath::FunSum::doEvaluate):
              (WebCore::XPath::FunFloor::doEvaluate):
              (WebCore::XPath::FunCeiling::doEvaluate):
              (WebCore::XPath::FunRound::doEvaluate):
              (WebCore::XPath::FunctionLibrary::self):
              (WebCore::XPath::FunctionLibrary::FunctionLibrary):
              (WebCore::XPath::FunctionLibrary::createFunction):
              * xpath/impl/XPathFunctions.h: Added.
              * xpath/impl/XPathGrammar.y: Added.
              * xpath/impl/XPathParser.cpp: Added.
              (WebCore::XPath::):
              (WebCore::XPath::Parser::charCat):
              (WebCore::XPath::Parser::isAxisName):
              (WebCore::XPath::Parser::isNodeTypeName):
              (WebCore::XPath::Parser::isOperatorContext):
              (WebCore::XPath::Parser::skipWS):
              (WebCore::XPath::Parser::makeTokenAndAdvance):
              (WebCore::XPath::Parser::makeIntTokenAndAdvance):
              (WebCore::XPath::Parser::peekAheadHelper):
              (WebCore::XPath::Parser::peekCurHelper):
              (WebCore::XPath::Parser::lexString):
              (WebCore::XPath::Parser::lexNumber):
              (WebCore::XPath::Parser::lexNCName):
              (WebCore::XPath::Parser::lexQName):
              (WebCore::XPath::Parser::nextTokenInternal):
              (WebCore::XPath::Parser::nextToken):
              (WebCore::XPath::Parser::Parser):
              (WebCore::XPath::Parser::reset):
              (WebCore::XPath::Parser::lex):
              (WebCore::XPath::Parser::parseStatement):
              (WebCore::XPath::Parser::registerParseNode):
              (WebCore::XPath::Parser::unregisterParseNode):
              (WebCore::XPath::Parser::registerPredicateVector):
              (WebCore::XPath::Parser::unregisterPredicateVector):
              (WebCore::XPath::Parser::registerExpressionVector):
              (WebCore::XPath::Parser::unregisterExpressionVector):
              (WebCore::XPath::Parser::registerString):
              (WebCore::XPath::Parser::unregisterString):
              * xpath/impl/XPathParser.h: Added.
              (WebCore::XPath::Token::Token):
              (WebCore::XPath::Parser::):
              (WebCore::XPath::Parser::current):
              * xpath/impl/XPathPath.cpp: Added.
              (WebCore::XPath::Filter::Filter):
              (WebCore::XPath::Filter::~Filter):
              (WebCore::XPath::Filter::doEvaluate):
              (WebCore::XPath::LocationPath::LocationPath):
              (WebCore::XPath::LocationPath::~LocationPath):
              (WebCore::XPath::LocationPath::optimize):
              (WebCore::XPath::LocationPath::doEvaluate):
              (WebCore::XPath::Path::Path):
              (WebCore::XPath::Path::~Path):
              (WebCore::XPath::Path::doEvaluate):
              * xpath/impl/XPathPath.h: Added.
              * xpath/impl/XPathPredicate.cpp: Added.
              (WebCore::XPath::Number::Number):
              (WebCore::XPath::Number::isConstant):
              (WebCore::XPath::Number::doEvaluate):
              (WebCore::XPath::StringExpression::StringExpression):
              (WebCore::XPath::StringExpression::isConstant):
              (WebCore::XPath::StringExpression::doEvaluate):
              (WebCore::XPath::Negative::doEvaluate):
              (WebCore::XPath::NumericOp::NumericOp):
              (WebCore::XPath::NumericOp::doEvaluate):
              (WebCore::XPath::EqTestOp::EqTestOp):
              (WebCore::XPath::EqTestOp::doEvaluate):
              (WebCore::XPath::LogicalOp::LogicalOp):
              (WebCore::XPath::LogicalOp::shortCircuitOn):
              (WebCore::XPath::LogicalOp::isConstant):
              (WebCore::XPath::LogicalOp::doEvaluate):
              (WebCore::XPath::Union::doEvaluate):
              (WebCore::XPath::Predicate::Predicate):
              (WebCore::XPath::Predicate::~Predicate):
              (WebCore::XPath::Predicate::evaluate):
              (WebCore::XPath::Predicate::optimize):
              * xpath/impl/XPathPredicate.h: Added.
              (WebCore::XPath::NumericOp::):
              (WebCore::XPath::EqTestOp::):
              (WebCore::XPath::LogicalOp::):
              * xpath/impl/XPathStep.cpp: Added.
              (WebCore::XPath::Step::axisAsString):
              (WebCore::XPath::Step::Step):
              (WebCore::XPath::Step::~Step):
              (WebCore::XPath::Step::evaluate):
              (WebCore::XPath::Step::nodesInAxis):
              (WebCore::XPath::Step::nodeTestMatches):
              (WebCore::XPath::Step::optimize):
              (WebCore::XPath::Step::namespaceFromNodetest):
              (WebCore::XPath::Step::primaryNodeType):
              * xpath/impl/XPathStep.h: Added.
              (WebCore::XPath::Step::):
              * xpath/impl/XPathUtil.cpp: Added.
              (WebCore::XPath::isRootDomNode):
              (WebCore::XPath::stringValue):
              (WebCore::XPath::isValidContextNode):
              * xpath/impl/XPathUtil.h: Added.
              * xpath/impl/XPathValue.cpp: Added.
              (WebCore::XPath::Value::Value):
              (WebCore::XPath::Value::type):
              (WebCore::XPath::Value::isNodeVector):
              (WebCore::XPath::Value::isBoolean):
              (WebCore::XPath::Value::isNumber):
              (WebCore::XPath::Value::isString):
              (WebCore::XPath::Value::toNodeVector):
              (WebCore::XPath::Value::toBoolean):
              (WebCore::XPath::Value::toNumber):
              (WebCore::XPath::Value::toString):
              * xpath/impl/XPathValue.h: Added.
              (WebCore::XPath::Value::):
              * xpath/impl/XPathVariableReference.cpp: Added.
              (WebCore::XPath::VariableReference::VariableReference):
              (WebCore::XPath::VariableReference::isConstant):
              (WebCore::XPath::VariableReference::doEvaluate):
              * xpath/impl/XPathVariableReference.h: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14234 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      75fd42c9
  27. 13 Apr, 2006 1 commit
    • darin's avatar
      Rubber-stamped by Anders. · 7bd70956
      darin authored
              - fix Windows build
      
              * WebCore.vcproj/Image\ Viewer/Image\ Viewer.vcproj: Add loader directory.
      
              - use std::min/max exclusively intead of kMin/Max
              - eliminate KWQDef.h since all it had left in it was kMin/Max
      
              * WebCore.vcproj/WebCore/WebCore.vcproj: Remove KWQDef.h.
              * WebCore.xcodeproj/project.pbxproj: Ditto.
      
              * kwq/KWQDef.h: Removed.
      
              * bridge/mac/FrameMac.mm:
              (WebCore::FrameMac::attributedString):
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge computePageRectsWithPrintWidthScaleFactor:printHeight:]):
              * css/cssstyleselector.cpp:
              (WebCore::CSSStyleSelector::applyProperty):
              (WebCore::CSSStyleSelector::getComputedSizeFromSpecifiedSize):
              (WebCore::CSSStyleSelector::fontSizeForKeyword):
              * dom/Document.cpp:
              (WebCore::Document::minimumLayoutDelay):
              (WebCore::Document::addMarker):
              * dom/StyledElement.cpp:
              (WebCore::StyledElement::addCSSColor):
              * dom/xml_tokenizer.cpp:
              (WebCore::OffsetBuffer::readOutBytes):
              * editing/ApplyStyleCommand.cpp:
              (WebCore::ApplyStyleCommand::applyRelativeFontStyleChange):
              * editing/CompositeEditCommand.cpp:
              (WebCore::CompositeEditCommand::deleteInsignificantText):
              * editing/TextIterator.cpp:
              (WebCore::TextIterator::handleTextNode):
              (WebCore::TextIterator::handleTextBox):
              (WebCore::CharacterIterator::string):
              (WebCore::findPlainText):
              * editing/htmlediting.cpp:
              (WebCore::rangeCompliantEquivalent):
              * editing/markup.cpp:
              (WebCore::renderedText):
              * editing/visible_units.cpp:
              (WebCore::startOfParagraph):
              * html/HTMLSelectElement.cpp:
              (WebCore::HTMLSelectElement::parseMappedAttribute):
              * html/HTMLTokenizer.cpp:
              (WebCore::HTMLTokenizer::parseComment):
              (WebCore::HTMLTokenizer::parseEntity):
              (WebCore::HTMLTokenizer::parseTag):
              (WebCore::HTMLTokenizer::enlargeBuffer):
              (WebCore::HTMLTokenizer::enlargeScriptBuffer):
              * html/html_imageimpl.cpp:
              (WebCore::HTMLAreaElement::getRegion):
              * html/html_tableimpl.cpp:
              (WebCore::HTMLTableElement::parseMappedAttribute):
              * ksvg2/css/SVGCSSParser.cpp:
              (WebCore::CSSParser::parseSVGPaint):
              (WebCore::CSSParser::parseSVGColor):
              * kwq/KWQComboBox.mm:
              (QComboBox::sizeHint):
              * kwq/KWQListBox.mm:
              (QListBox::sizeForNumberOfLines):
              * kwq/KWQSlider.mm:
              (QSlider::setValue):
              * loader/Cache.cpp:
              (WebCore::Cache::setSize):
              * page/Frame.cpp:
              (WebCore::Frame::forceLayoutWithPageWidthRange):
              * platform/DeprecatedPtrListImpl.h:
              * platform/DeprecatedString.cpp:
              (ucstrcmp):
              * platform/DeprecatedString.h:
              * platform/DeprecatedValueListImpl.h:
              * platform/mac/GraphicsContextMac.mm:
              (WebCore::GraphicsContext::addRoundedRectClip):
              * platform/mac/WebCoreTextArea.mm:
              (-[WebCoreTextView _trackResizeFromMouseDown:]):
              * rendering/InlineTextBox.cpp:
              (WebCore::InlineTextBox::isSelected):
              (WebCore::InlineTextBox::selectionRect):
              (WebCore::InlineTextBox::placeEllipsisBox):
              (WebCore::InlineTextBox::selectionStartEnd):
              (WebCore::InlineTextBox::paintMarkedTextBackground):
              (WebCore::InlineTextBox::paintSpellingMarker):
              (WebCore::InlineTextBox::paintTextMatchMarker):
              (WebCore::InlineTextBox::paintMarkedTextUnderline):
              * rendering/RenderBlock.cpp:
              (WebCore::RenderBlock::overflowRect):
              (WebCore::RenderBlock::layoutBlock):
              (WebCore::RenderBlock::collapseMargins):
              (WebCore::RenderBlock::clearFloatsIfNeeded):
              (WebCore::RenderBlock::estimateVerticalPosition):
              (WebCore::RenderBlock::determineHorizontalPosition):
              (WebCore::RenderBlock::setCollapsedBottomMargin):
              (WebCore::RenderBlock::handleBottomOfBlock):
              (WebCore::RenderBlock::layoutBlockChildren):
              (WebCore::RenderBlock::fillVerticalSelectionGap):
              (WebCore::RenderBlock::fillLeftSelectionGap):
              (WebCore::RenderBlock::fillRightSelectionGap):
              (WebCore::RenderBlock::positionNewFloats):
              (WebCore::RenderBlock::nearestFloatBottom):
              (WebCore::RenderBlock::lowestPosition):
              (WebCore::RenderBlock::rightmostPosition):
              (WebCore::RenderBlock::leftmostPosition):
              (WebCore::RenderBlock::getClearDelta):
              (WebCore::RenderBlock::calcMinMaxWidth):
              (WebCore::RenderBlock::calcInlineMinMaxWidth):
              (WebCore::RenderBlock::calcBlocminMaxWidth):
              * rendering/RenderBlock.h:
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::calcBorderBoxWidth):
              (WebCore::RenderBox::calcBorderBoxHeight):
              (WebCore::RenderBox::calcContentBoxWidth):
              (WebCore::RenderBox::calcContentBoxHeight):
              (WebCore::RenderBox::paintRootBoxDecorations):
              (WebCore::RenderBox::paintBoxDecorations):
              (WebCore::RenderBox::calcWidth):
              (WebCore::RenderBox::calcWidthUsing):
              (WebCore::RenderBox::calcHeight):
              (WebCore::RenderBox::calcPercentageHeight):
              (WebCore::RenderBox::calcReplacedWidth):
              (WebCore::RenderBox::calcReplacedHeight):
              (WebCore::RenderBox::calcAbsoluteHorizontalValues):
              (WebCore::RenderBox::calcAbsoluteVerticalValues):
              * rendering/RenderCanvas.cpp:
              (WebCore::RenderCanvas::layout):
              * rendering/RenderFlexibleBox.cpp:
              (WebCore::RenderFlexibleBox::calcMinMaxWidth):
              (WebCore::RenderFlexibleBox::layoutHorizontalBox):
              (WebCore::RenderFlexibleBox::layoutVerticalBox):
              (WebCore::RenderFlexibleBox::allowedChildFlex):
              * rendering/RenderFlow.cpp:
              (WebCore::RenderFlow::paintLines):
              (WebCore::RenderFlow::lowestPosition):
              (WebCore::RenderFlow::rightmostPosition):
              (WebCore::RenderFlow::leftmostPosition):
              (WebCore::RenderFlow::paintOutlineForLine):
              * rendering/RenderImage.cpp:
              (WebCore::RenderImage::imageChanged):
              (WebCore::RenderImage::calcReplacedWidth):
              (WebCore::RenderImage::calcReplacedHeight):
              * rendering/RenderLayer.cpp:
              (WebCore::RenderLayer::scrollRectToVisible):
              (WebCore::RenderLayer::computeScrollDimensions):
              (WebCore::RenderLayer::updateScrollInfoAfterLayout):
              (WebCore::RenderLayer::absoluteBoundingBox):
              (WebCore::Marquee::marqueeSpeed):
              (WebCore::Marquee::computePosition):
              (WebCore::Marquee::timerFired):
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::drawBorder):
              (WebCore::RenderObject::paintBorderImage):
              (WebCore::RenderObject::paintBorder):
              (WebCore::RenderObject::repaintAfterLayoutIfNeeded):
              * rendering/RenderTable.cpp:
              (WebCore::RenderTable::calcWidth):
              (WebCore::RenderTable::layout):
              (WebCore::RenderTable::paintBoxDecorations):
              * rendering/RenderTableCell.cpp:
              (WebCore::RenderTableCell::paintBackgroundsBehindCell):
              * rendering/RenderTableSection.cpp:
              (WebCore::RenderTableSection::layoutRows):
              (WebCore::RenderTableSection::lowestPosition):
              (WebCore::RenderTableSection::rightmostPosition):
              (WebCore::RenderTableSection::leftmostPosition):
              * rendering/RenderText.cpp:
              (WebCore::RenderText::caretRect):
              (WebCore::RenderText::calcMinMaxWidth):
              (WebCore::RenderText::minXPos):
              (WebCore::RenderText::width):
              (WebCore::RenderText::caretMinOffset):
              (WebCore::RenderText::caretMaxOffset):
              * rendering/bidi.cpp:
              (WebCore::RenderBlock::computeHorizontalPositionsForLine):
              (WebCore::RenderBlock::layoutInlineChildren):
              (WebCore::RenderBlock::checkLinesForOverflow):
              * rendering/render_form.cpp:
              (WebCore::RenderLineEdit::setSelectionStart):
              (WebCore::RenderLineEdit::setSelectionEnd):
              (WebCore::RenderLineEdit::setSelectionRange):
              (WebCore::RenderFieldset::layoutLegend):
              (WebCore::RenderFieldset::paintBoxDecorations):
              (WebCore::RenderSelect::layout):
              (WebCore::RenderTextArea::calcMinMaxWidth):
              (WebCore::RenderSlider::updateFromElement):
              * rendering/render_frames.cpp:
              (WebCore::RenderFrameSet::layout):
              * rendering/render_line.cpp:
              (WebCore::InlineFlowBox::placeBoxesHorizontally):
              (WebCore::InlineFlowBox::verticallyAlignBoxes):
              (WebCore::InlineFlowBox::adjustMaxAscentAndDescent):
              (WebCore::InlineFlowBox::placeBoxesVertically):
              (WebCore::InlineFlowBox::paintBackgroundAndBorder):
              * rendering/render_line.h:
              (WebCore::RootInlineBox::selectionHeight):
              * rendering/render_list.cpp:
              (WebCore::RenderListItem::positionListMarker):
              * rendering/render_replaced.cpp:
              (WebCore::RenderReplaced::shouldPaint):
              * rendering/table_layout.cpp:
              (WebCore::FixedTableLayout::calcMinMaxWidth):
              (WebCore::AutoTableLayout::recalcColumn):
              (WebCore::AutoTableLayout::calcMinMaxWidth):
              (WebCore::AutoTableLayout::calcEffectiveWidth):
              (WebCore::AutoTableLayout::layout):
              Use min/max instead of kMin/kMax.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13859 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7bd70956
  28. 11 Apr, 2006 1 commit
    • darin's avatar
      JavaScriptCore: · 36d1136a
      darin authored
              Rubber-stamped by John Sullivan.
      
              - switched from a shell script to a makefile for generated files
              - removed lots of unneeded includes
              - added new Forward.h and HashForward.h headers that allow compiling with
                fewer unneeded templates
      
              * DerivedSources.make: Added.
              * generate-derived-sources: Removed.
              * JavaScriptCore.xcodeproj/project.pbxproj: Added new files, changed to use
              DerivedSources.make.
      
              * kxmlcore/Forward.h: Added.
              * kxmlcore/HashForward.h: Added.
      
              * kxmlcore/HashCountedSet.h: Include HashForward for default args.
              * kxmlcore/HashMap.h: Ditto.
              * kxmlcore/HashSet.h: Ditto.
      
              * kjs/object.h:
              * kjs/object.cpp:
              Moved KJS_MAX_STACK into the .cpp file.
      
              * bindings/NP_jsobject.cpp:
              * bindings/c/c_instance.h:
              * bindings/jni/jni_class.h:
              * bindings/jni/jni_runtime.h:
              * bindings/jni/jni_utility.h:
              * bindings/objc/WebScriptObject.mm:
              * bindings/objc/WebScriptObjectPrivate.h:
              * bindings/objc/objc_class.h:
              * bindings/objc/objc_class.mm:
              * bindings/objc/objc_instance.h:
              * bindings/objc/objc_instance.mm:
              * bindings/objc/objc_runtime.mm:
              * bindings/objc/objc_utility.mm:
              * bindings/runtime.h:
              * bindings/runtime_array.cpp:
              * bindings/runtime_array.h:
              * bindings/runtime_method.cpp:
              * bindings/runtime_method.h:
              * bindings/runtime_object.cpp:
              * bindings/runtime_root.h:
              * kjs/JSImmediate.cpp:
              * kjs/Parser.h:
              * kjs/array_object.cpp:
              * kjs/array_object.h:
              * kjs/bool_object.cpp:
              * kjs/bool_object.h:
              * kjs/collector.h:
              * kjs/context.h:
              * kjs/debugger.cpp:
              * kjs/error_object.h:
              * kjs/function_object.h:
              * kjs/internal.h:
              * kjs/lexer.cpp:
              * kjs/math_object.cpp:
              * kjs/math_object.h:
              * kjs/nodes.cpp:
              * kjs/nodes.h:
              * kjs/number_object.cpp:
              * kjs/number_object.h:
              * kjs/object_object.cpp:
              * kjs/operations.cpp:
              * kjs/protected_reference.h:
              * kjs/reference.h:
              * kjs/reference_list.h:
              * kjs/regexp_object.h:
              * kjs/string_object.cpp:
              * kjs/string_object.h:
              * kjs/testkjs.cpp:
              * kjs/value.cpp:
              * kjs/value.h:
              * kxmlcore/HashTable.h:
              * kxmlcore/ListRefPtr.h:
              * kxmlcore/TCPageMap.h:
              * kxmlcore/Vector.h:
              Removed unneeded header includes.
      
      JavaScriptGlue:
      
              Rubber-stamped by John Sullivan.
      
              - added forwarding headers for the new Forward.h and HashForward.h files
      
              * kxmlcore/Forward.h: Added.
              * kxmlcore/HashForward.h: Added.
      
      WebCore:
      
              Rubber-stamped by John Sullivan (except for pbxproj change).
      
              - updated to use the new Forward.h and HashForward.h headers
              - moved the showTree debugging functions out of the WebCore
                namespace so they are easier to call from gdb, and renamed
                the showTree member functions so they don't get in the way;
                now you can do "call showTree(x)" in gdb and it just works
              - removed a lot of unneeded includes
      
              * WebCore.xcodeproj/project.pbxproj: Fixed a lot of paths that
              were not relative to the enclosing group.
      
              * ForwardingHeaders/kxmlcore/Forward.h: Added.
              * ForwardingHeaders/kxmlcore/HashForward.h: Added.
              * bindings/js/JSCanvasRenderingContext2DBase.cpp:
              * bindings/js/JSXMLHttpRequest.cpp:
              * bindings/js/JSXMLHttpRequest.h:
              * bindings/js/JSXSLTProcessor.h:
              * bindings/js/kjs_binding.h:
              * bindings/js/kjs_dom.cpp:
              * bindings/js/kjs_dom.h:
              * bindings/js/kjs_events.cpp:
              * bindings/js/kjs_events.h:
              * bindings/js/kjs_html.cpp:
              * bindings/js/kjs_navigator.cpp:
              * bindings/js/kjs_navigator.h:
              * bindings/js/kjs_proxy.cpp:
              * bindings/js/kjs_traversal.h:
              * bindings/js/kjs_window.cpp:
              * bindings/js/kjs_window.h:
              * bindings/objc/DOM.mm:
              * bindings/objc/DOMCSS.mm:
              * bindings/objc/DOMCore.h:
              * bindings/objc/DOMEvents.mm:
              * bindings/objc/DOMHTML.mm:
              * bindings/objc/DOMImplementationFront.h:
              * bindings/objc/DOMInternal.mm:
              * bindings/objc/DOMUtility.mm:
              * bindings/objc/DOMViews.mm:
              * bridge/BrowserExtension.h:
              * bridge/mac/BrowserExtensionMac.mm:
              * bridge/mac/FrameMac.h:
              * bridge/mac/FrameMac.mm:
              * bridge/mac/WebCoreFrameBridge.mm:
              * bridge/mac/WebCoreFrameNamespaces.mm:
              * bridge/mac/WebCoreJavaScript.mm:
              * bridge/win/PageWin.cpp:
              * css/CSSComputedStyleDeclaration.cpp:
              * css/css_base.h:
              * css/css_ruleimpl.h:
              * css/css_valueimpl.cpp:
              * css/cssparser.cpp:
              * css/cssparser.h:
              * css/cssstyleselector.cpp:
              * css/cssstyleselector.h:
              * dom/AbstractView.h:
              * dom/AtomicStringList.h:
              * dom/Attribute.cpp:
              * dom/Attribute.h:
              * dom/Comment.cpp:
              * dom/ContainerNode.cpp:
              * dom/DOMImplementation.cpp:
              * dom/DOMImplementation.h:
              * dom/Document.cpp:
              * dom/Document.h:
              * dom/Element.h:
              * dom/EventTargetNode.cpp:
              (WebCore::EventTargetNode::dump):
              (WebCore::forbidEventDispatch):
              (WebCore::allowEventDispatch):
              (WebCore::eventDispatchForbidden):
              * dom/EventTargetNode.h:
              (WebCore::EventTargetNode::postDispatchEventHandler):
              * dom/NamedAttrMap.h:
              * dom/Node.cpp:
              (WebCore::Node::showNode):
              (WebCore::Node::showTree):
              (WebCore::Node::showTreeAndMark):
              (showTree):
              * dom/Node.h:
              * dom/NodeList.cpp:
              * dom/NodeList.h:
              * dom/Position.cpp:
              (showTree):
              * dom/Position.h:
              * dom/Range.cpp:
              * dom/Range.h:
              * dom/StyledElement.cpp:
              * dom/StyledElement.h:
              * dom/dom2_eventsimpl.cpp:
              * dom/dom2_eventsimpl.h:
              * dom/dom2_traversalimpl.h:
              * dom/dom_xmlimpl.cpp:
              * dom/xml_tokenizer.cpp:
              * dom/xml_tokenizer.h:
              * editing/AppendNodeCommand.cpp:
              * editing/ApplyStyleCommand.cpp:
              * editing/ApplyStyleCommand.h:
              * editing/BreakBlockquoteCommand.cpp:
              * editing/CompositeEditCommand.cpp:
              * editing/CreateLinkCommand.cpp:
              * editing/DeleteFromTextNodeCommand.cpp:
              * editing/DeleteFromTextNodeCommand.h:
              * editing/DeleteSelectionCommand.cpp:
              * editing/EditCommand.cpp:
              * editing/EditCommand.h:
              * editing/HTMLInterchange.cpp:
              * editing/InsertIntoTextNodeCommand.cpp:
              * editing/InsertIntoTextNodeCommand.h:
              * editing/InsertLineBreakCommand.cpp:
              * editing/InsertNodeBeforeCommand.cpp:
              * editing/InsertParagraphSeparatorCommand.cpp:
              * editing/InsertTextCommand.cpp:
              * editing/JSEditor.cpp:
              * editing/JoinTextNodesCommand.cpp:
              * editing/MergeIdenticalElementsCommand.cpp:
              * editing/ModifySelectionListLevelCommand.cpp:
              * editing/MoveSelectionCommand.cpp:
              * editing/RebalanceWhitespaceCommand.h:
              * editing/RemoveCSSPropertyCommand.h:
              * editing/ReplaceSelectionCommand.cpp:
              * editing/ReplaceSelectionCommand.h:
              * editing/Selection.cpp:
              (WebCore::Selection::formatForDebugger):
              (WebCore::Selection::showTree):
              (showTree):
              * editing/Selection.h:
              * editing/SelectionController.cpp:
              (WebCore::SelectionController::formatForDebugger):
              (WebCore::SelectionController::showTree):
              (showTree):
              * editing/SelectionController.h:
              * editing/TextIterator.cpp:
              * editing/TextIterator.h:
              * editing/TypingCommand.cpp:
              * editing/TypingCommand.h:
              * editing/UnlinkCommand.cpp:
              * editing/VisiblePosition.cpp:
              (WebCore::isEqualIgnoringAffinity):
              (WebCore::VisiblePosition::formatForDebugger):
              (WebCore::VisiblePosition::showTree):
              (showTree):
              * editing/VisiblePosition.h:
              (WebCore::VisiblePosition::VisiblePosition):
              (WebCore::operator==):
              * editing/WrapContentsInDummySpanCommand.cpp:
              * editing/htmlediting.h:
              * editing/markup.cpp:
              * editing/markup.h:
              (WebCore::):
              * editing/visible_units.cpp:
              * html/CanvasGradient.cpp:
              * html/CanvasRenderingContext2D.h:
              * html/CanvasStyle.cpp:
              * html/CanvasStyle.h:
              * html/FormDataList.cpp:
              * html/FormDataList.h:
              * html/HTMLCollection.cpp:
              * html/HTMLCollection.h:
              * html/HTMLDocument.cpp:
              * html/HTMLDocument.h:
              * html/HTMLElement.cpp:
              * html/HTMLElementFactory.cpp:
              * html/HTMLElementFactory.h:
              * html/HTMLFormCollection.cpp:
              * html/HTMLFormElement.cpp:
              * html/HTMLFormElement.h:
              * html/HTMLInputElement.cpp:
              * html/HTMLParser.cpp:
              * html/HTMLSelectElement.cpp:
              * html/HTMLSelectElement.h:
              * html/HTMLTokenizer.cpp:
              * html/HTMLTokenizer.h:
              * html/html_baseimpl.cpp:
              * html/html_headimpl.h:
              * kcanvas/KCanvasCreator.cpp:
              * kcanvas/KCanvasFilters.h:
              * kcanvas/KCanvasPath.h:
              * kcanvas/KCanvasResources.h:
              * kcanvas/KCanvasTreeDebug.cpp:
              * kcanvas/RenderPath.cpp:
              * kcanvas/RenderPath.h:
              * kcanvas/device/KRenderingDevice.h:
              * kcanvas/device/KRenderingPaintServerGradient.h:
              * kcanvas/device/KRenderingPaintServerPattern.h:
              * kcanvas/device/KRenderingPaintServerSolid.h:
              * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
              * kcanvas/device/quartz/KCanvasMaskerQuartz.h:
              * kcanvas/device/quartz/KCanvasResourcesQuartz.h:
              * kcanvas/device/quartz/KCanvasResourcesQuartz.mm:
              * kcanvas/device/quartz/KRenderingPaintServerQuartz.h:
              * khtml/misc/decoder.cpp:
              * khtml/misc/decoder.h:
              * khtml/xsl/XSLStyleSheet.cpp:
              * khtml/xsl/XSLTProcessor.cpp:
              * khtml/xsl/XSLTProcessor.h:
              * ksvg2/css/SVGRenderStyle.h:
              * ksvg2/ecma/GlobalObject.cpp:
              * ksvg2/misc/KCanvasRenderingStyle.h:
              * ksvg2/misc/SVGDocumentExtensions.h:
              * ksvg2/svg/SVGAngle.h:
              * ksvg2/svg/SVGAnimateColorElement.h:
              * ksvg2/svg/SVGAnimatedColor.h:
              * ksvg2/svg/SVGAnimatedLengthList.h:
              * ksvg2/svg/SVGAnimatedNumberList.h:
              * ksvg2/svg/SVGAnimatedString.h:
              * ksvg2/svg/SVGAnimatedTransformList.h:
              * ksvg2/svg/SVGAnimationElement.h:
              * ksvg2/svg/SVGColor.h:
              * ksvg2/svg/SVGCursorElement.h:
              * ksvg2/svg/SVGHelper.h:
              * ksvg2/svg/SVGLength.h:
              * ksvg2/svg/SVGList.h:
              * ksvg2/svg/SVGPaint.h:
              * ksvg2/svg/SVGPathSeg.h:
              * ksvg2/svg/SVGPatternElement.h:
              * ksvg2/svg/SVGSVGElement.cpp:
              * ksvg2/svg/SVGSVGElement.h:
              * ksvg2/svg/SVGStringList.h:
              * ksvg2/svg/SVGTransform.h:
              * kwq/AccessibilityObjectCache.mm:
              * kwq/ClipboardMac.mm:
              * kwq/JavaAppletWidget.mm:
              * kwq/KWQComboBox.mm:
              * kwq/KWQEditCommand.mm:
              * kwq/KWQFileButton.mm:
              * kwq/KWQKHTMLSettings.h:
              * kwq/KWQKSSLKeyGen.mm:
              * kwq/KWQLoader.mm:
              * kwq/KWQPageState.mm:
              * kwq/KWQTextEdit.mm:
              * kwq/RegularExpression.h:
              * kwq/RenderTreeAsText.cpp:
              * kwq/RenderTreeAsText.h:
              * kwq/WebCoreAXObject.mm:
              * loader/Cache.cpp:
              * loader/Cache.h:
              * loader/CachedCSSStyleSheet.cpp:
              * loader/CachedObject.h:
              * loader/CachedScript.cpp:
              * loader/CachedXBLDocument.cpp:
              * loader/CachedXBLDocument.h:
              * loader/CachedXSLStyleSheet.cpp:
              * loader/CachedXSLStyleSheet.h:
              * loader/DocLoader.cpp:
              * page/Frame.cpp:
              * page/Frame.h:
              * page/FramePrivate.h:
              * page/FrameTree.cpp:
              * page/FrameTree.h:
              * page/FrameView.cpp:
              * page/FrameView.h:
              * page/Page.cpp:
              * page/Page.h:
              * page/Plugin.h:
              (WebCore::Plugin::Plugin):
              (WebCore::Plugin::view):
              * platform/Color.cpp:
              * platform/FloatRect.h:
              * platform/Font.cpp:
              * platform/Font.h:
              * platform/FontFamily.cpp:
              * platform/GraphicsContext.cpp:
              * platform/Image.cpp:
              * platform/Image.h:
              * platform/IntRect.h:
              * platform/KURL.cpp:
              * platform/KURL.h:
              * platform/SegmentedString.h:
              * platform/Shared.h:
              * platform/StreamingTextDecoder.cpp:
              * platform/StringImpl.cpp:
              * platform/StringImpl.h:
              * platform/TextEncoding.h:
              * platform/Timer.cpp:
              * platform/Timer.h:
              * platform/TransferJob.cpp:
              * platform/TransferJob.h:
              * platform/TransferJobInternal.h:
              * platform/cairo/GraphicsContextCairo.cpp:
              * platform/cairo/ImageCairo.cpp:
              * platform/cairo/ImageSourceCairo.cpp:
              * platform/image-decoders/gif/GIFImageReader.cpp:
              * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
              * platform/mac/FontFamilyMac.mm:
              * platform/mac/FontMac.mm:
              * platform/mac/ImageMac.mm:
              * platform/mac/TextEncodingMac.cpp:
              * platform/mac/TransferJobMac.mm:
              * platform/win/FontPlatformDataWin.cpp:
              * platform/win/TransferJobWin.cpp:
              * rendering/RenderBlock.cpp:
              * rendering/RenderBlock.h:
              * rendering/RenderBox.cpp:
              * rendering/RenderBox.h:
              * rendering/RenderCanvas.cpp:
              * rendering/RenderCanvas.h:
              * rendering/RenderContainer.cpp:
              * rendering/RenderFlexibleBox.h:
              * rendering/RenderFlow.cpp:
              * rendering/RenderFlow.h:
              * rendering/RenderImage.cpp:
              * rendering/RenderImage.h:
              * rendering/RenderLayer.cpp:
              * rendering/RenderLayer.h:
              * rendering/RenderObject.cpp:
              (showTree):
              * rendering/RenderObject.h:
              * rendering/RenderTableCell.h:
              * rendering/RenderTableSection.h:
              * rendering/RenderText.cpp:
              * rendering/RenderText.h:
              * rendering/RenderTextField.cpp:
              * rendering/RenderTextFragment.h:
              * rendering/RenderTheme.h:
              * rendering/RenderThemeMac.mm:
              * rendering/RenderThemeWin.cpp:
              * rendering/bidi.cpp:
              * rendering/render_form.h:
              * rendering/render_line.cpp:
              (showTree):
              * rendering/render_line.h:
              * rendering/render_list.cpp:
              * rendering/render_replaced.cpp:
              * rendering/render_replaced.h:
              * rendering/render_style.cpp:
              * rendering/render_style.h:
              * xml/xmlhttprequest.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13821 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      36d1136a
  29. 04 Apr, 2006 1 commit
    • justing's avatar
      LayoutTests: · 217ded8c
      justing authored
              Reviewed by darin
      
              <http://bugzilla.opendarwin.org/show_bug.cgi?id=6608>
              REGRESSION: Line disappears when deleting
      
              Added:
              * editing/deleting/merge-different-styles-expected.checksum: Added.
              * editing/deleting/merge-different-styles-expected.png: Added.
              * editing/deleting/merge-different-styles-expected.txt: Added.
              * editing/deleting/merge-different-styles.html: Added.
              * editing/deleting/merge-no-br-expected.checksum: Added.
              * editing/deleting/merge-no-br-expected.png: Added.
              * editing/deleting/merge-no-br-expected.txt: Added.
              * editing/deleting/merge-no-br.html: Added.
              * editing/deleting/merge-whitespace-pre-expected.checksum: Added.
              * editing/deleting/merge-whitespace-pre-expected.png: Added.
              * editing/deleting/merge-whitespace-pre-expected.txt: Added.
              * editing/deleting/merge-whitespace-pre.html: Added.
      
              Fixes (not enough style on nodes for the fixes to be reflected in pixel results):
              * editing/deleting/delete-block-merge-contents-005-expected.txt:
              * editing/deleting/delete-block-merge-contents-006-expected.txt:
              * editing/deleting/delete-block-merge-contents-008-expected.txt:
      
              Equivalent render trees:
              * editing/deleting/delete-3857753-fix-expected.txt:
              * editing/inserting/insert-div-026-expected.txt:
              
              Forgot to checkin these new expected results after fixing the DRT bug:
              * fast/lists/drag-into-marker-expected.checksum:
              * fast/lists/drag-into-marker-expected.png:
              * fast/lists/drag-into-marker-expected.txt:
      
      WebCore:
      
              Reviewed by darin
              
              <http://bugzilla.opendarwin.org/show_bug.cgi?id=6608>
              REGRESSION: Line disappears when deleting
              
              Rewrote moveNodesAfterNode to address these problems:
              It moved nodes without preserving their style. 
              It traversed over siblings looking for a br to know when
              to stop merging.  If the br was burried inside a span, it 
              wouldn't find it.  If the text is whitespace:pre, it wouldn't
              stop.
              In theory it would crash if the "enclosingInlineElements" of the start of the
              selection to delete and the end of the selection to delete were the
              same.  We think that this will fix these:
              <rdar://problems/3950559&4498113>
              CrashTracer: 2116 crashes in Mail at com.apple.WebCore: khtml::CompositeEditCommand::insertNodeAfter + 32
              CrashTracer: 1569 crashes in Mail at com.apple.WebCore: khtml::DeleteSelectionCommand::moveNodesAfterNode + 340
              But we haven't been able to construct a reproducible case.
              
              * editing/CompositeEditCommand.cpp:
              (WebCore::CompositeEditCommand::removeNodeAndPruneAncestors): Moved from ReplaceSelectionCommand.
              (WebCore::CompositeEditCommand::prune): Ditto.
              * editing/CompositeEditCommand.h:
              * editing/DeleteSelectionCommand.cpp:
              (WebCore::DeleteSelectionCommand::mergeParagraphs):
              (WebCore::DeleteSelectionCommand::doApply):
              * editing/DeleteSelectionCommand.h:
              * editing/ReplaceSelectionCommand.cpp:
              (WebCore::ReplaceSelectionCommand::doApply):
              * editing/ReplaceSelectionCommand.h:
              (WebCore::):
              * editing/markup.cpp:
              (WebCore::createMarkup): 
              Was crashing when passed a collapsed range.  I early return an empty string instead.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13685 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      217ded8c
  30. 28 Mar, 2006 1 commit
    • ggaren's avatar
      Reviewed by Beth. · aa01dc00
      ggaren authored
              - Global replace of getDocument() with document(). Darin suggested this
              in his review of my EventTargetNode patch. It matches the style of
              methods like ownerDocument().
      
              - Changed getDocument() to document(); changed data member document to
              m_document; changed stack variable document to doc.
      
              * bindings/objc/DOM.mm:
              (-[DOMNode ownerDocument]):
              (-[DOMNode KJS::Bindings::]):
              (-[DOMElement _getURLAttribute:]):
              * bindings/objc/DOMHTML.mm:
              (-[DOMHTMLElement titleDisplayString]):
              (-[DOMHTMLInputElement altDisplayString]):
              (-[DOMHTMLAnchorElement blur]):
              (-[DOMHTMLAnchorElement focus]):
              (-[DOMHTMLImageElement altDisplayString]):
              (-[DOMHTMLAppletElement altDisplayString]):
              (-[DOMHTMLAreaElement altDisplayString]):
              * bindings/objc/DOMInternal.mm:
              (-[WebScriptObject _initializeScriptDOMNodeImp]):
              * bridge/mac/FrameMac.mm:
              (WebCore::FrameMac::attributedString):
              * bridge/mac/FrameViewMac.mm:
              (WebCore::FrameView::updateDashboardRegions):
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge initSubframeWithRenderer:]):
              (-[WebCoreFrameBridge setSelectedDOMRange:affinity:closeTyping:]):
              (-[WebCoreFrameBridge smartDeleteRangeForProposedRange:]):
              * css/CSSComputedStyleDeclaration.cpp:
              (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
              * css/css_base.cpp:
              (WebCore::StyleBase::baseURL):
              * css/css_stylesheetimpl.cpp:
              (WebCore::CSSStyleSheet::CSSStyleSheet):
              * css/cssstyleselector.cpp:
              (WebCore::CSSStyleSelector::initForStyleResolve):
              (WebCore::CSSStyleSelector::canShareStyleWithElement):
              (WebCore::CSSStyleSelector::locateSharedStyle):
              (WebCore::CSSStyleSelector::createStyleForElement):
              (WebCore::CSSStyleSelector::createPseudoStyleForElement):
              (WebCore::CSSStyleSelector::adjustRenderStyle):
              (WebCore::CSSStyleSelector::styleRulesForElement):
              (WebCore::CSSStyleSelector::checkOneSelector):
              (WebCore::CSSStyleSelector::applyProperty):
              (WebCore::CSSStyleSelector::mapBackgroundImage):
              (WebCore::CSSStyleSelector::getColorFromPrimitiveValue):
              * dom/AbstractView.cpp:
              (WebCore::AbstractView::AbstractView):
              * dom/CDATASection.cpp:
              (WebCore::CDATASection::cloneNode):
              (WebCore::CDATASection::createNew):
              * dom/CharacterData.cpp:
              (WebCore::CharacterData::setData):
              (WebCore::CharacterData::insertData):
              (WebCore::CharacterData::deleteData):
              (WebCore::CharacterData::replaceData):
              (WebCore::CharacterData::dispatchModifiedEvent):
              * dom/Comment.cpp:
              (WebCore::Comment::cloneNode):
              * dom/ContainerNode.cpp:
              (WebCore::ContainerNode::insertBefore):
              (WebCore::ContainerNode::replaceChild):
              (WebCore::ContainerNode::removeChild):
              (WebCore::ContainerNode::appendChild):
              (WebCore::ContainerNode::addChild):
              (WebCore::ContainerNode::getUpperLeftCorner):
              (WebCore::dispatchChildInsertionEvents):
              (WebCore::dispatchChildRemovalEvents):
              * dom/DOMImplementation.cpp:
              (WebCore::DOMImplementation::createDocument):
              * dom/Document.cpp:
              (WebCore::Document::Document):
              (WebCore::Document::~Document):
              (WebCore::Document::createDocumentFragment):
              (WebCore::Document::adoptNode):
              (WebCore::Document::createElementNS):
              (WebCore::Document::nodeAbsIndex):
              (WebCore::Document::setFocusNode):
              (WebCore::Document::topDocument):
              * dom/DocumentFragment.cpp:
              (WebCore::DocumentFragment::cloneNode):
              * dom/EventTargetNode.cpp:
              (WebCore::EventTargetNode::~EventTargetNode):
              (WebCore::EventTargetNode::insertedIntoDocument):
              (WebCore::EventTargetNode::removedFromDocument):
              (WebCore::EventTargetNode::addEventListener):
              (WebCore::EventTargetNode::removeEventListener):
              (WebCore::EventTargetNode::dispatchGenericEvent):
              (WebCore::EventTargetNode::dispatchEvent):
              (WebCore::EventTargetNode::dispatchSubtreeModifiedEvent):
              (WebCore::EventTargetNode::dispatchWindowEvent):
              (WebCore::EventTargetNode::dispatchUIEvent):
              (WebCore::EventTargetNode::dispatchKeyEvent):
              (WebCore::EventTargetNode::dispatchMouseEvent):
              (WebCore::EventTargetNode::dispatchWheelEvent):
              (WebCore::EventTargetNode::removeHTMLEventListener):
              * dom/Node.cpp:
              (WebCore::Node::Node):
              (WebCore::Node::setDocument):
              (WebCore::Node::setChanged):
              (WebCore::Node::checkSetPrefix):
              (WebCore::Node::checkAddChild):
              (WebCore::Node::attach):
              (WebCore::Node::detach):
              (WebCore::Node::createRendererIfNeeded):
              (WebCore::Node::rendererIsNeeded):
              (WebCore::Node::getElementsByTagNameNS):
              (WebCore::Node::ownerDocument):
              (WebCore::Node::setTextContent):
              * dom/Node.h:
              (WebCore::Node::document):
              (WebCore::Node::inDocument):
              * dom/NodeList.cpp:
              (WebCore::NodeList::itemById):
              * dom/Position.cpp:
              (WebCore::Position::documentElement):
              * dom/Range.cpp:
              (WebCore::Range::commonAncestorContainer):
              (WebCore::Range::setStart):
              (WebCore::Range::setEnd):
              (WebCore::Range::compareBoundaryPoints):
              (WebCore::Range::insertNode):
              (WebCore::Range::text):
              (WebCore::Range::setStartAfter):
              (WebCore::Range::setEndBefore):
              (WebCore::Range::setEndAfter):
              (WebCore::Range::surroundContents):
              (WebCore::Range::setStartBefore):
              (WebCore::rangeOfContents):
              * dom/Text.cpp:
              (WebCore::Text::cloneNode):
              (WebCore::Text::createNew):
              * dom/dom2_eventsimpl.cpp:
              (WebCore::MouseRelatedEvent::receivedTarget):
              * dom/dom2_traversalimpl.cpp:
              (WebCore::NodeIterator::NodeIterator):
              * dom/dom_elementimpl.cpp:
              (WebCore::Attribute::createAttrIfNeeded):
              (WebCore::Attr::createTextChild):
              (WebCore::Attr::setValue):
              (WebCore::Attr::cloneNode):
              (WebCore::Element::cloneNode):
              (WebCore::inHTMLDocument):
              (WebCore::Element::setAttribute):
              (WebCore::Element::setAttributeMap):
              (WebCore::Element::createStyleForRenderer):
              (WebCore::Element::createRenderer):
              (WebCore::Element::recalcStyle):
              (WebCore::Element::dispatchAttrRemovalEvent):
              (WebCore::Element::dispatchAttrAdditionEvent):
              (WebCore::Element::updateId):
              (WebCore::Element::removeAttributeNode):
              (WebCore::Element::focus):
              (WebCore::Element::blur):
              (WebCore::NamedAttrMap::setNamedItem):
              (WebCore::NamedMappedAttrMap::parseClassAttribute):
              (WebCore::StyledElement::createInlineStyleDecl):
              (WebCore::StyledElement::parseMappedAttribute):
              (WebCore::StyledElement::createMappedDecl):
              * dom/dom_xmlimpl.cpp:
              (WebCore::EntityReference::cloneNode):
              (WebCore::ProcessingInstruction::cloneNode):
              (WebCore::ProcessingInstruction::checkStyleSheet):
              (WebCore::ProcessingInstruction::sheetLoaded):
              (WebCore::ProcessingInstruction::setStyleSheet):
              * dom/xml_tokenizer.cpp:
              (WebCore::XMLTokenizer::XMLTokenizer):
              * editing/ReplaceSelectionCommand.cpp:
              (WebCore::ReplacementFragment::ReplacementFragment):
              (WebCore::ReplaceSelectionCommand::fixupNodeStyles):
              (WebCore::styleForNode):
              * editing/Selection.cpp:
              (WebCore::Selection::toRange):
              * editing/SelectionController.cpp:
              (WebCore::SelectionController::~SelectionController):
              (WebCore::SelectionController::setSelection):
              (WebCore::SelectionController::xPosForVerticalArrowNavigation):
              (WebCore::SelectionController::frame):
              (WebCore::SelectionController::layout):
              (WebCore::SelectionController::needsCaretRepaint):
              * editing/TextIterator.cpp:
              (WebCore::TextIterator::range):
              (WebCore::SimplifiedBackwardsTextIterator::range):
              * editing/VisiblePosition.cpp:
              (WebCore::VisiblePosition::init):
              (WebCore::makeRange):
              * editing/markup.cpp:
              (WebCore::startMarkup):
              (WebCore::shouldSelfClose):
              (WebCore::markup):
              (WebCore::createMarkup):
              * editing/visible_units.cpp:
              (WebCore::previousBoundary):
              (WebCore::nextBoundary):
              (WebCore::previousLinePosition):
              (WebCore::nextLinePosition):
              (WebCore::inSameDocument):
              * html/HTMLCollection.cpp:
              (WebCore::HTMLCollection::HTMLCollection):
              (WebCore::HTMLCollection::resetCollectionInfo):
              * html/HTMLElement.cpp:
              (WebCore::HTMLElement::nodeName):
              (WebCore::HTMLElement::cloneNode):
              (WebCore::HTMLElement::innerText):
              (WebCore::HTMLElement::createContextualFragment):
              (WebCore::HTMLElement::setInnerText):
              (WebCore::HTMLElement::setOuterText):
              (WebCore::HTMLElement::isContentEditable):
              (WebCore::HTMLElement::contentEditable):
              (WebCore::HTMLElement::toString):
              (WebCore::HTMLElement::childAllowed):
              (WebCore::HTMLElement::setHTMLEventListener):
              * html/HTMLFormElement.cpp:
              (WebCore::HTMLFormElement::formWouldHaveSecureSubmission):
              (WebCore::HTMLFormElement::attach):
              (WebCore::HTMLFormElement::insertedIntoDocument):
              (WebCore::HTMLFormElement::removedFromDocument):
              (WebCore::HTMLFormElement::formData):
              (WebCore::HTMLFormElement::prepareSubmit):
              (WebCore::HTMLFormElement::submit):
              (WebCore::HTMLFormElement::reset):
              (WebCore::HTMLFormElement::parseMappedAttribute):
              (WebCore::HTMLFormElement::registerFormElement):
              (WebCore::HTMLFormElement::removeFormElement):
              * html/HTMLGenericFormElement.cpp:
              (WebCore::HTMLGenericFormElement::attach):
              (WebCore::HTMLGenericFormElement::insertedIntoTree):
              (WebCore::HTMLGenericFormElement::isKeyboardFocusable):
              * html/HTMLInputElement.cpp:
              (WebCore::HTMLInputElement::~HTMLInputElement):
              (WebCore::HTMLInputElement::isKeyboardFocusable):
              (WebCore::HTMLInputElement::focus):
              (WebCore::HTMLInputElement::setInputType):
              (WebCore::HTMLInputElement::parseMappedAttribute):
              (WebCore::HTMLInputElement::attach):
              (WebCore::HTMLInputElement::setChecked):
              (WebCore::HTMLInputElement::preDispatchEventHandler):
              (WebCore::HTMLInputElement::defaultEventHandler):
              (WebCore::HTMLInputElement::src):
              * html/HTMLKeygenElement.cpp:
              (WebCore::HTMLKeygenElement::appendFormData):
              * html/HTMLLabelElement.cpp:
              (WebCore::HTMLLabelElement::formElement):
              * html/HTMLOptionElement.cpp:
              (WebCore::HTMLOptionElement::text):
              (WebCore::HTMLOptionElement::setText):
              * html/HTMLParser.cpp:
              (WebCore::HTMLParser::HTMLParser):
              * html/HTMLSelectElement.cpp:
              (WebCore::HTMLSelectElement::~HTMLSelectElement):
              * html/HTMLTextAreaElement.cpp:
              (WebCore::HTMLTextAreaElement::~HTMLTextAreaElement):
              (WebCore::HTMLTextAreaElement::setDefaultValue):
              * html/HTMLTokenizer.cpp:
              (WebCore::HTMLTokenizer::HTMLTokenizer):
              * html/html_baseimpl.cpp:
              (WebCore::HTMLBodyElement::createLinkDecl):
              (WebCore::HTMLBodyElement::mapToEntry):
              (WebCore::HTMLBodyElement::parseMappedAttribute):
              (WebCore::HTMLBodyElement::insertedIntoDocument):
              (WebCore::HTMLFrameElement::isURLAllowed):
              (WebCore::HTMLFrameElement::openURL):
              (WebCore::HTMLFrameElement::attach):
              (WebCore::HTMLFrameElement::close):
              (WebCore::HTMLFrameElement::contentFrame):
              (WebCore::HTMLFrameElement::frameWidth):
              (WebCore::HTMLFrameElement::frameHeight):
              (WebCore::HTMLFrameSetElement::parseMappedAttribute):
              (WebCore::HTMLIFrameElement::parseMappedAttribute):
              (WebCore::HTMLIFrameElement::insertedIntoDocument):
              (WebCore::HTMLIFrameElement::removedFromDocument):
              (WebCore::HTMLIFrameElement::attach):
              (WebCore::HTMLIFrameElement::src):
              * html/html_blockimpl.cpp:
              (WebCore::HTMLParagraphElement::checkDTD):
              * html/html_headimpl.cpp:
              (WebCore::HTMLBaseElement::removedFromDocument):
              (WebCore::HTMLBaseElement::process):
              (WebCore::HTMLLinkElement::setDisabledState):
              (WebCore::HTMLLinkElement::parseMappedAttribute):
              (WebCore::HTMLLinkElement::process):
              (WebCore::HTMLLinkElement::setStyleSheet):
              (WebCore::HTMLLinkElement::sheetLoaded):
              (WebCore::HTMLLinkElement::href):
              (WebCore::HTMLMetaElement::process):
              (WebCore::HTMLScriptElement::childrenChanged):
              (WebCore::HTMLScriptElement::parseMappedAttribute):
              (WebCore::HTMLScriptElement::insertedIntoDocument):
              (WebCore::HTMLScriptElement::evaluateScript):
              (WebCore::HTMLScriptElement::setText):
              (WebCore::HTMLScriptElement::src):
              (WebCore::HTMLStyleElement::insertedIntoDocument):
              (WebCore::HTMLStyleElement::removedFromDocument):
              (WebCore::HTMLStyleElement::childrenChanged):
              (WebCore::HTMLStyleElement::sheetLoaded):
              (WebCore::HTMLTitleElement::insertedIntoDocument):
              (WebCore::HTMLTitleElement::removedFromDocument):
              (WebCore::HTMLTitleElement::childrenChanged):
              (WebCore::HTMLTitleElement::setText):
              * html/html_imageimpl.cpp:
              (WebCore::HTMLImageLoader::~HTMLImageLoader):
              (WebCore::HTMLImageLoader::updateFromElement):
              (WebCore::HTMLImageLoader::notifyFinished):
              (WebCore::HTMLImageElement::parseMappedAttribute):
              (WebCore::HTMLImageElement::insertedIntoDocument):
              (WebCore::HTMLImageElement::removedFromDocument):
              (WebCore::HTMLImageElement::width):
              (WebCore::HTMLImageElement::height):
              (WebCore::HTMLImageElement::src):
              (WebCore::HTMLMapElement::~HTMLMapElement):
              (WebCore::HTMLMapElement::parseMappedAttribute):
              (WebCore::HTMLAreaElement::href):
              * html/html_inlineimpl.cpp:
              (WebCore::HTMLAnchorElement::isKeyboardFocusable):
              (WebCore::HTMLAnchorElement::defaultEventHandler):
              (WebCore::HTMLAnchorElement::href):
              (WebCore::HTMLAnchorElement::blur):
              (WebCore::HTMLAnchorElement::focus):
              * html/html_objectimpl.cpp:
              (WebCore::HTMLAppletElement::parseMappedAttribute):
              (WebCore::HTMLAppletElement::insertedIntoDocument):
              (WebCore::HTMLAppletElement::removedFromDocument):
              (WebCore::HTMLAppletElement::createRenderer):
              (WebCore::HTMLAppletElement::getAppletInstance):
              (WebCore::HTMLEmbedElement::getEmbedInstance):
              (WebCore::HTMLEmbedElement::parseMappedAttribute):
              (WebCore::HTMLEmbedElement::rendererIsNeeded):
              (WebCore::HTMLEmbedElement::insertedIntoDocument):
              (WebCore::HTMLEmbedElement::removedFromDocument):
              (WebCore::HTMLObjectElement::getObjectInstance):
              (WebCore::HTMLObjectElement::parseMappedAttribute):
              (WebCore::HTMLObjectElement::rendererIsNeeded):
              (WebCore::HTMLObjectElement::insertedIntoDocument):
              (WebCore::HTMLObjectElement::removedFromDocument):
              (WebCore::HTMLObjectElement::updateDocNamedItem):
              (WebCore::HTMLParamElement::parseMappedAttribute):
              * html/html_tableimpl.cpp:
              (WebCore::HTMLTableElement::createTHead):
              (WebCore::HTMLTableElement::createTFoot):
              (WebCore::HTMLTableElement::createCaption):
              (WebCore::HTMLTableElement::insertRow):
              (WebCore::HTMLTableElement::addChild):
              (WebCore::HTMLTableElement::mapToEntry):
              (WebCore::HTMLTableElement::parseMappedAttribute):
              (WebCore::HTMLTableElement::additionalAttributeStyleDecl):
              (WebCore::HTMLTableElement::getSharedCellDecl):
              (WebCore::HTMLTablePartElement::mapToEntry):
              (WebCore::HTMLTablePartElement::parseMappedAttribute):
              (WebCore::HTMLTableSectionElement::insertRow):
              (WebCore::HTMLTableRowElement::insertCell):
              * khtml/ecma/kjs_dom.cpp:
              (KJS::DOMNode::~DOMNode):
              (KJS::DOMNode::mark):
              (KJS::DOMElement::getValueProperty):
              (KJS::DOMElementProtoFunc::callAsFunction):
              (KJS::checkNodeSecurity):
              (KJS::toJS):
              * khtml/ecma/kjs_html.cpp:
              (KJS::JSHTMLElement::implementsCall):
              (KJS::JSHTMLElement::bodyGetter):
              (KJS::JSHTMLElement::anchorGetter):
              (KJS::JSHTMLElement::getValueProperty):
              (KJS::JSHTMLElement::bodySetter):
              * khtml/ecma/kjs_traversal.cpp:
              (KJS::JSNodeFilterCondition::acceptNode):
              * khtml/ecma/kjs_views.cpp:
              (KJS::DOMAbstractViewProtoFunc::callAsFunction):
              * khtml/xbl/xbl_binding.cpp:
              (XBL::XBLBindingChain::failed):
              (XBL::m_nextBinding):
              (XBL::XBLBinding::setXBLDocument):
              * khtml/xbl/xbl_protobinding.cpp:
              (XBL::XBLPrototypeBinding::document):
              * khtml/xsl/XSLStyleSheet.cpp:
              (WebCore::XSLStyleSheet::XSLStyleSheet):
              * khtml/xsl/XSLTProcessor.cpp:
              (WebCore::XSLTProcessor::createDocumentFromSource):
              (WebCore::xmlDocPtrFromNode):
              (WebCore::XSLTProcessor::transformToString):
              * ksvg2/svg/SVGAElement.cpp:
              (SVGAElement::defaultEventHandler):
              * ksvg2/svg/SVGAnimateColorElement.cpp:
              (SVGAnimateColorElement::handleTimerEvent):
              * ksvg2/svg/SVGAnimateElement.cpp:
              (SVGAnimateElement::handleTimerEvent):
              * ksvg2/svg/SVGAnimateTransformElement.cpp:
              (SVGAnimateTransformElement::handleTimerEvent):
              * ksvg2/svg/SVGAnimationElement.cpp:
              (SVGAnimationElement::closeRenderer):
              * ksvg2/svg/SVGClipPathElement.cpp:
              (SVGClipPathElement::canvasResource):
              * ksvg2/svg/SVGElement.cpp:
              (WebCore::SVGElement::addSVGEventListener):
              * ksvg2/svg/SVGGradientElement.cpp:
              (SVGGradientElement::rebuildStops):
              * ksvg2/svg/SVGHelper.cpp:
              (SVGHelper::PercentageOfViewport):
              * ksvg2/svg/SVGLinearGradientElement.cpp:
              (SVGLinearGradientElement::buildGradient):
              * ksvg2/svg/SVGPatternElement.cpp:
              (WebCore::SVGPatternElement::fillAttributesFromReferencePattern):
              * ksvg2/svg/SVGRadialGradientElement.cpp:
              (WebCore::SVGRadialGradientElement::buildGradient):
              * ksvg2/svg/SVGSVGElement.cpp:
              (WebCore::SVGSVGElement::setCurrentScale):
              (WebCore::SVGSVGElement::addSVGWindowEventListner):
              * ksvg2/svg/SVGSetElement.cpp:
              (SVGSetElement::handleTimerEvent):
              * ksvg2/svg/SVGStyleElement.cpp:
              (SVGStyleElement::childrenChanged):
              * ksvg2/svg/SVGStyledElement.cpp:
              (WebCore::SVGStyledElement::canvas):
              * ksvg2/svg/SVGTitleElement.cpp:
              (WebCore::SVGTitleElement::closeRenderer):
              (WebCore::SVGTitleElement::insertedIntoDocument):
              (WebCore::SVGTitleElement::removedFromDocument):
              (WebCore::SVGTitleElement::childrenChanged):
              * ksvg2/svg/SVGUseElement.cpp:
              (SVGUseElement::closeRenderer):
              * kwq/WebCoreAXObject.mm:
              (-[WebCoreAXObject accessibilityPerformAction:]):
              (-[WebCoreAXObject accessibilityAttributeValue:]):
              * page/Frame.cpp:
              (WebCore::parentFromOwnerRenderer):
              (WebCore::Frame::frameForNode):
              (WebCore::Frame::clearDocumentFocus):
              * page/FrameView.cpp:
              (WebCore::FrameView::dispatchMouseEvent):
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::setStyle):
              * rendering/RenderCanvas.cpp:
              (WebCore::RenderCanvas::RenderCanvas):
              (WebCore::RenderCanvas::paintBoxDecorations):
              (WebCore::RenderCanvas::repaintViewRectangle):
              * rendering/RenderImage.cpp:
              (WebCore::RenderImage::imageMap):
              * rendering/RenderLayer.cpp:
              (WebCore::RenderLayer::setHasHorizontalScrollbar):
              (WebCore::RenderLayer::setHasVerticalScrollbar):
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::createObject):
              (WebCore::RenderObject::RenderObject):
              (WebCore::RenderObject::isRoot):
              (WebCore::RenderObject::backslashAsCurrencySymbol):
              * rendering/RenderObject.h:
              (WebCore::RenderObject::document):
              * rendering/RenderTheme.cpp:
              (WebCore::RenderTheme::isFocused):
              * rendering/render_applet.cpp:
              (WebCore::RenderApplet::createWidgetIfNecessary):
              * rendering/render_replaced.cpp:
              (WebCore::RenderWidget::RenderWidget):
              (WebCore::RenderWidget::focusIn):
              (WebCore::RenderWidget::focusOut):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13543 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      aa01dc00
  31. 22 Mar, 2006 1 commit
    • eseidel's avatar
      2006-03-22 Eric Seidel <eseidel@apple.com> · cff0a728
      eseidel authored
              Reviewed by darin.
      
              Replace more DeprecatedString with String.
              http://bugzilla.opendarwin.org/show_bug.cgi?id=7907
      
              * WebCore+SVG/kdom.h:
              * bindings/objc/DOMHTML.mm:
              (-[DOMHTMLDocument _createDocumentFragmentWithMarkupString:baseURLString:]):
              * bridge/BrowserExtension.h:
              * bridge/mac/BrowserExtensionMac.h:
              * bridge/mac/BrowserExtensionMac.mm:
              (WebCore::BrowserExtensionMac::setTypedIconURL):
              * bridge/mac/FrameMac.h:
              * bridge/mac/FrameMac.mm:
              (WebCore::FrameMac::searchForLabelsBeforeElement):
              (WebCore::nsArray):
              (WebCore::FrameMac::createPlugin):
              (WebCore::FrameMac::bindingRootObject):
              (WebCore::FrameMac::windowScriptObject):
              (WebCore::FrameMac::windowScriptNPObject):
              (WebCore::FrameMac::partClearedInBegin):
              (WebCore::FrameMac::openURLFromPageCache):
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge openURL:reload:contentType:refresh:lastModified:pageCache:]):
              (-[WebCoreFrameBridge scrollToAnchor:]):
              (-[WebCoreFrameBridge URLWithAttributeString:]):
              (-[WebCoreFrameBridge highlightAllMatchesForString:caseSensitive:]):
              * bridge/mac/WebCoreScriptDebugger.mm:
              (-[WebCoreScriptCallFrame evaluateWebScript:]):
              * bridge/mac/WebCoreSettings.mm:
              (-[WebCoreSettings _updateAllViews]):
              (-[WebCoreSettings setStandardFontFamily:]):
              (-[WebCoreSettings setMinimumFontSize:]):
              (-[WebCoreSettings setMinimumLogicalFontSize:]):
              (-[WebCoreSettings setDefaultFontSize:]):
              (-[WebCoreSettings setDefaultFixedFontSize:]):
              (-[WebCoreSettings setUserStyleSheetLocation:]):
              * css/CSSComputedStyleDeclaration.cpp:
              (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
              * css/CSSGrammar.y:
              * css/css_stylesheetimpl.cpp:
              (WebCore::MediaList::setMediaText):
              * css/css_valueimpl.cpp:
              (WebCore::quoteStringIfNeeded):
              * css/cssparser.cpp:
              (WebCore::CSSParser::parseColor):
              * css/cssstyleselector.cpp:
              (WebCore::CSSStyleSelector::CSSStyleSelector):
              * css/cssstyleselector.h:
              * dom/Document.cpp:
              (WebCore::Document::resetActiveLinkColor):
              (WebCore::Document::nextState):
              (WebCore::Document::setUserStyleSheet):
              (WebCore::Document::processHttpEquiv):
              (WebCore::Document::recalcStyleSelector):
              * dom/Document.h:
              (WebCore::Document::userStyleSheet):
              (WebCore::Document::setPrintStyleSheet):
              (WebCore::Document::printStyleSheet):
              * editing/markup.cpp:
              (WebCore::createMarkup):
              (WebCore::createFragmentFromMarkup):
              (WebCore::createFragmentFromText):
              * editing/markup.h:
              * html/CanvasRenderingContext2D.cpp:
              (WebCore::CanvasRenderingContext2D::setGlobalCompositeOperation):
              * html/HTMLTokenizer.cpp:
              (WebCore::HTMLTokenizer::scriptHandler):
              * html/html_baseimpl.cpp:
              (WebCore::HTMLFrameElement::openURL):
              (WebCore::HTMLFrameElement::attach):
              * html/html_headimpl.cpp:
              (WebCore::HTMLLinkElement::process):
              (WebCore::HTMLLinkElement::setStyleSheet):
              * html/html_headimpl.h:
              * html/html_imageimpl.cpp:
              (WebCore::HTMLImageElement::parseMappedAttribute):
              * html/html_imageimpl.h:
              (WebCore::HTMLImageElement::compositeOperator):
              * html/html_objectimpl.cpp:
              (WebCore::HTMLAppletElement::createRenderer):
              * ksvg2/svg/SVGStringList.cpp:
              (SVGStringList::reset):
              * kwq/AccessibilityObjectCache.h:
              * kwq/AccessibilityObjectCache.mm:
              (AccessibilityObjectCache::textMarkerForVisiblePosition):
              (AccessibilityObjectCache::postNotificationToTopWebArea):
              (AccessibilityObjectCache::postNotification):
              * kwq/ClipboardMac.mm:
              (WebCore::cocoaTypeFromMIMEType):
              * kwq/KWQKHTMLSettings.h:
              (KHTMLSettings::userStyleSheetLocation):
              (KHTMLSettings::setUserStyleSheetLocation):
              * kwq/KWQLineEdit.h:
              * kwq/KWQLineEdit.mm:
              (QLineEdit::selectedText):
              * loader/CachedCSSStyleSheet.cpp:
              (WebCore::CachedCSSStyleSheet::ref):
              * page/Frame.cpp:
              (WebCore::UserStyleSheetLoader::setStyleSheet):
              (WebCore::Frame::jScriptEnabled):
              (WebCore::Frame::javaEnabled):
              (WebCore::Frame::pluginsEnabled):
              (WebCore::Frame::receivedFirstData):
              (WebCore::Frame::begin):
              (WebCore::Frame::setUserStyleSheet):
              (WebCore::Frame::requestObject):
              (WebCore::Frame::loadPlugin):
              (WebCore::Frame::referrer):
              (WebCore::Frame::lastModified):
              (WebCore::Frame::reparseConfiguration):
              (WebCore::Frame::handleMousePressEventSingleClick):
              (WebCore::Frame::appliedEditing):
              (WebCore::Frame::unappliedEditing):
              (WebCore::Frame::reappliedEditing):
              * page/Frame.h:
              * page/FramePrivate.h:
              (WebCore::FramePrivate::FramePrivate):
              * platform/AtomicString.h:
              (WebCore::AtomicString::AtomicString):
              * platform/DeprecatedString.cpp:
              (DeprecatedString::replace):
              * platform/GraphicsContext.h:
              * platform/Image.h:
              * platform/KURL.cpp:
              * platform/KURL.h:
              * platform/PlatformString.h:
              (WebCore::String::String):
              (WebCore::String::replace):
              * platform/String.cpp:
              (WebCore::operator+):
              * platform/StringImpl.cpp:
              (WebCore::StringImpl::remove):
              (WebCore::parseLength):
              (WebCore::StringImpl::replace):
              * platform/StringImpl.h:
              * platform/mac/GraphicsContextMac.mm:
              (WebCore::GraphicsContext::setCompositeOperation):
              * rendering/RenderHTMLCanvas.cpp:
              (WebCore::RenderHTMLCanvas::paint):
              * rendering/render_form.cpp:
              (WebCore::RenderSelect::updateFromElement):
              * rendering/render_frames.cpp:
              (WebCore::isURLAllowed):
              (WebCore::mapClassIdToServiceType):
              (WebCore::RenderPartObject::updateWidget):
              * rendering/render_style.h:
              (WebCore::RenderStyle::setDashboardRegion):
              * xml/xmlhttprequest.cpp:
              (WebCore::getCharset):
              (WebCore::XMLHttpRequest::send):
              (WebCore::XMLHttpRequest::overrideMIMEType):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13440 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cff0a728
  32. 21 Mar, 2006 1 commit
    • darin's avatar
      LayoutTests: · fa25c309
      darin authored
              - test for <rdar://problem/4251515> REGRESSION: listing tag broken in TOT
      
              * fast/html: Added.
              * fast/html/listing-expected.checksum: Added.
              * fast/html/listing-expected.png: Added.
              * fast/html/listing-expected.txt: Added.
              * fast/html/listing.html: Added.
      
      WebCore:
      
              Reviewed by Tim O.
      
              - fixed <rdar://problem/4251515> REGRESSION: listing tag broken in TOT
      
              Test: fast/html/listing.html
      
              * html/HTMLNames.h: Add listing tag.
      
              * bindings/objc/DOM.mm: (+[DOMNode _nodeWith:]):
              * bridge/mac/FrameMac.mm: (WebCore::FrameMac::attributedString):
              * css/html4.css:
              * editing/ReplaceSelectionCommand.cpp: (WebCore::isProbablyBlock):
              * editing/TextIterator.cpp:
              (WebCore::TextIterator::handleNonTextNode):
              (WebCore::TextIterator::exitNode):
              (WebCore::SimplifiedBackwardsTextIterator::handleNonTextNode):
              * editing/markup.cpp:
              (WebCore::startMarkup):
              (WebCore::createMarkup):
              * html/HTMLElement.cpp: (WebCore::blockTagList):
              * html/HTMLElementFactory.cpp:
              (WebCore::addTag):
              (WebCore::createFunctionMap):
              (WebCore::HTMLElementFactory::createHTMLElement):
              * html/HTMLParser.cpp: (WebCore::HTMLParser::isAffectedByResidualStyle):
              * html/HTMLTokenizer.cpp: (WebCore::HTMLTokenizer::parseTag):
              * khtml/ecma/kjs_html.cpp:
              (KJS::JSHTMLElement::classInfo):
              (KJS::JSHTMLElement::accessors):
              Add listing tags everywhere pre tags are listed.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13426 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fa25c309
  33. 20 Mar, 2006 1 commit
    • darin's avatar
      Rubber stamped by Eric. · 98fa8b83
      darin authored
              - moved khtml/html files all into html directory
      
              * WebCore.vcproj/WebCore/WebCore.vcproj: Updated for new paths.
              * WebCore.vcproj/WebCore/build-generated-files.sh: Ditto.
              * WebCore.xcodeproj/project.pbxproj: Ditto.
      
              * khtml/html: Removed.
      
              * html/DocTypeStrings.gperf: Moved.
              * html/FormDataList.cpp: Ditto.
              * html/FormDataList.h: Ditto.
              * html/HTMLBaseFontElement.cpp: Ditto.
              * html/HTMLBaseFontElement.h: Ditto.
              * html/HTMLButtonElement.cpp: Ditto.
              * html/HTMLButtonElement.h: Ditto.
              * html/HTMLCanvasElement.cpp: Ditto.
              * html/HTMLCanvasElement.h: Ditto.
              * html/HTMLCollection.cpp: Ditto.
              * html/HTMLCollection.h: Ditto.
              * html/HTMLDocument.cpp: Ditto.
              * html/HTMLDocument.h: Ditto.
              * html/HTMLElement.cpp: Ditto.
              * html/HTMLElement.h: Ditto.
              * html/HTMLElementFactory.cpp: Ditto.
              * html/HTMLElementFactory.h: Ditto.
              * html/HTMLEntityNames.gperf: Ditto.
              * html/HTMLFieldSetElement.cpp: Ditto.
              * html/HTMLFieldSetElement.h: Ditto.
              * html/HTMLFormCollection.cpp: Ditto.
              * html/HTMLFormCollection.h: Ditto.
              * html/HTMLFormElement.cpp: Ditto.
              * html/HTMLFormElement.h: Ditto.
              * html/HTMLGenericFormElement.cpp: Ditto.
              * html/HTMLGenericFormElement.h: Ditto.
              * html/HTMLInputElement.cpp: Ditto.
              * html/HTMLInputElement.h: Ditto.
              * html/HTMLIsIndexElement.cpp: Ditto.
              * html/HTMLIsIndexElement.h: Ditto.
              * html/HTMLKeygenElement.cpp: Ditto.
              * html/HTMLKeygenElement.h: Ditto.
              * html/HTMLLabelElement.cpp: Ditto.
              * html/HTMLLabelElement.h: Ditto.
              * html/HTMLLegendElement.cpp: Ditto.
              * html/HTMLLegendElement.h: Ditto.
              * html/HTMLNameCollection.cpp: Ditto.
              * html/HTMLNameCollection.h: Ditto.
              * html/HTMLNames.cpp: Ditto.
              * html/HTMLNames.h: Ditto.
              * html/HTMLOptGroupElement.cpp: Ditto.
              * html/HTMLOptGroupElement.h: Ditto.
              * html/HTMLOptionElement.cpp: Ditto.
              * html/HTMLOptionElement.h: Ditto.
              * html/HTMLOptionsCollection.cpp: Ditto.
              * html/HTMLOptionsCollection.h: Ditto.
              * html/HTMLParser.cpp: Ditto.
              * html/HTMLParser.h: Ditto.
              * html/HTMLSelectElement.cpp: Ditto.
              * html/HTMLSelectElement.h: Ditto.
              * html/HTMLTextAreaElement.cpp: Ditto.
              * html/HTMLTextAreaElement.h: Ditto.
              * html/HTMLTextFieldInnerElement.cpp: Ditto.
              * html/HTMLTextFieldInnerElement.h: Ditto.
              * html/HTMLTokenizer.cpp: Ditto.
              * html/HTMLTokenizer.h: Ditto.
              * html/html_baseimpl.cpp: Ditto.
              * html/html_baseimpl.h: Ditto.
              * html/html_blockimpl.cpp: Ditto.
              * html/html_blockimpl.h: Ditto.
              * html/html_headimpl.cpp: Ditto.
              * html/html_headimpl.h: Ditto.
              * html/html_imageimpl.cpp: Ditto.
              * html/html_imageimpl.h: Ditto.
              * html/html_inlineimpl.cpp: Ditto.
              * html/html_inlineimpl.h: Ditto.
              * html/html_listimpl.cpp: Ditto.
              * html/html_listimpl.h: Ditto.
              * html/html_objectimpl.cpp: Ditto.
              * html/html_objectimpl.h: Ditto.
              * html/html_tableimpl.cpp: Ditto.
              * html/html_tableimpl.h: Ditto.
      
              * bindings/objc/DOM.mm:
              * bridge/mac/WebCoreEncodings.mm:
              * bridge/mac/WebCoreFrameBridge.mm:
              * css/CSSGrammar.y:
              * css/cssstyleselector.cpp:
              * dom/Document.cpp:
              * dom/EventTargetNode.cpp:
              * dom/NameNodeList.cpp:
              * dom/Node.cpp:
              * dom/Position.cpp:
              * dom/dom_elementimpl.cpp:
              * dom/xml_tokenizer.cpp:
              * editing/ApplyStyleCommand.cpp:
              * editing/BreakBlockquoteCommand.cpp:
              * editing/CompositeEditCommand.cpp:
              * editing/DeleteSelectionCommand.cpp:
              * editing/InsertLineBreakCommand.cpp:
              * editing/InsertParagraphSeparatorCommand.cpp:
              * editing/JSEditor.cpp:
              * editing/ReplaceSelectionCommand.cpp:
              * editing/TextIterator.cpp:
              * editing/VisiblePosition.cpp:
              * editing/htmlediting.cpp:
              * editing/markup.cpp:
              * editing/visible_units.cpp:
              * html/CanvasRenderingContext2D.cpp:
              * kcanvas/KCanvasTreeDebug.cpp:
              * khtml/ecma/JSDOMParser.cpp:
              * khtml/ecma/kjs_css.cpp:
              * khtml/ecma/kjs_dom.cpp:
              * khtml/ecma/kjs_events.cpp:
              * khtml/misc/decoder.cpp:
              * khtml/xsl/XSLStyleSheet.cpp:
              * khtml/xsl/XSLTProcessor.cpp:
              * ksvg2/misc/SVGImageLoader.h:
              * ksvg2/svg/SVGElement.cpp:
              * ksvg2/svg/SVGSVGElement.cpp:
              * kwq/WebCoreAXObject.mm:
              * page/Frame.cpp:
              * page/FrameView.cpp:
              * rendering/RenderBlock.cpp:
              * rendering/RenderBox.cpp:
              * rendering/RenderFlow.cpp:
              * rendering/RenderHTMLCanvas.cpp:
              * rendering/RenderImage.cpp:
              * rendering/RenderLayer.cpp:
              * rendering/RenderObject.cpp:
              * rendering/RenderTable.cpp:
              * rendering/RenderTableCell.cpp:
              * rendering/RenderTableCol.cpp:
              * rendering/RenderTableRow.cpp:
              * rendering/RenderTableSection.cpp:
              * rendering/RenderTextField.cpp:
              * rendering/RenderTheme.cpp:
              * rendering/render_applet.cpp:
              * rendering/render_button.cpp:
              * rendering/render_frames.cpp:
              * rendering/render_list.cpp:
              Updated includes.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13397 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      98fa8b83
  34. 19 Mar, 2006 1 commit
  35. 06 Mar, 2006 1 commit
    • darin's avatar
      Reviewed by Maciej. · 8d1badc7
      darin authored
              - moved all the remnants of the public C++ DOM API out of khtml/dom
              - changed from "int" to "ExceptionCode" for DOM exceptions
              - removed unused CSS_HTML_RELATIVE
              - changed offsetInCharacters to be a member function of NodeImpl
              - changed DOM functions that take a NodeType to use NodeType instead of
                unsigned short for clarity (will still be unsigned short in bindings)
              - changed exception constants so they can be used directly in the
                implementation code (added in the offsets for different types of exceptions)
              - replaced the eventListenerType function with an isHTMLEventListener function
              - got rid of EventListenerEvent, which is a synonym for EventImpl*
              - eliminated handleEventImpl, whish is now the same as handleEvent
      
              - did other preparation for the "remove Impl suffix" renaming
                (tested by using a script that does the renaming)
      
              * khtml/dom/css_rule.h: Removed.
              * khtml/dom/css_stylesheet.h: Removed.
              * khtml/dom/css_value.h: Removed.
              * khtml/dom/dom2_events.cpp: Removed.
              * khtml/dom/dom2_events.h: Removed.
              * khtml/dom/dom2_range.h: Removed.
              * khtml/dom/dom2_traversal.cpp: Removed.
              * khtml/dom/dom2_traversal.h: Removed.
              * khtml/dom/dom_exception.h: Removed.
              * khtml/dom/dom_node.h: Removed.
      
              * dom/EventListener.h: Added.
              * dom/ExceptionCode.h: Added.
      
              * WebCore+SVG/kdom.h: Removed NodeType and ExceptionCodes
              * WebCore+SVG/kdomevents.h: Removed.
      
              * WebCore.xcodeproj/project.pbxproj: Updated for file changes.
              * WebCore.xcodeproj/project.pbxproj: Updated for file changes.
      
              * bindings/scripts/CodeGeneratorJS.pm: Removed unneeded DOM:: prefix. Updated file
              names and exception prefix for changes in DOM exceptions.
      
              * bindings/js/JSDOMCore.cpp: Touched to cause auto-generated code to be
              recompiled. We need to get this fixed!
              * bindings/js/JSDOMEvents.cpp: Ditto.
      
              * dom/Attr.idl:
              * dom/CharacterData.idl:
              * dom/DOMImplementation.idl:
              * dom/DocumentType.idl:
              * dom/Element.idl:
              * dom/Entity.idl:
              * dom/MutationEvent.idl:
              * dom/Notation.idl:
              * dom/ProcessingInstruction.idl:
              * dom/Text.idl:
              * dom/WheelEvent.idl:
              Touched all IDL files so that changes in CodeGeneratorJS.pm would take effect.
              Added license headers.
      
              * bindings/objc/DOM.mm: Fixed garbled license agreement. Updated includes.
              Changed from a single "using namespace WebCore" to individual using statements
              because of the imminent conflict between DOMImplementation in Objective C
              and WebCore::DOMImplementation (currently has an Impl suffix). Added a typedef
              for WebCore::DOMImplementationImpl. Changed to use ExceptionCode instead of int.
      
              * bindings/objc/DOMCSS.h: Removed DOMCSSException and the special CSS exception
              codes. This is a feature of DOM Level 1 only. In DOM Level 2 these were eliminated
              and use basic DOM exception codes instead. We might have to do something for binary
              compatibility eventually, but perhaps not.
      
              * bindings/objc/DOMCSS.mm:
              * bindings/objc/DOMEvents.mm:
              * bindings/objc/DOMEventsInternal.h:
              * bindings/objc/DOMHTML.mm:
              * bindings/objc/DOMHTMLInternal.h:
              * bindings/objc/DOMViews.mm:
              * bindings/objc/DOMViewsInternal.h:
              Fixed garbled license agreements.
              Changed to use ExceptionCode instead of int and name the variable "ec".
      
              * bindings/objc/DOMInternal.h: Changed addDOMWrapperImpl to take NSObject* instead
              of id. This helps with overload resolution when addDOMWrapperImpl is renamed to be
              addDOMWrapper. Changed ALLOW_DOM_CAST to always use "class" in from of the type name
              of the WebCore class. This helps work around what seems like a bug in namespace support
              in Objective-C mode, although the bug only happens after the "remove Impl" renaming.
              * bindings/objc/DOMInternal.mm:
              (getDOMWrapperImpl): Changed to use HashMap.
              (addDOMWrapperImpl): Ditto.
              (removeDOMWrapper): Ditto.
              (raiseDOMException): Update to use new names for exception number ranges.
      
              * bridge/mac/WebCoreFrameBridge.mm:
              * khtml/ecma/xmlserializer.cpp:
              * kwq/KWQAccObject.mm:
              Removed unneeded includes.
      
              * css/css_ruleimpl.h: Moved "rule type" into this header.
      
              * dom/CommentImpl.h:
              * dom/CommentImpl.cpp: (WebCore::CommentImpl::offsetInCharacters): Added. Returns true.
      
              * khtml/ecma/XSLTProcessor.cpp: (KJS::XSLTProcessorProtoFunc::callAsFunction):
              Changed this around so we don't have a local variable named docImpl.
      
              * khtml/ecma/kjs_binding.cpp: (KJS::setDOMException): Updated for new form of exception
              constants.
      
              * khtml/ecma/kjs_events.h:
              * khtml/ecma/kjs_events.cpp:
              (KJS::JSAbstractEventListener::handleEvent): Changed to no longer use EventListenerEvent.
              (KJS::JSAbstractEventListener::isHTMLEventListener): Added.
      
              * rendering/RenderTextField.h: Updated includes. Tweaked the code formatting of
              InputMutationListener. (Might be unnecessary since this class might be deleted soon.)
      
              * bridge/mac/MacFrame.mm:
              * css/css_computedstyle.cpp:
              * css/css_computedstyle.h:
              * css/css_ruleimpl.cpp:
              * css/css_stylesheetimpl.cpp:
              * css/css_stylesheetimpl.h:
              * css/css_valueimpl.cpp:
              * css/css_valueimpl.cpp:
              * css/css_valueimpl.h:
              * css/css_valueimpl.h:
              * css/cssparser.cpp:
              * css/cssstyleselector.cpp:
              * dom/CDATASectionImpl.cpp:
              * dom/CDATASectionImpl.h:
              * dom/CharacterDataImpl.cpp:
              * dom/CharacterDataImpl.h:
              * dom/ContainerNodeImpl.cpp:
              * dom/DOMImplementationImpl.cpp:
              * dom/DocumentFragmentImpl.cpp:
              * dom/DocumentFragmentImpl.h:
              * dom/DocumentImpl.cpp:
              * dom/DocumentImpl.h:
              * dom/DocumentTypeImpl.cpp:
              * dom/DocumentTypeImpl.h:
              * dom/NamedNodeMapImpl.h:
              * dom/NodeImpl.cpp:
              * dom/NodeImpl.h:
              * dom/NodeListImpl.cpp:
              * dom/TextImpl.cpp:
              * dom/TextImpl.h:
              * dom/dom2_eventsimpl.cpp:
              * dom/dom2_eventsimpl.h:
              * dom/dom2_rangeimpl.cpp:
              * dom/dom2_rangeimpl.h:
              * dom/dom2_traversalimpl.cpp:
              * dom/dom2_traversalimpl.h:
              * dom/dom_elementimpl.cpp:
              * dom/dom_elementimpl.h:
              * dom/dom_position.cpp:
              * dom/dom_xmlimpl.cpp:
              * dom/dom_xmlimpl.h:
              * dom/xml_tokenizer.cpp:
              * editing/AppendNodeCommand.cpp:
              * editing/ApplyStyleCommand.cpp:
              * editing/CompositeEditCommand.cpp:
              * editing/DeleteFromTextNodeCommand.cpp:
              * editing/InsertIntoTextNodeCommand.cpp:
              * editing/InsertLineBreakCommand.cpp:
              * editing/InsertNodeBeforeCommand.cpp:
              * editing/InsertParagraphSeparatorCommand.cpp:
              * editing/JoinTextNodesCommand.cpp:
              * editing/MergeIdenticalElementsCommand.cpp:
              * editing/RemoveNodeAttributeCommand.cpp:
              * editing/RemoveNodeCommand.cpp:
              * editing/ReplaceSelectionCommand.cpp:
              * editing/Selection.cpp:
              * editing/SelectionController.cpp:
              * editing/SelectionController.h:
              * editing/SetNodeAttributeCommand.cpp:
              * editing/SplitElementCommand.cpp:
              * editing/SplitTextNodeCommand.cpp:
              * editing/VisiblePosition.cpp:
              * editing/WrapContentsInDummySpanCommand.cpp:
              * editing/htmlediting.cpp:
              * editing/markup.cpp:
              * editing/visible_text.cpp:
              * khtml/ecma/kjs_binding.h:
              * khtml/ecma/kjs_css.cpp:
              * khtml/ecma/kjs_dom.cpp:
              * khtml/ecma/kjs_html.cpp:
              * khtml/ecma/kjs_range.cpp:
              * khtml/ecma/kjs_traversal.cpp:
              * khtml/ecma/kjs_traversal.h:
              * khtml/ecma/kjs_window.cpp:
              * khtml/html/HTMLElementImpl.cpp:
              * khtml/html/HTMLOptionElementImpl.cpp:
              * khtml/html/HTMLOptionElementImpl.h:
              * khtml/html/HTMLOptionsCollectionImpl.cpp:
              * khtml/html/HTMLSelectElementImpl.cpp:
              * khtml/html/HTMLTextAreaElementImpl.cpp:
              * khtml/html/html_documentimpl.cpp:
              * khtml/html/html_documentimpl.h:
              * khtml/html/html_headimpl.cpp:
              * khtml/html/html_tableimpl.cpp:
              * khtml/html/html_tableimpl.h:
              * khtml/html/htmlparser.cpp:
              * khtml/xbl/xbl_tokenizer.cpp:
              * khtml/xsl/xsl_stylesheetimpl.cpp:
              * ksvg2/misc/SVGDocumentExtensions.cpp:
              * ksvg2/svg/SVGAnimationElementImpl.cpp:
              * ksvg2/svg/SVGDOMImplementationImpl.cpp:
              * ksvg2/svg/SVGDOMImplementationImpl.h:
              * ksvg2/svg/SVGDocumentImpl.cpp:
              * ksvg2/svg/SVGDocumentImpl.h:
              * ksvg2/svg/SVGElementImpl.cpp:
              * ksvg2/svg/SVGLengthImpl.cpp:
              * ksvg2/svg/SVGLocatableImpl.cpp:
              * ksvg2/svg/SVGPolyElementImpl.cpp:
              * ksvg2/svg/SVGSVGElementImpl.cpp:
              * ksvg2/svg/SVGStyleElementImpl.cpp:
              * ksvg2/svg/SVGStyleElementImpl.h:
              * ksvg2/svg/SVGUseElementImpl.cpp:
              * page/Frame.cpp:
              * page/FrameView.cpp:
              * rendering/render_object.cpp:
              * xml/xmlhttprequest.cpp:
              Changed to use ExceptionCode instead of int and name the variable "ec".
              Also updated use of exception codes and other constants to get them from
              their new locations.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13167 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8d1badc7
  36. 03 Mar, 2006 1 commit
    • darin's avatar
      LayoutTests: · 3cc50f34
      darin authored
              Reviewed by Eric.
      
              - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=7480
                non-HTML elems w/o children in HTML docs get serialized self-closing
              - update tests for problem where the HTML tokenizer would discard the
                first newline after </pre>
      
              * fast/innerHTML/innerHTML-custom-tag.html: Added.
              * fast/innerHTML/innerHTML-custom-tag-expected.txt: Added.
      
              * fast/innerHTML/005-expected.txt: Updated. Now matches the original document as expected.
              Old result had the <div> after a <pre> put on the same line.
      
              * editing/inserting/4278698-expected.txt: Updated because offset of node changed since we
              have one more text node (from after a /pre).
              * fast/text/whitespace/pre-wrap-overflow-selection-expected.txt: Ditto.
      
      WebCore:
      
              Reviewed by Eric.
      
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7480
                non-HTML elems w/o children in HTML docs get serialized self-closing
              - fix problem where the HTML tokenizer would discard the first newline after </pre>
      
              Test: fast/innerHTML/innerHTML-custom-tag.html
      
              * editing/markup.cpp: (WebCore::shouldSelfClose): Refined rule so that it doesn't
              try to do any self-closing tags in HTML documents at all; updated comment.
      
              * khtml/html/htmltokenizer.cpp: (WebCore::HTMLTokenizer::parseTag): Added a check
              of beginTag in the <pre> tag case. We were accidentally discarding a newline after
              a </pre> tag.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13117 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3cc50f34