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

Unified Diff: third_party/WebKit/Source/core/html/HTMLAreaElement.h

Issue 1912863002: Fix image map focus ring painting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
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..6756f659416e7904f839780f4c193ea8b655ccfc 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&);
- LayoutRect computeRect(const LayoutObject*) const;
- Path computePath(const LayoutObject*) const;
+ LayoutRect computeAbsoluteRect() const;
+ const Path& getPath() const;
// The parent map's image.
HTMLImageElement* imageElement() const;
@@ -58,14 +58,13 @@ private:
bool layoutObjectIsFocusable() const override;
void updateFocusAppearance(SelectionBehaviorOnFocus) override;
void setFocus(bool) override;
+ LayoutObject* imageElementLayoutObject() const;
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;
};

Powered by Google App Engine
This is Rietveld 408576698