1. 02 Jun, 2006 5 commits
    • ddkilzer's avatar
      LayoutTests: · 249f410d
      ddkilzer authored
              Reviewed by mjs.
      
              http://bugzilla.opendarwin.org/show_bug.cgi?id=9183
              Finish renaming of RenderCanvas to RenderView
      
              * editing/selection/7152-1-expected.checksum: Layout changed due to text change in HTML file.
              * editing/selection/7152-1-expected.png: Ditto.
              * editing/selection/7152-1-expected.txt: Ditto.
              * editing/selection/7152-1.html: Changed text in HTML content.
              * editing/selection/7152-2-expected.checksum: Layout changed due to text change in HTML file.
              * editing/selection/7152-2-expected.png: Ditto.
              * editing/selection/7152-2-expected.txt: Ditto.
              * editing/selection/7152-2.html: Changed text in HTML content.
              * *-expected.txt: Replaced "RenderCanvas" with "RenderView" in 3023 more files.
      
      WebCore:
      
              Reviewed by mjs.
      
              http://bugzilla.opendarwin.org/show_bug.cgi?id=9183
              Finish renaming of RenderCanvas to RenderView
      
              * rendering/RenderView.h: Changed renderName from "RenderCanvas" to "RenderView".
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14684 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      249f410d
    • darin's avatar
      * WebCoreSupport/WebImageRendererFactory.m: Fix crash on Safari startup · 5d3bf990
      darin authored
              by include NSObject as a superclass (oops!).
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14683 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5d3bf990
    • darin's avatar
      - try to fix Windows build · 45466717
      darin authored
              * bridge/win/FrameWin.cpp: Added include of Decoder.h.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14682 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      45466717
    • darin's avatar
      WebCore: · 0836a37b
      darin authored
              Reviewed by Maciej.
      
              - WebCore doesn't need to load WebKit images any more; removed code for that
      
              * WebCore.exp: Removed WebCoreImageRendererFactory.
              * WebCore.xcodeproj/project.pbxproj: Removed WebCoreImageRendererFactory.h/mm.
              * bridge/mac/WebCoreFrameBridge.mm: Removed include of WebCoreImageRendererFactory.h.
              * platform/mac/ImageMac.mm: Removed include of WebCoreImageRendererFactory.h.
              * platform/mac/WebCoreImageRendererFactory.h: Removed.
              * platform/mac/WebCoreImageRendererFactory.m: Removed.
      
      WebKit:
      
              Reviewed by Maciej.
      
              - WebCore doesn't need to load WebKit images any more; removed code for that
      
              * Resources/missing_image.tiff: Removed.
              * WebCoreSupport/WebImageRendererFactory.h: Removed.
      
              * WebCoreSupport/WebImageRendererFactory.m: Moved @interface in here.
              Removed all but the "threaded decoding" calls that older Safari calls.
              This file can go altogether when compatibility with that older Safari
              is no longer needed.
      
              * WebKit.xcodeproj/project.pbxproj: Removed WebImageRendererFactory.h
              and missing_image.tiff.
      
              * WebView/WebFrameView.m: (-[WebFrameView initWithFrame:]): Removed call
              to [WebImageRendererFactory createSharedFactory].
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14681 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0836a37b
    • darin's avatar
      Reviewed by Geoff, tweaked a bit by Darin. · b4483824
      darin authored
              - http://bugzilla.opendarwin.org/show_bug.cgi?id=9064
                Split dom2_traversalimpl.* into separate files (one class per file).
      
              * WebCore.xcodeproj/project.pbxproj: Updated for new files.
              * WebCore.vcproj/WebCore/WebCore.vcproj: Ditto.
      
              * bindings/js/kjs_traversal.h:
              * bindings/scripts/CodeGeneratorJS.pm:
              * bindings/objc/DOM.mm:
              * dom/Document.cpp:
              * dom/Document.h:
              Updated includes.
      
              * dom/NodeFilter.cpp: Added.
              * dom/NodeFilter.h: Added.
              * dom/NodeFilterCondition.cpp: Added.
              * dom/NodeFilterCondition.h: Added.
              * dom/NodeIterator.cpp: Added.
              * dom/NodeIterator.h: Added.
              * dom/Traversal.cpp: Added.
              * dom/Traversal.h: Added.
              * dom/TreeWalker.cpp: Added.
              * dom/TreeWalker.h: Added.
      
              * dom/dom2_traversalimpl.cpp: Removed.
              * dom/dom2_traversalimpl.h: Removed.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14680 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b4483824
  2. 01 Jun, 2006 21 commits
    • darin's avatar
      LayoutTests: · bd205a70
      darin authored
              Reviewed by Maciej and Adele
              
              Tests for http://bugzilla.opendarwin.org/show_bug.cgi?id=8398
              Updated and extended select/option form tests 
              
              * fast/forms/HTMLOptionElement_label01.html:
              * fast/forms/HTMLOptionElement_label01-expected.txt:
              * fast/forms/HTMLOptionElement_label01-expected.png:
              * fast/forms/HTMLOptionElement_label02.html:
              * fast/forms/HTMLOptionElement_label02-expected.txt:
              * fast/forms/HTMLOptionElement_label02-expected.png:
              * fast/forms/HTMLOptionElement_label03.html:
              * fast/forms/HTMLOptionElement_label03-expected.txt:
              * fast/forms/HTMLOptionElement_label03-expected.png
              * fast/forms/HTMLOptionElement_label04.html:
              * fast/forms/HTMLOptionElement_label04-expected.txt:
              * fast/forms/HTMLOptionElement_label04-expected.png
              * fast/forms/HTMLOptionElement_label05.html:
              * fast/forms/HTMLOptionElement_label05-expected.txt:
              * fast/forms/HTMLOptionElement_label05-expected.png:
              Updated to reflect success and added some description
              
              * fast/forms/HTMLOptionElement_label06.html:
              * fast/forms/HTMLOptionElement_label06-expected.txt:
              * fast/forms/HTMLOptionElement_label05-expected.png:
              * fast/forms/HTMLOptionElement_label07.html:
              * fast/forms/HTMLOptionElement_label07-expected.txt:
              * fast/forms/HTMLOptionElement_label07-expected.png:
              Added.
      
      WebCore:
      
              Reviewed by Maciej and Adele
      
              Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=8398
              REGRESSION: LABEL in OPTION element is clobbering display #TEXT
              Patch provided by Darin.
              
              * rendering/RenderSelect.cpp
              (RenderSelect::updateFromElement): 
              Changed to use the containing text by default, and not the label text
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14679 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bd205a70
    • darin's avatar
      LayoutTests: · 7869e236
      darin authored
              Reviewed by Hyatt
              
              Tests for http://bugzilla.opendarwin.org/show_bug.cgi?id=8646
              Test the window.screen.pixelDepth and window.screen.colorDepth
              
              * fast/dom/window/window-screen-properties.html: Added
              * fast/dom/window/window-screen-properties-expected.txt: Added.
      
      WebCore:
      
              Reviewed by Hyatt.
      
              Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=8646
              Correcting the value returned for window.screen.pixelDepth and
              window.screen.colorDepth
              
              * platform/mac/ScreenMac.mm
              (screenDepth): 
              Changed to return the BitsPerPixelFromDepth rather than the WindowDepth
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14678 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7869e236
    • hyatt's avatar
      Fix win32 build bustage. · c1b44a3c
      hyatt authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14677 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c1b44a3c
    • adele's avatar
      Reviewed by Maciej. · 9d2b6fe4
      adele authored
              Missed an initialization in my last checkin which caused too many
              resizers to be drawn.
      
              * rendering/render_style.cpp: (WebCore::resize):
              Initialize resize to RESIZE_NONE.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14676 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9d2b6fe4
    • hyatt's avatar
      Implement form posting via WinINet. This code is crazy... CRAZY · 62c269e8
      hyatt authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14675 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      62c269e8
    • adele's avatar
      Reviewed by Hyatt. · 48d519bc
      adele authored
              Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=9216
              Implement CSS3 resize property
      
              * css/html4.css: Sets resize:both for textareas. This won't affect old-style textareas.
      
              * css/CSSPropertyNames.in: Added resize property.
              * css/cssparser.cpp: (WebCore::CSSParser::parseValue): Added case for CSS_PROP_RESIZE.
              * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::applyProperty): ditto.
              * css/CSSComputedStyleDeclaration.cpp: (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): ditto.
      
              * rendering/render_style.cpp: (WebCore::StyleCSS3InheritedData): Initialize resize.
              * rendering/render_style.h:
              (WebCore::): Added EResize enum.
              (WebCore::RenderStyle::resize):
              (WebCore::RenderStyle::setResize):
              (WebCore::RenderStyle::initialResize):
      
              * page/FrameView.cpp:
              (WebCore::FrameViewPrivate::FrameViewPrivate): Added m_resizeLayer to keep track of a layer that has begun resizing.
              (WebCore::FrameViewPrivate::reset): Reset m_resizeLayer.
              (WebCore::FrameView::handleMousePressEvent): If the mouse was pressed in a layer's resize control, then put the layer into resize mode.
              (WebCore::selectCursor): Updated so we get a pointer cursor for the resize control.
              (WebCore::FrameView::handleMouseMoveEvent): If there's a layer currently resizing, then tell the layer to continue resizing.
              (WebCore::FrameView::handleMouseReleaseEvent): If there's a layer currently resizing, then pull it out of resize mode.
      
              * rendering/RenderBlock.cpp: (WebCore::RenderBlock::isPointInScrollbar): Updated so the resize control isn't considered part of the scrollbar.
              * rendering/RenderLayer.cpp:
              (WebCore::RenderLayer::RenderLayer): Initialize m_inResizeMode
              (WebCore::RenderLayer::updateLayerPositions): Calls positionResizeControl.
              (WebCore::RenderLayer::resize): Added. Sets a new width and height based on the current mouse point.
              (WebCore::RenderLayer::isPointInResizeControl): Added.
              (WebCore::RenderLayer::positionResizeControl): Added.
              (WebCore::RenderLayer::positionScrollbars): Calls positionResizeControl.
              (WebCore::RenderLayer::paintScrollbars): Calls positionResizeControl.
              (WebCore::RenderLayer::paintResizeControl): Added.
              (WebCore::RenderLayer::paintLayer): Calls paintResizeControl.
              * rendering/RenderLayer.h: Added m_inResizeMode.
              (WebCore::RenderLayer::resizeControlRect):
              (WebCore::RenderLayer::setResizeControlRect):
              (WebCore::RenderLayer::inResizeMode): Added.
              (WebCore::RenderLayer::setInResizeMode): Added. 
      
              * platform/mac/ImageMac.mm: (WebCore::Image::loadResource): Moved code from WebImageRendererFactory.  Now loads images from WebCore's resources.
              WebImageRendererFactory is no longer used and should be removed.
              * Resources/missingImage.tiff: Added. Copied from WebKit.
              * WebCore.xcodeproj/project.pbxproj: Added missingImage.tiff
              * loader/Cache.cpp: (WebCore::Cache::init): Updated name from missing_image to missingImage.
      
              * rendering/RenderTheme.h:
              * rendering/RenderTheme.cpp: (WebCore::RenderTheme::paintResizeControl): Added.
              * rendering/RenderThemeMac.h:
              * rendering/RenderThemeMac.mm:
              (WebCore::RenderThemeMac::RenderThemeMac): Initialize resizeCornerImage.
              (WebCore::RenderThemeMac::paintResizeControl): Paints resizeCornerImage.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14674 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      48d519bc
    • beidson's avatar
      WebKit: · 8502706b
      beidson authored
      Simple changes to hook up the new WebCore based Icon Database
      for testing.
      WebCore:
      Added the beginnings of sqlite-based code in a WebCore
      based version of the Icon Database.  Right now the code
      is very loosely hooked up through a Bridge and only
      creates an sqlite3 database.
      There are also changes to our String classes to allow appending
      a single character to a String without creating a temporary object.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14673 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8502706b
    • andersca's avatar
      2006-06-01 Mitz Pettel <opendarwin.org@mitzpettel.com> · fd133773
      andersca authored
              Reviewed and landed by Anders.
      
              - fixed all places in the Canvas to RenderView rename patch where
                view() should have been changed to frameView().
      
              * kwq/WebCoreAXObject.mm:
              (-[WebCoreAXObject position]):
              (-[WebCoreAXObject accessibilityAttributeValue:]):
              * rendering/RenderBlock.cpp:
              (WebCore::RenderBlock::layoutBlock):
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::paintBackgroundExtended):
              * rendering/RenderTreeAsText.cpp:
              (externalRepresentation):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14672 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fd133773
    • ggaren's avatar
      LayoutTests: · 0c46d58a
      ggaren authored
              - Test for http://bugzilla.opendarwin.org/show_bug.cgi?id=9113
              REGRESSION (14581): XMLHttpRequest never calls onreadystatechange with 
              a readystate == 4
      
              * http/tests/xmlhttprequest/event-listener-gc.html: Added.
              * http/tests/xmlhttprequest/event-listener-gc-expected.txt: Added.
      
      WebCore:
      
              Fix by Mitz. Reviewed, tweaked, tested, landed by me.
      
              - Fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=9113
              REGRESSION (14581): XMLHttpRequest never calls onreadystatechange with 
              a readystate == 4
              
              An XMLHttpRequest must be added to the DOMObject cache so that its
              DOM implementation object can protect it, and by extension, its event
              listeners.
              
              This design seems slightly backwards to me -- the bindings should know
              about the DOM, not the other way around -- but I'm restoring it for
              now to fix the regression.
              
              * bindings/js/JSXMLHttpRequest.cpp:
              (KJS::JSXMLHttpRequest::JSXMLHttpRequest):
              (KJS::JSXMLHttpRequest::~JSXMLHttpRequest):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14671 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0c46d58a
    • andersca's avatar
      2006-06-01 Anders Carlsson <acarlsson@apple.com> · 5d1d9bd9
      andersca authored
              * platform/KURL.cpp:
              (equalIgnoringRef):
              Whoops. Fix build.
              
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14670 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5d1d9bd9
    • andersca's avatar
      WebCore: · 079f44cf
      andersca authored
      2006-06-01  Anders Carlsson  <acarlsson@apple.com>
      
              Reviewed by Darin.
      
              http://bugzilla.opendarwin.org/show_bug.cgi?id=6309
              multiple problems prevent bookmarking/back button technique for AJAX/DHTML applications from working
              
              * bindings/js/kjs_window.cpp:
              (KJS::Location::put):
              Handle the case where the hash starts with a "#". Also, don't do anything if the previous and new hashes
              are equal.
              
              * bridge/BrowserExtension.h:
              * bridge/mac/BrowserExtensionMac.h:
              * bridge/mac/BrowserExtensionMac.mm:        
              (WebCore::BrowserExtensionMac::historyURL):
              * bridge/mac/WebCoreFrameBridge.h:
              * bridge/mac/WebCoreFrameBridge.mm:
              New function historyURL which returns the complete URL for a given item in the history.
              
              * page/Frame.cpp:
              (WebCore::Frame::scheduleLocationChange):        
              (WebCore::Frame::scheduleHistoryNavigation):
              If the URL of the new location only differs in the hash, don't schedule the load. Instead, load it
              directly.
              
              * platform/KURL.cpp:
              * platform/KURL.h:
              Add equalsIgnoringRef which returns whether two URLs are equal, ignoring the ref.
      
      WebKit:
      
      2006-06-01  Anders Carlsson  <acarlsson@apple.com>
      
              Reviewed by Darin.
      
              http://bugzilla.opendarwin.org/show_bug.cgi?id=6309
              multiple problems prevent bookmarking/back button technique for AJAX/DHTML applications from working
      
              * Misc/WebNSURLExtras.m:
              (-[NSString _webkit_URLFragment]):
              Don't include the "#" character in the fragment.
              
              * WebCoreSupport/WebFrameBridge.m:
              (-[WebFrameBridge historyURL:]):
              New function, returns the history URL for a given position in the back/forward list
              
              * WebView/WebFrame.m:
              (-[WebFrame _loadItem:withLoadType:]):
              Always call scrollToAnchorWithURL, even if there is no fragment. This way we keep the WebCore frame's
              URL up-to-date.
      
      WebKitTools:
      
      2006-06-01  Anders Carlsson  <acarlsson@apple.com>
      
              Reviewed by Darin.
      
              * DumpRenderTree/DumpRenderTree.m:
              (+[LayoutTestController isSelectorExcludedFromWebScript:]):
              (-[LayoutTestController clearBackForwardList]):
              Add clearBackForwardList function to layoutTestController
              
      LayoutTests:
      
      2006-06-01  Anders Carlsson  <acarlsson@apple.com>
      
              Reviewed by Darin.
      
              http://bugzilla.opendarwin.org/show_bug.cgi?id=6309
              multiple problems prevent bookmarking/back button technique for AJAX/DHTML applications from working
              
              * fast/dom/location-hash-expected.txt: Added.
              * fast/dom/location-hash.html: Added.
              Added tests.
              
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14669 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      079f44cf
    • andersca's avatar
      2006-06-01 Anders Carlsson <acarlsson@apple.com> · 79483c5d
      andersca authored
              Reviewed by Maciej.
      
              http://bugzilla.opendarwin.org/show_bug.cgi?id=9212
              dispatchEvent13.html crashes under GuardMalloc
      
              * dom/EventTargetNode.cpp:
              (WebCore::EventTargetNode::addEventListener):
              (WebCore::EventTargetNode::removeEventListener):        
              (WebCore::EventTargetNode::handleLocalEvents):
              
              (WebCore::EventTargetNode::removeHTMLEventListener):
              (WebCore::EventTargetNode::getHTMLEventListener):
              * dom/EventTargetNode.h:
              Make the list of registered event listeners refcount the listeners
              by using a value list of RefPtr objects.
              
              Set removed flag to true in removeEventListener
              Only invoke event listeners if they don't have the removed flag.
              
              * dom/dom2_eventsimpl.cpp:
              (WebCore::RegisteredEventListener::RegisteredEventListener):
              * dom/dom2_eventsimpl.h:
              Make RegisteredEventListener refcounted.
              
              (WebCore::RegisteredEventListener::removed):
              (WebCore::RegisteredEventListener::setRemoved):
              Add removed flag and getter and setter
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14668 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      79483c5d
    • mjs's avatar
      LayoutTests: · 8e2da038
      mjs authored
              Reviewed by Anders.
              
              - fixed "REGRESSION: Can't order from Pizza Hut (ToT, 05/24/06)"
              http://bugzilla.opendarwin.org/show_bug.cgi?id=9103
      
              * http/tests/misc/redirect-expected.txt: Added.
              * http/tests/misc/redirect.php: Added.
              * http/tests/misc/resources/redirect-result.php: Added.
      
      WebKit:
      
              Reviewed by Anders.
              
              - fixed "REGRESSION: Can't order from Pizza Hut (ToT, 05/24/06)"
              http://bugzilla.opendarwin.org/show_bug.cgi?id=9103
      
              * WebView/WebDataSource.m:
              (-[WebDataSource _willSendRequest:forResource:redirectResponse:]): Set up the
              User-Agent header.
              * WebView/WebDataSourceInternal.h:
              * WebView/WebLoader.m:
              (-[NSURLProtocol willSendRequest:redirectResponse:]): Pass a mutable URL request
              so the above can work.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14667 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8e2da038
    • justing's avatar
      LayoutTests: · 5c304863
      justing authored
              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: http://svn.webkit.org/repository/webkit/trunk@14666 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5c304863
    • andersca's avatar
      WebKit: · d6cc887c
      andersca authored
      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: http://svn.webkit.org/repository/webkit/trunk@14665 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d6cc887c
    • ddkilzer's avatar
      2006-06-01 David Kilzer <ddkilzer@kilzer.net> · a0374092
      ddkilzer authored
              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: http://svn.webkit.org/repository/webkit/trunk@14664 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a0374092
    • adele's avatar
      LayoutTests: · 65dc279a
      adele authored
              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: http://svn.webkit.org/repository/webkit/trunk@14663 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      65dc279a
    • adele's avatar
      Reviewed by Geoff. · 1a307dab
      adele authored
              - 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: http://svn.webkit.org/repository/webkit/trunk@14662 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1a307dab
    • adele's avatar
      Updated test results for http://bugzilla.opendarwin.org/show_bug.cgi?id=8848 · 04b0fe95
      adele authored
              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: http://svn.webkit.org/repository/webkit/trunk@14661 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      04b0fe95
    • adele's avatar
      LayoutTests: · 25e4a011
      adele authored
              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: http://svn.webkit.org/repository/webkit/trunk@14660 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      25e4a011
    • adele's avatar
      LayoutTests: · cdca1364
      adele authored
              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: http://svn.webkit.org/repository/webkit/trunk@14659 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cdca1364
  3. 31 May, 2006 14 commits
    • adele's avatar
      Reviewed by Hyatt. · 8877ecc6
      adele authored
              - 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: http://svn.webkit.org/repository/webkit/trunk@14658 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8877ecc6
    • adele's avatar
      Reviewed by Darin. · bb66f954
      adele authored
              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: http://svn.webkit.org/repository/webkit/trunk@14657 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bb66f954
    • adele's avatar
      Reviewed by Hyatt. · c1116cae
      adele authored
              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: http://svn.webkit.org/repository/webkit/trunk@14656 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c1116cae
    • adele's avatar
      LayoutTests: · a9a86b91
      adele authored
              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: http://svn.webkit.org/repository/webkit/trunk@14655 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a9a86b91
    • adele's avatar
      LayoutTests: · 77712e9d
      adele authored
              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: http://svn.webkit.org/repository/webkit/trunk@14654 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      77712e9d
    • hyatt's avatar
      Tweaks to remove fragments when loading urls via wininet or cookies. · ad0c39ee
      hyatt authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14653 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ad0c39ee
    • hyatt's avatar
      Add stubs for bmp/ico/xbm decoders on win32. · aa4ef552
      hyatt authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14652 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      aa4ef552
    • hyatt's avatar
      WebCore: · c45a6f84
      hyatt authored
              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: http://svn.webkit.org/repository/webkit/trunk@14651 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c45a6f84
    • bdakin's avatar
      Reviewed by Hyatt. · f0cf2561
      bdakin authored
              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: http://svn.webkit.org/repository/webkit/trunk@14650 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f0cf2561
    • hyatt's avatar
      Fix Win32 build bustage from Screen/Page FloatRect conversion · 76f34f6b
      hyatt authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14649 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      76f34f6b
    • darin's avatar
      Remove accidentally-checked-in file. · 07d9b679
      darin authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14647 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      07d9b679
    • eseidel's avatar
      2006-05-30 Eric Seidel <eric@eseidel.com> · 4e52462e
      eseidel authored
              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: http://svn.webkit.org/repository/webkit/trunk@14646 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4e52462e
    • ggaren's avatar
      Reviewed by Maciej. · 0aa50c48
      ggaren authored
              - 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: http://svn.webkit.org/repository/webkit/trunk@14643 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0aa50c48
    • hyatt's avatar
      Fix layout tests. · 337bfd30
      hyatt authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14642 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      337bfd30