1. 15 Feb, 2006 5 commits
    • eseidel's avatar
      2006-02-15 Oliver Hunt <ojh16@student.canterbury.ac.nz> · 4784fda1
      eseidel authored
              Reviewed by eseidel.  Landed by eseidel.
              
              Implemented feDisplacementMap.
              http://bugzilla.opendarwin.org/show_bug.cgi?id=5862
      
              Test: svg/custom/feDisplacementMap-01.svg
      
              * WebCore.xcodeproj/project.pbxproj: added files.
              * kcanvas/KCanvasFilters.cpp:
              (WebCore::KCanvasFEDisplacementMap::externalRepresentation):
              * kcanvas/KCanvasFilters.h:
              (WebCore::KCanvasFEDisplacementMap::KCanvasFEDisplacementMap):
              (WebCore::KCanvasFEDisplacementMap::xChannelSelector):
              (WebCore::KCanvasFEDisplacementMap::setXChannelSelector):
              (WebCore::KCanvasFEDisplacementMap::yChannelSelector):
              (WebCore::KCanvasFEDisplacementMap::setYChannelSelector):
              (WebCore::KCanvasFEDisplacementMap::scale):
              (WebCore::KCanvasFEDisplacementMap::setScale):
              * kcanvas/device/quartz/KCanvasFilterQuartz.h:
              * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
              (WebCore::getVectorForChannel):
              (WebCore::KCanvasFEDisplacementMapQuartz::getCIFilter):
              * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
              (WebCore::KRenderingDeviceQuartz::createFilterEffect):
              * kcanvas/device/quartz/filters/WKDisplacementMapFilter.cikernel: Added.
              * kcanvas/device/quartz/filters/WKDisplacementMapFilter.h: Added.
              * kcanvas/device/quartz/filters/WKDisplacementMapFilter.m: Added.
              (+[WKDisplacementMapFilter initialize]):
              (+[WKDisplacementMapFilter filterWithName:]):
              (-[WKDisplacementMapFilter init]):
              (-[WKDisplacementMapFilter outputImage]):
              * ksvg2/svg/SVGFEDisplacementMapElementImpl.cpp: Added.
              (SVGFEDisplacementMapElementImpl::SVGFEDisplacementMapElementImpl):
              (SVGFEDisplacementMapElementImpl::~SVGFEDisplacementMapElementImpl):
              (SVGFEDisplacementMapElementImpl::in1):
              (SVGFEDisplacementMapElementImpl::in2):
              (SVGFEDisplacementMapElementImpl::xChannelSelector):
              (SVGFEDisplacementMapElementImpl::yChannelSelector):
              (SVGFEDisplacementMapElementImpl::scale):
              (SVGFEDisplacementMapElementImpl::stringToChannel):
              (SVGFEDisplacementMapElementImpl::parseMappedAttribute):
              (SVGFEDisplacementMapElementImpl::filterEffect):
              * ksvg2/svg/SVGFEDisplacementMapElementImpl.h: Added.
              * ksvg2/svg/svgtags.in:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12819 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4784fda1
    • eseidel's avatar
      2006-02-15 Eric Seidel <eseidel@apple.com> · bdc0a582
      eseidel authored
              Update missing result from last commit.
      
              * fast/xsl/xslt-recursion-expected.txt:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12818 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bdc0a582
    • mjs's avatar
      Rubber stamped by Anders. · ce821a96
      mjs authored
              * WebView/WebControllerPolicyHandlerDelegate.h: Removed.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12817 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ce821a96
    • mjs's avatar
      Reviewed by Anders. · 70c14fb8
      mjs authored
              
              - remove some voodoo code
      
              * WebView/WebDataSource.m:
              (-[WebDataSource _setLoading:]): Removed useless ref/deref of self and WebView.
              A WebDataSource cannot be loading unless it is still connected to the WebView that
              owns it and retained by it, because getting disconnected stops loading.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12816 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      70c14fb8
    • eseidel's avatar
      2006-02-15 Eric Seidel <eseidel@apple.com> · 56795da1
      eseidel authored
              Reviewed by darin.
      
              Commit change forgotten after editing directory move.
      
              * editing/markup.cpp:
              (khtml::startMarkup): add support for serializing DOCTYPEs in xml
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12815 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      56795da1
  2. 14 Feb, 2006 20 commits
    • ap's avatar
      Reviewed by Maciej. · c3b4b1aa
      ap authored
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=6452
               KURL::appendEscapingBadChars() doesn't know about %u-escaping.
      
              Test case: fast/encoding/percent-escaping.html
      
              * kwq/KWQKURL.mm: (appendEscapingBadChars):
              Rather than adding support for %u, remove the existing
              "do what I mean" escaping of percent characters that do not
              look like a result of prior escaping.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12814 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c3b4b1aa
    • eseidel's avatar
      2006-02-14 Eric Seidel <eseidel@apple.com> · ea9c56b2
      eseidel authored
              Fix build failure from last minute edit.
      
              * khtml/xsl/xsl_stylesheetimpl.cpp:
              (WebCore::XSLStyleSheetImpl::parseString):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12813 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ea9c56b2
    • eseidel's avatar
      2006-02-14 Eric Seidel <eseidel@apple.com> · 9ff77cb3
      eseidel authored
              Reviewed by darin.
      
              Add incremental parsing support to XMLTokenizer.
              This patch also does a few other little things:
              - removes (unused) onHold support from Tokenizer
              - adds serialization of DOCTYPEs for xml documents
              - fixes xslt support to no longer depend on synchronous parsing
              - fixes css styling for pages where xsl recursion is blocked
              http://bugzilla.opendarwin.org/show_bug.cgi?id=6057
      
              * dom/DocumentImpl.cpp:
              (WebCore::DocumentImpl::DocumentImpl):
              (WebCore::DocumentImpl::createProcessingInstruction):
              (WebCore::DocumentImpl::open):
              (WebCore::DocumentImpl::recalcStyleSelector):
              * dom/dom_xmlimpl.cpp:
              (WebCore::ProcessingInstructionImpl::checkStyleSheet):
              * dom/xml_tokenizer.cpp:
              (WebCore::XMLTokenizer::XMLTokenizer):
              (WebCore::XMLTokenizer::write):
              (WebCore::XMLTokenizer::startElementNs):
              (WebCore::XMLTokenizer::error):
              (WebCore::XMLTokenizer::initializeParserContext):
              (WebCore::XMLTokenizer::finish):
              (WebCore::xmlDocPtrForString):
              (WebCore::parseAttributes):
              * dom/xml_tokenizer.h:
              * khtml/editing/markup.cpp:
              (khtml::startMarkup): DOCTYPE serialization
              * khtml/html/htmltokenizer.cpp:
              (WebCore::HTMLTokenizer::HTMLTokenizer): removed onHold
              (WebCore::HTMLTokenizer::reset): removed onHold
              (WebCore::HTMLTokenizer::begin): removed onHold
              (WebCore::HTMLTokenizer::write): removed onHold
              (WebCore::HTMLTokenizer::finish): removed onHold
              * khtml/html/htmltokenizer.h: removed onHold support
              * khtml/xsl/xsl_stylesheetimpl.cpp:
              (WebCore::XSLStyleSheetImpl::XSLStyleSheetImpl):
              (WebCore::XSLStyleSheetImpl::~XSLStyleSheetImpl):
              (WebCore::XSLStyleSheetImpl::document):
              (WebCore::XSLStyleSheetImpl::setDocument):
              (WebCore::XSLStyleSheetImpl::parseString):
              (WebCore::XSLStyleSheetImpl::loadChildSheets):
              (WebCore::XSLStyleSheetImpl::compileStyleSheet):
              (WebCore::XSLStyleSheetImpl::locateStylesheetSubResource):
              * khtml/xsl/xsl_stylesheetimpl.h: moved functions to .cpp file
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12812 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9ff77cb3
    • mjs's avatar
      Reviewed by Anders. · ac5003ea
      mjs authored
              
              Improvements to frame loading:
              
              - remove LayoutAcceptable state entirely
              - fix WebImageView to work right without LayoutAcceptable state
              - move guts of commitIfReady: to WebFrame
              - try to separate page cache loading from normal loading a bit more
      
              * English.lproj/StringsNotToBeLocalized.txt:
              * WebView/WebDataSource.m:
              (-[WebDataSource _prepareForLoadStart]):
              (-[WebDataSource _loadFromPageCache:]):
              (-[WebDataSource _startLoading]):
              (-[WebDataSource _commitIfReady]):
              (-[WebDataSource _setupForReplaceByMIMEType:]):
              * WebView/WebDataSourcePrivate.h:
              * WebView/WebFrame.m:
              (-[WebFrame _transitionToCommitted:]):
              (-[WebFrame _commitProvisionalLoad:]):
              (-[WebFrame _checkLoadCompleteForThisFrame]):
              (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
              * WebView/WebFramePrivate.h:
              * WebView/WebImageRepresentation.h:
              * WebView/WebImageRepresentation.m:
              * WebView/WebImageView.m:
              (-[WebImageView dataSourceUpdated:]):
              (-[WebImageView setNeedsLayout:]):
              (-[WebImageView writeImageToPasteboard:types:]):
              (-[WebImageView copy:]):
              (-[WebImageView mouseDragged:]):
              * WebView/WebView.m:
              (-[WebView _finishedLoadingResourceFromDataSource:]):
              (-[WebView _mainReceivedBytesSoFar:fromDataSource:complete:]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12811 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ac5003ea
    • adele's avatar
      LayoutTests: · fb924468
      adele authored
              Tests for http://bugzilla.opendarwin.org/show_bug.cgi?id=6815
              Calculate correct width for new text fields
      
              * fast/forms/input-appearance-width.html: Added.
              * fast/forms/input-appearance-width-expected.txt: Added.
              * fast/forms/input-appearance-width-expected.png: Added.
              * fast/forms/input-appearance-width-expected.checksum: Added.
              * fast/forms/input-appearance-minWidth.html: Added.
              * fast/forms/input-appearance-minWidth-expected.txt: Added.
              * fast/forms/input-appearance-minWidth-expected.png: Added.
              * fast/forms/input-appearance-minWidth-expected.checksum: Added.
      
      WebCore:
      
              Reviewed by Maciej.
      
              http://bugzilla.opendarwin.org/show_bug.cgi?id=6815
              Calculate correct width for new text fields
      
              Tests:
              fast/forms/input-appearance-width.html
              fast/forms/input-appearance-minWidth.html
      
              * rendering/RenderTextField.cpp:
              (WebCore::RenderTextField::createDivStyle): Remove fixed width for text field.
              (WebCore::RenderTextField::calcMinMaxWidth): Added.  This calls RenderBlock::calcMinMaxWidth and 
               then uses the size attribute to determine what the maxWidth should be.
              * rendering/RenderTextField.h: Added calcMinMaxWidth.
              * rendering/render_theme_mac.h: Added adjustTextFieldStyle.
              * rendering/render_theme_mac.mm: 
              (WebCore::RenderThemeMac::adjustRepaintRect): Remove inflation of rect.  This is no longer necessary.
              (WebCore::RenderThemeMac::paintTextField): ditto.
              (WebCore::RenderThemeMac::setTextFieldCellState): change true to YES.
              (WebCore::RenderThemeMac::adjustTextFieldStyle): Added. This is the temporary home of the code to set the 
               right padding and margins.  When we flip the switch, this will go in html4.css.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12810 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fb924468
    • eseidel's avatar
      2006-02-14 Eric Seidel <eseidel@apple.com> · adb11639
      eseidel authored
              Reviewed by adele.
      
              * Scripts/run-webkit-tests: added --results-directory (-o) option
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12809 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      adb11639
    • sullivan's avatar
      Reviewed by Tim Hatcher. · 8774e4d9
      sullivan authored
              removed -[DOMHTMLSelectElement _optionLabels], formerly used only by Safari, now unused.
      
              * bindings/objc/DOMHTML.mm:
              * bindings/objc/DOMPrivate.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12808 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8774e4d9
    • thatcher's avatar
      JavaScriptCore: · 48b1c4da
      thatcher authored
              Reviewed by Justin.
      
              Fixed <rdar://problem/4415050> STD: WebCore build steps use echo -n, which will change
              behavior due to POSIX version of sh
      
              * JavaScriptCore.xcodeproj/project.pbxproj: removed the use of echo -n, replaced with printf ""
      
      WebCore:
      
              Reviewed by Justin.
      
              Fixed <rdar://problem/4415050> STD: WebCore build steps use echo -n, which will change
              behavior due to POSIX version of sh
      
              * WebCore.xcodeproj/project.pbxproj: removed the use of echo -n, replaced with printf ""
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12807 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      48b1c4da
    • sullivan's avatar
      One more of the same (this one tests list boxes instead of pop-up menus) · 471ea81a
      sullivan authored
              * fast/forms/HTMLOptionElement_label05-expected.checksum: Added.
              * fast/forms/HTMLOptionElement_label05-expected.png: Added.
              * fast/forms/HTMLOptionElement_label05-expected.txt: Added.
              * fast/forms/HTMLOptionElement_label05.html: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12806 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      471ea81a
    • sullivan's avatar
      Added another option element label test at Dave Hyatt's suggestion · b425c370
      sullivan authored
              * fast/forms/HTMLOptionElement_label04-expected.checksum: Added.
              * fast/forms/HTMLOptionElement_label04-expected.png: Added.
              * fast/forms/HTMLOptionElement_label04-expected.txt: Added.
              * fast/forms/HTMLOptionElement_label04.html: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12805 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b425c370
    • adele's avatar
      Reviewed by Eric. · 834684fd
      adele authored
              Moving these tests to a better location.
      
              * dom/html/level2/html/HTMLOptionElement_label01-expected.checksum: Removed.
              * dom/html/level2/html/HTMLOptionElement_label01-expected.png: Removed.
              * dom/html/level2/html/HTMLOptionElement_label01-expected.txt: Removed.
              * dom/html/level2/html/HTMLOptionElement_label01.html: Removed.
              * dom/html/level2/html/HTMLOptionElement_label02-expected.checksum: Removed.
              * dom/html/level2/html/HTMLOptionElement_label02-expected.png: Removed.
              * dom/html/level2/html/HTMLOptionElement_label02-expected.txt: Removed.
              * dom/html/level2/html/HTMLOptionElement_label02.html: Removed.
              * dom/html/level2/html/HTMLOptionElement_label03-expected.checksum: Removed.
              * dom/html/level2/html/HTMLOptionElement_label03-expected.png: Removed.
              * dom/html/level2/html/HTMLOptionElement_label03-expected.txt: Removed.
              * dom/html/level2/html/HTMLOptionElement_label03.html: Removed.
              * fast/forms/HTMLOptionElement_label01-expected.checksum: Added.
              * fast/forms/HTMLOptionElement_label01-expected.png: Added.
              * fast/forms/HTMLOptionElement_label01-expected.txt: Added.
              * fast/forms/HTMLOptionElement_label01.html: Added.
              * fast/forms/HTMLOptionElement_label02-expected.checksum: Added.
              * fast/forms/HTMLOptionElement_label02-expected.png: Added.
              * fast/forms/HTMLOptionElement_label02-expected.txt: Added.
              * fast/forms/HTMLOptionElement_label02.html: Added.
              * fast/forms/HTMLOptionElement_label03-expected.checksum: Added.
              * fast/forms/HTMLOptionElement_label03-expected.png: Added.
              * fast/forms/HTMLOptionElement_label03-expected.txt: Added.
              * fast/forms/HTMLOptionElement_label03.html: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12804 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      834684fd
    • darin's avatar
      Rubber-stamped by Eric. · a68e043d
      darin authored
              - moved editing sources from khtml/editing to editing, and renamed files with single classes
      
              * WebCore.xcodeproj/project.pbxproj: Added new, removed old.
              * WebCore.vcproj/WebCore/WebCore.vcproj: Ditto.
      
              * bridge/mac/MacFrame.mm:
              * bridge/mac/WebCoreFrameBridge.mm:
              * dom/DocumentImpl.cpp:
              * dom/dom2_rangeimpl.cpp:
              * dom/dom_position.cpp:
              * khtml/khtml_events.cpp:
              * kwq/KWQAccObject.mm:
              * kwq/KWQAccObjectCache.h:
              * kwq/KWQEditCommand.mm:
              * page/Frame.cpp:
              * page/FramePrivate.h:
              * rendering/RenderBlock.cpp:
              * rendering/RenderContainer.cpp:
              * rendering/RenderText.cpp:
              * rendering/render_br.cpp:
              * rendering/render_inline.cpp:
              * rendering/render_object.cpp:
              * rendering/render_replaced.cpp:
              Fixed up includes.
      
              * editing: Added.
              * editing/AppendNodeCommand.cpp: Added.
              * editing/AppendNodeCommand.h: Added.
              * editing/ApplyStyleCommand.cpp: Added.
              * editing/ApplyStyleCommand.h: Added.
              * editing/BreakBlockquoteCommand.cpp: Added.
              * editing/BreakBlockquoteCommand.h: Added.
              * editing/CompositeEditCommand.cpp: Added.
              * editing/CompositeEditCommand.h: Added.
              * editing/DeleteFromTextNodeCommand.cpp: Added.
              * editing/DeleteFromTextNodeCommand.h: Added.
              * editing/DeleteSelectionCommand.cpp: Added.
              * editing/DeleteSelectionCommand.h: Added.
              * editing/EditCommand.cpp: Added.
              * editing/EditCommand.h: Added.
              * editing/InsertIntoTextNodeCommand.cpp: Added.
              * editing/InsertIntoTextNodeCommand.h: Added.
              * editing/InsertLineBreakCommand.cpp: Added.
              * editing/InsertLineBreakCommand.h: Added.
              * editing/InsertNodeBeforeCommand.cpp: Added.
              * editing/InsertNodeBeforeCommand.h: Added.
              * editing/InsertParagraphSeparatorCommand.cpp: Added.
              * editing/InsertParagraphSeparatorCommand.h: Added.
              * editing/InsertTextCommand.cpp: Added.
              * editing/InsertTextCommand.h: Added.
              * editing/JoinTextNodesCommand.cpp: Added.
              * editing/JoinTextNodesCommand.h: Added.
              * editing/MergeIdenticalElementsCommand.cpp: Added.
              * editing/MergeIdenticalElementsCommand.h: Added.
              * editing/MoveSelectionCommand.cpp: Added.
              * editing/MoveSelectionCommand.h: Added.
              * editing/RebalanceWhitespaceCommand.cpp: Added.
              * editing/RebalanceWhitespaceCommand.h: Added.
              * editing/RemoveCSSPropertyCommand.cpp: Added.
              * editing/RemoveCSSPropertyCommand.h: Added.
              * editing/RemoveNodeAttributeCommand.cpp: Added.
              * editing/RemoveNodeAttributeCommand.h: Added.
              * editing/RemoveNodeCommand.cpp: Added.
              * editing/RemoveNodeCommand.h: Added.
              * editing/RemoveNodePreservingChildrenCommand.cpp: Added.
              * editing/RemoveNodePreservingChildrenCommand.h: Added.
              * editing/ReplaceSelectionCommand.cpp: Added.
              * editing/ReplaceSelectionCommand.h: Added.
              * editing/Selection.cpp:
              * editing/SelectionController.cpp:
              * editing/SetNodeAttributeCommand.cpp: Added.
              * editing/SetNodeAttributeCommand.h: Added.
              * editing/SplitElementCommand.cpp: Added.
              * editing/SplitElementCommand.h: Added.
              * editing/SplitTextNodeCommand.cpp: Added.
              * editing/SplitTextNodeCommand.h: Added.
              * editing/SplitTextNodeContainingElementCommand.cpp: Added.
              * editing/SplitTextNodeContainingElementCommand.h: Added.
              * editing/TypingCommand.cpp: Added.
              * editing/TypingCommand.h: Added.
              * editing/VisiblePosition.cpp: Added.
              * editing/VisiblePosition.h: Added.
              * editing/VisibleRange.cpp: Added.
              * editing/VisibleRange.h: Added.
              * editing/WrapContentsInDummySpanCommand.cpp: Added.
              * editing/WrapContentsInDummySpanCommand.h: Added.
              * editing/append_node_command.cpp: Removed.
              * editing/append_node_command.h: Removed.
              * editing/apply_style_command.cpp: Removed.
              * editing/apply_style_command.h: Removed.
              * editing/break_blockquote_command.cpp: Removed.
              * editing/break_blockquote_command.h: Removed.
              * editing/composite_edit_command.cpp: Removed.
              * editing/composite_edit_command.h: Removed.
              * editing/delete_from_text_node_command.cpp: Removed.
              * editing/delete_from_text_node_command.h: Removed.
              * editing/delete_selection_command.cpp: Removed.
              * editing/delete_selection_command.h: Removed.
              * editing/edit_command.cpp: Removed.
              * editing/edit_command.h: Removed.
              * editing/htmlediting.cpp:
              * editing/insert_into_text_node_command.cpp: Removed.
              * editing/insert_into_text_node_command.h: Removed.
              * editing/insert_line_break_command.cpp: Removed.
              * editing/insert_line_break_command.h: Removed.
              * editing/insert_node_before_command.cpp: Removed.
              * editing/insert_node_before_command.h: Removed.
              * editing/insert_paragraph_separator_command.cpp: Removed.
              * editing/insert_paragraph_separator_command.h: Removed.
              * editing/insert_text_command.cpp: Removed.
              * editing/insert_text_command.h: Removed.
              * editing/join_text_nodes_command.cpp: Removed.
              * editing/join_text_nodes_command.h: Removed.
              * editing/jsediting.cpp:
              * editing/markup.cpp:
              * editing/merge_identical_elements_command.cpp: Removed.
              * editing/merge_identical_elements_command.h: Removed.
              * editing/move_selection_command.cpp: Removed.
              * editing/move_selection_command.h: Removed.
              * editing/rebalance_whitespace_command.cpp: Removed.
              * editing/rebalance_whitespace_command.h: Removed.
              * editing/remove_css_property_command.cpp: Removed.
              * editing/remove_css_property_command.h: Removed.
              * editing/remove_node_attribute_command.cpp: Removed.
              * editing/remove_node_attribute_command.h: Removed.
              * editing/remove_node_command.cpp: Removed.
              * editing/remove_node_command.h: Removed.
              * editing/remove_node_preserving_children_command.cpp: Removed.
              * editing/remove_node_preserving_children_command.h: Removed.
              * editing/replace_selection_command.cpp: Removed.
              * editing/replace_selection_command.h: Removed.
              * editing/set_node_attribute_command.cpp: Removed.
              * editing/set_node_attribute_command.h: Removed.
              * editing/split_element_command.cpp: Removed.
              * editing/split_element_command.h: Removed.
              * editing/split_text_node_command.cpp: Removed.
              * editing/split_text_node_command.h: Removed.
              * editing/split_text_node_containing_element.cpp: Removed.
              * editing/split_text_node_containing_element_command.h: Removed.
              * editing/typing_command.cpp: Removed.
              * editing/typing_command.h: Removed.
              * editing/visible_position.cpp: Removed.
              * editing/visible_position.h: Removed.
              * editing/visible_range.cpp: Removed.
              * editing/visible_range.h: Removed.
              * editing/visible_units.cpp:
              * editing/wrap_contents_in_dummy_span_command.cpp: Removed.
              * editing/wrap_contents_in_dummy_span_command.h: Removed.
      
              * khtml/editing: Removed.
              * khtml/editing/Selection.cpp: Removed.
              * khtml/editing/Selection.h: Removed.
              * khtml/editing/SelectionController.cpp: Removed.
              * khtml/editing/SelectionController.h: Removed.
              * khtml/editing/append_node_command.cpp: Removed.
              * khtml/editing/append_node_command.h: Removed.
              * khtml/editing/apply_style_command.cpp: Removed.
              * khtml/editing/apply_style_command.h: Removed.
              * khtml/editing/break_blockquote_command.cpp: Removed.
              * khtml/editing/break_blockquote_command.h: Removed.
              * khtml/editing/composite_edit_command.cpp: Removed.
              * khtml/editing/composite_edit_command.h: Removed.
              * khtml/editing/delete_from_text_node_command.cpp: Removed.
              * khtml/editing/delete_from_text_node_command.h: Removed.
              * khtml/editing/delete_selection_command.cpp: Removed.
              * khtml/editing/delete_selection_command.h: Removed.
              * khtml/editing/edit_actions.h: Removed.
              * khtml/editing/edit_command.cpp: Removed.
              * khtml/editing/edit_command.h: Removed.
              * khtml/editing/html_interchange.cpp: Removed.
              * khtml/editing/html_interchange.h: Removed.
              * khtml/editing/htmlediting.cpp: Removed.
              * khtml/editing/htmlediting.h: Removed.
              * khtml/editing/insert_into_text_node_command.cpp: Removed.
              * khtml/editing/insert_into_text_node_command.h: Removed.
              * khtml/editing/insert_line_break_command.cpp: Removed.
              * khtml/editing/insert_line_break_command.h: Removed.
              * khtml/editing/insert_node_before_command.cpp: Removed.
              * khtml/editing/insert_node_before_command.h: Removed.
              * khtml/editing/insert_paragraph_separator_command.cpp: Removed.
              * khtml/editing/insert_paragraph_separator_command.h: Removed.
              * khtml/editing/insert_text_command.cpp: Removed.
              * khtml/editing/insert_text_command.h: Removed.
              * khtml/editing/join_text_nodes_command.cpp: Removed.
              * khtml/editing/join_text_nodes_command.h: Removed.
              * khtml/editing/jsediting.cpp: Removed.
              * khtml/editing/jsediting.h: Removed.
              * khtml/editing/markup.cpp: Removed.
              * khtml/editing/markup.h: Removed.
              * khtml/editing/merge_identical_elements_command.cpp: Removed.
              * khtml/editing/merge_identical_elements_command.h: Removed.
              * khtml/editing/move_selection_command.cpp: Removed.
              * khtml/editing/move_selection_command.h: Removed.
              * khtml/editing/rebalance_whitespace_command.cpp: Removed.
              * khtml/editing/rebalance_whitespace_command.h: Removed.
              * khtml/editing/remove_css_property_command.cpp: Removed.
              * khtml/editing/remove_css_property_command.h: Removed.
              * khtml/editing/remove_node_attribute_command.cpp: Removed.
              * khtml/editing/remove_node_attribute_command.h: Removed.
              * khtml/editing/remove_node_command.cpp: Removed.
              * khtml/editing/remove_node_command.h: Removed.
              * khtml/editing/remove_node_preserving_children_command.cpp: Removed.
              * khtml/editing/remove_node_preserving_children_command.h: Removed.
              * khtml/editing/replace_selection_command.cpp: Removed.
              * khtml/editing/replace_selection_command.h: Removed.
              * khtml/editing/set_node_attribute_command.cpp: Removed.
              * khtml/editing/set_node_attribute_command.h: Removed.
              * khtml/editing/split_element_command.cpp: Removed.
              * khtml/editing/split_element_command.h: Removed.
              * khtml/editing/split_text_node_command.cpp: Removed.
              * khtml/editing/split_text_node_command.h: Removed.
              * khtml/editing/split_text_node_containing_element.cpp: Removed.
              * khtml/editing/split_text_node_containing_element_command.h: Removed.
              * khtml/editing/text_affinity.h: Removed.
              * khtml/editing/text_granularity.h: Removed.
              * khtml/editing/typing_command.cpp: Removed.
              * khtml/editing/typing_command.h: Removed.
              * khtml/editing/visible_position.cpp: Removed.
              * khtml/editing/visible_position.h: Removed.
              * khtml/editing/visible_range.cpp: Removed.
              * khtml/editing/visible_range.h: Removed.
              * khtml/editing/visible_text.cpp: Removed.
              * khtml/editing/visible_text.h: Removed.
              * khtml/editing/visible_units.cpp: Removed.
              * khtml/editing/visible_units.h: Removed.
              * khtml/editing/wrap_contents_in_dummy_span_command.cpp: Removed.
              * khtml/editing/wrap_contents_in_dummy_span_command.h: Removed.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12803 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a68e043d
    • sullivan's avatar
      Reviewed by Adele Peterson. · 897662fa
      sullivan authored
              
              - tests for http://bugzilla.opendarwin.org/show_bug.cgi?id=7255
              label attribute in option elements is ignored
      
              * dom/html/level2/html/HTMLOptionElement_label01-expected.checksum: Added.
              * dom/html/level2/html/HTMLOptionElement_label01-expected.png: Added.
              * dom/html/level2/html/HTMLOptionElement_label01-expected.txt: Added.
              * dom/html/level2/html/HTMLOptionElement_label01.html: Added.
              * dom/html/level2/html/HTMLOptionElement_label02-expected.checksum: Added.
              * dom/html/level2/html/HTMLOptionElement_label02-expected.png: Added.
              * dom/html/level2/html/HTMLOptionElement_label02-expected.txt: Added.
              * dom/html/level2/html/HTMLOptionElement_label02.html: Added.
              * dom/html/level2/html/HTMLOptionElement_label03-expected.checksum: Added.
              * dom/html/level2/html/HTMLOptionElement_label03-expected.png: Added.
              * dom/html/level2/html/HTMLOptionElement_label03-expected.txt: Added.
              * dom/html/level2/html/HTMLOptionElement_label03.html: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12802 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      897662fa
    • sullivan's avatar
      Reviewed by Adele Peterson. · fe0a37b9
      sullivan authored
              
              - fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=7255
              label attribute in option elements is ignored
              
              Test cases: 
              * dom/html/level2/html/HTMLOptionElement_label01.html
              * dom/html/level2/html/HTMLOptionElement_label02.html
              * dom/html/level2/html/HTMLOptionElement_label03.html
      
              * rendering/render_form.cpp:
              (WebCore::RenderSelect::updateFromElement):
              use label attribute, if present, when setting text on the widget.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12801 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fe0a37b9
    • vicki's avatar
      Reviewed by Maciej. · 4520058d
      vicki authored
              Change formatting in this file to match the style guidelines.  No spaces after
              opening parentheses or before closing parentheses. 
      
              * dom/DocumentImpl.cpp:
              (WebCore::DocumentImpl::createDocumentFragment):
              (WebCore::DocumentImpl::recalcStyle):
              (WebCore::DocumentImpl::attach):
              (WebCore::DocumentImpl::detach):
              (WebCore::DocumentImpl::open):
              (WebCore::DocumentImpl::write):
              (WebCore::DocumentImpl::writeln):
              (WebCore::DocumentImpl::setUserStyleSheet):
              (WebCore::DocumentImpl::determineParseMode):
              (WebCore::DocumentImpl::processHttpEquiv):
              (WebCore::DocumentImpl::childAllowed):
              (WebCore::DocumentImpl::childTypeAllowed):
              (WebCore::DocumentImpl::recalcStyleSelector):
              (WebCore::DocumentImpl::dispatchImageLoadEventsNow):
              (WebCore::DocumentImpl::domain):
              (WebCore::DocumentImpl::setDomain):
              (WebCore::DocumentImpl::parseQualifiedName):
              (WebCore::DocumentImpl::addMarker):
              (WebCore::DocumentImpl::removeMarkers):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12800 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4520058d
    • sullivan's avatar
      Reviewed by Tim Hatcher. · e50041e1
      sullivan authored
              Some cleanup from the previous checkin, inspired by Darin's comments
              
              * bridge/mac/MacFrame.h:
              * bridge/mac/MacFrame.mm:
              moved highlightAllMatchesForString out of here
              
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge highlightAllMatchesForString:caseSensitive:]):
              now converts NSString to QString here, rather than in Frame/MacFrame
              
              * dom/DocumentMarker.h: Added.
              (WebCore::DocumentMarker::):
              (WebCore::DocumentMarker::operator == ):
              (WebCore::DocumentMarker::operator != ):
              moved this struct to its own header file
              
              * dom/DocumentImpl.h:
              moved DocumentMarker out; now includes DocumentMarker.h        
              
              * page/Frame.h:
              * page/Frame.cpp:
              (WebCore::Frame::highlightAllMatchesForString):
              moved here from MacFrame.[h,mm]. I thought this used other code from
              MacFrame.mm but it doesn't.
              
              * rendering/InlineTextBox.h:
              removed unnecesssary variable names; use DocumentMarker::MarkerType in signature
              of paintAllMarkersOfType
              * rendering/InlineTextBox.cpp:
              (khtml::InlineTextBox::paintTextMatchMarker):
              better name for a variable, fixed bad indent
              (khtml::InlineTextBox::paintAllMarkersOfType):
              rewrote loop to bail out early if past end, for clarity;
              use DocumentMarker::MarkerType in signature
              
              * WebCore.xcodeproj/project.pbxproj:
              updated for new file        
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12799 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e50041e1
    • thatcher's avatar
      More build fixes for case-sensitive drives. The #include "String.h" does not... · 3caa05e6
      thatcher authored
      More build fixes for case-sensitive drives. The #include "String.h" does not fail on normal HFS+ drives.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12795 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3caa05e6
    • thatcher's avatar
      Build fix for case-sensitive drives. · 8a8b735b
      thatcher authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12794 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8a8b735b
    • sullivan's avatar
      Reviewed by Tim Omernick. · 719c1410
      sullivan authored
              Support for highlighting multiple text matches.
      
              * WebView/WebHTMLViewPrivate.h:
              * WebView/WebHTMLView.m:
              (-[WebHTMLView highlightAllMatchesForString:caseSensitive:]):
              new method, calls through to bridge
              (-[WebHTMLView clearHighlightedMatches]):
              ditto
      
              * WebView/WebViewPrivate.h:
              * WebView/WebView.m:
              (-[WebView highlightAllMatchesForString:caseSensitive:]):
              new method, calls through to documentView. For now this is hardwired to only work
              with WebHTMLViews.
              (-[WebView clearHighlightedMatches]):
              ditto
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12793 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      719c1410
    • sullivan's avatar
      Reviewed by Tim Omernick. · 209d42ce
      sullivan authored
              Support for highlighting multiple text matches.
      
              * dom/DocumentImpl.h:
              (WebCore::DocumentMarker::):
              Added new marker type TextMatch
      
              * bridge/mac/WebCoreFrameBridge.h:
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge highlightAllMatchesForString:caseSensitive:]):
              new method, calls through to MacFrame implementation
              (-[WebCoreFrameBridge clearHighlightedMatches]):
              new method, removes all markers of type TextMatch
      
              * bridge/mac/MacFrame.h:
              * bridge/mac/MacFrame.mm:
              (WebCore::MacFrame::highlightAllMatchesForString):
              new method, adds a document marker for each range that matches the given string
      
              * rendering/InlineTextBox.h:
              * rendering/InlineTextBox.cpp:
              (khtml::InlineTextBox::paint):
              Moved DocumentMarker loop into separate method paintAllMarkersOfType. We now call
              that method twice, once for spelling markers (after drawing text) and once for
              text match markers (before drawing text)
              (khtml::InlineTextBox::paintTextMatchMarker):
              new method, paints a color behind a text match marker
              (khtml::InlineTextBox::paintSpellingMarker):
              renamed from paintMarker
              (khtml::InlineTextBox::paintAllMarkersOfType):
              new method, loops through all DocumentMarkers of a particular type and calls the
              appropriate painting method for each one
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12792 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      209d42ce
  3. 13 Feb, 2006 12 commits
    • darin's avatar
      WebCore: · cd3d02e3
      darin authored
              Reviewed by Maciej.
      
              - move pointer from frame to page here from WebKit
      
              * WebCore.xcodeproj/project.pbxproj: Added PageMac.h.
      
              * bridge/mac/PageMac.h: Added.
      
              * bridge/mac/MacFrame.h: Added a page parameter to the constructor.
              * bridge/mac/MacFrame.mm:
              (WebCore::MacFrame::MacFrame): Pass the page and renderer to the Frame constructor.
              Moved the call to Cache::init up into Frame, and got rid of the call to Frame::init
              since that's now handled by the constructor. Also put the code to create the
              browser extension object here.
              (WebCore::MacFrame::submitForm): Update for new method name.
              (WebCore::MacFrame::createFrame): Ditto.
              (WebCore::MacFrame::sendContextMenuEvent): Update since m_doc is a RefPtr.
      
              * bridge/mac/WebCoreFrameBridge.h: Changed parameters on init methods. Renamed
              the part method to impl. Added a page method.
              * bridge/mac/WebCoreFrameBridge.mm:
              (frameHasSelection): Change use of part method to impl.
              (-[WebCoreFrameBridge appendChild:]): Use m_frame directly instead of calling part method.
              (-[WebCoreFrameBridge removeChild:]): Ditto.
              (-[WebCoreFrameBridge initMainFrameWithPage:]): Added. Now does the first-time initialization
              only here and create a frame for a main frame.
              (-[WebCoreFrameBridge initSubframeWithRenderer:]): Added. Doesn't do the first-time initialization
              and creates a frame for a subframe.
              (-[WebCoreFrameBridge page]): Added.
              (-[WebCoreFrameBridge setOpener:]): Change to use impl method instead of part.
              (-[WebCoreFrameBridge executionContextForView:]): Ditto.
              (-[WebCoreFrameBridge impl]): Added.
      
              * bridge/mac/WebCorePageBridge.h: Removed init method and added setMainFrame: method and impl method.
              * bridge/mac/WebCorePageBridge.mm:
              (-[WebCorePageBridge init]): Changed to create a PageMac.
              (-[WebCorePageBridge setMainFrame:]): Added.
              (-[WebCorePageBridge impl]): Added.
      
              * bridge/mac/BrowserExtensionMac.mm:
              (WebCore::BrowserExtensionMac::createNewWindow):
              * kwq/KWQAccObject.mm:
              (-[KWQAccObject rendererForView:]):
              * kwq/KWQComboBox.mm:
              (-[KWQPopUpButtonCell trackMouse:inRect:ofView:untilMouseUp:]):
              * kwq/KWQFileButton.mm:
              (KWQFileButton::focusPolicy):
              * kwq/KWQSlider.mm:
              (QSlider::focusPolicy):
              * kwq/KWQTextArea.mm:
              (-[KWQTextAreaTextView _isResizableByUser]):
              (-[KWQTextAreaTextView _trackResizeFromMouseDown:]):
              Change methods to get from bridge back to objects to be named "impl".
              The old one was named "part".
      
              * page/Frame.h: Added Page and RenderPart parameter to constructor.
              Added a page function. Removed the createBrowserExtension function.
              * page/Frame.cpp:
              (WebCore::parentFromOwnerRenderer): Added. Helper for constructor.
              (WebCore::Frame::Frame): Moved all the code from init into here. Also change
              to set the parent right from the start.
              (WebCore::Frame::stopLoading): Change since m_doc is now a RefPtr.
              (WebCore::Frame::clear): Ditto.
              (WebCore::Frame::document): Ditto.
              (WebCore::Frame::setDocument): Ditto.
              (WebCore::Frame::begin): Ditto.
              (WebCore::Frame::gotoAnchor): Ditto.
              (WebCore::Frame::typingStyle): Change since m_typingStyle is now a RefPtr.
              (WebCore::Frame::setTypingStyle): Ditto.
              (WebCore::Frame::clearTypingStyle): Ditto.
              (WebCore::Frame::isFrameSet): Change since m_doc is now a RefPtr.
              (WebCore::Frame::page): Added.
      
              * page/FramePrivate.h: Changed initialization to use member-initialization
              syntax. Removed unused m_frames. Changed m_doc and m_typingStyle to use
              RefPtr. Added an m_frame.
      
              * page/Page.h: Made destructor virtual so we could have a Mac derived class.
              Added a setMainFrame function and removed the mainFrame parameter from the constructor.
              * page/Page.cpp:
              (WebCore::Page::Page): Removed the mainFrame parameter.
              (WebCore::Page::setMainFrame): Added.
      
      WebKit:
      
              Reviewed by Maciej.
      
              - move pointer from frame to page over to WebCore
      
              * WebCoreSupport/WebPageBridge.m: (-[WebPageBridge initWithMainFrameName:webView:frameView:]):
              Call super init to create the page before creating the main frame and calling setMainFrame: with it.
      
              * WebCoreSupport/WebFrameBridge.h: Remove page pointer, and change init function parameters.
              * WebCoreSupport/WebFrameBridge.m:
              (-[WebFrameBridge initMainFrameWithPage:frameName:view:]): New function that is used only for
              the main frame. Passes the page over to the other side of the bridge.
              (-[WebFrameBridge initSubframeWithRenderer:frameName:view:]): New function that is used only for
              subframes. Passes the renderer over to the other side of the bridge.
              (-[WebFrameBridge mainFrame]):
              (-[WebFrameBridge webView]):
              (-[WebFrameBridge createWindowWithURL:frameName:]):
              (-[WebFrameBridge showWindow]):
              (-[WebFrameBridge areToolbarsVisible]):
              (-[WebFrameBridge setToolbarsVisible:]):
              (-[WebFrameBridge isStatusbarVisible]):
              (-[WebFrameBridge setStatusbarVisible:]):
              (-[WebFrameBridge setWindowFrame:]):
              (-[WebFrameBridge windowFrame]):
              (-[WebFrameBridge setWindowContentRect:]):
              (-[WebFrameBridge windowContentRect]):
              (-[WebFrameBridge setWindowIsResizable:]):
              (-[WebFrameBridge windowIsResizable]):
              (-[WebFrameBridge firstResponder]):
              (-[WebFrameBridge makeFirstResponder:]):
              (-[WebFrameBridge closeWindowSoon]):
              (-[WebFrameBridge runJavaScriptAlertPanelWithMessage:]):
              (-[WebFrameBridge runJavaScriptConfirmPanelWithMessage:]):
              (-[WebFrameBridge canRunBeforeUnloadConfirmPanel]):
              (-[WebFrameBridge runBeforeUnloadConfirmPanelWithMessage:]):
              (-[WebFrameBridge runJavaScriptTextInputPanelWithPrompt:defaultText:returningText:]):
              (-[WebFrameBridge addMessageToConsole:]):
              (-[WebFrameBridge runOpenPanelForFileButtonWithResultListener:]):
              (-[WebFrameBridge setStatusText:]):
              (-[WebFrameBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
              (-[WebFrameBridge focusWindow]):
              (-[WebFrameBridge createChildFrameNamed:withURL:referrer:renderPart:allowsScrolling:marginWidth:marginHeight:]):
              (-[WebFrameBridge userAgentForURL:]):
              (-[WebFrameBridge _nextKeyViewOutsideWebFrameViewsWithValidityCheck:]):
              (-[WebFrameBridge previousKeyViewOutsideWebFrameViews]):
              (-[WebFrameBridge defersLoading]):
              (-[WebFrameBridge setDefersLoading:]):
              (-[WebFrameBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:]):
              (-[WebFrameBridge _preferences]):
              (-[WebFrameBridge selectWordBeforeMenuEvent]):
              (-[WebFrameBridge historyLength]):
              (-[WebFrameBridge canGoBackOrForward:]):
              (-[WebFrameBridge goBackOrForward:]):
              (-[WebFrameBridge print]):
              (-[WebFrameBridge pollForAppletInView:]):
              (-[WebFrameBridge respondToChangedContents]):
              (-[WebFrameBridge respondToChangedSelection]):
              (-[WebFrameBridge undoManager]):
              (-[WebFrameBridge issueCutCommand]):
              (-[WebFrameBridge issueCopyCommand]):
              (-[WebFrameBridge issuePasteCommand]):
              (-[WebFrameBridge issuePasteAndMatchStyleCommand]):
              (-[WebFrameBridge canPaste]):
              (-[WebFrameBridge overrideMediaType]):
              (-[WebFrameBridge isEditable]):
              (-[WebFrameBridge shouldChangeSelectedDOMRange:toDOMRange:affinity:stillSelecting:]):
              (-[WebFrameBridge shouldBeginEditing:]):
              (-[WebFrameBridge shouldEndEditing:]):
              (-[WebFrameBridge windowObjectCleared]):
              (-[WebFrameBridge spellCheckerDocumentTag]):
              (-[WebFrameBridge isContinuousSpellCheckingEnabled]):
              (-[WebFrameBridge didFirstLayout]):
              (-[WebFrameBridge dashboardRegionsChanged:]):
              (-[WebFrameBridge createModalDialogWithURL:]):
              (-[WebFrameBridge canRunModal]):
              (-[WebFrameBridge runModal]):
              Change all calls to [_page webView] to use [self webView] instead.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12791 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cd3d02e3
    • harrison's avatar
      Updated test case after improving table deletion. · 88b91df2
      harrison authored
              
              * selection/move-between-blocks-no-001-expected.txt: Updated.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12790 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      88b91df2
    • harrison's avatar
      Reviewed by Justin. · 78e6583a
      harrison authored
              - merge VisiblePosition:isCandidate() into Position::inRenderedContent()
                These functions were answering the same question in different ways!  We
                only need one implementation.
      
              * khtml/editing/visible_position.cpp:
              (khtml::VisiblePosition::init):
              (khtml::VisiblePosition::previousVisiblePosition):
              (khtml::VisiblePosition::nextVisiblePosition):
              (khtml::VisiblePosition::deepEquivalent):
              * khtml/editing/visible_position.h:
              * dom/dom_position.cpp:
              (DOM::hasRenderedChildrenWithHeight):
              (DOM::Position::inRenderedContent):
      
      
              - improved table deletion.
                Fixes: delete back by word from just after table did not delete the table
                       delete forward by char or word did not delete the table
                       deleting back to a table and again did not delete the table
      
              * khtml/editing/htmlediting.cpp:
              (WebCore::isFirstVisiblePositionAfterTableElement):
              simpler implementation
              (WebCore::positionBeforePrecedingTableElement):
              simpler implementation
              (WebCore::isFirstVisiblePositionBeforeTableElement):
              new
              (WebCore::positionAfterFollowingTableElement):
              new
              * khtml/editing/htmlediting.h:
              * khtml/editing/SelectionController.cpp:
              (WebCore::SelectionController::modifyExtendingRightForward):
              select following table if granularity is char or word
              (WebCore::SelectionController::modifyExtendingLeftBackward):
              select preceding table if granularity is char or word
              * khtml/editing/typing_command.cpp:
              (khtml::TypingCommand::deleteKeyPressed):
              simpler implementation, and let other deleteKeyPressed do boundary checking
              (khtml::TypingCommand::forwardDeleteKeyPressed):
              simpler implementation, and let other forwardDeleteKeyPressed do boundary checking
              (khtml::TypingCommand::insertText):
              standard formatting
              (khtml::TypingCommand::insertLineBreak):
              standard formatting
              (khtml::TypingCommand::insertParagraphSeparatorInQuotedContent):
              standard formatting
              (khtml::TypingCommand::insertParagraphSeparator):
              standard formatting
              (khtml::TypingCommand::insertTextRunWithoutNewlines):
              standard formatting
              (khtml::TypingCommand::deleteKeyPressed):
              use SelectionController to extend selection, to get all the selection
              logic incl. table selection and editable/noneditable boundary checks
              (khtml::TypingCommand::forwardDeleteKeyPressed):
              use SelectionController to extend selection, to get all the selection
              logic incl. table selection and editable/noneditable boundary checks
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12789 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      78e6583a
    • hyatt's avatar
      Fix for bug 5605, XSLT fails to import to arbitrary depth. Make sure... · 049e2c59
      hyatt authored
              Fix for bug 5605, XSLT fails to import to arbitrary depth.  Make sure m_embedded is initialized to false
              in the XSLTStyleSheetImpl constructor.
      
              Reviewed by timo
      
              Adding xslt-import-depth.xml to fast/xsl
      
              * khtml/xsl/xsl_stylesheetimpl.cpp:
              (DOM::XSLStyleSheetImpl::XSLStyleSheetImpl):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12788 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      049e2c59
    • hyatt's avatar
      Add layout test for import depth. · f872c73a
      hyatt authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12787 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f872c73a
    • hyatt's avatar
      Fix Win32 WebCore bustage. · 99a9f63c
      hyatt authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12786 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      99a9f63c
    • eseidel's avatar
      2006-02-12 Alexander Kellett <lypanov@kde.org> · 76dc5ccf
      eseidel authored
              Reviewed by eseidel.
      
              Fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7207.
      
              No testcases as this is not possible to reproduce via anything
              other than manual interaction.
      
              * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
              (WebCore::KCanvasFilterQuartz::getCIFilterStack):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12785 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      76dc5ccf
    • hyatt's avatar
      Fix Win32 JavaScriptCore bustage. · c65ae25f
      hyatt authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12784 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c65ae25f
    • darin's avatar
      Reviewed by Hyatt. · d47a9034
      darin authored
              - moved QWidget to platform directory, renamed to Widget,
                split into cross-platform and platform-specific parts,
                removed some of the unused bits
      
              * ForwardingHeaders/qwidget.h: Removed.
              * kwq/KWQWidget.h: Removed.
              * kwq/KWQWidget.mm: Removed.
      
              * WebCore.vcproj/WebCore/WebCore.vcproj: Update for file removals and adds.
              * WebCore.xcodeproj/project.pbxproj: Ditto.
      
              * platform/Widget.h: Moved code here, fixed it up.
              * platform/Widget.cpp: Ditto.
              * platform/mac/WidgetMac.mm: Added.
      
              * bindings/objc/DOMHTML.mm:
              (viewForElement):
              * bridge/mac/KWQKHTMLView.cpp:
              (WebCore::FrameView::topLevelWidget):
              * bridge/mac/MacFrame.h:
              * bridge/mac/MacFrame.mm:
              (WebCore::MacFrame::createPlugin):
              (WebCore::MacFrame::nextKeyViewInFrame):
              (WebCore::MacFrame::nextKeyViewForWidget):
              (WebCore::MacFrame::currentEventIsMouseDownInWidget):
              (WebCore::MacFrame::bridgeForWidget):
              (WebCore::MacFrame::passMouseDownEventToWidget):
              (WebCore::MacFrame::passSubframeEventToSubframe):
              (WebCore::MacFrame::passWheelEventToChildWidget):
              (WebCore::MacFrame::getAppletInstanceForWidget):
              (WebCore::MacFrame::getEmbedInstanceForWidget):
              (WebCore::MacFrame::getObjectInstanceForWidget):
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge createFrameViewWithNSView:marginWidth:marginHeight:]):
              (-[WebCoreFrameBridge copyRenderNode:copier:]):
              (-[WebCoreFrameBridge elementForView:]):
              (-[WebCoreFrameBridge RenderObject::nodeInfoAtPoint:]):
              * dom/DocumentImpl.cpp:
              (WebCore::widgetForNode):
              (WebCore::DocumentImpl::setFocusNode):
              * khtml/ecma/kjs_window.cpp:
              (KJS::Screen::getValueProperty):
              (KJS::WindowFunc::callAsFunction):
              * khtml/html/HTMLGenericFormElementImpl.cpp:
              (WebCore::HTMLGenericFormElementImpl::isKeyboardFocusable):
              (WebCore::HTMLGenericFormElementImpl::isMouseFocusable):
              * khtml/html/html_objectimpl.cpp:
              (WebCore::HTMLEmbedElementImpl::getEmbedInstance):
              (WebCore::HTMLObjectElementImpl::getObjectInstance):
              * kwq/KWQAccObject.mm:
              (-[KWQAccObject addChildrenToArray:]):
              (-[KWQAccObject attachmentView]):
              (-[KWQAccObject doAXTextMarkerForPosition:]):
              * kwq/KWQComboBox.h:
              * kwq/KWQComboBox.mm:
              (QComboBox::frameGeometry):
              (QComboBox::setFrameGeometry):
              (QComboBox::setFont):
              (QComboBox::focusPolicy):
              (-[KWQPopUpButtonCell widget]):
              (-[KWQPopUpButton widget]):
              (-[KWQPopUpButton mouseDown:]):
              (-[KWQPopUpButton becomeFirstResponder]):
              (-[KWQPopUpButton resignFirstResponder]):
              (-[KWQPopUpButton nextKeyView]):
              (-[KWQPopUpButton previousKeyView]):
              * kwq/KWQFileButton.h:
              * kwq/KWQFileButton.mm:
              (KWQFileButton::focusPolicy):
              * kwq/KWQFrame.h:
              * kwq/KWQKCursor.h:
              * kwq/KWQKJavaAppletWidget.h:
              * kwq/KWQKJavaAppletWidget.mm:
              (KJavaAppletWidget::KJavaAppletWidget):
              * kwq/KWQLineEdit.h:
              * kwq/KWQLineEdit.mm:
              (QLineEdit::setFont):
              (QLineEdit::setPalette):
              (QLineEdit::focusPolicy):
              * kwq/KWQListBox.h:
              * kwq/KWQListBox.mm:
              (QListBox::QListBox):
              (QListBox::focusPolicy):
              (QListBox::setFont):
              (-[KWQListBoxScrollView widget]):
              (-[KWQListBoxScrollView becomeFirstResponder]):
              (-[KWQTableView mouseDown:]):
              (-[KWQTableView widget]):
              * kwq/KWQPainter.h:
              * kwq/KWQRenderTreeDebug.cpp:
              (write):
              * kwq/KWQScrollBar.h:
              * kwq/KWQScrollBar.mm:
              (-[KWQScrollBar widget]):
              (-[KWQScrollBar mouseDown:]):
              (QScrollBar::QScrollBar):
              (QScrollBar::~QScrollBar):
              * kwq/KWQScrollView.h:
              (QScrollView::QScrollView):
              * kwq/KWQScrollView.mm:
              (QScrollView::viewport):
              (QScrollView::childX):
              (QScrollView::childY):
              (QScrollView::addChild):
              (QScrollView::removeChild):
              * kwq/KWQSlider.h:
              * kwq/KWQSlider.mm:
              (-[KWQSlider mouseDown:]):
              (-[KWQSlider widget]):
              (QSlider::setFont):
              (QSlider::focusPolicy):
              * kwq/KWQTextArea.mm:
              (-[KWQTextAreaTextView widget]):
              * kwq/KWQTextEdit.h:
              * kwq/KWQTextEdit.mm:
              (QTextEdit::QTextEdit):
              (QTextEdit::setFont):
              (QTextEdit::focusPolicy):
              (QTextEdit::setPalette):
              * kwq/KWQTextField.mm:
              (-[KWQTextFieldController widget]):
              (-[KWQTextFieldController textView:shouldHandleEvent:]):
              (-[KWQTextFieldController textView:didHandleEvent:]):
              (-[KWQTextField widget]):
              (-[KWQTextField nextKeyView]):
              (-[KWQTextField previousKeyView]):
              (-[KWQSecureTextField widget]):
              (-[KWQSecureTextField nextKeyView]):
              (-[KWQSecureTextField previousKeyView]):
              (-[KWQSearchField widget]):
              (-[KWQSearchField nextKeyView]):
              (-[KWQSearchField previousKeyView]):
              * kwq/KWQView.h:
              * kwq/KWQWindowWidget.h:
              * kwq/KWQWindowWidget.mm:
              (KWQWindowWidget::topLevelWidget):
              * page/Frame.cpp:
              (WebCore::isFrameElement):
              (WebCore::Frame::frameForWidget):
              (WebCore::Frame::nodeForWidget):
              (WebCore::Frame::setDocumentFocus):
              (WebCore::Frame::clearDocumentFocus):
              (WebCore::Frame::passWidgetMouseDownEventToWidget):
              * page/Frame.h:
              * page/FrameView.cpp:
              (WebCore::FrameView::FrameView):
              (WebCore::FrameView::init):
              * page/FrameView.h:
              * page/Plugin.h:
              (WebCore::Plugin::Plugin):
              (WebCore::Plugin::view):
              * platform/Screen.h:
              * platform/mac/ScreenMac.mm:
              (WebCore::screen):
              (WebCore::screenDepth):
              (WebCore::screenRect):
              (WebCore::usableScreenRect):
              * rendering/render_applet.cpp:
              (WebCore::RenderApplet::layout):
              * rendering/render_form.cpp:
              (WebCore::ComboBoxWidget::ComboBoxWidget):
              (WebCore::RenderSelect::createListBox):
              * rendering/render_form.h:
              * rendering/render_frames.cpp:
              (WebCore::RenderPart::setWidget):
              * rendering/render_frames.h:
              * rendering/render_object.cpp:
              * rendering/render_replaced.cpp:
              (WebCore::RenderWidget::resizeWidget):
              (WebCore::RenderWidget::setQWidget):
              * rendering/render_replaced.h:
              (WebCore::RenderWidget::widget):
              Change name from QWidget to Widget, a few other changes to get compiling.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12782 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d47a9034
    • thatcher's avatar
      Versioning to 521.7 · fb88ed97
      thatcher authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12781 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fb88ed97
    • thatcher's avatar
      Reviewed by Darin. · f5a63e02
      thatcher authored
              Replaced the old NS_DURING exception blocking with @try/@catch.
      
              * JavaScriptCorePrefix.h: undef try and catch to workaround a C++ conflict
              * bindings/objc/objc_instance.mm:
              (ObjcInstance::invokeMethod):
              (ObjcInstance::invokeDefaultMethod):
              (ObjcInstance::setValueOfUndefinedField):
              (ObjcInstance::getValueOfUndefinedField):
              * bindings/objc/objc_runtime.mm:
              (ObjcField::valueFromInstance):
              (ObjcField::setValueToInstance):
              (ObjcArray::setValueAt):
              (ObjcArray::valueAt):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12780 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f5a63e02
    • darin's avatar
      - fix a couple problems building on Windows, based on requests · 82776d16
      darin authored
                from Krzysztof Kowalczyk <kkowalczyk@gmail.com>
      
              * kjs/JSImmediate.h: Change code using non-standard u_int32/64_t types
              to the standard uint32/64_t. Also removed curious "isIEEE()" function
              that checked the sizes of some types (and type sizes alone don't tell you if
              the floating point conforms to the IEEE-standard). Added missing include
              of <stdint.h>.
      
              * kjs/property_slot.h: Added missing include of <assert.h>.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12779 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      82776d16
  4. 12 Feb, 2006 3 commits
    • darin's avatar
      Reviewed and tweaked by Darin. · a9a9d326
      darin authored
              - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=7206
                REGRESSION: PDF "images" no longer render within HTML pages
      
              * fast/replaced/page-as-image.html: Added.
              * fast/replaced/page-as-image-expected.txt: Added.
              * fast/replaced/page-as-image-expected.png: Added.
              * fast/replaced/page-as-image-expected.checksum: Added.
              * fast/replaced/resources/image.pdf: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12778 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a9a9d326
    • darin's avatar
      Reviewed by Hyatt. · 4d735cfa
      darin authored
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7206
                REGRESSION: PDF "images" no longer render within HTML pages
      
              Test: fast/replaced/page-as-image.html
      
              * platform/Image.cpp: (WebCore::Image::setNativeData):
              Return false in the case where the PDF document has not been created yet.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12777 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4d735cfa
    • mjs's avatar
      Rubber stamped by Geoff. · 556f94b0
      mjs authored
              
              - comment out remote <base> URLs, these were making the tests hang for a long time
      
              This also made the affected tests start passing.
              
              * dom/xhtml/level2/html/HTMLBodyElement01-expected.checksum: Removed.
              * dom/xhtml/level2/html/HTMLBodyElement01-expected.png: Removed.
              * dom/xhtml/level2/html/HTMLBodyElement01-expected.txt:
              * dom/xhtml/level2/html/HTMLBodyElement01.xhtml:
              * dom/xhtml/level2/html/HTMLBodyElement02-expected.checksum: Removed.
              * dom/xhtml/level2/html/HTMLBodyElement02-expected.png: Removed.
              * dom/xhtml/level2/html/HTMLBodyElement02-expected.txt:
              * dom/xhtml/level2/html/HTMLBodyElement02.xhtml:
              * dom/xhtml/level2/html/HTMLBodyElement03-expected.checksum: Removed.
              * dom/xhtml/level2/html/HTMLBodyElement03-expected.png: Removed.
              * dom/xhtml/level2/html/HTMLBodyElement03-expected.txt:
              * dom/xhtml/level2/html/HTMLBodyElement03.xhtml:
              * dom/xhtml/level2/html/HTMLBodyElement04-expected.checksum: Removed.
              * dom/xhtml/level2/html/HTMLBodyElement04-expected.png: Removed.
              * dom/xhtml/level2/html/HTMLBodyElement04-expected.txt:
              * dom/xhtml/level2/html/HTMLBodyElement04.xhtml:
              * dom/xhtml/level2/html/HTMLBodyElement05-expected.checksum: Removed.
              * dom/xhtml/level2/html/HTMLBodyElement05-expected.png: Removed.
              * dom/xhtml/level2/html/HTMLBodyElement05-expected.txt:
              * dom/xhtml/level2/html/HTMLBodyElement05.xhtml:
              * dom/xhtml/level2/html/HTMLBodyElement06-expected.checksum: Removed.
              * dom/xhtml/level2/html/HTMLBodyElement06-expected.png: Removed.
              * dom/xhtml/level2/html/HTMLBodyElement06-expected.txt:
              * dom/xhtml/level2/html/HTMLBodyElement06.xhtml:
              * dom/xhtml/level2/html/body01-expected.checksum: Removed.
              * dom/xhtml/level2/html/body01-expected.png: Removed.
              * dom/xhtml/level2/html/body01-expected.txt:
              * dom/xhtml/level2/html/body01.xhtml:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12776 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      556f94b0