Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutObject.h

Issue 2766263008: Revert: "Let SVGForeignObject's local SVG coordinates mean what it should" (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc.
7 * All rights reserved. 7 * All rights reserved.
8 * Copyright (C) 2009 Google Inc. All rights reserved. 8 * Copyright (C) 2009 Google Inc. All rights reserved.
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
669 // SVGGraphicsElement::getBBox(). 669 // SVGGraphicsElement::getBBox().
670 // NOTE: Markers are not specifically ignored here by SVG 1.1 spec, but we 670 // NOTE: Markers are not specifically ignored here by SVG 1.1 spec, but we
671 // ignore them since stroke-width is ignored (and marker size can depend on 671 // ignore them since stroke-width is ignored (and marker size can depend on
672 // stroke-width). objectBoundingBox is returned local coordinates. 672 // stroke-width). objectBoundingBox is returned local coordinates.
673 // The name objectBoundingBox is taken from the SVG 1.1 spec. 673 // The name objectBoundingBox is taken from the SVG 1.1 spec.
674 virtual FloatRect objectBoundingBox() const; 674 virtual FloatRect objectBoundingBox() const;
675 virtual FloatRect strokeBoundingBox() const; 675 virtual FloatRect strokeBoundingBox() const;
676 676
677 // Returns the smallest rectangle enclosing all of the painted content 677 // Returns the smallest rectangle enclosing all of the painted content
678 // respecting clipping, masking, filters, opacity, stroke-width and markers. 678 // respecting clipping, masking, filters, opacity, stroke-width and markers.
679 // The local SVG coordinate space is the space where localSVGTransform 679 // For most SVG objects, the local SVG coordinate space is the space where
680 // applies. For SVG objects defining viewports (e.g. 680 // localSVGTransform applies. For SVG objects defining viewports (e.g.
681 // LayoutSVGViewportContainer and LayoutSVGResourceMarker), the local SVG 681 // LayoutSVGForeignObject, LayoutSVGViewportContainer,
682 // coordinate space is the viewport space. 682 // LayoutSVGResourceMarker), the local SVG coordinate space is the viewport
683 // space.
683 virtual FloatRect visualRectInLocalSVGCoordinates() const; 684 virtual FloatRect visualRectInLocalSVGCoordinates() const;
684 685
685 // This returns the transform applying to the local SVG coordinate space, 686 // This returns the transform applying to the local SVG coordinate space,
686 // which combines the CSS transform properties and animation motion transform. 687 // which combines the CSS transform properties and animation motion transform.
687 // See SVGElement::calculateTransform(). 688 // See SVGElement::calculateTransform().
688 // Most callsites want localToSVGParentTransform() instead. 689 // Most callsites want localToSVGParentTransform() instead.
689 virtual AffineTransform localSVGTransform() const; 690 virtual AffineTransform localSVGTransform() const;
690 691
691 // Returns the full transform mapping from local coordinates to parent's local 692 // Returns the full transform mapping from local coordinates to parent's local
692 // coordinates. For most SVG objects, this is the same as localSVGTransform. 693 // coordinates. For most SVG objects, this is the same as localSVGTransform.
(...skipping 2083 matching lines...) Expand 10 before | Expand all | Expand 10 after
2776 CORE_EXPORT void showLineTree(const blink::LayoutObject*); 2777 CORE_EXPORT void showLineTree(const blink::LayoutObject*);
2777 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1); 2778 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1);
2778 // We don't make object2 an optional parameter so that showLayoutTree 2779 // We don't make object2 an optional parameter so that showLayoutTree
2779 // can be called from gdb easily. 2780 // can be called from gdb easily.
2780 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1, 2781 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1,
2781 const blink::LayoutObject* object2); 2782 const blink::LayoutObject* object2);
2782 2783
2783 #endif 2784 #endif
2784 2785
2785 #endif // LayoutObject_h 2786 #endif // LayoutObject_h
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | third_party/WebKit/Source/core/layout/svg/LayoutSVGBlock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698