WebKit-https.git
16 years agoLayoutTests:
justing [Thu, 1 Jun 2006 18:33:28 +0000 (18:33 +0000)]
LayoutTests:

        Reviewed by harrison

        * editing/selection/focus-body-expected.checksum: Added.
        * editing/selection/focus-body-expected.png: Added.
        * editing/selection/focus-body-expected.txt: Added.
        * editing/selection/focus-body.html: Added.
        * editing/selection/focus_editable_html-expected.checksum:
        * editing/selection/focus_editable_html-expected.png:
        * editing/selection/focus_editable_html-expected.txt:

WebCore:

        Reviewed by harrison

        <rdar://problem/4567752> When forwarding a message, pressing TAB key to place caret in body actually selects the entire message instead

        * dom/Element.cpp:
        (WebCore::Element::focus):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14666 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoWebKit:
andersca [Thu, 1 Jun 2006 17:35:45 +0000 (17:35 +0000)]
WebKit:

2006-06-01  Anders Carlsson  <acarlsson@apple.com>

        Reviewed by Darin.

        * WebView/WebFrameView.m:
        (+[WebFrameView _canShowMIMETypeAsHTML:]):
        Use _webkit_objectForMIMEType here so we'll get an object back for "text/".

WebKitTools:

2006-06-01  Anders Carlsson  <acarlsson@apple.com>

        Reviewed by Darin.

        http://bugzilla.opendarwin.org/show_bug.cgi?id=8996
        slow-utf8-text layout test case failing (no longer deterministic?)

        * DumpRenderTree/DumpRenderTree.m:
        (dump):
        Dump as text when the response MIME type is text/plain

LayoutTests:

2006-06-01  Anders Carlsson  <acarlsson@apple.com>

        Reviewed by Darin.

        http://bugzilla.opendarwin.org/show_bug.cgi?id=8996
        slow-utf8-text layout test case failing (no longer deterministic?)

        * http/tests/incremental/slow-utf8-text-expected.txt:
        Updated

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14665 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago2006-06-01 David Kilzer <ddkilzer@kilzer.net>
ddkilzer [Thu, 1 Jun 2006 11:00:37 +0000 (11:00 +0000)]
2006-06-01  David Kilzer  <ddkilzer@kilzer.net>

        Reviewed by darin.

        http://bugzilla.opendarwin.org/show_bug.cgi?id=9144
        Test for Bug 8079 (REGRESSION: Redraw from page cache does not show visited links)

        * manual-tests/redraw-page-cache-visited-links.html: Added.
        * manual-tests/resources/redraw-page-cache-visited-links-2.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14664 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoLayoutTests:
adele [Thu, 1 Jun 2006 06:34:24 +0000 (06:34 +0000)]
LayoutTests:

        Reviewed by Hyatt.

        - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=9124
          Drop shadow obscures "add more stuff" bubble at live.com

        * fast/css/find-next-layer-expected.checksum: Added.
        * fast/css/find-next-layer-expected.png: Added.
        * fast/css/find-next-layer-expected.txt: Added.
        * fast/css/find-next-layer.html: Added.

WebCore:

        Reviewed by Hyatt.

        - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9124
          Drop shadow obscures "add more stuff" bubble at live.com

        Test: fast/css/find-next-layer.html

        * rendering/RenderObject.cpp:
        (WebCore::RenderObject::findNextLayer): Fixed a bug where this function could reach
        two levels down in the layer tree and return 0.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14663 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago Reviewed by Geoff.
adele [Thu, 1 Jun 2006 06:30:08 +0000 (06:30 +0000)]
    Reviewed by Geoff.

        - http://bugzilla.opendarwin.org/show_bug.cgi?id=9109
          Remove bogus assertion in RenderBlock::tabWidth

        Changed the uninitialized value of m_tabWidth to -1 and removed the
        assertion that it cannot be 0.

        * rendering/RenderBlock.cpp:
        (WebCore:::RenderBlock::RenderBlock):
        (WebCore::RenderBlock::setStyle):
        * rendering/bidi.cpp:
        (WebCore::RenderBlock::tabWidth):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14662 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago Updated test results for http://bugzilla.opendarwin.org/show_bug.cgi?id=8848
adele [Thu, 1 Jun 2006 06:24:56 +0000 (06:24 +0000)]
    Updated test results for bugzilla.opendarwin.org/show_bug.cgi?id=8848
        TFOOT borders are copied to THEAD and TBODY

        * tables/mozilla/marvin/backgr_layers-opacity-expected.checksum:
        * tables/mozilla/marvin/backgr_layers-opacity-expected.txt:
        * tables/mozilla/marvin/backgr_position-table-expected.checksum:
        * tables/mozilla/marvin/backgr_position-table-expected.txt:
        * tables/mozilla/marvin/backgr_simple-table-cell-expected.checksum:
        * tables/mozilla/marvin/backgr_simple-table-cell-expected.txt:
        * tables/mozilla/marvin/backgr_simple-table-column-expected.checksum:
        * tables/mozilla/marvin/backgr_simple-table-column-expected.txt:
        * tables/mozilla/marvin/backgr_simple-table-column-group-expected.checksum:
        * tables/mozilla/marvin/backgr_simple-table-column-group-expected.txt:
        * tables/mozilla/marvin/backgr_simple-table-expected.checksum:
        * tables/mozilla/marvin/backgr_simple-table-expected.txt:
        * tables/mozilla/marvin/backgr_simple-table-row-expected.checksum:
        * tables/mozilla/marvin/backgr_simple-table-row-expected.txt:
        * tables/mozilla/marvin/backgr_simple-table-row-group-expected.checksum:
        * tables/mozilla/marvin/backgr_simple-table-row-group-expected.txt:
        * tables/mozilla_expected_failures/marvin/backgr_border-table-cell-expected.checksum:
        * tables/mozilla_expected_failures/marvin/backgr_border-table-cell-expected.txt:
        * tables/mozilla_expected_failures/marvin/backgr_border-table-column-expected.checksum:
        * tables/mozilla_expected_failures/marvin/backgr_border-table-column-expected.txt:
        * tables/mozilla_expected_failures/marvin/backgr_border-table-column-group-expected.checksum:
        * tables/mozilla_expected_failures/marvin/backgr_border-table-column-group-expected.txt:
        * tables/mozilla_expected_failures/marvin/backgr_border-table-expected.checksum:
        * tables/mozilla_expected_failures/marvin/backgr_border-table-expected.txt:
        * tables/mozilla_expected_failures/marvin/backgr_border-table-quirks-expected.checksum:
        * tables/mozilla_expected_failures/marvin/backgr_border-table-quirks-expected.txt:
        * tables/mozilla_expected_failures/marvin/backgr_border-table-row-expected.checksum:
        * tables/mozilla_expected_failures/marvin/backgr_border-table-row-expected.txt:
        * tables/mozilla_expected_failures/marvin/backgr_border-table-row-group-expected.checksum:
        * tables/mozilla_expected_failures/marvin/backgr_border-table-row-group-expected.txt:
        * tables/mozilla_expected_failures/marvin/backgr_fixed-bg-expected.checksum:
        * tables/mozilla_expected_failures/marvin/backgr_fixed-bg-expected.txt:
        * tables/mozilla_expected_failures/marvin/backgr_layers-hide-expected.checksum:
        * tables/mozilla_expected_failures/marvin/backgr_layers-hide-expected.txt:
        * tables/mozilla_expected_failures/marvin/backgr_layers-show-expected.checksum:
        * tables/mozilla_expected_failures/marvin/backgr_layers-show-expected.txt:
        * tables/mozilla_expected_failures/marvin/backgr_position-table-cell-expected.checksum:
        * tables/mozilla_expected_failures/marvin/backgr_position-table-cell-expected.txt:
        * tables/mozilla_expected_failures/marvin/backgr_position-table-column-expected.checksum:
        * tables/mozilla_expected_failures/marvin/backgr_position-table-column-expected.txt:
        * tables/mozilla_expected_failures/marvin/backgr_position-table-column-group-expected.checksum:
        * tables/mozilla_expected_failures/marvin/backgr_position-table-column-group-expected.txt:
        * tables/mozilla_expected_failures/marvin/backgr_position-table-row-expected.checksum:
        * tables/mozilla_expected_failures/marvin/backgr_position-table-row-expected.txt:
        * tables/mozilla_expected_failures/marvin/backgr_position-table-row-group-expected.checksum:
        * tables/mozilla_expected_failures/marvin/backgr_position-table-row-group-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14661 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoLayoutTests:
adele [Thu, 1 Jun 2006 06:16:28 +0000 (06:16 +0000)]
LayoutTests:

        Reviewed by Hyatt.

        - tests for http://bugzilla.opendarwin.org/show_bug.cgi?id=9100
          Absolutely positioned replaced elements with all non-auto
          values are rendered incorrectly

        * fast/replaced/absolute-position-with-auto-height-and-top-and-bottom.html: Added.
        * fast/replaced/absolute-position-with-auto-width-and-left-and-right.html: Added.

WebCore:

        Reviewed by Hyatt.

        - fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=9100
          Absolutely positioned replaced elements with all non-auto
          values are rendered incorrectly

        * rendering/RenderBox.cpp:
        (WebCore::RenderBox::calcAbsoluteHorizontalReplaced): Add support for case when all values are specified.
        (WebCore::RenderBox::calcAbsoluteVerticalReplaced): ditto

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14660 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoLayoutTests:
adele [Thu, 1 Jun 2006 06:07:23 +0000 (06:07 +0000)]
LayoutTests:

        Reviewed by Hyatt.

        - test and updated results for
          http://bugzilla.opendarwin.org/show_bug.cgi?id=9012
          Row height not updated when cell heights change

        * fast/table/row-height-recalc-expected.checksum: Added.
        * fast/table/row-height-recalc-expected.png: Added.
        * fast/table/row-height-recalc-expected.txt: Added.
        * fast/table/row-height-recalc.html: Added.

WebCore:

        Reviewed by Hyatt.

        - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9012
          Row height not updated when cell heights change

        Test: fast/table/row-height-recalc.html

        * rendering/RenderTableCell.cpp:
        (WebCore::RenderTableCell::setStyle): Mark the section as needing recalculation
        if the height property changed.
        * rendering/RenderTableRow.cpp:
        (WebCore::RenderTableRow::setStyle): Ditto.
        * rendering/RenderTableSection.cpp:
        (WebCore::RenderTableSection::recalcCells): Initialize the grid row height
        to the height of the row element (like addChild() does).

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14659 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago Reviewed by Hyatt.
adele [Thu, 1 Jun 2006 05:56:54 +0000 (05:56 +0000)]
    Reviewed by Hyatt.

        - fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=8969
          REGRESSION: typing in textfield repaints whole web page at gamefaqs.com

        No test possible (no functionality change)

        * dom/Document.cpp:
        (WebCore::Document::updateLayout): Changed to ensure that pending subtree
        layouts are performed too.
        * page/Frame.cpp:
        (WebCore::Frame::forceLayout): Force a full layout.
        * page/FrameView.cpp:
        (WebCore::FrameViewPrivate::reset):
        (WebCore::FrameView::layout): Changed to relayout only the subtree rooted
        at d->layoutRoot if it's non-zero and allowSubtree is true.
        (WebCore::FrameView::scheduleRelayout): Change pending subtree relayout into
        normal relayout by clearing d->layoutRoot and propagating needsLayout to the
        root.
        (WebCore::FrameView::scheduleRelayoutOfSubtree): Added.
        * page/FrameView.h:
        * rendering/RenderObject.cpp:
        (WebCore::RenderObject::markContainingBlocksForLayout): Added scheduleRelayout
        parameter. FrameView passes false to force marking all the way to the root
        when turning a pending subtree relayout into a full relayout. Otherwise,
        marking stops at the first textField (or at the root) and
        relayout of the last object reached is scheduled.
        (WebCore::RenderObject::scheduleRelayout):
        * rendering/RenderObject.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14658 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago Reviewed by Darin.
adele [Thu, 1 Jun 2006 05:35:28 +0000 (05:35 +0000)]
    Reviewed by Darin.

        patch for <http://bugzilla.opendarwin.org/show_bug.cgi?id=8910>
        Bug 8910: Various code cleanups in RenderBox

        Clean up with some slight optimizations.

        * rendering/RenderBox.cpp:
        (WebCore::RenderBox::contentWidth):
        (WebCore::RenderBox::contentHeight):
        (WebCore::RenderBox::setPos):
        (WebCore::RenderBox::calcWidth):
        (WebCore::RenderBox::calcWidthUsing):
        * rendering/RenderBox.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14657 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago Reviewed by Hyatt.
