Stop special-casing wbr elements in HTMLElement::createElementRenderer() and move the code to a HTMLWBRElement subclasses instead, that is overriding createElementRenderer(). This function is already virtual.
Created attachment 241128 [details] Patch
Comment on attachment 241128 [details] Patch Clearing flags on attachment: 241128 Committed r175720: <http://trac.webkit.org/changeset/175720>
All reviewed patches have been landed. Closing bug.
Comment on attachment 241128 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=241128&action=review > Source/WebCore/rendering/RenderLineBreak.cpp:47 > + , m_isWBR(is<HTMLWBRElement>(element)) How does this work? I don’t see code (macro invocation?) specializing the is function template for this class.
(In reply to comment #4) > Comment on attachment 241128 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=241128&action=review > > > Source/WebCore/rendering/RenderLineBreak.cpp:47 > > + , m_isWBR(is<HTMLWBRElement>(element)) > > How does this work? I don’t see code (macro invocation?) specializing the is > function template for this class. The typing template specializations get generated automatically for all HTML/SVG/MathML elements unless we tell the script not to: http://trac.webkit.org/changeset/174050 You even reviewed that change :)