<https://webkit.org/b/124901>
Together these account for ~0.3% of samples on HTML5-8266.
Almost all of it is call overhead.
Reviewed by Anders Carlsson.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@159793
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2013-11-26 Andreas Kling <akling@apple.com>
+
+ RenderObject: Inline isBody() and isHR().
+ <https://webkit.org/b/124901>
+
+ Together these account for ~0.3% of samples on HTML5-8266.
+ Almost all of it is call overhead.
+
+ Reviewed by Anders Carlsson.
+
2013-11-26 Bear Travis <betravis@adobe.com>
[CSS Shapes] Layout using [<box> || <shape>] value
return false;
}
-bool RenderObject::isBody() const
-{
- return node() && node()->hasTagName(bodyTag);
-}
-
-bool RenderObject::isHR() const
-{
- return node() && node()->hasTagName(hrTag);
-}
-
bool RenderObject::isLegend() const
{
return node() && node()->hasTagName(legendTag);
virtual bool isRenderScrollbarPart() const { return false; }
bool isRoot() const { return document().documentElement() == &m_node; }
- bool isBody() const;
- bool isHR() const;
+ bool isBody() const { return node() && node()->hasTagName(HTMLNames::bodyTag); }
+ bool isHR() const { return node() && node()->hasTagName(HTMLNames::hrTag); }
bool isLegend() const;
bool isHTMLMarquee() const;