Index: third_party/WebKit/Source/core/html/HTMLAreaElement.h |
diff --git a/third_party/WebKit/Source/core/html/HTMLAreaElement.h b/third_party/WebKit/Source/core/html/HTMLAreaElement.h |
index 2fd276aefd03775f6ade306d474e726df01f6ab2..32e166a9550ab0e8dc03185ec3894e6dcca530b2 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLAreaElement.h |
+++ b/third_party/WebKit/Source/core/html/HTMLAreaElement.h |
@@ -40,10 +40,10 @@ public: |
bool isDefault() const { return m_shape == Default; } |
- bool pointInArea(LayoutPoint, const LayoutSize& containerSize); |
+ bool pointInArea(const LayoutPoint&, const LayoutObject*) const; |
- LayoutRect computeRect(const LayoutObject*) const; |
- Path computePath(const LayoutObject*) const; |
+ LayoutRect computeAbsoluteRect(const LayoutObject*) const; |
Xianzhu
2016/04/25 23:18:16
I added back the parameter because the parameter i
|
+ Path getPath(const LayoutObject*) const; |
// The parent map's image. |
HTMLImageElement* imageElement() const; |
@@ -60,12 +60,10 @@ private: |
void setFocus(bool) override; |
enum Shape { Default, Poly, Rect, Circle }; |
- Path getRegion(const LayoutSize&) const; |
- void invalidateCachedRegion(); |
+ void invalidateCachedPath(); |
- OwnPtr<Path> m_region; |
+ mutable OwnPtr<Path> m_path; |
Vector<double> m_coords; |
- LayoutSize m_lastSize; |
Shape m_shape; |
}; |