Changeset 152285 in webkit
- Timestamp:
- Jul 2, 2013 4:56:29 AM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r152284 r152285 1 2013-07-02 Gyuyoung Kim <gyuyoung.kim@samsung.com> 2 3 Introduce toSVGInlineTextBox 4 https://bugs.webkit.org/show_bug.cgi?id=118289 5 6 Reviewed by Andreas Kling. 7 8 As a step to change static_cast with toXXX, static_cast<SVGInlineTextBox*> can 9 be changed with toSVGInlineTextBox(). 10 11 Blink merge from https://src.chromium.org/viewvc/blink?view=rev&revision=153345 12 13 * rendering/svg/RenderSVGInlineText.cpp: 14 (WebCore::RenderSVGInlineText::positionForPoint): 15 * rendering/svg/SVGInlineFlowBox.cpp: 16 (WebCore::SVGInlineFlowBox::paintSelectionBackground): 17 (WebCore::SVGInlineFlowBox::paint): 18 (WebCore::SVGInlineFlowBox::computeTextMatchMarkerRectForRenderer): 19 * rendering/svg/SVGInlineTextBox.h: 20 (WebCore::toSVGInlineTextBox): 21 * rendering/svg/SVGRenderTreeAsText.cpp: 22 (WebCore::writeSVGInlineTextBoxes): 23 * rendering/svg/SVGRootInlineBox.cpp: 24 (WebCore::SVGRootInlineBox::paint): 25 (WebCore::SVGRootInlineBox::layoutCharactersInTextBoxes): 26 (WebCore::SVGRootInlineBox::layoutChildBoxes): 27 (WebCore::reverseInlineBoxRangeAndValueListsIfNeeded): 28 * rendering/svg/SVGTextQuery.cpp: 29 (WebCore::SVGTextQuery::collectTextBoxesInFlowBox): 30 1 31 2013-07-02 Christophe Dumez <ch.dumez@sisa.samsung.com> 2 32 -
trunk/Source/WebCore/rendering/svg/RenderSVGInlineText.cpp
r149392 r152285 186 186 continue; 187 187 188 SVGInlineTextBox* textBox = static_cast<SVGInlineTextBox*>(box);188 SVGInlineTextBox* textBox = toSVGInlineTextBox(box); 189 189 Vector<SVGTextFragment>& fragments = textBox->textFragments(); 190 190 -
trunk/Source/WebCore/rendering/svg/SVGInlineFlowBox.cpp
r110285 r152285 44 44 for (InlineBox* child = firstChild(); child; child = child->nextOnLine()) { 45 45 if (child->isSVGInlineTextBox()) 46 static_cast<SVGInlineTextBox*>(child)->paintSelectionBackground(childPaintInfo);46 toSVGInlineTextBox(child)->paintSelectionBackground(childPaintInfo); 47 47 else if (child->isSVGInlineFlowBox()) 48 48 static_cast<SVGInlineFlowBox*>(child)->paintSelectionBackground(childPaintInfo); … … 62 62 for (InlineBox* child = firstChild(); child; child = child->nextOnLine()) { 63 63 if (child->isSVGInlineTextBox()) 64 computeTextMatchMarkerRectForRenderer(toRenderSVGInlineText( static_cast<SVGInlineTextBox*>(child)->textRenderer()));64 computeTextMatchMarkerRectForRenderer(toRenderSVGInlineText(toSVGInlineTextBox(child)->textRenderer())); 65 65 66 66 child->paint(paintInfo, LayoutPoint(), 0, 0); … … 108 108 continue; 109 109 110 SVGInlineTextBox* textBox = static_cast<SVGInlineTextBox*>(box);110 SVGInlineTextBox* textBox = toSVGInlineTextBox(box); 111 111 112 112 int markerStartPosition = max<int>(marker->startOffset() - textBox->start(), 0); -
trunk/Source/WebCore/rendering/svg/SVGInlineTextBox.h
r150525 r152285 90 90 }; 91 91 92 inline SVGInlineTextBox* toSVGInlineTextBox(InlineBox* box) 93 { 94 ASSERT_WITH_SECURITY_IMPLICATION(!box || box->isSVGInlineTextBox()); 95 return static_cast<SVGInlineTextBox*>(box); 96 } 97 92 98 } // namespace WebCore 93 99 -
trunk/Source/WebCore/rendering/svg/SVGRenderTreeAsText.cpp
r145596 r152285 460 460 continue; 461 461 462 writeSVGInlineTextBox(ts, static_cast<SVGInlineTextBox*>(box), indent);462 writeSVGInlineTextBox(ts, toSVGInlineTextBox(box), indent); 463 463 } 464 464 } -
trunk/Source/WebCore/rendering/svg/SVGRootInlineBox.cpp
r141783 r152285 52 52 for (InlineBox* child = firstChild(); child; child = child->nextOnLine()) { 53 53 if (child->isSVGInlineTextBox()) 54 static_cast<SVGInlineTextBox*>(child)->paintSelectionBackground(childPaintInfo);54 toSVGInlineTextBox(child)->paintSelectionBackground(childPaintInfo); 55 55 else if (child->isSVGInlineFlowBox()) 56 56 static_cast<SVGInlineFlowBox*>(child)->paintSelectionBackground(childPaintInfo); … … 62 62 for (InlineBox* child = firstChild(); child; child = child->nextOnLine()) { 63 63 if (child->isSVGInlineTextBox()) 64 SVGInlineFlowBox::computeTextMatchMarkerRectForRenderer(toRenderSVGInlineText( static_cast<SVGInlineTextBox*>(child)->textRenderer()));64 SVGInlineFlowBox::computeTextMatchMarkerRectForRenderer(toRenderSVGInlineText(toSVGInlineTextBox(child)->textRenderer())); 65 65 66 66 child->paint(paintInfo, LayoutPoint(), 0, 0); … … 102 102 ASSERT(child->renderer()->isSVGInlineText()); 103 103 104 SVGInlineTextBox* textBox = static_cast<SVGInlineTextBox*>(child);104 SVGInlineTextBox* textBox = toSVGInlineTextBox(child); 105 105 characterLayout.layoutInlineTextBox(textBox); 106 106 } else { … … 139 139 ASSERT(child->renderer()->isSVGInlineText()); 140 140 141 SVGInlineTextBox* textBox = static_cast<SVGInlineTextBox*>(child);141 SVGInlineTextBox* textBox = toSVGInlineTextBox(child); 142 142 boxRect = textBox->calculateBoundaries(); 143 143 textBox->setX(boxRect.x()); … … 279 279 } 280 280 281 SVGInlineTextBox* firstTextBox = static_cast<SVGInlineTextBox*>(*first);282 SVGInlineTextBox* lastTextBox = static_cast<SVGInlineTextBox*>(*last);281 SVGInlineTextBox* firstTextBox = toSVGInlineTextBox(*first); 282 SVGInlineTextBox* lastTextBox = toSVGInlineTextBox(*last); 283 283 284 284 // Reordering is only necessary for BiDi text that is _absolutely_ positioned. -
trunk/Source/WebCore/rendering/svg/SVGTextQuery.cpp
r105143 r152285 102 102 103 103 if (child->isSVGInlineTextBox()) 104 m_textBoxes.append( static_cast<SVGInlineTextBox*>(child));104 m_textBoxes.append(toSVGInlineTextBox(child)); 105 105 } 106 106 }
Note: See TracChangeset
for help on using the changeset viewer.