adele [Thu, 1 Jun 2006 05:28:13 +0000 (05:28 +0000)]
    Reviewed by Hyatt.

        patch for <http://bugzilla.opendarwin.org/show_bug.cgi?id=8899>
        Bug 8899: Removes some unneeded code from RenderBox

        Removes the use of WidthType where not needed to simplify
        the code a little.

        * rendering/RenderBox.cpp:
        (WebCore::RenderBox::calcWidthUsing):
        (WebCore::RenderBox::sizesToIntrinsicWidth):
        (WebCore::RenderBox::calcReplacedWidth):
        (WebCore::RenderBox::calcReplacedWidthUsing):
        (WebCore::RenderBox::calcReplacedHeight):
        (WebCore::RenderBox::calcReplacedHeightUsing):
        * rendering/RenderBox.h:
        (WebCore::):
        (WebCore::RenderBox::renderName):
        * rendering/RenderImage.cpp:
        (WebCore::RenderImage::calcReplacedWidth):
        (WebCore::RenderImage::calcReplacedHeight):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14656 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoLayoutTests:
adele [Thu, 1 Jun 2006 05:09:01 +0000 (05:09 +0000)]
LayoutTests:

        Reviewed by Geoff.

        Testcase for http://bugzilla.opendarwin.org/show_bug.cgi?id=8455

        * fast/forms/select-reset.html: Added.

WebCore:

        Reviewed by Geoff.

        Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=8455
        selectedIndex for a select after a Form reset() has wrong value

        Make sure the list items are reset properly by selecting
        the first option in case no options have the selected attribute
        set.

        * html/HTMLSelectElement.cpp: (WebCore::HTMLSelectElement::reset):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14655 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoLayoutTests:
adele [Thu, 1 Jun 2006 05:02:18 +0000 (05:02 +0000)]
LayoutTests:

        Reviewed by Geoff.

        Add a test for http://bugzilla.opendarwin.org/show_bug.cgi?id=8024

        * fast/dom/document-all-input.html: Added.

WebCore:

        Reviewed by Geoff.

        Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=8024
        "Go" button (search) doesn't work at fifa.com (document.all.FormName)

        Allow input elements with name attributes as possible named
        items for document.all.

        * html/HTMLCollection.cpp:
        (WebCore::HTMLCollection::checkForNameMatch):
        (WebCore::HTMLCollection::updateNameCache):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14654 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoTweaks to remove fragments when loading urls via wininet or cookies.
hyatt [Thu, 1 Jun 2006 01:06:13 +0000 (01:06 +0000)]
Tweaks to remove fragments when loading urls via wininet or cookies.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14653 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoAdd stubs for bmp/ico/xbm decoders on win32.
hyatt [Wed, 31 May 2006 22:19:04 +0000 (22:19 +0000)]
Add stubs for bmp/ico/xbm decoders on win32.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14652 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoWebCore:
hyatt [Wed, 31 May 2006 21:36:19 +0000 (21:36 +0000)]
WebCore:

        Fix for the gmail tab-focus-stealing bug.

        Reviewed by darin

        * bindings/js/kjs_window.cpp:
        (KJS::WindowFunc::callAsFunction):
        * bridge/mac/BrowserExtensionMac.mm:
        (WebCore::BrowserExtensionMac::createNewWindow):
        * bridge/mac/FrameMac.h:
        * bridge/mac/FrameMac.mm:
        (WebCore::FrameMac::focusWindow):
        (WebCore::FrameMac::unfocusWindow):
        * bridge/mac/WebCoreFrameBridge.h:
        * page/Frame.h:
        * platform/Widget.h:
        * platform/mac/WidgetMac.mm:
        * platform/win/TemporaryLinkStubs.cpp:
        (FrameWin::focusWindow):
        * platform/win/WidgetWin.cpp:

