Changeset 86695 in webkit
- Timestamp:
- May 17, 2011 12:26:11 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r86693 r86695 1 2011-05-17 Andreas Kling <kling@webkit.org> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 Area element doesn't update region when dynamically altered. 6 https://bugs.webkit.org/show_bug.cgi?id=54636 7 8 * fast/images/imagemap-dynamic-area-updates-expected.txt: Added. 9 * fast/images/imagemap-dynamic-area-updates.html: Added. 10 * fast/images/script-tests/imagemap-dynamic-area-updates.js: Added. 11 (setArea): 12 (checkForArea): 13 1 14 2011-05-09 Luiz Agostini <luiz.agostini@openbossa.org> 2 15 -
trunk/Source/WebCore/ChangeLog
r86693 r86695 1 2011-05-17 Andreas Kling <kling@webkit.org> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 Area element doesn't update region when dynamically altered. 6 https://bugs.webkit.org/show_bug.cgi?id=54636 7 8 Recompute the clickable region after the "shape" or "coords" attribute 9 of an area element is changed. 10 11 Test: fast/images/imagemap-dynamic-area-updates.html 12 13 * html/HTMLAreaElement.cpp: 14 (WebCore::HTMLAreaElement::parseMappedAttribute): 15 (WebCore::HTMLAreaElement::invalidateCachedRegion): 16 * html/HTMLAreaElement.h: 17 1 18 2011-05-09 Luiz Agostini <luiz.agostini@openbossa.org> 2 19 -
trunk/Source/WebCore/html/HTMLAreaElement.cpp
r80779 r86695 64 64 else if (equalIgnoringCase(attr->value(), "rect")) 65 65 m_shape = Rect; 66 invalidateCachedRegion(); 66 67 } else if (attr->name() == coordsAttr) { 67 68 m_coords = newCoordsArray(attr->value().string(), m_coordsLen); 69 invalidateCachedRegion(); 68 70 } else if (attr->name() == altAttr || attr->name() == accesskeyAttr) { 69 71 // Do nothing. 70 72 } else 71 73 HTMLAnchorElement::parseMappedAttribute(attr); 74 } 75 76 void HTMLAreaElement::invalidateCachedRegion() 77 { 78 m_lastSize = IntSize(-1, -1); 72 79 } 73 80 -
trunk/Source/WebCore/html/HTMLAreaElement.h
r78261 r86695 62 62 enum Shape { Default, Poly, Rect, Circle, Unknown }; 63 63 Path getRegion(const IntSize&) const; 64 void invalidateCachedRegion(); 64 65 65 66 OwnPtr<Path> m_region;
Note: See TracChangeset
for help on using the changeset viewer.