It is unnecessary.
Created attachment 237858 [details] Patch
Attachment 237858 [details] did not pass style-queue: ERROR: Source/WebCore/rendering/TextPainter.cpp:38: Code inside a namespace should not be indented. [whitespace/indent] [4] Total errors found: 1 in 6 files If any of these errors are false positives, please file a bug against check-webkit-style.
Created attachment 237868 [details] Patch
Attachment 237868 [details] did not pass style-queue: ERROR: Source/WebCore/rendering/TextPainter.cpp:38: Code inside a namespace should not be indented. [whitespace/indent] [4] Total errors found: 1 in 6 files If any of these errors are false positives, please file a bug against check-webkit-style.
Style error is a false positive.
Comment on attachment 237868 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=237868&action=review > Source/WebCore/rendering/TextPainter.cpp:139 > + TextRun& emphasisMarkTextRun = m_combinedText ? static_cast<TextRun&>(objectReplacementCharacterTextRun) : m_textRun; Instead of: static_cast<TextRun&>(objectReplacementCharacterTextRun) Should use: objectReplacementCharacterTextRun.get()
Comment on attachment 237868 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=237868&action=review >> Source/WebCore/rendering/TextPainter.cpp:139 >> + TextRun& emphasisMarkTextRun = m_combinedText ? static_cast<TextRun&>(objectReplacementCharacterTextRun) : m_textRun; > > Instead of: > > static_cast<TextRun&>(objectReplacementCharacterTextRun) > > Should use: > > objectReplacementCharacterTextRun.get() Done.
https://trac.webkit.org/r173502