WebKit:

        Make programmatic focus/blur actually work on sub-frames.  Make the
        top-level UI delegate get called for deactivation of windows.

        Reviewed by darin

        * WebCoreSupport/WebFrameBridge.m:
        (-[WebFrameBridge activateWindow]):
        (-[WebFrameBridge deactivateWindow]):
        (-[WebFrameBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
        (-[WebFrameBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
        * WebKit.xcodeproj/project.pbxproj:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14651 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago Reviewed by Hyatt.
bdakin [Wed, 31 May 2006 21:30:21 +0000 (21:30 +0000)]
    Reviewed by Hyatt.

        Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=6755 CSS3:
        Borders rounded with border-radius don't draw the roundings

        This patch does not draw all of the different border styles
        perfectly, so I have filed a few followup bugs that I will
        reference from this Bugzilla.

        * platform/GraphicsContext.h:
        * platform/cairo/GraphicsContextCairo.cpp:
        (WebCore::GraphicsContext::drawArc): drawArc() has different
        parameters now, but mostly this needs to be implemented to match
        the Mac side later.
        (WebCore::GraphicsContext::addRoundedRectClip): Just a stub.
        Implement this later.
        (WebCore::GraphicsContext::addInnerRoundedRectClip): Just a stub.
        Implement this later.
        * platform/cg/GraphicsContextCG.cpp:
        (WebCore::GraphicsContext::drawArc): drawArc() now handles drawing
        elliptical arcs as well as circular arcs, it also takes a thickness
        parameter to draw an arc of a given thickness and draws with the
        appropriate pen style.
        (WebCore::GraphicsContext::addInnerRoundedRectClip): Adds a clip to
        the inside of an arc instead of to the outside which is already
        done by addRoundedClipRect()
        * rendering/RenderObject.cpp:
        (WebCore::RenderObject::drawBorderArc): Draws the border arcs in
        the appropriate styles.
        (WebCore::RenderObject::paintBorder): Calls drawBorderArc() when
        border arcs are needed.
        * rendering/RenderObject.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14650 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoFix Win32 build bustage from Screen/Page FloatRect conversion
hyatt [Wed, 31 May 2006 20:05:01 +0000 (20:05 +0000)]
Fix Win32 build bustage from Screen/Page FloatRect conversion

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14649 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoRemove accidentally-checked-in file.
darin [Wed, 31 May 2006 18:04:24 +0000 (18:04 +0000)]
Remove accidentally-checked-in file.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14647 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago2006-05-30 Eric Seidel <eric@eseidel.com>
eseidel [Wed, 31 May 2006 17:25:30 +0000 (17:25 +0000)]
2006-05-30  Eric Seidel  <eric@eseidel.com>

        Reviewed by andersca.

        Add first-cut SVG JS bindings autogeneration.
        SVGSVGElement and various other support classes are generated.
        Various small style fixes.
        http://bugzilla.opendarwin.org/show_bug.cgi?id=4249

        * DerivedSources.make:
        * WebCore+SVG/RGBColor.cpp: Removed.
        * WebCore+SVG/RGBColor.h: Removed.
        * WebCore.xcodeproj/project.pbxproj:
        * bindings/js/JSHTMLElementWrapperFactory.cpp:
        (WebCore::createJSHTMLWrapper): renamed from createJSWrapper
        * bindings/js/JSHTMLElementWrapperFactory.h:
        * bindings/js/kjs_dom.cpp:
        (KJS::DOMNode::DOMNode):
        (KJS::DOMNode::toBoolean):
        (KJS::DOMNode::getOwnPropertySlot):
        (KJS::DOMNode::getValueProperty):
        (KJS::DOMNode::put):
        (KJS::DOMNode::putValueProperty):
        (KJS::DOMNode::toPrimitive):
        (KJS::DOMNode::toString):
        (KJS::DOMNodeProtoFunc::callAsFunction):
        (KJS::toEventTargetNode):
        (KJS::DOMEventTargetNode::getOwnPropertySlot):
        (KJS::DOMEventTargetNode::getValueProperty):
        (KJS::DOMEventTargetNode::put):
        (KJS::DOMEventTargetNode::putValueProperty):
        (KJS::DOMEventTargetNode::setListener):
        (KJS::DOMEventTargetNode::getListener):
        (KJS::DOMEventTargetNode::pushEventHandlerScope):
        (KJS::DOMEventTargetNodeProtoFunc::callAsFunction):
        (KJS::DOMNodeList::toPrimitive):
        (KJS::DOMNodeList::getValueProperty):
        (KJS::DOMNodeList::indexGetter):
        (KJS::DOMNodeList::nameGetter):
        (KJS::DOMNodeList::getOwnPropertySlot):
        (KJS::DOMNodeList::callAsFunction):
        (KJS::DOMNodeListFunc::callAsFunction):
        (KJS::toElement):
        (KJS::toDocumentType):
        (KJS::DOMNamedNodeMap::DOMNamedNodeMap):
        (KJS::DOMNamedNodeMap::~DOMNamedNodeMap):
        (KJS::DOMNamedNodeMap::lengthGetter):
        (KJS::DOMNamedNodeMap::indexGetter):
        (KJS::DOMNamedNodeMap::nameGetter):
        (KJS::DOMNamedNodeMapProtoFunc::callAsFunction):
        (KJS::toJS):
        (KJS::checkNodeSecurity):
        (KJS::getRuntimeObject):
        (KJS::DOMExceptionConstructor::getOwnPropertySlot):
        (KJS::DOMExceptionConstructor::getValueProperty):
        (KJS::getDOMExceptionConstructor):
        (KJS::DOMNamedNodesCollection::DOMNamedNodesCollection):
        (KJS::DOMNamedNodesCollection::lengthGetter):
        (KJS::DOMNamedNodesCollection::indexGetter):
        (KJS::DOMNamedNodesCollection::getOwnPropertySlot):
        * bindings/scripts/CodeGenerator.pm:
        * bindings/scripts/CodeGeneratorJS.pm:
        * dom/Document.cpp:
        (WebCore::Document::implicitClose):
        * dom/Element.h:
        * dom/StyledElement.h:
        * ksvg2/bindings/idl/svg/SVGAngle.idl: Removed.
        * ksvg2/bindings/idl/svg/SVGAnimatedLength.idl: Removed.
        * ksvg2/bindings/idl/svg/SVGColor.idl: Removed.
        * ksvg2/bindings/idl/svg/SVGDocument.idl: Removed.
        * ksvg2/bindings/idl/svg/SVGElement.idl: Removed.
        * ksvg2/bindings/idl/svg/SVGLength.idl: Removed.
        * ksvg2/bindings/idl/svg/SVGMatrix.idl: Removed.
        * ksvg2/bindings/idl/svg/SVGNumber.idl: Removed.
        * ksvg2/bindings/idl/svg/SVGPoint.idl: Removed.
        * ksvg2/bindings/idl/svg/SVGRect.idl: Removed.
        * ksvg2/bindings/idl/svg/SVGSVGElement.idl: Removed.
        * ksvg2/bindings/idl/svg/SVGTransform.idl: Removed.
        * ksvg2/bindings/idl/svg/kdomdefs.idl: Removed.
        * ksvg2/bindings/js: Added.
        * ksvg2/bindings/js/JSSVGNumber.cpp: Added.
        (WebCore::):
        (WebCore::JSSVGNumber::~JSSVGNumber):
        (WebCore::JSSVGNumber::getOwnPropertySlot):
        (WebCore::JSSVGNumber::getValue):
        (WebCore::getJSSVGNumber):
        * ksvg2/bindings/js/JSSVGNumber.h: Added.
        (WebCore::JSSVGNumber::JSSVGNumber):
        (WebCore::JSSVGNumber::classInfo):
        * ksvg2/bindings/js/JSSVGPoint.cpp: Added.
        (WebCore::):
        (WebCore::JSSVGPoint::~JSSVGPoint):
        (WebCore::JSSVGPoint::getOwnPropertySlot):
        (WebCore::JSSVGPoint::getValueProperty):
        (WebCore::getJSSVGPoint):
        (WebCore::toFloatPoint):
        * ksvg2/bindings/js/JSSVGPoint.h: Added.
        (WebCore::JSSVGPoint::JSSVGPoint):
        (WebCore::JSSVGPoint::classInfo):
        (WebCore::JSSVGPoint::):
        (WebCore::JSSVGPoint::impl):
        * ksvg2/bindings/js/JSSVGRect.cpp: Added.
        (WebCore::):
        (WebCore::JSSVGRect::~JSSVGRect):
        (WebCore::JSSVGRect::getOwnPropertySlot):
        (WebCore::JSSVGRect::getValueProperty):
        (WebCore::getJSSVGRect):
        (WebCore::toFloatRect):
        * ksvg2/bindings/js/JSSVGRect.h: Added.
        (WebCore::JSSVGRect::JSSVGRect):
        (WebCore::JSSVGRect::classInfo):
        (WebCore::JSSVGRect::):
        (WebCore::JSSVGRect::impl):
        * ksvg2/css/SVGCSSParser.cpp:
        (WebCore::CSSParser::parseSVGValue):
        * ksvg2/css/SVGCSSStyleSelector.cpp:
        (WebCore::CSSStyleSelector::applySVGProperty):
        * ksvg2/events/SVGZoomEvent.cpp:
        (SVGZoomEvent::SVGZoomEvent):
        (SVGZoomEvent::zoomRectScreen):
        (SVGZoomEvent::previousTranslate):
        (SVGZoomEvent::newTranslate):
        * ksvg2/events/SVGZoomEvent.h:
        * ksvg2/ksvg.h:
        (WebCore::):
        * ksvg2/misc/SVGDocumentExtensions.cpp:
        (WebCore::SVGDocumentExtensions::SVGDocumentExtensions):
        (WebCore::SVGDocumentExtensions::~SVGDocumentExtensions):
        (WebCore::SVGDocumentExtensions::addTimeContainer):
        (WebCore::SVGDocumentExtensions::removeTimeContainer):
        (WebCore::SVGDocumentExtensions::startAnimations):
        (WebCore::SVGDocumentExtensions::pauseAnimations):
        (WebCore::SVGDocumentExtensions::unpauseAnimations):
        * ksvg2/misc/SVGDocumentExtensions.h:
        * ksvg2/svg/SVGAElement.h:
        * ksvg2/svg/SVGAngle.h:
        (WebCore::SVGAngle::):
        * ksvg2/svg/SVGAngle.idl: Added.
        * ksvg2/svg/SVGAnimateColorElement.cpp:
        (WebCore::SVGAnimateColorElement::SVGAnimateColorElement):
        (WebCore::SVGAnimateColorElement::handleTimerEvent):
        (WebCore::SVGAnimateColorElement::clampColor):
        * ksvg2/svg/SVGAnimateColorElement.h:
        * ksvg2/svg/SVGAnimateElement.cpp:
        (SVGAnimateElement::SVGAnimateElement):
        (SVGAnimateElement::handleTimerEvent):
        * ksvg2/svg/SVGAnimateElement.h:
        * ksvg2/svg/SVGAnimateTransformElement.cpp:
        (WebCore::SVGAnimateTransformElement::SVGAnimateTransformElement):
        (WebCore::SVGAnimateTransformElement::parseMappedAttribute):
        (WebCore::SVGAnimateTransformElement::handleTimerEvent):
        (WebCore::SVGAnimateTransformElement::parseTransformValue):
        (WebCore::SVGAnimateTransformElement::calculateRotationFromMatrix):
        (WebCore::SVGAnimateTransformElement::initialMatrix):
        * ksvg2/svg/SVGAnimateTransformElement.h:
        * ksvg2/svg/SVGAnimatedLength.idl: Added.
        * ksvg2/svg/SVGAnimationElement.cpp:
        (SVGAnimationElement::closeRenderer):
        * ksvg2/svg/SVGAnimationElement.h:
        * ksvg2/svg/SVGCircleElement.h:
        * ksvg2/svg/SVGClipPathElement.h:
        * ksvg2/svg/SVGColor.cpp:
        (WebCore::SVGColor::SVGColor):
        (WebCore::SVGColor::rgbColor):
        (WebCore::SVGColor::setRGBColor):
        (WebCore::SVGColor::setRGBColorICCColor):
        (WebCore::SVGColor::setColor):
        (WebCore::SVGColor::color):
        * ksvg2/svg/SVGColor.h:
        (WebCore::SVGColor::):
        (WebCore::SVGColor::setRGBColor):
        * ksvg2/svg/SVGColor.idl: Added.
        * ksvg2/svg/SVGComponentTransferFunctionElement.h:
        * ksvg2/svg/SVGCursorElement.h:
        * ksvg2/svg/SVGDefsElement.h:
        * ksvg2/svg/SVGDescElement.h:
        * ksvg2/svg/SVGDocument.idl: Added.
        * ksvg2/svg/SVGElement.cpp:
        (WebCore::SVGElement::SVGElement):
        (WebCore::SVGElement::isSupported):
        (WebCore::SVGElement::id):
        (WebCore::SVGElement::setId):
        (WebCore::SVGElement::xmlbase):
        (WebCore::SVGElement::setXmlbase):
        (WebCore::SVGElement::ownerSVGElement):
        (WebCore::SVGElement::viewportElement):
        (WebCore::SVGElement::tryGetAttribute):
        (WebCore::SVGElement::tryGetAttributeNS):
        (WebCore::SVGElement::childShouldCreateRenderer):
        * ksvg2/svg/SVGElement.h:
        * ksvg2/svg/SVGElement.idl: Added.
        * ksvg2/svg/SVGEllipseElement.h:
        * ksvg2/svg/SVGEvent.idl: Added.
        * ksvg2/svg/SVGFEBlendElement.h:
        * ksvg2/svg/SVGFEColorMatrixElement.h:
        * ksvg2/svg/SVGFEComponentTransferElement.h:
        * ksvg2/svg/SVGFECompositeElement.h:
        * ksvg2/svg/SVGFEDiffuseLightingElement.h:
        * ksvg2/svg/SVGFEDistantLightElement.h:
        * ksvg2/svg/SVGFEFloodElement.h:
        * ksvg2/svg/SVGFEFuncAElement.h:
        * ksvg2/svg/SVGFEFuncBElement.h:
        * ksvg2/svg/SVGFEFuncGElement.h:
        * ksvg2/svg/SVGFEFuncRElement.h:
        * ksvg2/svg/SVGFEGaussianBlurElement.h:
        * ksvg2/svg/SVGFEImageElement.h:
        * ksvg2/svg/SVGFELightElement.h:
        * ksvg2/svg/SVGFEMergeElement.h:
        * ksvg2/svg/SVGFEMergeNodeElement.h:
        * ksvg2/svg/SVGFEOffsetElement.h:
        * ksvg2/svg/SVGFEPointLightElement.h:
        * ksvg2/svg/SVGFESpecularLightingElement.h:
        * ksvg2/svg/SVGFESpotLightElement.h:
        * ksvg2/svg/SVGFETileElement.h:
        * ksvg2/svg/SVGFETurbulenceElement.h:
        * ksvg2/svg/SVGFilterElement.h:
        * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h:
        * ksvg2/svg/SVGForeignObjectElement.h:
        * ksvg2/svg/SVGGElement.h:
        * ksvg2/svg/SVGGradientElement.h:
        * ksvg2/svg/SVGHelper.cpp:
        (WebCore::SVGHelper::PercentageOfViewport):
        (WebCore::SVGHelper::ParseSeperatedList):
        * ksvg2/svg/SVGImageElement.h:
        * ksvg2/svg/SVGLength.h:
        (WebCore::SVGLength::):
        * ksvg2/svg/SVGLength.idl: Added.
        * ksvg2/svg/SVGLineElement.h:
        * ksvg2/svg/SVGLinearGradientElement.h:
        * ksvg2/svg/SVGLocatable.cpp:
        (SVGLocatable::getBBox):
        * ksvg2/svg/SVGLocatable.h:
        * ksvg2/svg/SVGMarkerElement.h:
        * ksvg2/svg/SVGMaskElement.h:
        * ksvg2/svg/SVGMatrix.cpp:
        (SVGMatrix::inverse):
        (SVGMatrix::rotateFromVector):
        * ksvg2/svg/SVGMatrix.h:
        * ksvg2/svg/SVGMatrix.idl: Added.
        * ksvg2/svg/SVGNumber.idl: Added.
        * ksvg2/svg/SVGPathElement.cpp:
        (WebCore::SVGPathElement::getPointAtLength):
        * ksvg2/svg/SVGPathElement.h:
        * ksvg2/svg/SVGPatternElement.cpp:
        (WebCore::SVGPatternElement::x):
        (WebCore::SVGPatternElement::y):
        (WebCore::SVGPatternElement::width):
        (WebCore::SVGPatternElement::height):
        (WebCore::SVGPatternElement::pushAttributeContext):
        (WebCore::SVGPatternElement::fillAttributesFromReferencePattern):
        (WebCore::SVGPatternElement::drawPatternContentIntoTile):
        (WebCore::SVGPatternElement::notifyClientsToRepaint):
        (WebCore::SVGPatternElement::notifyAttributeChange):
        (WebCore::SVGPatternElement::canvasResource):
        (WebCore::SVGPatternElement::getCTM):
        * ksvg2/svg/SVGPatternElement.h:
        * ksvg2/svg/SVGPoint.idl: Added.
        * ksvg2/svg/SVGPolyElement.h:
        * ksvg2/svg/SVGPolygonElement.h:
        * ksvg2/svg/SVGPolylineElement.h:
        * ksvg2/svg/SVGRadialGradientElement.h:
        * ksvg2/svg/SVGRect.idl: Added.
        * ksvg2/svg/SVGRectElement.h:
        * ksvg2/svg/SVGSVGElement.cpp:
        (WebCore::SVGSVGElement::SVGSVGElement):
        (WebCore::SVGSVGElement::~SVGSVGElement):
        (WebCore::SVGSVGElement::viewport):
        (WebCore::SVGSVGElement::currentTranslate):
        (WebCore::SVGSVGElement::unsuspendRedraw):
        (WebCore::SVGSVGElement::getIntersectionList):
        (WebCore::SVGSVGElement::getEnclosureList):
        (WebCore::SVGSVGElement::checkIntersection):
        (WebCore::SVGSVGElement::checkEnclosure):
        (WebCore::SVGSVGElement::createSVGNumber):
        (WebCore::SVGSVGElement::createSVGPoint):
        (WebCore::SVGSVGElement::createSVGRect):
        (WebCore::SVGSVGElement::pauseAnimations):
        (WebCore::SVGSVGElement::unpauseAnimations):
        (WebCore::SVGSVGElement::animationsPaused):
        (WebCore::SVGSVGElement::getCurrentTime):
        (WebCore::SVGSVGElement::setCurrentTime):
        * ksvg2/svg/SVGSVGElement.h:
        (WebCore::SVGSVGElement::timeScheduler):
        * ksvg2/svg/SVGSVGElement.idl: Added.
        * ksvg2/svg/SVGScriptElement.h:
        * ksvg2/svg/SVGSetElement.cpp:
        (WebCore::SVGSetElement::SVGSetElement):
        (WebCore::SVGSetElement::handleTimerEvent):
        * ksvg2/svg/SVGSetElement.h:
        * ksvg2/svg/SVGStopElement.h:
        * ksvg2/svg/SVGStyleElement.h:
        * ksvg2/svg/SVGStyledElement.h:
        * ksvg2/svg/SVGStyledLocatableElement.cpp:
        (SVGStyledLocatableElement::getBBox):
        * ksvg2/svg/SVGStyledLocatableElement.h:
        * ksvg2/svg/SVGStyledTransformableElement.cpp:
        (SVGStyledTransformableElement::getBBox):
        * ksvg2/svg/SVGStyledTransformableElement.h:
        * ksvg2/svg/SVGSwitchElement.h:
        * ksvg2/svg/SVGSymbolElement.h:
        * ksvg2/svg/SVGTRefElement.h:
        * ksvg2/svg/SVGTSpanElement.h:
        * ksvg2/svg/SVGTextContentElement.cpp:
        (SVGTextContentElement::getStartPositionOfChar):
        (SVGTextContentElement::getEndPositionOfChar):
        (SVGTextContentElement::getExtentOfChar):
        (SVGTextContentElement::getCharNumAtPosition):
        (SVGTextContentElement::parseMappedAttribute):
        * ksvg2/svg/SVGTextContentElement.h:
        * ksvg2/svg/SVGTextElement.cpp:
        (WebCore::SVGTextElement::getBBox):
        * ksvg2/svg/SVGTextElement.h:
        * ksvg2/svg/SVGTextPositioningElement.h:
        * ksvg2/svg/SVGTitleElement.h:
        * ksvg2/svg/SVGTransform.h:
        (WebCore::SVGTransform::):
        * ksvg2/svg/SVGTransform.idl: Added.
        * ksvg2/svg/SVGUseElement.h:
        * ksvg2/svg/SVGViewElement.h:
        * page/Frame.cpp:
        (WebCore::Frame::Frame):
        (WebCore::Frame::pauseTimeouts):
        (WebCore::Frame::resumeTimeouts):
        * platform/Color.h:
        * rendering/RenderBR.h:
        * rendering/RenderBox.h:
        (WebCore::RenderBox::renderName):
        * rendering/RenderCanvas.h:
        (WebCore::RenderCanvas::view):
        * rendering/RenderContainer.h:
        * rendering/RenderFlexibleBox.h:
        * rendering/RenderFlow.h:
        (WebCore::RenderFlow::RenderFlow):
        * rendering/RenderInline.h:
        * rendering/RenderTableSection.h:
        * rendering/RenderTextFragment.h:
        (WebCore::RenderTextFragment::contentString):
        * xml/xmlattrs.in: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14646 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago Reviewed by Maciej.
ggaren [Wed, 31 May 2006 07:48:22 +0000 (07:48 +0000)]
    Reviewed by Maciej.

        - Fixed <rdar://problem/4559720> window sizing: make javascript window
        and screen sizing methods and properties work @ HIDPI

        The general approach here is to change some ints to floats, make
        a few key functions that scale between WebView and window/screen
        coordinates, and change other functions that work with screen
        coordinates to use the scaling functions for their underlying
        implementations.

        * manual-tests/window-open-features.html: Removed.
        * manual-tests/window-sizing.html: Added. More test coverage.

        * bindings/js/kjs_window.cpp: Changed ints to floats and IntRects to
        FloatRects, because window coordinates can be fractional when scaled
        to WebView/DOM coordinates.
        (KJS::floatFeature):
        (KJS::showModalDialog):
        (KJS::Window::getValueProperty):
        (KJS::constrainToVisible):
        (KJS::WindowFunc::callAsFunction):
        * bridge/BrowserExtension.h:
        * bridge/mac/BrowserExtensionMac.mm:
        (WebCore::BrowserExtensionMac::createNewWindow): Removed custom scaling
        code and replaced with calls to Page::windowRect and
        Page::setWindowRect. Renamed 'page' and 'bridge' to 'pageBridge' and
        'frameBridge,' respectively.
        * bridge/mac/PageMac.mm:
        (WebCore::Page::windowRect): Changed to use scaling
        (WebCore::Page::setWindowRect): ditto
        * bridge/mac/WebCoreFrameBridge.mm:
        (globalPoint):
        * page/Page.h:
        * platform/IntRect.h:
        * platform/Screen.h:
        * platform/mac/MouseEventMac.mm:
        (WebCore::globalPositionForEvent): Changed to use flipScreenPoint
        * platform/mac/ScreenMac.mm:
        (WebCore::flipScreenRect): New key function
        (WebCore::flipScreenPoint): New key function
        (WebCore::scaleScreenRectToView): New key function
        (WebCore::scaleViewRectToScreen): New key function
        (WebCore::screenRect): Changed to use scaling
        (WebCore::usableScreenRect): ditto

        Feeble attempt to preserve Windows build:

        * platform/win/ScreenWin.cpp:
        (WebCore::scaleScreenRectToWidget): stub -- doesn't actually scale
        (WebCore::scaleWidgetRectToScreen): ditto
        * bridge/win/PageWin.cpp:
        (WebCore::Page::Page):
        (WebCore::Page::widget):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14643 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoFix layout tests.
hyatt [Wed, 31 May 2006 07:12:58 +0000 (07:12 +0000)]
Fix layout tests.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14642 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago Rename RenderCanvas to RenderView. Rename canvas(), isCanvas()
hyatt [Wed, 31 May 2006 01:48:18 +0000 (01:48 +0000)]
    Rename RenderCanvas to RenderView. Rename canvas(), isCanvas()
        to view(), isView().  Rename the frame view accessor on the old canvas
        from view() to frameView() (to avoid view()->view(), since that just looks
        stupid). :)

        Reviewed by andersca

        * WebCore.vcproj/WebCore/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * bindings/js/kjs_dom.cpp:
        * bindings/js/kjs_window.cpp:
        * bridge/mac/FrameMac.mm:
        * bridge/mac/WebCoreFrameBridge.mm:
        (-[WebCoreFrameBridge _setupRootForPrinting:]):
        (-[WebCoreFrameBridge computePageRectsWithPrintWidthScaleFactor:printHeight:]):
        (-[WebCoreFrameBridge selectionColor]):
        (-[WebCoreFrameBridge accessibilityTree]):
        * dom/Document.cpp:
        (WebCore::Document::attach):
        (WebCore::Document::updateSelection):
        (WebCore::Document::prepareMouseEvent):
        * editing/SelectionController.cpp:
        * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
        * ksvg2/svg/SVGClipPathElement.cpp:
        (SVGClipPathElement::canvasResource):
        * ksvg2/svg/SVGFEFloodElement.cpp:
        (SVGFEFloodElement::filterEffect):
        * ksvg2/svg/SVGGradientElement.cpp:
        (SVGGradientElement::rebuildStops):
        * ksvg2/svg/SVGHelper.cpp:
        (SVGHelper::PercentageOfViewport):
        * ksvg2/svg/SVGPathElement.cpp:
        (WebCore::SVGPathElement::getPointAtLength):
        * ksvg2/svg/SVGSVGElement.cpp:
        (WebCore::SVGSVGElement::currentTranslate):
        * ksvg2/svg/SVGStyledElement.cpp:
        (WebCore::SVGStyledElement::view):
        (WebCore::SVGStyledElement::pushAttributeContext):
        * ksvg2/svg/SVGStyledElement.h:
        * kwq/WebCoreAXObject.mm:
        (-[WebCoreAXObject accessibilityShouldUseUniqueId]):
        (-[WebCoreAXObject role]):
        (-[WebCoreAXObject value]):
        (-[WebCoreAXObject position]):
        (-[WebCoreAXObject accessibilityIsIgnored]):
        (-[WebCoreAXObject accessibilityAttributeNames]):
        (-[WebCoreAXObject topView]):
        (-[WebCoreAXObject accessibilityAttributeValue:]):
        * page/Frame.cpp:
        (WebCore::Frame::selectionRect):
        (WebCore::Frame::paint):
        (WebCore::Frame::adjustPageHeight):
        (WebCore::Frame::forceLayoutWithPageWidthRange):
        * page/FrameView.cpp:
        (WebCore::FrameView::adjustViewSize):
        (WebCore::FrameView::layout):
        * page/FrameView.h:
        * rendering/AutoTableLayout.cpp:
        (WebCore::shouldScaleColumns):
        * rendering/RenderBlock.cpp:
        (WebCore::RenderBlock::MarginInfo::MarginInfo):
        (WebCore::RenderBlock::isSelfCollapsingBlock):
        (WebCore::RenderBlock::layoutBlock):
        (WebCore::RenderBlock::paintChildren):
        (WebCore::RenderBlock::setSelectionState):
        (WebCore::RenderBlock::isSelectionRoot):
        (WebCore::RenderBlock::fillInlineSelectionGaps):
        (WebCore::RenderBlock::lowestPosition):
        (WebCore::RenderBlock::rightmostPosition):
        (WebCore::RenderBlock::leftmostPosition):
        (WebCore::RenderBlock::clearFloats):
        (WebCore::RenderBlock::nodeAtPoint):
        (WebCore::RenderBlock::calcBlocminMaxWidth):
        (WebCore::RenderBlock::inRootBlockContext):
        * rendering/RenderBox.cpp:
        (WebCore::RenderBox::setStyle):
        (WebCore::RenderBox::paintRootBoxDecorations):
        (WebCore::RenderBox::paintBackgroundExtended):
        (WebCore::RenderBox::calcHeight):
        (WebCore::RenderBox::calcPercentageHeight):
        (WebCore::RenderBox::availableHeightUsing):
        * rendering/RenderCanvas.cpp: Removed.
        * rendering/RenderCanvas.h: Removed.
        * rendering/RenderContainer.cpp:
        (WebCore::RenderContainer::removeChildNode):
        * rendering/RenderFileButton.cpp:
        (WebCore::RenderFileButton::RenderFileButton):
        * rendering/RenderFlow.cpp:
        (WebCore::RenderFlow::destroy):
        (WebCore::RenderFlow::paintLines):
        * rendering/RenderFrameSet.cpp:
        (WebCore::RenderFrameSet::layout):
        (WebCore::RenderFrameSet::userResize):
        (WebCore::RenderFrameSet::setResizing):
        * rendering/RenderImage.cpp:
        (WebCore::RenderImage::paint):
        * rendering/RenderLayer.cpp:
        (WebCore::RenderLayer::updateLayerPositions):
        (WebCore::RenderLayer::updateLayerPosition):
        (WebCore::RenderLayer::stackingContext):
        (WebCore::RenderLayer::enclosingPositionedAncestor):
        (WebCore::RenderLayer::convertToLayerCoords):
        (WebCore::RenderLayer::scrollToOffset):
        (WebCore::isSubframeCanvas):
        (WebCore::RenderLayer::intersectsDamageRect):
        * rendering/RenderLayer.h:
        (WebCore::RenderLayer::isStackingContext):
        * rendering/RenderListMarker.cpp:
        (WebCore::RenderListMarker::paint):
        * rendering/RenderObject.cpp:
        (WebCore::RenderObject::scroll):
        (WebCore::RenderObject::containingBlock):
        (WebCore::RenderObject::repaint):
        (WebCore::RenderObject::repaintRectangle):
        (WebCore::RenderObject::repaintAfterLayoutIfNeeded):
        (WebCore::RenderObject::draggableNode):
        (WebCore::RenderObject::selectionStartEnd):
        (WebCore::RenderObject::setStyle):
        (WebCore::RenderObject::viewRect):
        (WebCore::RenderObject::view):
        (WebCore::RenderObject::container):
        (WebCore::RenderObject::removeFromObjectLists):
        (WebCore::RenderObject::scheduleRelayout):
        (WebCore::RenderObject::imageChanged):
        (WebCore::RenderObject::maximalOutlineSize):
        * rendering/RenderObject.h:
        (WebCore::RenderObject::isRenderView):
        * rendering/RenderTextArea.cpp:
        (WebCore::RenderTextArea::RenderTextArea):
        * rendering/RenderThemeMac.mm:
        (WebCore::RenderThemeMac::paintCheckbox):
        (WebCore::RenderThemeMac::paintRadio):
        (WebCore::RenderThemeMac::paintButton):
        * rendering/RenderTreeAsText.cpp:
        (externalRepresentation):
        * rendering/RenderView.cpp: Added.
        (WebCore::RenderView::RenderView):
        (WebCore::RenderView::~RenderView):
        (WebCore::RenderView::calcHeight):
        (WebCore::RenderView::calcWidth):
        (WebCore::RenderView::calcMinMaxWidth):
        (WebCore::RenderView::layout):
        (WebCore::RenderView::absolutePosition):
        (WebCore::RenderView::paint):
        (WebCore::RenderView::paintBoxDecorations):
        (WebCore::RenderView::repaintViewRectangle):
        (WebCore::RenderView::getAbsoluteRepaintRect):
        (WebCore::RenderView::computeAbsoluteRepaintRect):
        (WebCore::RenderView::absoluteRects):
        (WebCore::RenderView::selectionRect):
        (WebCore::RenderView::setSelection):
        (WebCore::RenderView::clearSelection):
        (WebCore::RenderView::selectionStartEnd):
        (WebCore::RenderView::updateWidgetPositions):
        (WebCore::RenderView::addWidget):
        (WebCore::RenderView::removeWidget):
        (WebCore::RenderView::viewRect):
        (WebCore::RenderView::docHeight):
        (WebCore::RenderView::docWidth):
        (WebCore::RenderView::setBestTruncatedAt):
        * rendering/RenderView.h: Added.
        (WebCore::RenderView::renderName):
        (WebCore::RenderView::isRenderView):
        (WebCore::RenderView::frameView):
        * rendering/RenderWidget.cpp:
        (WebCore::RenderWidget::RenderWidget):
        (WebCore::RenderWidget::destroy):
        (WebCore::RenderWidget::updateWidgetPosition):
        * rendering/RenderWidget.h:
        (WebCore::RenderWidget::widget):
        * rendering/bidi.cpp:
        (WebCore::RenderBlock::layoutInlineChildren):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14638 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago Reviewed by Geoff.
tomernic [Wed, 31 May 2006 01:31:27 +0000 (01:31 +0000)]
    Reviewed by Geoff.

        <rdar://problem/4567776> REGRESSION: window.open() links do not work at www.newarchery.com

        * bindings/js/kjs_window.cpp:
        (KJS::WindowFunc::callAsFunction):
        Set the URL in the ResourceRequest; otherwise, it'll be uninitialized and createNewWindow() will
        not be able to load the URL into a pre-existing frame.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14637 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago Reviewed by Maciej, landed by Beth.
bdakin [Tue, 30 May 2006 21:10:22 +0000 (21:10 +0000)]
    Reviewed by Maciej, landed by Beth.

        - fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=9137
          Children with percentage heights of absolutely positioned element
          with height: auto and top and bottom non-auto does not lay out
          correctly

        Adds special case.

        * rendering/RenderBox.cpp:
        (WebCore::RenderBox::calcPercentageHeight):
        (WebCore::RenderBox::calcReplacedHeightUsing):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14634 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago Reviewed by Hyatt, landed by Beth.
bdakin [Tue, 30 May 2006 20:47:37 +0000 (20:47 +0000)]
    Reviewed by Hyatt, landed by Beth.

        - Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=9085
          Absolutely positioned objects with 'height': auto and 'top': and
          'bottom': non-auto should not be content based

        * rendering/RenderBox.cpp:
        (WebCore::RenderBox::calcAbsoluteVertical):
        (WebCore::RenderBox::calcAbsoluteVerticalValues):
        (WebCore::RenderBox::calcAbsoluteHorizontalReplaced):
        (WebCore::RenderBox::calcAbsoluteVerticalReplaced):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14633 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoVersioning
thatcher [Tue, 30 May 2006 18:20:43 +0000 (18:20 +0000)]
Versioning

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14623 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago2006-05-30 Eric Seidel <eric@eseidel.com>
eseidel [Tue, 30 May 2006 08:34:40 +0000 (08:34 +0000)]
2006-05-30  Eric Seidel  <eric@eseidel.com>

        Reviewed by andersca.

        Small amount of svg-related code cleanup.
        No test case possible.

        * ksvg2/svg/SVGColor.h:
        * ksvg2/svg/SVGLength.cpp:
        (SVGLength::SVGLength):
        (SVGLength::value):
        * ksvg2/svg/SVGMarkerElement.cpp:
        * ksvg2/svg/SVGMatrix.cpp:
        (SVGMatrix::SVGMatrix):
        (SVGMatrix::copy):
        (SVGMatrix::postMultiply):
        (SVGMatrix::inverse):
        (SVGMatrix::postTranslate):
        (SVGMatrix::postScale):
        (SVGMatrix::postScaleNonUniform):
        (SVGMatrix::postRotate):
        (SVGMatrix::postRotateFromVector):
        (SVGMatrix::postFlipX):
        (SVGMatrix::postFlipY):
        (SVGMatrix::postSkewX):
        (SVGMatrix::postSkewY):
        (SVGMatrix::multiply):
        (SVGMatrix::translate):
        (SVGMatrix::scale):
        (SVGMatrix::scaleNonUniform):
        (SVGMatrix::rotate):
        (SVGMatrix::rotateFromVector):
        (SVGMatrix::flipX):
        (SVGMatrix::flipY):
        (SVGMatrix::skewX):
        (SVGMatrix::skewY):
        (SVGMatrix::setMatrix):
        (SVGMatrix::qmatrix):
        (SVGMatrix::removeScale):
        * ksvg2/svg/SVGMatrix.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14621 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago2006-05-30 Eric Seidel <eric@eseidel.com>
eseidel [Tue, 30 May 2006 08:30:38 +0000 (08:30 +0000)]
2006-05-30  Eric Seidel  <eric@eseidel.com>

        Reviewed by andersca.

        Small ammount of bindings-related code cleanup.
        No test case possible.

        * bindings/js/JSHTMLFormElementCustom.cpp:
        (WebCore::JSHTMLFormElement::nameGetter):
        * bindings/js/JSXMLSerializer.cpp:
        (WebCore::JSXMLSerializerConstructorImp::JSXMLSerializerConstructorImp):
        (WebCore::JSXMLSerializerConstructorImp::implementsConstruct):
        (WebCore::JSXMLSerializerConstructorImp::construct):
        (WebCore::):
        (WebCore::JSXMLSerializer::JSXMLSerializer):
        (WebCore::JSXMLSerializerProtoFunc::callAsFunction):
        * bindings/js/JSXMLSerializer.h:
        (WebCore::JSXMLSerializer::toBoolean):
        (WebCore::JSXMLSerializer::classInfo):
        (WebCore::JSXMLSerializer::):
        * bindings/js/kjs_window.cpp:
        (KJS::Window::getValueProperty):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14620 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago2006-05-27 Anders Carlsson <acarlsson@apple.com>
andersca [Sat, 27 May 2006 18:33:32 +0000 (18:33 +0000)]
2006-05-27  Anders Carlsson  <acarlsson@apple.com>

        * bindings/js/JSHTMLElementWrapperFactory.cpp:
        Correct include file names.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14619 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoLayoutTests:
justing [Sat, 27 May 2006 02:23:27 +0000 (02:23 +0000)]
LayoutTests:

        Reviewed by levi

        Added, test for the crash by focusing an editable html element and then
        inserting a tab
        * editing/selection/editable-html-element-expected.checksum: Added.
        * editing/selection/editable-html-element-expected.png: Added.
        * editing/selection/editable-html-element-expected.txt: Added.
        * editing/selection/editable-html-element.html: Added.
        Fixed:
        * editing/selection/focus_editable_html-expected.checksum:
        * editing/selection/focus_editable_html-expected.png:
        * editing/selection/focus_editable_html-expected.txt:

WebCore:

        Reviewed by levi

        <rdar://problem/4564296> Mail crashes on Leopard9A184 when I attempt to compose a new message

        * dom/Position.cpp:
        (WebCore::Position::inRenderedContent):
        Removed a candidate at [html, 0].
        * editing/CreateLinkCommand.cpp:
        (WebCore::CreateLinkCommand::doApply): Added early return when there is no selection.
        * editing/InsertLineBreakCommand.cpp:
        (WebCore::InsertLineBreakCommand::doApply): Ditto.
        * editing/InsertTextCommand.cpp:
        (WebCore::InsertTextCommand::input): Ditto.
        * editing/Selection.cpp:
        (WebCore::Selection::validate): If visible positions can't be created from the endpoints,
        then create a null selection.  Not doing this was making editing code think there was
        a valid, editable selection even though there wasn't.
        * editing/UnlinkCommand.cpp:
        (WebCore::UnlinkCommand::doApply): Early return.
        * editing/VisiblePosition.cpp:
        (WebCore::VisiblePosition::initDeepPosition): Special case the html/body element boundary.
        It looks like a non-editable/editable boundary since rootEditableElement stops at the body
        even if the html element is editable.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14618 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago Reviewed by Justin.
adele [Fri, 26 May 2006 22:17:28 +0000 (22:17 +0000)]
    Reviewed by Justin.

        Fixes a mistake in my last checkin.  Uses maxDeepOffset to get the end position for
        the textarea's inner div.

        * rendering/RenderTextField.cpp: (WebCore::RenderTextField::textWithHardLineBreaks):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14617 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoLayoutTests:
adele [Fri, 26 May 2006 21:13:22 +0000 (21:13 +0000)]
LayoutTests:

        Reviewed by Hyatt.

        Added test for new textarea implementation.  Tests
        wrap attributes and form submission.

        * fast/forms/textarea-appearance-wrap-expected.txt: Added.
        * fast/forms/textarea-appearance-wrap.html: Added.

WebCore:

        Reviewed by Hyatt.

        Added support for wrap=hard for new textarea implementation.

        Tests: fast/forms/textarea-appearance-wrap.html

        * dom/Range.h: Added version of toString that will convert BRs to newlines.
        * dom/Range.cpp: (WebCore::Range::toString):
        * editing/ReplaceSelectionCommand.cpp: (WebCore::ReplacementFragment::ReplacementFragment):
          When in plain-text mode, and a white-space mode that doesn't collapse whitespace, create a fragment with one text node.
        * editing/visible_units.cpp:
        (WebCore::previousLinePosition): Subtract scroll offset so the absolute position for the containing block is correct.
        (WebCore::nextLinePosition): ditto.
        * rendering/RenderText.cpp:
        (WebCore::RenderText::positionForCoordinates): If the position is equal to the left edge of the box,
        make the affinity downstream so the position doesn't jump back to the previous line.
        (WebCore::RenderText::atLineWrap): The logic was reversed here in a recent change.
        If the box is not at a line break, then its at a line wrap.
        (WebCore::RenderText::caretRect): Only go to the next text box if its at a line wrap and the
         affinity is also downstream.  If its upstream, then the correct box is on the current line.
        (WebCore::RenderText::inlineBox): ditto.
        * rendering/RenderTextField.cpp:
        (WebCore::RenderTextField::updateFromElement): multi line controls don't need to check
         valueMatchesRenderer before updating the renderer.  For textareas, the renderer should always try to update.
         This matches our old textarea behavior.
        (WebCore::RenderTextField::text): Pass true to textContent so it converts BRs to newlines.
        (WebCore::RenderTextField::textWithHardLineBreaks): Iterate through the RootLineBoxes to find the soft wraps and replace them with newlines.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14616 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoWebCore:
andersca [Fri, 26 May 2006 20:30:20 +0000 (20:30 +0000)]
WebCore:

2006-05-26  Anders Carlsson  <acarlsson@apple.com>

        Reviewed by Geoff.

        http://bugzilla.opendarwin.org/show_bug.cgi?id=9127
        Invoke capturing event listeners when AT_TARGET

        * dom/EventTargetNode.cpp:
        (WebCore::EventTargetNode::handleLocalEvents):
        Invoke capturing event listeners for the AT_TARGET phase. This violates the
        DOM spec but it's what Mozilla does.

LayoutTests:

2006-05-26  Anders Carlsson  <acarlsson@apple.com>

        Reviewed by Geoff.

        http://bugzilla.opendarwin.org/show_bug.cgi?id=9127
        Invoke capturing event listeners when AT_TARGET

        * dom/html/level2/events/dispatchEvent09-expected.txt:
        * dom/xhtml/level2/events/dispatchEvent09-expected.txt:
        These fail now.

        * fast/dom/capturing-event-listeners-expected.txt: Added.
        * fast/dom/capturing-event-listeners.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14615 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago Reviewed by John Sullivan.
harrison [Fri, 26 May 2006 19:34:18 +0000 (19:34 +0000)]
    Reviewed by John Sullivan.

        <rdar://problem/4514529> Add a list type parameter and a return value to _increaseSelectionListLevel

        * WebView/WebHTMLView.m:
        (-[WebHTMLView _increaseSelectionListLevel]):
        - Now returns DOMNode*

        (-[WebHTMLView _increaseSelectionListLevelOrdered]):
        (-[WebHTMLView _increaseSelectionListLevelUnordered]):
        - Added.  These also return DOMNode*

        * WebView/WebHTMLViewPrivate.h:
        - Updated as above

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14614 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago Reviewed by John Sullivan.
harrison [Fri, 26 May 2006 19:31:24 +0000 (19:31 +0000)]
    Reviewed by John Sullivan.

        <rdar://problem/4514529> Add a list type parameter and a return value to _increaseSelectionListLevel

        * WebCore.vcproj/WebCore/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        - Renamed ModifySelectionListLevelCommand .cpp and .h to ModifySelectionListLevel .cpp and .h

        * bridge/mac/WebCoreFrameBridge.h:
        * bridge/mac/WebCoreFrameBridge.mm:
        (-[WebCoreFrameBridge canIncreaseSelectionListLevel]):
        (-[WebCoreFrameBridge canDecreaseSelectionListLevel]):
        (-[WebCoreFrameBridge increaseSelectionListLevel]):
        (-[WebCoreFrameBridge decreaseSelectionListLevel]):
        - Call functions in IncreaseSelectionListLevelCommand or DecreaseSelectionListLevelCommand instead
        of ModifySelectionListLevelCommand.

        (-[WebCoreFrameBridge increaseSelectionListLevelOrdered]):
        (-[WebCoreFrameBridge increaseSelectionListLevelUnordered]):
        - Added.

        * editing/ModifySelectionListLevel.cpp: Added.
        - Renamed from ModifySelectionListLevelCommand.cpp
        - Made ModifySelectionListLevelCommand class into a useful base class for new
        classes IncreaseSelectionListLevelCommand and DecreaseSelectionListLevelCommand.

        (WebCore::ModifySelectionListLevelCommand::ModifySelectionListLevelCommand):
        (WebCore::getStartEndListChildren):
        (WebCore::ModifySelectionListLevelCommand::insertSiblingNodeRangeBefore):
        (WebCore::ModifySelectionListLevelCommand::appendSiblingNodeRange):
        - ModifySelectionListLevelCommand is base class for IncreaseSelectionListLevelCommand and DecreaseSelectionListLevelCommand

        (WebCore::IncreaseSelectionListLevelCommand::IncreaseSelectionListLevelCommand):
        (WebCore::IncreaseSelectionListLevelCommand::listElement):
        (WebCore::canIncreaseListLevel):
        (WebCore::IncreaseSelectionListLevelCommand::doApply):
        (WebCore::IncreaseSelectionListLevelCommand::canIncreaseSelectionListLevel):
        (WebCore::increaseSelectionListLevelWithType):
        (WebCore::IncreaseSelectionListLevelCommand::increaseSelectionListLevel):
        (WebCore::IncreaseSelectionListLevelCommand::increaseSelectionListLevelOrdered):
        (WebCore::IncreaseSelectionListLevelCommand::increaseSelectionListLevelUnordered):
        - Now a subclass of ModifySelectionListLevelCommand
        - Added Ordered and Unordered increaser functions
        - Increaser functions return the list element that the items were moved into

        (WebCore::DecreaseSelectionListLevelCommand::DecreaseSelectionListLevelCommand):
        (WebCore::canDecreaseListLevel):
        (WebCore::DecreaseSelectionListLevelCommand::doApply):
        (WebCore::DecreaseSelectionListLevelCommand::canDecreaseSelectionListLevel):
        (WebCore::DecreaseSelectionListLevelCommand::decreaseSelectionListLevel):
        - No functional changes other than to become a subclass of ModifySelectionListLevelCommand

        * editing/ModifySelectionListLevel.h: Added.
        (WebCore::):
         - Renamed from ModifySelectionListLevelCommand.cpp

        * editing/ModifySelectionListLevelCommand.cpp: Removed.
        - Renamed to ModifySelectionListLevel.cpp

        * editing/ModifySelectionListLevelCommand.h: Removed.
        - Renamed to ModifySelectionListLevel.h

        * editing/htmlediting.cpp:
        (WebCore::createOrderedListElement):
        (WebCore::createUnorderedListElement):
        * editing/htmlediting.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14613 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago Reviewed by Anders.
tomernic [Fri, 26 May 2006 18:58:12 +0000 (18:58 +0000)]
    Reviewed by Anders.

        <http://bugzilla.opendarwin.org/show_bug.cgi?id=8347>
        REGRESSION: Flash movie audible but not visible until window is resized

        * Plugins/WebNetscapePluginDocumentView.m:
        (-[WebNetscapePluginDocumentView dataSourceUpdated:]):
        Layout if needed here.  Maciej recently removed the "LayoutAcceptable" frame state, which used to
        cause plugin document views to lay out immediately upon receiving data.  This call to -layout has
        the same effect.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14611 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago2006-05-26 Steve Falkenburg <sfalken@apple.com>
sfalken [Fri, 26 May 2006 18:11:50 +0000 (18:11 +0000)]
2006-05-26  Steve Falkenburg  <sfalken@apple.com>

        Reviewed by adele.

        Build fixes/tweaks

        * WebCore.vcproj/WebCore/WebCore.vcproj:
        * config.h:
        * ksvg2/scripts/make_names.pl:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14610 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago2006-05-26 Steve Falkenburg <sfalken@apple.com>
sfalken [Fri, 26 May 2006 08:12:11 +0000 (08:12 +0000)]
2006-05-26  Steve Falkenburg  <sfalken@apple.com>

        Build fixes/tweaks

        * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14609 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago2006-05-26 Steve Falkenburg <sfalken@apple.com>
sfalken [Fri, 26 May 2006 08:10:33 +0000 (08:10 +0000)]
2006-05-26  Steve Falkenburg  <sfalken@apple.com>

        Build fixes/tweaks

        * WebKitWin.vcproj/WebKitWin/WebKitWin.vcproj:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14608 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago2006-05-26 Steve Falkenburg <sfalken@apple.com>
sfalken [Fri, 26 May 2006 08:07:32 +0000 (08:07 +0000)]
2006-05-26  Steve Falkenburg  <sfalken@apple.com>

        Build fixes/tweaks

        * Spinneret/Spinneret.sln:
        * Spinneret/Spinneret/Spinneret.vcproj:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14607 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago2006-05-26 Steve Falkenburg <sfalken@apple.com>
sfalken [Fri, 26 May 2006 00:36:30 +0000 (00:36 +0000)]
2006-05-26  Steve Falkenburg  <sfalken@apple.com>

        Reviewed by adele.

        Fix build

        * WebCore.vcproj/WebCore/WebCore.vcproj:
        * config.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14606 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoSet the fixed pitch hardcoded default to 13 on windows.
hyatt [Fri, 26 May 2006 00:28:48 +0000 (00:28 +0000)]
Set the fixed pitch hardcoded default to 13 on windows.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14605 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoMake sure Spinneret inits and shuts down COM like a good boy.
hyatt [Fri, 26 May 2006 00:24:24 +0000 (00:24 +0000)]
Make sure Spinneret inits and shuts down COM like a good boy.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14604 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agogit-svn-id: https://svn.webkit.org/repository/webkit/trunk@14603 268f45cc-cd09-0410...
aliceli1 [Fri, 26 May 2006 00:19:34 +0000 (00:19 +0000)]
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14603 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago Reviewed by Adele.
aliceli1 [Fri, 26 May 2006 00:15:13 +0000 (00:15 +0000)]
    Reviewed by Adele.

        * bindings/js/kjs_html.cpp:
        added bindings
        (KJS::HTMLElementFunction::callAsFunction):
        added case to handle namedItem for select elements
        * bindings/js/kjs_html.h:
        added enum value for bindings
        (KJS::JSHTMLElement::):
        * html/HTMLSelectElement.cpp:
        (WebCore::HTMLSelectElement::namedItem):
        implemented namedItem method
        * html/HTMLSelectElement.h:
        added prototype for namedItem method

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14602 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoAdd soft hyphen support for Win32.
hyatt [Thu, 25 May 2006 23:45:25 +0000 (23:45 +0000)]
Add soft hyphen support for Win32.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14601 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoImplement containsCharacters method on Win32 for determining if a fallback font has...
hyatt [Thu, 25 May 2006 23:18:06 +0000 (23:18 +0000)]
Implement containsCharacters method on Win32 for determining if a fallback font has the necessary glyphs to be used.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14600 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoRemove the logical scale factor from Cairo Win32 fonts.
hyatt [Thu, 25 May 2006 22:42:09 +0000 (22:42 +0000)]
Remove the logical scale factor from Cairo Win32 fonts.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14599 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago2006-05-25 Mitz Pettel <opendarwin.org@mitzpettel.com>
eseidel [Thu, 25 May 2006 22:17:38 +0000 (22:17 +0000)]
2006-05-25  Mitz Pettel  <opendarwin.org@mitzpettel.com>

        Reviewed by hyatt.  Landed by eseidel.

        - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8848
          TFOOT borders are copied to THEAD and TBODY

        Test: fast/table/border-collapsing/border-collapsing-head-foot.html

        * rendering/RenderTable.cpp:
        (WebCore::RenderTable::sectionAbove): Added.
        (WebCore::RenderTable::sectionBelow): Added.
        (WebCore::RenderTable::cellAbove): Changed to call sectionAbove.
        (WebCore::RenderTable::cellBelow): Changed to call sectionBelow.
        * rendering/RenderTable.h:
        * rendering/RenderTableCell.cpp:
        (WebCore::RenderTableCell::collapsedTopBorder): Changed to call sectionAbove.
        (WebCore::RenderTableCell::collapsedBottomBorder): Changed to call sectionBelow.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14598 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago2006-05-25 Mitz Pettel <opendarwin.org@mitzpettel.com>
eseidel [Thu, 25 May 2006 22:11:36 +0000 (22:11 +0000)]
2006-05-25  Mitz Pettel  <opendarwin.org@mitzpettel.com>

        Reviewed by hyatt.  Landed by eseidel.

        - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=3297
          height property is not honored on table rows

        * rendering/RenderTableSection.cpp:
        (WebCore::RenderTableSection::addChild): Assign the row renderer to the
        grid row.
        (WebCore::RenderTableSection::calcRowHeight): Fix off-by-one index bug
        and add vertical spacing only for grid rows that have a renderer.
        (WebCore::RenderTableSection::recalcCells): Assign row renderers to
        grid rows.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14597 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoRemove bogus directory
eseidel [Thu, 25 May 2006 22:05:22 +0000 (22:05 +0000)]
Remove bogus directory

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14596 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago2006-05-19 Rob Buis <buis@kde.org>
eseidel [Thu, 25 May 2006 22:00:06 +0000 (22:00 +0000)]
2006-05-19  Rob Buis  <buis@kde.org>

        Reviewed by darin.  Landed by eseidel.

        Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=5978
        WebKIt+SVG should use SVGDocumentImpl for image/svg+xml

        Make sure SVGDocument is created for standalone svg
        documents.

        * ksvg2/svg/SVGDOMImplementation.cpp:
        (SVGDOMImplementation::instance):
        (SVGDOMImplementation::createDocument):
        * ksvg2/svg/SVGDOMImplementation.h:
        * ksvg2/svg/SVGDocument.cpp:
        (WebCore::SVGDocument::SVGDocument):
        (WebCore::SVGDocument::~SVGDocument):
        * ksvg2/svg/SVGDocument.h:
        * ksvg2/svg/SVGTests.cpp:
        (WebCore::SVGTests::isValid):
        * ksvg2/svg/SVGTitleElement.cpp:
        * ksvg2/svg/SVGTitleElement.h:
        * page/Frame.cpp:
        (WebCore::Frame::begin):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14595 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago2006-05-17 Rob Buis <buis@kde.org>
eseidel [Thu, 25 May 2006 21:55:45 +0000 (21:55 +0000)]
2006-05-17  Rob Buis  <buis@kde.org>

        Reviewed by darin.  Landed by eseidel.

        http://bugzilla.opendarwin.org/show_bug.cgi?id=5889
        HTMLNames.* should be generated using make_names.pl

        Use a patched make_names.pl to autogenerate HTMLNames.*

        * DerivedSources.make:
        * WebCore.xcodeproj/project.pbxproj:
        * html/HTMLNames.cpp: Removed.
        * html/HTMLNames.h: Removed.
        * html/HTMLTagNames.in: Added.
        * html/HTMLAttributeNames.in: Added.
        * ksvg2/scripts/make_names.pl:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14594 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago2006-05-23 Eric Seidel <eric@eseidel.com>
eseidel [Thu, 25 May 2006 21:41:29 +0000 (21:41 +0000)]
2006-05-23  Eric Seidel  <eric@eseidel.com>

        Reviewed by andersca.

        Add "HasIndexGetter" support to bindings autogen system.
        http://bugzilla.opendarwin.org/show_bug.cgi?id=9057

        * DerivedSources.make:
        * WebCore.xcodeproj/project.pbxproj:
        * bindings/js/JSHTMLInputElementBase.cpp:
        * bindings/js/kjs_css.cpp:
        (KJS::toJS):
        * bindings/js/kjs_css.h:
        * bindings/js/kjs_dom.cpp:
        (KJS::DOMNamedNodeMap::getOwnPropertySlot):
        * bindings/scripts/CodeGeneratorJS.pm:
        * css/CSSValueList.idl: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14593 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoBuild fix
thatcher [Thu, 25 May 2006 20:15:22 +0000 (20:15 +0000)]
Build fix

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14592 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoVersioning
thatcher [Thu, 25 May 2006 19:06:37 +0000 (19:06 +0000)]
Versioning

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14587 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago Reviewed by Tim O.
thatcher [Thu, 25 May 2006 19:00:11 +0000 (19:00 +0000)]
    Reviewed by Tim O.

        <rdar://problem/4559808> WebKit fails to compile for ppc64
        <rdar://problem/4522085> 64-bit: WebKit uses FSSpec which is not available in 64-bit
        Gets WebKit building under 64-bit. Rename WebNSInt and WebNSUInt to WebNSInteger and WebNSUInteger.
        Start using WebNSInteger where we need to match AppKit API usage of NSInteger.

        HIWebView and a couple of helper functions are disabled until they can be moved off of QuickDraw.
        <rdar://problem/4561772> HIWebView needs to be reworked to not use QuickDraw, needed for 64-bit

        * Carbon/CarbonUtils.m: disabled this file in 64-bit <rdar://problem/4561772>
        * Carbon/CarbonWindowAdapter.m:
        (-[CarbonWindowAdapter initWithCarbonWindowRef:takingOwnership:disableOrdering:carbon:]):
        * Carbon/CarbonWindowFrame.m:
        (+[CarbonWindowFrame frameRectForContentRect:styleMask:]):
        (+[CarbonWindowFrame contentRectForFrameRect:styleMask:]):
        (+[CarbonWindowFrame minFrameSizeForMinContentSize:styleMask:]):
        (-[CarbonWindowFrame frameRectForContentRect:styleMask:]):
        (-[CarbonWindowFrame contentRectForFrameRect:styleMask:]):
        (-[CarbonWindowFrame minFrameSizeForMinContentSize:styleMask:]):
        * Carbon/HIViewAdapter.m: disabled this file in 64-bit <rdar://problem/4561772>
        * Carbon/HIWebView.m: disabled this file in 64-bit <rdar://problem/4561772>
        (HIWebViewEventHandler):
        * DefaultDelegates/WebDefaultResourceLoadDelegate.m:
        (-[WebDefaultResourceLoadDelegate webView:resource:didReceiveContentLength:fromDataSource:]):
        * History/WebBackForwardList.m:
        (-[WebBackForwardList removeItem:]):
        (-[WebBackForwardList goToItem:]):
        * Misc/WebDownload.m:
        (-[WebDownloadInternal download:didReceiveDataOfLength:]):
        * Misc/WebFileDatabase.m:
        (UniqueFilePathForKey):
        * Misc/WebIconDatabase.m:
        (-[NSMutableDictionary retainIconForURL:]):
        (-[NSMutableDictionary releaseIconForURL:]):
        (-[WebIconDatabase _totalRetainCountForIconURLString:]):
        (-[WebIconDatabase _retainIconForIconURLString:]):
        (-[WebIconDatabase _releaseIconForIconURLString:]):
        * Misc/WebSearchableTextView.m:
        (-[NSString selectionRect]):
        * Misc/WebTypesInternal.h: Added.
        * Plugins/WebBaseNetscapePluginStream.m:
        (-[WebBaseNetscapePluginStream _destroyStream]):
        (CarbonPathFromPOSIXPath):
        * Plugins/WebBaseNetscapePluginView.m:
        (-[WebBaseNetscapePluginView sendActivateEvent:]):
        (-[WebBaseNetscapePluginView sendUpdateEvent]):
        (TSMEventHandler):
        (-[WebBaseNetscapePluginView _postURL:target:len:buf:file:notifyData:sendNotification:allowHeaders:]):
        (-[WebBaseNetscapePluginView _printedPluginBitmap]):
        (-[NSData _web_locationAfterFirstBlankLine]):
        * Plugins/WebBasePluginPackage.m:
        (-[WebBasePluginPackage hash]):
        * Plugins/WebNetscapePluginPackage.m:
        (-[WebNetscapePluginPackage load]):
        (functionPointerForTVector):
        * WebInspector/WebInspector.m:
        (-[WebInspector _updateSystemColors]):
        * WebKit.xcodeproj/project.pbxproj:
        * WebView/WebDataSource.m:
        (-[WebDataSource _didReceiveData:contentLength:forResource:]):
        * WebView/WebFrame.m:
        (-[WebFrame _sendRemainingDelegateMessagesWithIdentifier:response:length:error:]):
        * WebView/WebHTMLView.m:
        (-[NSArray drawRect:]):
        (-[WebHTMLView characterIndexForPoint:]):
        (-[WebHTMLView conversationIdentifier]):
        * WebView/WebResourceLoadDelegate.h:
        * WebView/WebUIDelegate.h:
        * WebView/WebView.h:
        * WebView/WebView.m:
        (-[WebView _mouseDidMoveOverElement:modifierFlags:]):
        (-[WebView spellCheckerDocumentTag]):
        * WebView/WebViewInternal.h:
        * WebView/WebViewPrivate.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14586 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoModify DumpRenderTree so it will be able to spit out expected-win.txt files for win32...
hyatt [Thu, 25 May 2006 08:08:21 +0000 (08:08 +0000)]
Modify DumpRenderTree so it will be able to spit out expected-win.txt files for win32 layout test results.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14584 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoFix DumpRenderTree so that it works again.
hyatt [Thu, 25 May 2006 07:35:21 +0000 (07:35 +0000)]
Fix DumpRenderTree so that it works again.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14583 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago Implement font aliasing of family names for Courier/Courier New,
hyatt [Thu, 25 May 2006 05:52:35 +0000 (05:52 +0000)]
    Implement font aliasing of family names for Courier/Courier New,
        Arial/Helvetica, and Times/Times New Roman.  This behavior matches
        WinIE and Firefox.

        Reviewed by maciej

        Test cases not really possible, since they would have to rely on people
        not having the fonts installed (so not having installed Office).

        * platform/FontCache.cpp:
        (WebCore::alternateFamilyName):
        (WebCore::FontCache::getCachedFontPlatformData):
        * platform/FontCache.h:
        * rendering/RenderContainer.cpp:
        (WebCore::RenderContainer::removeLeftoverAnonymousBoxes):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14582 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago Reviewed by Geoff.
bdakin [Thu, 25 May 2006 00:43:35 +0000 (00:43 +0000)]
    Reviewed by Geoff.

        This layout test is now correct, so I moved it into the expected
        successes directory and generated new results.

        * tables/mozilla/bugs/bug222846-expected.checksum: Added.
        * tables/mozilla/bugs/bug222846-expected.png: Added.
        * tables/mozilla/bugs/bug222846-expected.txt: Added.
        * tables/mozilla/bugs/bug222846.html: Added.
        * tables/mozilla_expected_failures/bugs/bug222846-
        expected.checksum: Removed.
        * tables/mozilla_expected_failures/bugs/bug222846-expected.png:
        Removed.
        * tables/mozilla_expected_failures/bugs/bug222846-expected.txt:
        Removed.
        * tables/mozilla_expected_failures/bugs/bug222846.html: Removed.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14581 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoVersioning
thatcher [Thu, 25 May 2006 00:34:30 +0000 (00:34 +0000)]
Versioning

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14579 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoLayoutTests:
justing [Wed, 24 May 2006 23:49:48 +0000 (23:49 +0000)]
LayoutTests:

        Reviewed by levi

        * editing/selection/designmode-no-caret-expected.checksum: Added.
        * editing/selection/designmode-no-caret-expected.png: Added.
        * editing/selection/designmode-no-caret-expected.txt: Added.
        * editing/selection/designmode-no-caret.html: Added.

WebCore:

        Reviewed by levi

        <rdar://problem/4549610> REGRESSION: No initial cursor in Mail reply or Blot document
        <rdar://problem/4560698> Mail is very crashy in Leopard9A182, WebCore::Range::compareBoundaryPoints(WebCore::Node*, int, WebCore::Node*, int)

        * page/Frame.cpp:
        (WebCore::Frame::setSelectionFromNone): Find the body and stick a caret
        in it.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14578 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago Reviewed by John Sullivan.
sullivan [Wed, 24 May 2006 23:41:17 +0000 (23:41 +0000)]
    Reviewed by John Sullivan.

        * quality/lifecycle.html: mentions case of PlatformOnly bugs
                                  and 'other' bug databases.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14577 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoAdd support for IMLangFontLink2 to map to a similar font that has missing characters...
hyatt [Wed, 24 May 2006 23:33:09 +0000 (23:33 +0000)]
Add support for IMLangFontLink2 to map to a similar font that has missing characters on Win32.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14576 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago Rubber stamped by Anders.
ggaren [Wed, 24 May 2006 23:18:00 +0000 (23:18 +0000)]
    Rubber stamped by Anders.

        Removed meaningless 'dom::' prefix in IDL files.

        * dom/Range.idl:
        * html/CanvasRenderingContext2D.idl:
        * html/HTMLOptionElement.idl:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14575 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoLayoutTests:
ggaren [Wed, 24 May 2006 23:13:51 +0000 (23:13 +0000)]
LayoutTests:

        - Layout test for http://bugzilla.opendarwin.org/show_bug.cgi?id=9095
        regression: can't select by setting option.selected to true

        * fast/dom/option-properties-expected.txt: Added.
        * fast/dom/option-properties.html: Added.

WebCore:

        Reviewed by andersca.

        - Fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=9095
        regression: can't select by setting option.selected to true

        'text' and 'selected' were erroneously marked read-only for option elements.

        * html/HTMLOptionElement.idl:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14574 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoJavaScriptCore:
ggaren [Wed, 24 May 2006 22:42:54 +0000 (22:42 +0000)]
JavaScriptCore:

        Reviewed by mjs.

        - JSC half of fix for <rdar://problem/4557926> TOT REGRESSSION: Crash
        occurs when attempting to view image in slideshow mode at
        http://d.smugmug.com/gallery/581716 ( KJS::IfNode::execute
        (KJS::ExecState*) + 312)

        On alternate threads, DOMObjects remain in the
        ScriptInterpreter's cache because they're not collected. So, they
        need an opportunity to mark their children.

        I'm not particularly happy with this solution because it fails to
        resolve many outstanding issues with the DOM object cache. Since none
        of those issues is a crasher or a serious compatibility concern,
        and since the behavior of other browsers is not much to go on in this
        case, I've filed <rdar://problem/4561439> about that, and I'm moving on
        with my life.

        * JavaScriptCore.xcodeproj/project.pbxproj:
        * kjs/collector.cpp:
        (KJS::Collector::collect):
        * kjs/internal.cpp:
        (KJS::InterpreterImp::mark):
        * kjs/internal.h:
        * kjs/interpreter.cpp:
        (KJS::Interpreter::mark):
        * kjs/interpreter.h:

LayoutTests:

        Layout tests for DOM object cache and garbage collection,
        <rdar://problem/4557926> TOT REGRESSION: Crash occurs when attempting
        to view image in slideshow mode at http://d.smugmug.com/gallery/581716
        ( KJS::IfNode::execute (KJS::ExecState*) + 312) if you use a PAC file

        * fast/dom/gc-8-expected.txt: Added.
        * fast/dom/gc-8.html: Added.
        * fast/dom/gc-9-expected.txt: Added.
        * fast/dom/gc-9.html: Added.

WebCore:

        Reviewed by mjs.

        - WebCore half of fix for <rdar://problem/4557926> TOT REGRESSION: Crash
        occurs when attempting to view image in slideshow mode at
        http://d.smugmug.com/gallery/581716 ( KJS::IfNode::execute
        (KJS::ExecState*) + 312)

        On alternate threads, DOMObjects remain in the
        ScriptInterpreter's cache because they're not collected. So, they
        need an opportunity to mark their children.

        I'm not particularly happy with this solution because it fails to
        resolve many outstanding issues with the DOM object cache. Since none
        of those issues is a crasher or a serious compatibility concern,
        and since the behavior of other browsers is not much to go on in this
        case, I've filed <rdar://problem/4561439> about that, and I'm moving
        on with my life.

        Also added functionality for testing garbage collection from inside
        DumpRenderTree.

        Also removed XMLHttpRequest from the DOM object cache because XMLHttpRequest
        objects aren't accessed through the DOM.

        Also added JS locking around access to some shared data structures in
        WebCoreJavaScript, even though it probably doesn't matter in practice.

        * bindings/js/JSXMLHttpRequest.cpp:
        (KJS::JSXMLHttpRequest::JSXMLHttpRequest):
        (KJS::JSXMLHttpRequest::~JSXMLHttpRequest):
        * bindings/js/kjs_binding.cpp:
        (KJS::ScriptInterpreter::mark):
        * bindings/js/kjs_binding.h:
        * bridge/mac/WebCoreJavaScript.h:
        * bridge/mac/WebCoreJavaScript.mm:
        (collect):
        (+[WebCoreJavaScript objectCount]):
        (+[WebCoreJavaScript interpreterCount]):
        (+[WebCoreJavaScript protectedObjectCount]):
        (+[WebCoreJavaScript garbageCollect]):
        (+[WebCoreJavaScript garbageCollectOnAlternateThread:]):
        (+[WebCoreJavaScript shouldPrintExceptions]):
        (+[WebCoreJavaScript setShouldPrintExceptions:]):

WebKitTools:

        Reviewed by mjs.

        Added 'GCController' to DRT to support garbage collection layout tests.

        GCController.collect() and GCController.collectOnAlternateThread() do
        what you would expect. The latter takes a boolean argument sepcifying
        whether to wait for garbage collection to finish before continuing to
        execute script.

        * DumpRenderTree/DumpRenderTree.m:
        (-[WaitUntilDoneDelegate webView:windowScriptObjectAvailable:]):
        * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
        * DumpRenderTree/GCController.h: Added.
        * DumpRenderTree/GCController.mm: Added.
        (+[GCController isSelectorExcludedFromWebScript:]):
        (+[GCController webScriptNameForSelector:]):
        (-[GCController collect]):
        (-[GCController collectOnAlternateThread:]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14569 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoAdding Google Analytics code, to create visitor stats of our site.
jdevalk [Wed, 24 May 2006 22:32:28 +0000 (22:32 +0000)]
Adding Google Analytics code, to create visitor stats of our site.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14567 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoMove font destruction for HFONTs and cairo objects into FontData.
hyatt [Wed, 24 May 2006 21:54:30 +0000 (21:54 +0000)]
Move font destruction for HFONTs and cairo objects into FontData.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14566 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoWebCore:
andersca [Wed, 24 May 2006 19:26:09 +0000 (19:26 +0000)]
WebCore:

2006-05-24  Anders Carlsson  <acarlsson@apple.com>

        Reviewed by Maciej.

        http://bugzilla.opendarwin.org/show_bug.cgi?id=9093
        Implement document.scripts

        * bindings/js/kjs_html.cpp:
        (KJS::JSHTMLDocument::getValueProperty):
        Return document.scripts() instead of a placeholder object.

        * dom/Document.cpp:
        (WebCore::Document::scripts):
        * dom/Document.h:
        Add Document::scripts.

        * html/HTMLCollection.cpp:
        (WebCore::HTMLCollection::traverseNextItem):
        * html/HTMLCollection.h:
        (WebCore::HTMLCollection::):
        Add scripts collection type which traverses all script elements.

LayoutTests:

2006-05-24  Anders Carlsson  <acarlsson@apple.com>

        Reviewed by Maciej.

        Add tests for http://bugzilla.opendarwin.org/show_bug.cgi?id=9093
        Implement document.scripts

        * fast/dom/document-scripts-expected.txt: Added.
        * fast/dom/document-scripts.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14564 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoWebCore:
andersca [Wed, 24 May 2006 18:51:22 +0000 (18:51 +0000)]
WebCore:

2006-05-24  Anders Carlsson  <acarlsson@apple.com>

        Reviewed by Geoff.

        http://bugzilla.opendarwin.org/show_bug.cgi?id=9092
        innerText is empty for elements without renderers

        * dom/Node.cpp:
        (WebCore::Node::textContent):
        * dom/Node.h:
        Add optional convertBRsToNewlines argument for textContent.

        * html/HTMLElement.cpp:
        (WebCore::HTMLElement::innerText):
        If the element doesn't have a renderer, return textContent.

LayoutTests:

2006-05-24  Anders Carlsson  <acarlsson@apple.com>

        Reviewed by Geoff.

        Add test for http://bugzilla.opendarwin.org/show_bug.cgi?id=9092
        innerText is empty for elements without renderers.

        * fast/dom/inner-text-with-no-renderer-expected.txt: Added.
        * fast/dom/inner-text-with-no-renderer.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14561 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoFix the Win32 themed controls so that they honor Cairo transforms.
hyatt [Wed, 24 May 2006 09:25:21 +0000 (09:25 +0000)]
Fix the Win32 themed controls so that they honor Cairo transforms.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14560 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoFix a minor bug with the computation of glyph offsets in Cairo/Win32.
hyatt [Wed, 24 May 2006 08:33:32 +0000 (08:33 +0000)]
Fix a minor bug with the computation of glyph offsets in Cairo/Win32.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14559 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoSwitch the cairo win32 create similar call over to createdib instead. Avoids wasted...
hyatt [Wed, 24 May 2006 08:28:10 +0000 (08:28 +0000)]
Switch the cairo win32 create similar call over to createdib instead.  Avoids wasted fills.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14558 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoCheck in some temporary hacks to Cairo for speed.
hyatt [Wed, 24 May 2006 08:23:32 +0000 (08:23 +0000)]
Check in some temporary hacks to Cairo for speed.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14557 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoMake sure the font options set on the context match what we draw.
hyatt [Wed, 24 May 2006 07:15:15 +0000 (07:15 +0000)]
Make sure the font options set on the context match what we draw.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14556 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoCorrect reviewer from me to Tim.
mjs [Wed, 24 May 2006 01:08:30 +0000 (01:08 +0000)]
Correct reviewer from me to Tim.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14554 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago Reviewed by Maciej.
mjs [Wed, 24 May 2006 00:59:34 +0000 (00:59 +0000)]
    Reviewed by Maciej.

        - more loader refactoring to simplify things and remove knowledge of WebView from WebSubresourceLoader

        * WebCoreSupport/WebSubresourceLoader.m:
        (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forDataSource:]):
        (-[WebSubresourceLoader didReceiveResponse:]):
        * WebView/WebDataSource.m:
        (-[WebDataSource _loadIcon]):
        (-[WebDataSource _startLoading]):
        * WebView/WebFrame.m:
        (-[WebFrame _loadRequest:archive:]):
        (-[WebFrame _loadItem:withLoadType:]):
        (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
        (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
        (-[WebFrame _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
        * WebView/WebFrameInternal.h:
        * WebView/WebFramePrivate.h:
        * WebView/WebLoader.h:
        * WebView/WebLoader.m:
        * WebView/WebMainResourceLoader.m:
        (-[WebMainResourceLoader initWithDataSource:]):
        (-[WebMainResourceLoader didReceiveResponse:]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14553 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago Reviewed by Timothy.
thatcher [Wed, 24 May 2006 00:24:52 +0000 (00:24 +0000)]
    Reviewed by Timothy.

        * index.html: Link to Nokia's S60 WebKit.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14552 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago Reviewed by Eric.
thatcher [Tue, 23 May 2006 23:32:08 +0000 (23:32 +0000)]
    Reviewed by Eric.

        Remove the recent idl files from the WebCore target to prevent them
        from being copied into the framework resources.

        * WebCore.xcodeproj/project.pbxproj:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14551 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago Reviewed by Justin Garcia and Levi Weintraub.
sullivan [Tue, 23 May 2006 23:31:14 +0000 (23:31 +0000)]
    Reviewed by Justin Garcia and Levi Weintraub.

        - fixed Bug 9072: REGRESSION: Misspelling marker incorrect in editing/deleting/delete-and-undo.html

        * dom/Document.cpp:
        (WebCore::Document::removeMarkers):
        One more time to get this right, ugh. There is still one case where we don't want to advance the
        iterator, and that's when we remove a marker and do not insert a replacement marker. So I undid
        my previous patch, and added it++ to each of the two cases that insert a replacement marker. Now
        the layout tests pass even with the pixel tests enabled.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14550 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoImplement CookieJar on Win32.
hyatt [Tue, 23 May 2006 22:11:56 +0000 (22:11 +0000)]
Implement CookieJar on Win32.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14548 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoFix post form submission on Win32.
hyatt [Tue, 23 May 2006 21:21:44 +0000 (21:21 +0000)]
Fix post form submission on Win32.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14543 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago Reviewed by Maciej.
sullivan [Tue, 23 May 2006 20:45:24 +0000 (20:45 +0000)]
    Reviewed by Maciej.

        * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
        Newer Xcode removed some obsolete cruft

        * DumpRenderTree/TextInputController.m:
        (-[TextInputController textInput]):
        added (id) cast to make newer compiler happy

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14542 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoFix glyph width access on win32 to not depend on the UChar.
hyatt [Tue, 23 May 2006 20:31:53 +0000 (20:31 +0000)]
Fix glyph width access on win32 to not depend on the UChar.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14541 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago Reviewed by John Sullivan.
tomernic [Tue, 23 May 2006 19:27:58 +0000 (19:27 +0000)]
    Reviewed by John Sullivan.

        <rdar://problem/4558301> REGRESSION (420+): After clearing history and closing bookmark view window,
        attempting to select Safari's menu bar results in a crash

        * Misc/WebNSWindowExtras.m:
        (replacementPostWindowNeedsDisplay):
        My fix yesterday for 4557117 was not quite good enough.  Now that we cancel the display timer for a
        window *before* it deallocates, we need to make sure that while a window deallocates, no new display
        timers are scheduled for that window.  This is actually possible, as 4558301 demonstrates.
        Luckily, NSWindow sets a handy "windowDying" flag when it deallocates, so we can just check that flag
        and bail out of the throttle hack if it is set.  This should fix the last of the crashes involving
        display timers scheduled for deallocated or deallocating windows.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14540 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago Reviewed by Hyatt.
lweintraub [Tue, 23 May 2006 17:51:29 +0000 (17:51 +0000)]
    Reviewed by Hyatt.

        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: https://svn.webkit.org/repository/webkit/trunk@14537 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago Reviewed by Anders Carlsson.
sullivan [Tue, 23 May 2006 17:35:17 +0000 (17:35 +0000)]
    Reviewed by Anders Carlsson.

        * dom/Document.cpp:
        (WebCore::Document::removeMarkers):
        Fix to my previous checkin (which broke a layout test).
        Advance the iterator position every time through the loop; formerly it was not advanced in the
        case where a marker was actually removed, causing an infinite loop in certain cases. Also
        modified a comment that was confusing the situation by falsely claiming that iterating over a
        just-inserted node would always be OK.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14535 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoWebCore:
andersca [Tue, 23 May 2006 16:27:49 +0000 (16:27 +0000)]
WebCore:

2006-05-23  Anders Carlsson  <acarlsson@apple.com>

        Reviewed by Maciej.

        http://bugzilla.opendarwin.org/show_bug.cgi?id=9017
        Weather2.css incorrectly treated as JavaScript file @ www.live.com

        * dom/Element.cpp:
        (WebCore::Element::getAttribute):
        (WebCore::Element::setAttribute):
        (WebCore::Element::removeAttribute):
        (WebCore::Element::getAttributeNode):
        (WebCore::Element::hasAttribute):
        Use new getAttributeItem method.

        * dom/NamedAttrMap.cpp:
        (WebCore::NamedAttrMap::getNamedItem):
        (WebCore::NamedAttrMap::removeNamedItem):
        Use new getAttributeItem method.

        (WebCore::NamedAttrMap::getAttributeItem):
        * dom/NamedAttrMap.h:
        New method which returns the attribute based on the nodeName.

LayoutTests:

2006-05-23  Anders Carlsson  <acarlsson@apple.com>

        Reviewed by Maciej.

        Update tests for http://bugzilla.opendarwin.org/show_bug.cgi?id=9017
        Weather2.css incorrectly treated as JavaScript file @ www.live.com

        * dom/svg/level3/xpath/XPathNSResolver_lookupNamespaceURI_nist_dmstc-expected.txt:
        This fails in a different way now.

        * dom/xhtml/level3/core/nodelookupnamespaceuri17-expected.txt:
        * dom/xhtml/level3/core/nodelookupnamespaceuri20-expected.txt:
        * dom/xhtml/level3/core/nodelookupprefix17-expected.txt:
        * dom/xhtml/level3/core/nodelookupprefix20-expected.txt:
        * dom/xhtml/level3/core/noderemovechild28-expected.txt:
        * dom/xhtml/level3/core/noderemovechild29-expected.txt:
        These now pass.

        * fast/dom/attribute-namespaces-get-set-expected.txt: Added.
        * fast/dom/attribute-namespaces-get-set.html: Added.
        Add new tests.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14534 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago Reviewed by Eric.
mjs [Tue, 23 May 2006 15:40:14 +0000 (15:40 +0000)]
    Reviewed by Eric.

        - remove knowledge of WebView from WebLoader in preparation for moving the code down

        * WebView/WebDataSource.m:
        (-[WebDataSource _defersCallbacks]):
        (-[WebDataSource _identifierForInitialRequest:]):
        (-[WebDataSource _willSendRequest:forResource:redirectResponse:]):
        (-[WebDataSource _didReceiveAuthenticationChallenge:forResource:]):
        (-[WebDataSource _didCancelAuthenticationChallenge:forResource:]):
        (-[WebDataSource _didReceiveResponse:forResource:]):
        (-[WebDataSource _didReceiveData:contentLength:forResource:]):
        (-[WebDataSource _didFinishLoadingForResource:]):
        (-[WebDataSource _didFailLoadingWithError:forResource:]):
        (-[WebDataSource _downloadWithLoadingConnection:request:response:proxy:]):
        (-[WebDataSource _privateBrowsingEnabled]):
        * WebView/WebDataSourceInternal.h:
        * WebView/WebLoader.h:
        * WebView/WebLoader.m:
        (-[WebLoader releaseResources]):
        (-[WebLoader setDataSource:]):
        (-[WebLoader willSendRequest:redirectResponse:]):
        (-[WebLoader didReceiveAuthenticationChallenge:]):
        (-[WebLoader didCancelAuthenticationChallenge:]):
        (-[WebLoader didReceiveResponse:]):
        (-[WebLoader didReceiveData:lengthReceived:]):
        (-[WebLoader signalFinish]):
        (-[WebLoader didFinishLoading]):
        (-[WebLoader didFailWithError:]):
        (-[WebLoader willCacheResponse:]):
        (-[WebLoader cancelWithError:]):
        * WebView/WebMainResourceLoader.m:
        (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
        * WebView/WebView.m:
        (-[WebView _incrementProgressForIdentifier:response:]):
        (-[WebView _incrementProgressForIdentifier:data:]):
        (-[WebView _completeProgressForIdentifier:]):
        * WebView/WebViewInternal.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14533 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago2006-05-22 Eric Seidel <eric@eseidel.com>
eseidel [Tue, 23 May 2006 01:36:01 +0000 (01:36 +0000)]
2006-05-22  Eric Seidel  <eric@eseidel.com>

        Rubber-stamped by adele.

        * bindings/js/kjs_html.h: simple style cleanup.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14532 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoVersioning.
thatcher [Mon, 22 May 2006 23:46:58 +0000 (23:46 +0000)]
Versioning.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14530 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoBuild fix when doing 'xcodebuild install'.
thatcher [Mon, 22 May 2006 23:30:22 +0000 (23:30 +0000)]
Build fix when doing 'xcodebuild install'.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14529 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoBuild fix.
thatcher [Mon, 22 May 2006 22:18:04 +0000 (22:18 +0000)]
Build fix.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14528 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago Reviewed by levi
justing [Mon, 22 May 2006 22:10:58 +0000 (22:10 +0000)]
    Reviewed by levi

        Fixed and reenabled this test.

        * editing/selection/drag-to-contenteditable-iframe-expected.checksum:
        * editing/selection/drag-to-contenteditable-iframe-expected.png:
        * editing/selection/drag-to-contenteditable-iframe-expected.txt:
        * editing/selection/drag-to-contenteditable-iframe.html: Added.
        * editing/selection/drag-to-contenteditable-iframe.html-disabled: Removed.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14527 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years agoRemoves svn:executable from MathExtras.h. Caused a build verification failure.
thatcher [Mon, 22 May 2006 21:39:44 +0000 (21:39 +0000)]
Removes svn:executable from MathExtras.h. Caused a build verification failure.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14522 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago Reviewed by Anders Carlsson.
sullivan [Mon, 22 May 2006 21:20:43 +0000 (21:20 +0000)]
    Reviewed by Anders Carlsson.

        - fixed Bug 9038: Rework Document::TextMarker mechanism to not use deprecated data structures

        Changed Document::markersForNode and Document::MarkerMap to use Vector rather than
        DeprecatedValueList and DeprecatedValueListIterator.

        * dom/Document.h:
        * dom/Document.cpp:
        (WebCore::Document::addMarker):
        (WebCore::Document::copyMarkers):
        (WebCore::Document::removeMarkers):
        (WebCore::Document::markersForNode):
        (WebCore::Document::repaintMarkers):
        (WebCore::Document::shiftMarkers):

        * rendering/InlineTextBox.cpp:
        (WebCore::InlineTextBox::paintAllMarkersOfType):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14521 268f45cc-cd09-0410-ab3c-d52691b4dbfc

16 years ago64-bit build fix, and removes the workaround for <rdar://problem/4294625>.
thatcher [Mon, 22 May 2006 21:00:09 +0000 (21:00 +0000)]
64-bit build fix, and removes the workaround for <rdar://problem/4294625>.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14520 268f45cc-cd09-0410-ab3c-d52691b4dbfc