| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "config.h" | 5 #include "config.h" |
| 6 #include "core/paint/TextPainter.h" | 6 #include "core/paint/TextPainter.h" |
| 7 | 7 |
| 8 #include "core/CSSPropertyNames.h" | 8 #include "core/CSSPropertyNames.h" |
| 9 #include "core/frame/Settings.h" | 9 #include "core/frame/Settings.h" |
| 10 #include "core/layout/LayoutObject.h" | 10 #include "core/layout/LayoutObject.h" |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 if (endOffset > 0) | 211 if (endOffset > 0) |
| 212 paintInternalRun<Step>(textRunPaintInfo, 0, endOffset); | 212 paintInternalRun<Step>(textRunPaintInfo, 0, endOffset); |
| 213 if (startOffset < truncationPoint) | 213 if (startOffset < truncationPoint) |
| 214 paintInternalRun<Step>(textRunPaintInfo, startOffset, truncationPoin
t); | 214 paintInternalRun<Step>(textRunPaintInfo, startOffset, truncationPoin
t); |
| 215 } | 215 } |
| 216 } | 216 } |
| 217 | 217 |
| 218 void TextPainter::paintEmphasisMarkForCombinedText() | 218 void TextPainter::paintEmphasisMarkForCombinedText() |
| 219 { | 219 { |
| 220 ASSERT(m_combinedText); | 220 ASSERT(m_combinedText); |
| 221 DEFINE_STATIC_LOCAL(TextRun, placeholderTextRun, (&ideographicFullStop, 1)); | 221 DEFINE_STATIC_LOCAL(TextRun, placeholderTextRun, (&ideographicFullStopCharac
ter, 1)); |
| 222 FloatPoint emphasisMarkTextOrigin(m_textBounds.x(), m_textBounds.y() + m_fon
t.fontMetrics().ascent() + m_emphasisMarkOffset); | 222 FloatPoint emphasisMarkTextOrigin(m_textBounds.x(), m_textBounds.y() + m_fon
t.fontMetrics().ascent() + m_emphasisMarkOffset); |
| 223 TextRunPaintInfo textRunPaintInfo(placeholderTextRun); | 223 TextRunPaintInfo textRunPaintInfo(placeholderTextRun); |
| 224 textRunPaintInfo.bounds = m_textBounds; | 224 textRunPaintInfo.bounds = m_textBounds; |
| 225 m_graphicsContext->concatCTM(rotation(m_textBounds, Clockwise)); | 225 m_graphicsContext->concatCTM(rotation(m_textBounds, Clockwise)); |
| 226 m_graphicsContext->drawEmphasisMarks(m_combinedText->originalFont(), textRun
PaintInfo, m_emphasisMark, emphasisMarkTextOrigin); | 226 m_graphicsContext->drawEmphasisMarks(m_combinedText->originalFont(), textRun
PaintInfo, m_emphasisMark, emphasisMarkTextOrigin); |
| 227 m_graphicsContext->concatCTM(rotation(m_textBounds, Counterclockwise)); | 227 m_graphicsContext->concatCTM(rotation(m_textBounds, Counterclockwise)); |
| 228 } | 228 } |
| 229 | 229 |
| 230 } // namespace blink | 230 } // namespace blink |
| OLD | NEW |