Changeset 90734 in webkit
- Timestamp:
- Jul 11, 2011 4:55:04 AM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 28 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r90723 r90734 1 2011-07-11 Pavel Feldman <pfeldman@google.com> 2 3 Web Inspector: [REGRESSION r89753-89754] highlight does not respect scroller location. 4 https://bugs.webkit.org/show_bug.cgi?id=63982 5 6 Rolling out 89760, 89756, 89754, 89753 for breaking inspector highlight. 7 8 Reviewed by Yury Semikhatsky. 9 10 * WebCore.exp.in: 11 * inspector/DOMNodeHighlighter.cpp: 12 (WebCore::DOMNodeHighlighter::drawNodeHighlight): 13 * page/FrameView.cpp: 14 * page/FrameView.h: 15 * platform/ScrollView.h: 16 * platform/Widget.cpp: 17 * platform/Widget.h: 18 * rendering/RenderBox.cpp: 19 (WebCore::RenderBox::mapLocalToContainer): 20 * rendering/RenderBox.h: 21 * rendering/RenderInline.cpp: 22 (WebCore::RenderInline::mapLocalToContainer): 23 * rendering/RenderInline.h: 24 * rendering/RenderObject.cpp: 25 (WebCore::RenderObject::mapLocalToContainer): 26 (WebCore::RenderObject::localToContainerQuad): 27 * rendering/RenderObject.h: 28 (WebCore::RenderObject::localToAbsoluteQuad): 29 * rendering/RenderView.cpp: 30 (WebCore::RenderView::mapLocalToContainer): 31 * rendering/RenderView.h: 32 * rendering/svg/RenderSVGForeignObject.cpp: 33 (WebCore::RenderSVGForeignObject::mapLocalToContainer): 34 * rendering/svg/RenderSVGForeignObject.h: 35 * rendering/svg/RenderSVGInline.cpp: 36 (WebCore::RenderSVGInline::mapLocalToContainer): 37 * rendering/svg/RenderSVGInline.h: 38 * rendering/svg/RenderSVGModelObject.cpp: 39 (WebCore::RenderSVGModelObject::mapLocalToContainer): 40 * rendering/svg/RenderSVGModelObject.h: 41 * rendering/svg/RenderSVGRoot.cpp: 42 (WebCore::RenderSVGRoot::mapLocalToContainer): 43 * rendering/svg/RenderSVGRoot.h: 44 * rendering/svg/RenderSVGText.cpp: 45 (WebCore::RenderSVGText::mapLocalToContainer): 46 * rendering/svg/RenderSVGText.h: 47 * rendering/svg/SVGRenderSupport.cpp: 48 (WebCore::SVGRenderSupport::mapLocalToContainer): 49 * rendering/svg/SVGRenderSupport.h: 50 1 51 2011-07-11 Mustafizur Rahaman <mustaf.here@gmail.com> 2 52 -
trunk/Source/WebCore/WebCore.exp.in
r90389 r90734 1276 1276 __ZNK7WebCore6Widget23convertToContainingViewERKNS_7IntRectE 1277 1277 __ZNK7WebCore6Widget23convertToContainingViewERKNS_8IntPointE 1278 __ZNK7WebCore6Widget23convertToContainingViewERKNS_9FloatQuadE1279 1278 __ZNK7WebCore6Widget25convertFromContainingViewERKNS_7IntRectE 1280 1279 __ZNK7WebCore6Widget25convertFromContainingViewERKNS_8IntPointE 1281 1280 __ZNK7WebCore6Widget25convertToContainingWindowERKNS_7IntRectE 1282 1281 __ZNK7WebCore6Widget25convertToContainingWindowERKNS_8IntPointE 1283 __ZNK7WebCore6Widget27convertToRootContainingViewERKNS_9FloatQuadE1284 1282 __ZNK7WebCore6Widget9frameRectEv 1285 1283 __ZNK7WebCore7Element10screenRectEv -
trunk/Source/WebCore/inspector/DOMNodeHighlighter.cpp
r90517 r90734 133 133 } 134 134 135 void drawElementTitle(GraphicsContext& context, Node* node, const IntRect& boundingBox, const IntRect& anchorBox, const FloatRect& overlayRect, Settings* settings)135 void drawElementTitle(GraphicsContext& context, Node* node, const IntRect& boundingBox, const IntRect& anchorBox, const FloatRect& overlayRect, WebCore::Settings* settings) 136 136 { 137 137 static const int rectInflatePx = 4; … … 267 267 borderBox.width() + renderBox->marginLeft() + renderBox->marginRight(), borderBox.height() + renderBox->marginTop() + renderBox->marginBottom()); 268 268 269 FrameView* containingView = containingFrame->view(); 270 FloatQuad absContentQuad = containingView->convertFromRenderer(renderer,FloatRect(contentBox));271 FloatQuad absPaddingQuad = containingView->convertFromRenderer(renderer,FloatRect(paddingBox));272 FloatQuad absBorderQuad = containingView->convertFromRenderer(renderer,FloatRect(borderBox));273 FloatQuad absMarginQuad = containingView->convertFromRenderer(renderer,FloatRect(marginBox));274 275 absContentQuad = containingView->convertToRootContainingView(absContentQuad);276 absPaddingQuad = containingView->convertToRootContainingView(absPaddingQuad);277 absBorderQuad = containingView->convertToRootContainingView(absBorderQuad);278 absMarginQuad = containingView->convertToRootContainingView(absMarginQuad);269 270 FloatQuad absContentQuad = renderBox->localToAbsoluteQuad(FloatRect(contentBox)); 271 FloatQuad absPaddingQuad = renderBox->localToAbsoluteQuad(FloatRect(paddingBox)); 272 FloatQuad absBorderQuad = renderBox->localToAbsoluteQuad(FloatRect(borderBox)); 273 FloatQuad absMarginQuad = renderBox->localToAbsoluteQuad(FloatRect(marginBox)); 274 275 absContentQuad.move(mainFrameOffset); 276 absPaddingQuad.move(mainFrameOffset); 277 absBorderQuad.move(mainFrameOffset); 278 absMarginQuad.move(mainFrameOffset); 279 279 280 280 titleAnchorBox = absMarginQuad.enclosingBoundingBox(); … … 282 282 drawHighlightForBox(context, absContentQuad, absPaddingQuad, absBorderQuad, absMarginQuad, mode); 283 283 } else if (renderer->isRenderInline() || isSVGRenderer) { 284 // FIXME: Does not handle transformed content correctly.285 284 // FIXME: We should show margins/padding/border for inlines. 286 285 Vector<FloatQuad> lineBoxQuads; … … 297 296 return; 298 297 299 Settings* settings = containingFrame->settings();298 WebCore::Settings* settings = containingFrame->settings(); 300 299 if (mode == DOMNodeHighlighter::HighlightAll) 301 300 drawElementTitle(context, node, boundingBox, titleAnchorBox, overlayRect, settings); -
trunk/Source/WebCore/page/FrameView.cpp
r90484 r90734 2814 2814 } 2815 2815 2816 FloatQuad FrameView::convertFromRenderer(const RenderObject* renderer, const FloatQuad& rendererQuad) const2817 {2818 bool wasFixed = false;2819 FloatQuad quad = renderer->localToAbsoluteQuad(rendererQuad, false, &wasFixed);2820 2821 if (!wasFixed) {2822 IntPoint scroll = scrollPosition();2823 quad.move(-scroll.x(), -scroll.y());2824 }2825 2826 return quad;2827 }2828 2829 FloatQuad FrameView::convertToContainingView(const FloatQuad& localQuad) const2830 {2831 if (const ScrollView* parentScrollView = parent()) {2832 if (parentScrollView->isFrameView()) {2833 const FrameView* parentView = static_cast<const FrameView*>(parentScrollView);2834 2835 // Get our renderer in the parent view.2836 RenderPart* renderer = m_frame->ownerRenderer();2837 if (!renderer)2838 return localQuad;2839 2840 // Add borders and padding.2841 FloatQuad quad(localQuad);2842 quad.move(renderer->borderLeft() + renderer->paddingLeft(),2843 renderer->borderTop() + renderer->paddingTop());2844 2845 // Apply the parent's transforms and scroll offset.2846 return parentView->convertFromRenderer(renderer, quad);2847 }2848 2849 return Widget::convertToContainingView(localQuad);2850 }2851 2852 return localQuad;2853 }2854 2855 2816 // Normal delay 2856 2817 void FrameView::setRepaintThrottlingDeferredRepaintDelay(double p) -
trunk/Source/WebCore/page/FrameView.h
r90152 r90734 261 261 virtual IntPoint convertToRenderer(const RenderObject*, const IntPoint&) const; 262 262 263 // Conversion with FloatQuads, to keep transformed coordinates.264 virtual FloatQuad convertFromRenderer(const RenderObject*, const FloatQuad&) const;265 virtual FloatQuad convertToContainingView(const FloatQuad&) const;266 267 263 bool isFrameViewScrollCorner(RenderScrollbarPart* scrollCorner) const { return m_scrollCorner == scrollCorner; } 268 264 -
trunk/Source/WebCore/platform/ScrollView.h
r90517 r90734 28 28 #define ScrollView_h 29 29 30 #include "FloatQuad.h"31 30 #include "IntRect.h" 32 31 #include "Scrollbar.h" … … 256 255 newPoint.move(-child->location()); 257 256 return newPoint; 258 }259 260 FloatQuad convertChildToSelf(const Widget* child, const FloatQuad& quad) const261 {262 IntPoint point = quad.enclosingBoundingBox().location();263 IntPoint newPoint = convertChildToSelf(child, point);264 265 FloatQuad newQuad = quad;266 newQuad.move(newPoint.x(), newPoint.y());267 return newQuad;268 257 } 269 258 -
trunk/Source/WebCore/platform/Widget.cpp
r89753 r90734 169 169 } 170 170 171 FloatQuad Widget::convertToContainingView(const FloatQuad& localQuad) const172 {173 if (const ScrollView* parentScrollView = parent())174 return parentScrollView->convertChildToSelf(this, localQuad);175 176 return localQuad;177 }178 179 FloatQuad Widget::convertToRootContainingView(const FloatQuad& localQuad) const180 {181 if (!parent())182 return localQuad;183 184 FloatQuad containingQuad = convertToContainingView(localQuad);185 return parent()->convertToRootContainingView(containingQuad);186 }187 188 171 #if !PLATFORM(EFL) 189 172 void Widget::frameRectsChanged() -
trunk/Source/WebCore/platform/Widget.h
r89753 r90734 28 28 #define Widget_h 29 29 30 #include "FloatQuad.h"31 30 #include "IntRect.h" 32 31 #include <wtf/Forward.h> … … 255 254 virtual IntPoint convertFromContainingView(const IntPoint&) const; 256 255 257 // Conversion with FloatQuads, to keep transformed coordinates.258 virtual FloatQuad convertToContainingView(const FloatQuad&) const;259 virtual FloatQuad convertToRootContainingView(const FloatQuad&) const;260 261 256 // A means to access the AX cache when this object can get a pointer to it. 262 257 virtual AXObjectCache* axObjectCache() const { return 0; } -
trunk/Source/WebCore/rendering/RenderBox.cpp
r90675 r90734 1204 1204 } 1205 1205 1206 void RenderBox::mapLocalToContainer(RenderBoxModelObject* repaintContainer, bool fixed, bool useTransforms, TransformState& transformState , bool* wasFixed) const1206 void RenderBox::mapLocalToContainer(RenderBoxModelObject* repaintContainer, bool fixed, bool useTransforms, TransformState& transformState) const 1207 1207 { 1208 1208 if (repaintContainer == this) … … 1234 1234 } else 1235 1235 fixed |= isFixedPos; 1236 if (wasFixed)1237 *wasFixed = fixed;1238 1236 1239 1237 LayoutSize containerOffset = offsetFromContainer(o, roundedLayoutPoint(transformState.mappedPoint())); … … 1255 1253 } 1256 1254 1257 o->mapLocalToContainer(repaintContainer, fixed, useTransforms, transformState , wasFixed);1255 o->mapLocalToContainer(repaintContainer, fixed, useTransforms, transformState); 1258 1256 } 1259 1257 -
trunk/Source/WebCore/rendering/RenderBox.h
r90675 r90734 429 429 virtual bool shouldComputeSizeAsReplaced() const { return isReplaced() && !isInlineBlockOrInlineTable(); } 430 430 431 virtual void mapLocalToContainer(RenderBoxModelObject* repaintContainer, bool fixed, bool useTransforms, TransformState& , bool* wasFixed = 0) const;431 virtual void mapLocalToContainer(RenderBoxModelObject* repaintContainer, bool fixed, bool useTransforms, TransformState&) const; 432 432 virtual void mapAbsoluteToLocalPoint(bool fixed, bool useTransforms, TransformState&) const; 433 433 -
trunk/Source/WebCore/rendering/RenderInline.cpp
r90698 r90734 1110 1110 } 1111 1111 1112 void RenderInline::mapLocalToContainer(RenderBoxModelObject* repaintContainer, bool fixed, bool useTransforms, TransformState& transformState , bool* wasFixed) const1112 void RenderInline::mapLocalToContainer(RenderBoxModelObject* repaintContainer, bool fixed, bool useTransforms, TransformState& transformState) const 1113 1113 { 1114 1114 if (repaintContainer == this) … … 1153 1153 } 1154 1154 1155 o->mapLocalToContainer(repaintContainer, fixed, useTransforms, transformState , wasFixed);1155 o->mapLocalToContainer(repaintContainer, fixed, useTransforms, transformState); 1156 1156 } 1157 1157 -
trunk/Source/WebCore/rendering/RenderInline.h
r90698 r90734 131 131 virtual void computeRectForRepaint(RenderBoxModelObject* repaintContainer, IntRect& rect, bool fixed); 132 132 133 virtual void mapLocalToContainer(RenderBoxModelObject* repaintContainer, bool fixed, bool useTransforms, TransformState& , bool* wasFixed = 0) const;133 virtual void mapLocalToContainer(RenderBoxModelObject* repaintContainer, bool fixed, bool useTransforms, TransformState&) const; 134 134 virtual void mapAbsoluteToLocalPoint(bool fixed, bool useTransforms, TransformState&) const; 135 135 -
trunk/Source/WebCore/rendering/RenderObject.cpp
r90698 r90734 1849 1849 } 1850 1850 1851 void RenderObject::mapLocalToContainer(RenderBoxModelObject* repaintContainer, bool fixed, bool useTransforms, TransformState& transformState , bool* wasFixed) const1851 void RenderObject::mapLocalToContainer(RenderBoxModelObject* repaintContainer, bool fixed, bool useTransforms, TransformState& transformState) const 1852 1852 { 1853 1853 if (repaintContainer == this) … … 1870 1870 transformState.move(-toRenderBox(o)->layer()->scrolledContentOffset()); 1871 1871 1872 o->mapLocalToContainer(repaintContainer, fixed, useTransforms, transformState , wasFixed);1872 o->mapLocalToContainer(repaintContainer, fixed, useTransforms, transformState); 1873 1873 } 1874 1874 … … 1921 1921 } 1922 1922 1923 FloatQuad RenderObject::localToContainerQuad(const FloatQuad& localQuad, RenderBoxModelObject* repaintContainer, bool fixed , bool* wasFixed) const1923 FloatQuad RenderObject::localToContainerQuad(const FloatQuad& localQuad, RenderBoxModelObject* repaintContainer, bool fixed) const 1924 1924 { 1925 1925 // Track the point at the center of the quad's bounding box. As mapLocalToContainer() calls offsetFromContainer(), 1926 1926 // it will use that point as the reference point to decide which column's transform to apply in multiple-column blocks. 1927 1927 TransformState transformState(TransformState::ApplyTransformDirection, localQuad.boundingBox().center(), &localQuad); 1928 mapLocalToContainer(repaintContainer, fixed, true, transformState , wasFixed);1928 mapLocalToContainer(repaintContainer, fixed, true, transformState); 1929 1929 transformState.flatten(); 1930 1930 -
trunk/Source/WebCore/rendering/RenderObject.h
r90698 r90734 580 580 581 581 // Convert a local quad to absolute coordinates, taking transforms into account. 582 FloatQuad localToAbsoluteQuad(const FloatQuad& quad, bool fixed = false , bool* wasFixed = 0) const582 FloatQuad localToAbsoluteQuad(const FloatQuad& quad, bool fixed = false) const 583 583 { 584 return localToContainerQuad(quad, 0, fixed , wasFixed);584 return localToContainerQuad(quad, 0, fixed); 585 585 } 586 586 // Convert a local quad into the coordinate system of container, taking transforms into account. 587 FloatQuad localToContainerQuad(const FloatQuad&, RenderBoxModelObject* repaintContainer, bool fixed = false , bool* wasFixed = 0) const;587 FloatQuad localToContainerQuad(const FloatQuad&, RenderBoxModelObject* repaintContainer, bool fixed = false) const; 588 588 589 589 // Return the offset from the container() renderer (excluding transforms). In multi-column layout, … … 772 772 // Map points and quads through elements, potentially via 3d transforms. You should never need to call these directly; use 773 773 // localToAbsolute/absoluteToLocal methods instead. 774 virtual void mapLocalToContainer(RenderBoxModelObject* repaintContainer, bool useTransforms, bool fixed, TransformState& , bool* wasFixed = 0) const;774 virtual void mapLocalToContainer(RenderBoxModelObject* repaintContainer, bool useTransforms, bool fixed, TransformState&) const; 775 775 virtual void mapAbsoluteToLocalPoint(bool fixed, bool useTransforms, TransformState&) const; 776 776 -
trunk/Source/WebCore/rendering/RenderView.cpp
r90698 r90734 137 137 } 138 138 139 void RenderView::mapLocalToContainer(RenderBoxModelObject* repaintContainer, bool fixed, bool useTransforms, TransformState& transformState , bool* wasFixed) const139 void RenderView::mapLocalToContainer(RenderBoxModelObject* repaintContainer, bool fixed, bool useTransforms, TransformState& transformState) const 140 140 { 141 141 // If a container was specified, and was not 0 or the RenderView, 142 142 // then we should have found it by now. 143 143 ASSERT_ARG(repaintContainer, !repaintContainer || repaintContainer == this); 144 ASSERT_UNUSED(wasFixed, !wasFixed || *wasFixed == fixed);145 144 146 145 if (!repaintContainer && useTransforms && shouldUseTransformFromContainer(0)) { -
trunk/Source/WebCore/rendering/RenderView.h
r90698 r90734 165 165 166 166 protected: 167 virtual void mapLocalToContainer(RenderBoxModelObject* repaintContainer, bool useTransforms, bool fixed, TransformState& , bool* wasFixed = 0) const;167 virtual void mapLocalToContainer(RenderBoxModelObject* repaintContainer, bool useTransforms, bool fixed, TransformState&) const; 168 168 virtual void mapAbsoluteToLocalPoint(bool fixed, bool useTransforms, TransformState&) const; 169 169 -
trunk/Source/WebCore/rendering/svg/RenderSVGForeignObject.cpp
r90515 r90734 160 160 } 161 161 162 void RenderSVGForeignObject::mapLocalToContainer(RenderBoxModelObject* repaintContainer, bool fixed, bool useTransforms, TransformState& transformState , bool* wasFixed) const162 void RenderSVGForeignObject::mapLocalToContainer(RenderBoxModelObject* repaintContainer, bool fixed, bool useTransforms, TransformState& transformState) const 163 163 { 164 164 // When crawling up the hierachy starting from foreignObject child content, useTransforms may not be set to true. 165 165 if (!useTransforms) 166 166 useTransforms = true; 167 SVGRenderSupport::mapLocalToContainer(this, repaintContainer, fixed, useTransforms, transformState , wasFixed);167 SVGRenderSupport::mapLocalToContainer(this, repaintContainer, fixed, useTransforms, transformState); 168 168 } 169 169 -
trunk/Source/WebCore/rendering/svg/RenderSVGForeignObject.h
r90515 r90734 54 54 virtual bool isSVGForeignObject() const { return true; } 55 55 56 virtual void mapLocalToContainer(RenderBoxModelObject* repaintContainer, bool fixed , bool useTransforms, TransformState&, bool* wasFixed = 0) const;56 virtual void mapLocalToContainer(RenderBoxModelObject* repaintContainer, bool fixed , bool useTransforms, TransformState&) const; 57 57 virtual void setNeedsTransformUpdate() { m_needsTransformUpdate = true; } 58 58 -
trunk/Source/WebCore/rendering/svg/RenderSVGInline.cpp
r90675 r90734 78 78 } 79 79 80 void RenderSVGInline::mapLocalToContainer(RenderBoxModelObject* repaintContainer, bool useTransforms, bool fixed, TransformState& transformState , bool* wasFixed) const80 void RenderSVGInline::mapLocalToContainer(RenderBoxModelObject* repaintContainer, bool useTransforms, bool fixed, TransformState& transformState) const 81 81 { 82 SVGRenderSupport::mapLocalToContainer(this, repaintContainer, useTransforms, fixed, transformState , wasFixed);82 SVGRenderSupport::mapLocalToContainer(this, repaintContainer, useTransforms, fixed, transformState); 83 83 } 84 84 -
trunk/Source/WebCore/rendering/svg/RenderSVGInline.h
r90675 r90734 48 48 virtual IntRect clippedOverflowRectForRepaint(RenderBoxModelObject* repaintContainer); 49 49 virtual void computeRectForRepaint(RenderBoxModelObject* repaintContainer, IntRect&, bool fixed = false); 50 virtual void mapLocalToContainer(RenderBoxModelObject* repaintContainer, bool useTransforms, bool fixed, TransformState& , bool* wasFixed = 0) const;50 virtual void mapLocalToContainer(RenderBoxModelObject* repaintContainer, bool useTransforms, bool fixed, TransformState&) const; 51 51 virtual void absoluteQuads(Vector<FloatQuad>&); 52 52 -
trunk/Source/WebCore/rendering/svg/RenderSVGModelObject.cpp
r90675 r90734 54 54 } 55 55 56 void RenderSVGModelObject::mapLocalToContainer(RenderBoxModelObject* repaintContainer, bool fixed , bool useTransforms, TransformState& transformState, bool* wasFixed) const56 void RenderSVGModelObject::mapLocalToContainer(RenderBoxModelObject* repaintContainer, bool fixed , bool useTransforms, TransformState& transformState) const 57 57 { 58 SVGRenderSupport::mapLocalToContainer(this, repaintContainer, fixed, useTransforms, transformState , wasFixed);58 SVGRenderSupport::mapLocalToContainer(this, repaintContainer, fixed, useTransforms, transformState); 59 59 } 60 60 -
trunk/Source/WebCore/rendering/svg/RenderSVGModelObject.h
r90675 r90734 59 59 virtual void absoluteQuads(Vector<FloatQuad>&); 60 60 61 virtual void mapLocalToContainer(RenderBoxModelObject* repaintContainer, bool useTransforms, bool fixed, TransformState& , bool* wasFixed = 0) const;61 virtual void mapLocalToContainer(RenderBoxModelObject* repaintContainer, bool useTransforms, bool fixed, TransformState&) const; 62 62 virtual void styleWillChange(StyleDifference, const RenderStyle* newStyle); 63 63 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); -
trunk/Source/WebCore/rendering/svg/RenderSVGRoot.cpp
r90698 r90734 416 416 } 417 417 418 void RenderSVGRoot::mapLocalToContainer(RenderBoxModelObject* repaintContainer, bool fixed , bool useTransforms, TransformState& transformState, bool* wasFixed) const418 void RenderSVGRoot::mapLocalToContainer(RenderBoxModelObject* repaintContainer, bool fixed , bool useTransforms, TransformState& transformState) const 419 419 { 420 420 ASSERT(!fixed); // We should have no fixed content in the SVG rendering tree. … … 423 423 // Transform to our border box and let RenderBox transform the rest of the way. 424 424 transformState.applyTransform(localToBorderBoxTransform()); 425 RenderBox::mapLocalToContainer(repaintContainer, fixed, useTransforms, transformState , wasFixed);425 RenderBox::mapLocalToContainer(repaintContainer, fixed, useTransforms, transformState); 426 426 } 427 427 -
trunk/Source/WebCore/rendering/svg/RenderSVGRoot.h
r90675 r90734 84 84 virtual void computeRectForRepaint(RenderBoxModelObject* repaintContainer, IntRect& repaintRect, bool fixed); 85 85 86 virtual void mapLocalToContainer(RenderBoxModelObject* repaintContainer, bool useTransforms, bool fixed, TransformState& , bool* wasFixed = 0) const;86 virtual void mapLocalToContainer(RenderBoxModelObject* repaintContainer, bool useTransforms, bool fixed, TransformState&) const; 87 87 88 88 void calcViewport(); -
trunk/Source/WebCore/rendering/svg/RenderSVGText.cpp
r90515 r90734 93 93 } 94 94 95 void RenderSVGText::mapLocalToContainer(RenderBoxModelObject* repaintContainer, bool fixed, bool useTransforms, TransformState& transformState , bool* wasFixed) const96 { 97 SVGRenderSupport::mapLocalToContainer(this, repaintContainer, fixed, useTransforms, transformState , wasFixed);95 void RenderSVGText::mapLocalToContainer(RenderBoxModelObject* repaintContainer, bool fixed, bool useTransforms, TransformState& transformState) const 96 { 97 SVGRenderSupport::mapLocalToContainer(this, repaintContainer, fixed, useTransforms, transformState); 98 98 } 99 99 -
trunk/Source/WebCore/rendering/svg/RenderSVGText.h
r90515 r90734 66 66 virtual void computeRectForRepaint(RenderBoxModelObject* repaintContainer, IntRect&, bool fixed = false); 67 67 68 virtual void mapLocalToContainer(RenderBoxModelObject* repaintContainer, bool useTransforms, bool fixed, TransformState& , bool* wasFixed = 0) const;68 virtual void mapLocalToContainer(RenderBoxModelObject* repaintContainer, bool useTransforms, bool fixed, TransformState&) const; 69 69 70 70 virtual FloatRect objectBoundingBox() const { return frameRect(); } -
trunk/Source/WebCore/rendering/svg/SVGRenderSupport.cpp
r89754 r90734 71 71 } 72 72 73 void SVGRenderSupport::mapLocalToContainer(const RenderObject* object, RenderBoxModelObject* repaintContainer, bool fixed , bool useTransforms, TransformState& transformState, bool* wasFixed)73 void SVGRenderSupport::mapLocalToContainer(const RenderObject* object, RenderBoxModelObject* repaintContainer, bool fixed , bool useTransforms, TransformState& transformState) 74 74 { 75 75 ASSERT(!fixed); // We should have no fixed content in the SVG rendering tree. 76 76 ASSERT(useTransforms); // Mapping a point through SVG w/o respecting transforms is useless. 77 77 transformState.applyTransform(object->localToParentTransform()); 78 object->parent()->mapLocalToContainer(repaintContainer, fixed, useTransforms, transformState , wasFixed);78 object->parent()->mapLocalToContainer(repaintContainer, fixed, useTransforms, transformState); 79 79 } 80 80 -
trunk/Source/WebCore/rendering/svg/SVGRenderSupport.h
r89754 r90734 64 64 static IntRect clippedOverflowRectForRepaint(RenderObject*, RenderBoxModelObject* repaintContainer); 65 65 static void computeRectForRepaint(RenderObject*, RenderBoxModelObject* repaintContainer, IntRect&, bool fixed); 66 static void mapLocalToContainer(const RenderObject*, RenderBoxModelObject* repaintContainer, bool useTransforms, bool fixed, TransformState& , bool* wasFixed = 0);66 static void mapLocalToContainer(const RenderObject*, RenderBoxModelObject* repaintContainer, bool useTransforms, bool fixed, TransformState&); 67 67 68 68 // Shared between SVG renderers and resources.
Note: See TracChangeset
for help on using the changeset viewer.