Bug 229925 - Do not dispatch event to label target if interactive content is found between the event target and the label. r=smaug

This commit is contained in:
Tooru Fujisawa
2015-01-21 05:39:28 +09:00
parent 95bc90e89d
commit b10a0c8ee5
24 changed files with 265 additions and 11 deletions

View File

@@ -148,6 +148,12 @@ NS_IMPL_STRING_ATTR(HTMLImageElement, Srcset, srcset)
NS_IMPL_STRING_ATTR(HTMLImageElement, UseMap, usemap)
NS_IMPL_INT_ATTR(HTMLImageElement, Vspace, vspace)
bool
HTMLImageElement::IsInteractiveHTMLContent() const
{
return HasAttr(kNameSpaceID_None, nsGkAtoms::usemap);
}
bool
HTMLImageElement::IsSrcsetEnabled()
{