WebCore:

2009-02-10  Sam Weinig  <sam@webkit.org>

        Reviewed by David Hyatt.

        Fix for https://bugs.webkit.org/show_bug.cgi?id=15897
        Please implement getBoundingClientRect and getClientRects
        <rdar://problem/6139669>

        Cursory implementation of Element.getBoundingClientRect and
        Element.getClientRects. Adds necessary infrastructure classes
        ClientRect and ClientRectList.

        Tests: fast/dom/getBoundingClientRect.html
               fast/dom/getClientRects.html

        * DerivedSources.make:
        * GNUmakefile.am:
        * WebCore.pro:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * WebCoreSources.bkl:
        * dom/ClientRect.cpp: Added.
        (WebCore::ClientRect::ClientRect):
        * dom/ClientRect.h: Added.
        (WebCore::ClientRect::create):
        (WebCore::ClientRect::top):
        (WebCore::ClientRect::right):
        (WebCore::ClientRect::bottom):
        (WebCore::ClientRect::left):
        (WebCore::ClientRect::width):
        (WebCore::ClientRect::height):
        * dom/ClientRect.idl: Added.
        * dom/ClientRectList.cpp: Added.
        (WebCore::ClientRectList::ClientRectList):
        (WebCore::ClientRectList::~ClientRectList):
        (WebCore::ClientRectList::length):
        (WebCore::ClientRectList::item):
        * dom/ClientRectList.h: Added.
        (WebCore::ClientRectList::create):
        * dom/ClientRectList.idl: Added.
        * dom/Element.cpp:
        (WebCore::Element::getClientRects):
        (WebCore::Element::getBoundingClientRect):
        * dom/Element.h:
        * dom/Element.idl:
        * page/DOMWindow.idl:
        * rendering/RenderInline.cpp:
        (WebCore::RenderInline::absoluteRects):
        (WebCore::RenderInline::absoluteQuads):

LayoutTests:

2009-02-08  Sam Weinig  <sam@webkit.org>

        Reviewed by David Hyatt.

        Tests for https://bugs.webkit.org/show_bug.cgi?id=15897
        Please implement getBoundingClientRect and getClientRects
        <rdar://problem/6139669>

        * fast/dom/Window/window-properties-expected.txt:
        * fast/dom/domListEnumeration-expected.txt:
        * fast/dom/getBoundingClientRect-expected.txt: Added.
        * fast/dom/getBoundingClientRect.html: Added.
        * fast/dom/getClientRects-expected.txt: Added.
        * fast/dom/getClientRects.html: Added.
        * fast/dom/resources/domListEnumeration.js:
        * fast/js/global-constructors-expected.txt:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40837 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/WebCore.pro b/WebCore/WebCore.pro
index 7a35c66..fa105f1 100644
--- a/WebCore/WebCore.pro
+++ b/WebCore/WebCore.pro
@@ -265,6 +265,8 @@
     css/WebKitCSSTransformValue.idl \
     dom/Attr.idl \
     dom/CharacterData.idl \
+    dom/ClientRect.idl \
+    dom/ClientRectList.idl \
     dom/Clipboard.idl \
     dom/CDATASection.idl \
     dom/Comment.idl \
@@ -563,6 +565,8 @@
     dom/ChildNodeList.cpp \
     dom/ClassNames.cpp \
     dom/ClassNodeList.cpp \
+    dom/ClientRect.cpp \
+    dom/ClientRectList.cpp \
     dom/Clipboard.cpp \
     dom/ClipboardEvent.cpp \
     dom/Comment.cpp \