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 "core/paint/SVGInlineTextBoxPainter.h" | 5 #include "core/paint/SVGInlineTextBoxPainter.h" |
6 | 6 |
7 #include "core/editing/Editor.h" | 7 #include "core/editing/Editor.h" |
8 #include "core/editing/markers/DocumentMarkerController.h" | 8 #include "core/editing/markers/DocumentMarkerController.h" |
9 #include "core/editing/markers/RenderedDocumentMarker.h" | 9 #include "core/editing/markers/RenderedDocumentMarker.h" |
10 #include "core/frame/LocalFrame.h" | 10 #include "core/frame/LocalFrame.h" |
11 #include "core/layout/LayoutTheme.h" | 11 #include "core/layout/LayoutTheme.h" |
| 12 #include "core/layout/LayoutView.h" |
12 #include "core/layout/api/LineLayoutAPIShim.h" | 13 #include "core/layout/api/LineLayoutAPIShim.h" |
13 #include "core/layout/api/SelectionState.h" | 14 #include "core/layout/api/SelectionState.h" |
14 #include "core/layout/line/InlineFlowBox.h" | 15 #include "core/layout/line/InlineFlowBox.h" |
15 #include "core/layout/svg/LayoutSVGInlineText.h" | 16 #include "core/layout/svg/LayoutSVGInlineText.h" |
16 #include "core/layout/svg/SVGLayoutSupport.h" | 17 #include "core/layout/svg/SVGLayoutSupport.h" |
17 #include "core/layout/svg/SVGResourcesCache.h" | 18 #include "core/layout/svg/SVGResourcesCache.h" |
18 #include "core/layout/svg/line/SVGInlineTextBox.h" | 19 #include "core/layout/svg/line/SVGInlineTextBox.h" |
19 #include "core/paint/InlineTextBoxPainter.h" | 20 #include "core/paint/InlineTextBoxPainter.h" |
20 #include "core/paint/LayoutObjectDrawingRecorder.h" | 21 #include "core/paint/LayoutObjectDrawingRecorder.h" |
21 #include "core/paint/PaintInfo.h" | 22 #include "core/paint/PaintInfo.h" |
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
533 stateSaver.save(); | 534 stateSaver.save(); |
534 paintInfo.context.concatCTM(fragment.buildFragmentTransform()); | 535 paintInfo.context.concatCTM(fragment.buildFragmentTransform()); |
535 } | 536 } |
536 FloatRect fragmentRect = m_svgInlineTextBox.selectionRectForTextFragment
(fragment, textMatchInfo.startPosition, textMatchInfo.endPosition, style); | 537 FloatRect fragmentRect = m_svgInlineTextBox.selectionRectForTextFragment
(fragment, textMatchInfo.startPosition, textMatchInfo.endPosition, style); |
537 paintInfo.context.setFillColor(color); | 538 paintInfo.context.setFillColor(color); |
538 paintInfo.context.fillRect(fragmentRect); | 539 paintInfo.context.fillRect(fragmentRect); |
539 } | 540 } |
540 } | 541 } |
541 | 542 |
542 } // namespace blink | 543 } // namespace blink |
OLD | NEW |