| Index: Source/core/html/LabelableElement.h
|
| diff --git a/Source/core/html/LabelableElement.h b/Source/core/html/LabelableElement.h
|
| index 4497557e8aa0cfc8285b0f0a21ed38b058007a59..18f44085a74a637fb81ad0d8de4a4c99072290c2 100644
|
| --- a/Source/core/html/LabelableElement.h
|
| +++ b/Source/core/html/LabelableElement.h
|
| @@ -50,12 +50,17 @@ private:
|
| virtual bool isLabelable() const OVERRIDE FINAL { return true; }
|
| };
|
|
|
| -inline bool isLabelableElement(const Node& node)
|
| +inline bool isLabelableElement(const Element& element)
|
| {
|
| - return node.isHTMLElement() && toHTMLElement(node).isLabelable();
|
| + return element.isHTMLElement() && toHTMLElement(element).isLabelable();
|
| }
|
|
|
| -DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(LabelableElement);
|
| +inline bool isLabelableElement(const HTMLElement& element)
|
| +{
|
| + return element.isLabelable();
|
| +}
|
| +
|
| +DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(LabelableElement);
|
|
|
| } // namespace WebCore
|
|
|
|
|