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

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

Issue 2604073002: Apply offset from the correct graphics layer; simplify code for link highlights. (Closed)
Patch Set: Created 3 years, 11 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) 2009, Google Inc. All rights reserved. 2 * Copyright (c) 2009, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 bool isChildAllowed(LayoutObject*, const ComputedStyle&) const override; 48 bool isChildAllowed(LayoutObject*, const ComputedStyle&) const override;
49 49
50 LayoutRect absoluteVisualRect() const override; 50 LayoutRect absoluteVisualRect() const override;
51 FloatRect visualRectInLocalSVGCoordinates() const override { 51 FloatRect visualRectInLocalSVGCoordinates() const override {
52 return m_localVisualRect; 52 return m_localVisualRect;
53 } 53 }
54 54
55 void absoluteRects(Vector<IntRect>&, 55 void absoluteRects(Vector<IntRect>&,
56 const LayoutPoint& accumulatedOffset) const final; 56 const LayoutPoint& accumulatedOffset) const final;
57 void absoluteQuads(Vector<FloatQuad>&) const override; 57 void absoluteQuads(Vector<FloatQuad>&,
58 MapCoordinatesFlags mode = 0) const override;
58 FloatRect localBoundingBoxRectForAccessibility() const final; 59 FloatRect localBoundingBoxRectForAccessibility() const final;
59 60
60 void mapLocalToAncestor(const LayoutBoxModelObject* ancestor, 61 void mapLocalToAncestor(const LayoutBoxModelObject* ancestor,
61 TransformState&, 62 TransformState&,
62 MapCoordinatesFlags = ApplyContainerFlip) const final; 63 MapCoordinatesFlags = ApplyContainerFlip) const final;
63 void mapAncestorToLocal(const LayoutBoxModelObject* ancestor, 64 void mapAncestorToLocal(const LayoutBoxModelObject* ancestor,
64 TransformState&, 65 TransformState&,
65 MapCoordinatesFlags = ApplyContainerFlip) const final; 66 MapCoordinatesFlags = ApplyContainerFlip) const final;
66 const LayoutObject* pushMappingToContainer( 67 const LayoutObject* pushMappingToContainer(
67 const LayoutBoxModelObject* ancestorToStopAt, 68 const LayoutBoxModelObject* ancestorToStopAt,
(...skipping 26 matching lines...) Expand all
94 HitTestAction) final; 95 HitTestAction) final;
95 IntRect absoluteElementBoundingBoxRect() const final; 96 IntRect absoluteElementBoundingBoxRect() const final;
96 97
97 protected: 98 protected:
98 FloatRect m_localVisualRect; 99 FloatRect m_localVisualRect;
99 }; 100 };
100 101
101 } // namespace blink 102 } // namespace blink
102 103
103 #endif 104 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698