CTTE: Tighten renderer types for InlineTextBox and SVGInlineTextBox.
authorakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 19 Sep 2013 13:48:44 +0000 (13:48 +0000)
committerakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 19 Sep 2013 13:48:44 +0000 (13:48 +0000)
commita001a46486c0c4831f476730fcf4a563f34fb26e
tree53e672483273887408c1ffe60478148c2ae3fc42
parent63734bd9a22ce9757bce8ca96fb46d9494cd8526
CTTE: Tighten renderer types for InlineTextBox and SVGInlineTextBox.
<https://webkit.org/b/121605>

Reviewed by Antti Koivisto.

Codify the following:

- InlineTextBox always has a RenderText.
- SVGInlineTextBox always has a RenderSVGInlineText.

Removed InlineTextBox::textRenderer() and make renderer() simply
return a RenderText&/RenderSVGInlineText& instead.

This turns some node() accessors into textNode() and removes a host
of casts and assertions.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@156094 268f45cc-cd09-0410-ab3c-d52691b4dbfc
13 files changed:
Source/WebCore/ChangeLog
Source/WebCore/editing/VisibleUnits.cpp
Source/WebCore/rendering/InlineFlowBox.cpp
Source/WebCore/rendering/InlineTextBox.cpp
Source/WebCore/rendering/InlineTextBox.h
Source/WebCore/rendering/svg/SVGInlineFlowBox.cpp
Source/WebCore/rendering/svg/SVGInlineTextBox.cpp
Source/WebCore/rendering/svg/SVGInlineTextBox.h
Source/WebCore/rendering/svg/SVGRenderTreeAsText.cpp
Source/WebCore/rendering/svg/SVGRootInlineBox.cpp
Source/WebCore/rendering/svg/SVGTextChunkBuilder.cpp
Source/WebCore/rendering/svg/SVGTextLayoutEngine.cpp
Source/WebCore/rendering/svg/SVGTextQuery.cpp