As a step to use toFoo(), we need to generate toHTMLMarquee|OListElement(). Besides this patch cleans up remaining static_cast<> usage.
Created attachment 217542 [details] Patch
Comment on attachment 217542 [details] Patch There is no regression on layout test when I run layout test locally.
CC'ing Darin.
Comment on attachment 217542 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=217542&action=review > Source/WebCore/rendering/RenderMarquee.cpp:78 > if (element && element->hasTagName(marqueeTag)) { > - HTMLMarqueeElement* marqueeElement = static_cast<HTMLMarqueeElement*>(element); > - result = std::max(result, marqueeElement->minimumDelay()); > + result = std::max(result, toHTMLMarqueeElement(element)->minimumDelay()); > } WebKit coding style says we remove the braces when an if statement becomes a single line like this.
Created attachment 217742 [details] Patch
Comment on attachment 217742 [details] Patch Clearing flags on attachment: 217742 Committed r159733: <http://trac.webkit.org/changeset/159733>
All reviewed patches have been landed. Closing bug.