Index: third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.h |
diff --git a/third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.h b/third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.h |
index d5b8df4e5798e86531c617761fac70d8a312297f..10fd707aded3744526b0c9dc75f057e4739822f6 100644 |
--- a/third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.h |
+++ b/third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.h |
@@ -108,6 +108,20 @@ public: |
static AffineTransform deprecatedCalculateTransformToLayer(const LayoutObject*); |
static float calculateScreenFontSizeScalingFactor(const LayoutObject*); |
+ struct SearchCandidate { |
fs
2016/01/21 14:27:16
No need to put this in the header.
|
+ public: |
+ SearchCandidate() {} |
+ SearchCandidate(LayoutObject* layoutObject, float dist) |
+ : candidateLayoutObject(layoutObject) |
+ , distance(dist) |
+ { |
+ } |
+ LayoutObject* candidateLayoutObject; |
+ float distance; |
+ }; |
+ static bool compareCandidateDistance(const SearchCandidate, const SearchCandidate); |
fs
2016/01/21 14:27:16
Ditto. Also, pass arguments as references.
|
+ static LayoutObject* findClosestLayoutSVGText(LayoutObject*, const FloatPoint&); |
+ |
private: |
static void updateObjectBoundingBox(FloatRect& objectBoundingBox, bool& objectBoundingBoxValid, LayoutObject* other, FloatRect otherBoundingBox); |
static bool layoutSizeOfNearestViewportChanged(const LayoutObject* start); |