2008-11-12 Simon Fraser <simon.fraser@apple.com>
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 12 Nov 2008 23:43:52 +0000 (23:43 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 12 Nov 2008 23:43:52 +0000 (23:43 +0000)
commit2fd953980323c85009a73c0f144f5078f032ca6b
treea2ad7f26e9162b106e90bf2a693dfd8ab0d82774
parent58fa7e97af2f7e200840728ca6db2ceb9ad0b9ad
2008-11-12  Simon Fraser  <simon.fraser@apple.com>

        Reviewed by Dave Hyatt

        https://bugs.webkit.org/show_bug.cgi?id=21942
        https://bugs.webkit.org/show_bug.cgi?id=18557

        Add methods which can be used to map renderer-local rectangles
        to quads in absolute coordinates, taking transforms into account:
            localToAbsoluteQuad() converts a local rect into an absolute quad.
            collectAbsoluteLineBoxQuads() is an analogue of addLineBoxRects()
                that works with quads.
            absoluteQuads() is an analogue of absoluteRects(), for quads.

        Use the quad methods to fix the inspector highlight for transformed
        elements.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@38346 268f45cc-cd09-0410-ab3c-d52691b4dbfc
43 files changed:
WebCore/ChangeLog
WebCore/GNUmakefile.am
WebCore/WebCore.pro
WebCore/WebCore.vcproj/WebCore.vcproj
WebCore/WebCore.xcodeproj/project.pbxproj
WebCore/WebCoreSources.bkl
WebCore/inspector/InspectorController.cpp
WebCore/platform/graphics/AffineTransform.cpp
WebCore/platform/graphics/AffineTransform.h
WebCore/platform/graphics/FloatQuad.cpp [new file with mode: 0644]
WebCore/platform/graphics/FloatQuad.h [new file with mode: 0644]
WebCore/rendering/RenderBox.cpp
WebCore/rendering/RenderBox.h
WebCore/rendering/RenderContainer.cpp
WebCore/rendering/RenderContainer.h
WebCore/rendering/RenderInline.cpp
WebCore/rendering/RenderInline.h
WebCore/rendering/RenderObject.cpp
WebCore/rendering/RenderObject.h
WebCore/rendering/RenderPath.cpp
WebCore/rendering/RenderPath.h
WebCore/rendering/RenderSVGContainer.cpp
WebCore/rendering/RenderSVGContainer.h
WebCore/rendering/RenderSVGHiddenContainer.cpp
WebCore/rendering/RenderSVGHiddenContainer.h
WebCore/rendering/RenderSVGImage.cpp
WebCore/rendering/RenderSVGImage.h
WebCore/rendering/RenderSVGInlineText.cpp
WebCore/rendering/RenderSVGInlineText.h
WebCore/rendering/RenderSVGRoot.cpp
WebCore/rendering/RenderSVGRoot.h
WebCore/rendering/RenderSVGTSpan.cpp
WebCore/rendering/RenderSVGTSpan.h
WebCore/rendering/RenderSVGText.cpp
WebCore/rendering/RenderSVGText.h
WebCore/rendering/RenderSVGTextPath.cpp
WebCore/rendering/RenderSVGTextPath.h
WebCore/rendering/RenderTableCell.cpp
WebCore/rendering/RenderTableCell.h
WebCore/rendering/RenderText.cpp
WebCore/rendering/RenderText.h
WebCore/rendering/RenderView.cpp
WebCore/rendering/RenderView.h