Changeset 53684 in webkit
- Timestamp:
- Jan 22, 2010, 12:20:22 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r53680 r53684 1 2010-01-22 Dan Bernstein <mitz@apple.com> 2 3 Reviewed by Darin Adler. 4 5 <rdar://problem/7568696> Zoom applied to embedded SVG incorrectly 6 https://bugs.webkit.org/show_bug.cgi?id=33988 7 8 * svg/custom/text-zoom-expected.checksum: Added. 9 * svg/custom/text-zoom-expected.png: Added. 10 * svg/custom/text-zoom-expected.txt: Added. 11 * svg/custom/text-zoom.xhtml: Added. 12 1 13 2010-01-21 Tony Chang <tony@chromium.org> 2 14 -
trunk/WebCore/ChangeLog
r53681 r53684 1 2010-01-22 Dan Bernstein <mitz@apple.com> 2 3 Reviewed by Darin Adler. 4 5 <rdar://problem/7568696> Zoom applied to embedded SVG incorrectly 6 https://bugs.webkit.org/show_bug.cgi?id=33988 7 8 Test: svg/custom/text-zoom.xhtml 9 10 * svg/SVGSVGElement.cpp: 11 (WebCore::SVGSVGElement::SVGSVGElement): Initialize m_scale. 12 (WebCore::SVGSVGElement::currentScale): If this is the document element, 13 return the frame’s zoom factor. Otherwise, return m_scale. 14 (WebCore::SVGSVGElement::setCurrentScale): If this is the document element, 15 set the frame’s zoom factor. Otherwise, set m_scale and mark for layout. 16 * svg/SVGSVGElement.h: Added m_scale member. 17 1 18 2010-01-21 Adam Barth <abarth@webkit.org> 2 19 -
trunk/WebCore/svg/SVGSVGElement.cpp
r52866 r53684 73 73 , m_useCurrentView(false) 74 74 , m_timeContainer(SMILTimeContainer::create(this)) 75 , m_scale(1) 75 76 , m_viewSpec(0) 76 77 , m_containerSize(300, 150) … … 190 191 float SVGSVGElement::currentScale() const 191 192 { 192 if (document() && document()->frame())193 return document()->frame() ->zoomFactor();194 return 1.0f;193 if (document() && parentNode() == document()) 194 return document()->frame() ? document()->frame()->zoomFactor() : 1; 195 return m_scale; 195 196 } 196 197 197 198 void SVGSVGElement::setCurrentScale(float scale) 198 199 { 199 if (document() && document()->frame()) 200 document()->frame()->setZoomFactor(scale, true); 200 if (document() && parentNode() == document()) { 201 if (document()->frame()) 202 document()->frame()->setZoomFactor(scale, true); 203 return; 204 } 205 206 m_scale = scale; 207 if (renderer()) 208 renderer()->setNeedsLayout(true); 201 209 } 202 210 -
trunk/WebCore/svg/SVGSVGElement.h
r53229 r53684 155 155 RefPtr<SMILTimeContainer> m_timeContainer; 156 156 FloatPoint m_translation; 157 float m_scale; 157 158 mutable OwnPtr<SVGViewSpec> m_viewSpec; 158 159 IntSize m_containerSize;
Note:
See TracChangeset
for help on using the changeset viewer.