1. 23 May, 2007 20 commits
    • darin's avatar
      LayoutTests: · 258af4a1
      darin authored
              Reviewed by Hyatt.
              - updated the many tests with an extra newline or two at the end
                because of the bug where plain-text serialization will consider
                nodes that are not rendered
              Reviewed by Hyatt.
              - fix problems where unrendered nodes were affecting on plain text serialization
              * editing/TextIterator.cpp:
              (WebCore::TextIterator::advance): Don't call handleXXX functions or exitNode for
              nodes without renderers.
              (WebCore::shouldEmitNewlineAfterNode): Only consider rendered nodes when deciding
              if this is the last node in the document.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21687 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • andersca's avatar
      Reviewed by Geoff. · 542a4a0d
      andersca authored
              <rdar://problem/3663808> Resize large images to fit in the browser window
              * WebCore.exp:
              Add new settings method.
              * loader/ImageDocument.cpp:
              New class that handles resize events and click events and forwards them to the image document.
              Let the ImageDocument class keep track of its document structure.
              Returns the scale that should be used when resizing the image.
              Update the image size.
              Toggle between resized and not resized. When restoring the size, scroll the image so that the area under
              the mouse stays the same.
              When the image size is known, resize the image if needed.
              Restore the image size.
              Return whether the image is too big for its window or not.
              Called when the window's size changes. Determine if the window fits or not and resize it if it doesn't fit.
              Forward events to the image document.
              * page/Settings.cpp:
              * page/Settings.h:
              Add new setting.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21686 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • andersca's avatar
      Reviewed by Darin. · 1500e83b
      andersca authored
              Add -webkit-zoom-in and -webkit-zoom-out cursors.
              * Resources/zoomInCursor.png: Added.
              * Resources/zoomOutCursor.png: Added.
              * css/CSSComputedStyleDeclaration.cpp:
              * css/CSSValueKeywords.in:
              * page/EventHandler.cpp:
              * platform/Cursor.h:
              * platform/mac/CursorMac.mm:
              * rendering/RenderStyle.h:
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21685 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • weinig's avatar
      Reviewed by Darin. · 6f17861a
      weinig authored
              Part one of patch for http://bugs.webkit.org/show_bug.cgi?id=13830
              Auto-generate JS DOM bindings for HTMLDocument and most of the rest
              of HTMLElement
              - Just the HTMLElement part.
              * bindings/js/kjs_html.cpp:
              * bindings/js/kjs_html.h:
              * html/HTMLElement.idl:
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21683 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • kmccullo's avatar
      LayoutTests: · ef9bbdef
      kmccullo authored
              Reviewed by Darin.
              Update tests for http://bugs.webkit.org/show_bug.cgi?id=13830
              Auto-generate JS DOM bindings for HTMLDocument and most of 
              the rest of HTMLElement
              - Corrects prototype chain for JSHTMLDocument and adds test
                for HTMLFormElement.
              * fast/dom/prototype-chain-expected.txt:
              * fast/dom/prototype-chain.html:
              Reviewed by Darin.
              - rdar://problem/5183523
              - We now check the document's URL to see if it can load a resource in the case of a URL click, instead of checking the referrer, which is blank for local files.
              * loader/FrameLoader.cpp:
              * platform/PlatformString.h:
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21682 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • weinig's avatar
      LayoutTests: · 661a37fc
      weinig authored
              Reviewed by Darin.
              Update tests for http://bugs.webkit.org/show_bug.cgi?id=13830
              Auto-generate JS DOM bindings for HTMLDocument and most of 
              the rest of HTMLElement
              - Corrects prototype chain for JSHTMLDocument and adds test
                for HTMLFormElement.
              * fast/dom/prototype-chain-expected.txt:
              * fast/dom/prototype-chain.html:
              Reviewed by Darin.
              Part two of patch for http://bugs.webkit.org/show_bug.cgi?id=13830
              Auto-generate JS DOM bindings for HTMLDocument and most of the rest
              of HTMLElement
              - Just the HTMLDocument part.
              * WebCore.pro:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSHTMLDocumentCustom.cpp: Added.
              * bindings/js/kjs_dom.cpp:
              * bindings/js/kjs_dom.h:
              * bindings/js/kjs_html.cpp:
              * bindings/js/kjs_html.h:
              * bindings/objc/DOMPrivate.h:
              * bindings/scripts/CodeGeneratorJS.pm: Add [Deletable] property
              for Document.all and fix HasOverridingNameGetter to allow correct
              prototype chain
              * dom/Document.cpp:
              (WebCore::Document::plugins): adds alias to embeds() for bindings
              * dom/Document.h:
              * html/HTMLDocument.cpp:
              * html/HTMLDocument.h:
              * html/HTMLDocument.idl:
              Reviewed by Darin.
              Patch for http://bugs.webkit.org/show_bug.cgi?id=13830
              Auto-generate JS DOM bindings for HTMLDocument and most of the rest
              of HTMLElement
              * MigrateHeaders.make: add DOMHTMLDocumentPrivate.h
              * WebKit.xcodeproj/project.pbxproj:
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21681 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • hyatt's avatar
      · dff3c4d7
      hyatt authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21680 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • hyatt's avatar
      Fix for <rdar://problem/5221838> REGRESSION (r21581): no content in idisk · 10059be9
      hyatt authored
              window at mac.com.
              Back out the change to make self-closed <script/> into a Dashboard quirk
              Reviewed by aroben
              * html/HTMLTokenizer.cpp:
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21679 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • oliver's avatar
      Reviewed by Geoff. · 54d2763d
      oliver authored
              Fix for <rdar://problem/5223782> REGRESSION: Can't drag and drop a standalone image
              The main resource for a standalone image webarchive has the same mimetype as the
              underlying image.
              * Misc/WebNSPasteboardExtras.mm:
              (-[NSPasteboard _web_writePromisedRTFDFromArchive:containsImage:]):
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21678 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • kmccullo's avatar
      Reviewed by. · 649a9edd
      kmccullo authored
              - Fixed build breakage.
              * fast/dom/open-and-close-by-DOM-expected.txt: Added.
              * fast/dom/open-and-close-by-DOM.html: Added.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21671 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • pyeh's avatar
      <rdar://problem/5078453> AXNext/PrevLineEndTextMarkerForTextMarker returns... · aed6bd6a
      pyeh authored
      <rdar://problem/5078453> AXNext/PrevLineEndTextMarkerForTextMarker returns kAXErrorNoValue for attachment range
              Floating objects, such as aligned images, are not included as part of any line.  So when the given 
              text marker is on the floating object, the returned line edge cannot be found and asserts are fired.
              In addition, this paints an inconsistent text layout (in the accessibility sense) of where the floating 
              object resides.  Character/word methods report floating object at the beginning of the text line(s).  Yet
              line methods never present floating objects anywhere.  
              To fix this, the ax line methods will now do more checking to ensure floating object nodes are included
              when determining the line range/position. That way, assistive apps won't get stuck using the line methods 
              to read line-by-line
              * bridge/mac/WebCoreAXObject.mm:
              Added a helper method to adjust line st...
    • kmccullo's avatar
      Reviewed by. · 5fd81f18
      kmccullo authored
              - Removing failing tests until I've fixed them.
              * fast/dom/open-and-close-by-DOM-expected.txt: Removed.
              * fast/dom/open-and-close-by-DOM.html: Removed.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21669 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • hausmann's avatar
      Added support for per-QWebPage network interface handlers, clean up the · 5482b095
      hausmann authored
      http and file loading and fixed a bug in the HTTP redirect handling.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21668 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • rwlbuis's avatar
      Reviewed by Dave Hyatt. · a215bbc6
      rwlbuis authored
              line-height in font shorthand does not override a previously stated line-height property
              Make sure line-height is calculated against definite font-size and
              uses the last set line-height, ie. directly or through font shorthand.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21667 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • lars's avatar
      Reviewed by Zack · 187bdff4
      lars authored
              Don't do HTTP downloads in a second thread. Simplifies
              the code significantly and fixes crashes on some
              Web pages.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21666 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • lars's avatar
      Reviewed by Zack and Valgrind · 58eae66e
      lars authored
              Initialize variable.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21665 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • rwlbuis's avatar
      Reviewed by Darin. · abbef99e
      rwlbuis authored
              REGRESSION (r13744-13750): Crash with empty gradient when drawing to canvas
              Fix crash by testing for zero stops, and returning transparent black
              in this case.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21664 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • rwlbuis's avatar
      Reviewed by Darin. · 0c6da947
      rwlbuis authored
              Crash when loading nonexisting symbol
              Check for referenced element and when not found just return.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21663 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • lars's avatar
      Fix Host: line in HTTP headers and resolving of relative URLs · 724ee47b
      lars authored
      when redirecting and clean up qHash forward declaration a bit.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21662 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • hausmann's avatar
      Fix signal/slot connection for load progress. · 0645bc22
      hausmann authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21661 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  2. 22 May, 2007 18 commits
    • weinig's avatar
      Rubber stamped by Adam. · a0c15a43
      weinig authored
              Fix license.
              * bindings/js/JSHTMLAnchorElementCustom.cpp:
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21656 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • weinig's avatar
      LayoutTests: · 40d22abd
      weinig authored
              Reviewed by Adam.
              Update tests for http://bugs.webkit.org/show_bug.cgi?id=13833
              Add ObjC DOM binding for HTMLMarqeeElement
              * fast/dom/wrapper-classes-expected.txt:
              * fast/dom/wrapper-classes.html: HTMLMarqueeElement now is a 
              Reviewed by Adam.
              Patch for http://bugs.webkit.org/show_bug.cgi?id=13833
              Add ObjC DOM binding for HTMLMarqeeElement
              - Also adds missing DOMHTMLFramePrivate.
              * DerivedSources.make:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/objc/DOM.mm:
              * bindings/objc/DOMHTML.h:
              * bindings/objc/DOMInternal.h:
              * bindings/objc/DOMPrivate.h:
              * bindings/objc/PublicDOMInterfaces.h:
              Reviewed by Adam.
              Patch for http://bugs.webkit.org/show_bug.cgi?id=13833
              Add ObjC DOM binding for HTMLMarqeeElement
              - Also adds missing DOMHTMLFramePrivate.
              * MigrateHeaders.make:
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21655 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • justing's avatar
      LayoutTests: · bac741c4
      justing authored
              Reviewed by darin
              REGRESSION(r21611): Several new layout test pixel failures (misspelling markers)
              * editing/selection/13804-expected.checksum: Added.
              * editing/selection/13804-expected.png: Added.
              * editing/selection/13804-expected.txt: Added.
              * editing/selection/13804.html: Added.
              These were missing:
              * editing/selection/5076323-1-expected.png: Added.
              * editing/selection/5076323-2-expected.png: Added.
              * editing/selection/5076323-3-expected.png: Added.
              Reviewed by darin, who found the fix independently.
              REGRESSION(r21611): Several new layout test pixel failures (misspelling markers)
              r21611 exposed a bug in the way removeMarkers computes
              the end of the range to remove markers from.  It also
              introduced a bug: removeMarkers expects a startOffs...
    • hyatt's avatar
      Add layout test for better background dumping. · bb21e287
      hyatt authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21653 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • hyatt's avatar
      Fix for bug 13802, background colors can't be reset to default · 0beef8a8
      hyatt authored
              color.  Fix the value cssText method to do the right thing for background
              and background-position values.
              Reviewed by beth
              * css/CSSInitialValue.h:
              * css/CSSMutableStyleDeclaration.cpp:
              * css/CSSMutableStyleDeclaration.h:
              * css/CSSValue.h:
              * css/cssparser.cpp:
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21652 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • darin's avatar
      LayoutTests: · cc06b695
      darin authored
              Reviewed by Geoff.
              - test for <rdar://problem/5215830> REGRESSION: ebay.com layout is wrong
              * fast/dom/iframe-document.html: Updated test to expect no document property.
              * fast/dom/iframe-document-expected.txt: Updated.
              * fast/forms/focus2.html: Changed test to use ownerDocument instead of document.
              Reviewed by Geoff.
              - fix <rdar://problem/5215830> REGRESSION: ebay.com layout is wrong
              The code on ebay was looking for the "document" property on a iframe.
              We changed that to be the ownerDocument rather than the contentDocument,
              which was not what ebay was expecting. The best fix seems to be removing
              the document property altogether.
              Test: fast/dom/iframe-document.html
              * bindings/js/kjs_html.h: Remove ElementDocument.
              * bindings/js/kjs_html.cpp: (KJS::JSHTMLElement::getValueProperty): Ditto.
              Reviewed by Geoff.
              * WebInspector/webInspector/tree...
    • adele's avatar
      Reviewed by Darin. · e1787a6a
      adele authored
              A little cleanup from my last checkin.
              * page/Chrome.h: Formatting change.
              * page/mac/ChromeMac.mm: Fixed copyright.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21650 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • adele's avatar
      LayoutTests: · 82c11d19
      adele authored
              Reviewed by Darin.
              Test for http://bugs.webkit.org/show_bug.cgi?id=13796
              Crash in [NSInputContext currentInputContext] when you click on this map
              * fast/frames/frame-display-none-focus-expected.txt: Added.
              * fast/frames/frame-display-none-focus.html: Added.
              * fast/frames/resources/iframe-focus.html: Added.
              Reviewed by Darin.
              Fix for http://bugs.webkit.org/show_bug.cgi?id=13796
              Crash in [NSInputContext currentInputContext] when you click on this map
              This is another case of <rdar://problem/5171145> Safari crashed closing tab in NSInputContext updateInputContexts
              Test: fast/frames/frame-display-none-focus.html
              * WebCore.xcodeproj/project.pbxproj: Added ChromeMac.mm
              * page/Chrome.h:
              * page/mac/ChromeMac.mm: Added.
              (WebCore::Chrome::focusNSView): Moved code from Widget::setFocus so it can be used whenever we need to make a view the first responder.
              * page/mac/EventHandlerMac.mm: (WebCore::EventHandler::focusDocumentView): Calls focusNSView.
              * platform/mac/WidgetMac.mm: (WebCore::Widget::setFocus): Calls focusNSView.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21649 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • justing's avatar
      LayoutTests: · 384cf314
      justing authored
              Reviewed by darin
              <rdar://problem/4875189> List is deleted when replacing contents with Chinese/Japanese characters
              Moved from unsupported-content because we've supported editing lists
              for a while now:
              * editing/deleting/4875189-expected.checksum: Added.
              * editing/deleting/4875189-expected.png: Added.
              * editing/deleting/4875189-expected.txt: Added.
              * editing/deleting/4875189.html: Added.
              * editing/unsupported-content/list-delete-002-expected.checksum: Removed.
              * editing/unsupported-content/list-delete-002-expected.png: Removed.
              * editing/unsupported-content/list-delete-002-expected.txt: Removed.
              * editing/unsupported-content/list-delete-002.html: Removed.
              Reflects new behavior:
              * editing/deleting/delete-select-all-003-expected.checksum:
              * editing/deleting/delete-select-all-003-expected.png:
              * editing/deleting/delete-select-all-003-expected.txt:
              Ditto and also removed a FIXME:
              * editing/deleting/list-item-1-expected.checksum:
              * editing/deleting/list-item-1-expected.png:
              * editing/deleting/list-item-1-expected.txt:
              * editing/deleting/list-item-1.html:
              Reviewed by darin
              List is deleted when replacing contents with Chinese/Japanese characters
              * editing/htmlediting.cpp:
              (WebCore::isSpecialElement): Lists are no longer special.
              They can be removed by removing their content and then 
              then hitting delete inside of the empty list item that's 
              left over. Even when that list item is the first thing 
              in the editable region.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21648 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • adele's avatar
      Reviewed by Darin. · 6793e484
      adele authored
              Adding some asserts to help detect other cases of <rdar://problem/5171145>
              * WebCoreSupport/WebFrameBridge.mm: (-[WebFrameBridge makeFirstResponder:]):
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21647 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • darin's avatar
      Reviewed by Tim Hatcher. · da7cd15c
      darin authored
              - fix <rdar://problem/5206089> REGRESSION: hovering over amazon.com "product categories"
                tab makes page content disappear
              The contentWindow property was doing a cross-frame security check, but it shouldn't.
              Window objects are responsible for protecting themselves from cross-frame activity.
              Because contentWindow returned undefined, we then ended up setting visibility on the
              body of the main frame to "hidden".
              No layout test yet. When we make cross-domain tests, we should include this one.
              * html/HTMLFrameElement.idl: Removed CheckFrameSecurity attribute from contentWindow.
              * html/HTMLIFrameElement.idl: Ditto.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21646 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • kmccullo's avatar
      Reviewed by. · e3681b65
      kmccullo authored
              - Forgot to checkin for fix for rdar://problem/4981886
              * fast/dom/open-and-close-by-DOM-expected.txt: Added.
              * fast/dom/open-and-close-by-DOM.html: Added.
              * fast/dom/resources/close.html: Added.
              * fast/dom/resources/middle.html: Added.
              * http/tests/security/local-image-from-remote.html:
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21645 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • justing's avatar
      LayoutTests: · 00b7e557
      justing authored
              Reviewed by oliver
              REGRESSION(r21467): Active selection remains in text field after clicking on a button
              Demonstrates bug:
              * editing/selection/5213963-expected.checksum: Added.
              * editing/selection/5213963-expected.png: Added.
              * editing/selection/5213963-expected.txt: Added.
              * editing/selection/5213963.html: Added.
              We now clear the selection on mouse down (but not before
              the mousedown event is fired):
              * fast/forms/focus-selection-input-expected.txt:
              * fast/forms/focus-selection-textarea-expected.txt:
              Reviewed by oliver
              REGRESSION(r21467): Active selection remains in text field after clicking on a button
              * page/EventHandler.cpp:
              (WebCore::EventHandler::dispatchMouseEvent): Call
              FocusController::setFocusedNode, because Document::setFocusedNode
              no longer clears the selection.
              Begin passing the new focused frame to 
              FocusController::setFocusedNode, because when the 
              new focus node is null, the selection should only be 
              cleared if the focused frame isn't changing.
              (WebCore::Element::focus): Begin passing the new focused
              (WebCore::Element::blur): Ditto.
              * html/HTMLInputElement.cpp:
              (WebCore::HTMLInputElement::focus): Ditto.
              * html/HTMLTextAreaElement.cpp:
              (WebCore::HTMLTextAreaElement::focus): Ditto.
              * page/Frame.cpp:
              (WebCore::Frame::setFocusedNodeIfNeeded): Ditto.
              * page/FocusController.cpp:
              (WebCore::clearSelectionIfNeeded): Take in the new
              focused frame.  If it's not changing, don't clear the
              (WebCore::FocusController::setFocusedNode): Take
              in the new focused frame.
              * page/FocusController.h:
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21642 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • beidson's avatar
      Reviewed by Kevin (Sarge) · cc652ea3
      beidson authored
              <rdar://problem/5219885> - Crash after closing a inline popup ad at http://news.yahoo.com/
              This regressed in http://trac.webkit.org/projects/webkit/changeset/21618
              * WebView/WebFrame.mm:
              (-[WebFrame dataSource]): Null check the frameloader
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21641 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • staikos's avatar
      back this out for zack · df04993a
      staikos authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21640 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • zack's avatar
      Path implementing more Cliboard from Marius Bugge Monsen. · 329e627d
      zack authored
      Adding implementations of some of the missing methods.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21639 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • hausmann's avatar
      Fix http headers for POST. · 088e3448
      hausmann authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21638 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • justing's avatar
      Updating expected results for r21074. · 18125c04
      justing authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21637 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  3. 21 May, 2007 2 commits
    • oliver's avatar
      2007-05-21 Oliver Hunt <oliver@apple.com> · 7fa2f31b
      oliver authored
              Reviewed by Sam.
              Layout test for http://bugs.webkit.org/show_bug.cgi?id=13789
              * svg/custom/getscreenctm-in-mixed-content-expected.checksum: Added.
              * svg/custom/getscreenctm-in-mixed-content-expected.png: Added.
              * svg/custom/getscreenctm-in-mixed-content-expected.txt: Added.
              * svg/custom/getscreenctm-in-mixed-content.xhtml: Added.
              Reviewed by Sam.
              Fix for http://bugs.webkit.org/show_bug.cgi?id=13789 
              -- SVGLocatable::getScreenCTM() faulty
              Needed to update SVGLength to handle the case where the SVGElement is
              not the root document element -- we do this by falling back on the 
              renderer for the context.
              For <svg> elements embedded as mixed content in xhtml we consider the
              absolutePosition of the parent to be the origin for the <svg> element.
              * ksvg2/svg/SVGLength.cpp:
              * ksvg2/svg/SVGSVGElement.cpp:
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21636 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • thatcher's avatar
      Reviewed by Adam. · 428cde24
      thatcher authored
              <rdar://problem/5084400> -[DOMRange lineBoxRects] returns an empty array when the DOM nodes have just been created
              Do a updateLayoutIgnorePendingStylesheets before asking the Node or Range for it's box rects.
              * bindings/objc/DOM.mm:
              (-[DOMNode boundingBox]):
              (-[DOMNode lineBoxRects]):
              (-[DOMRange boundingBox]):
              (-[DOMRange lineBoxRects]):
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21635 268f45cc-cd09-0410-ab3c-d52691b4dbfc