| 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" | |
| 13 #include "core/layout/api/LineLayoutAPIShim.h" | 12 #include "core/layout/api/LineLayoutAPIShim.h" |
| 14 #include "core/layout/api/SelectionState.h" | 13 #include "core/layout/api/SelectionState.h" |
| 15 #include "core/layout/line/InlineFlowBox.h" | 14 #include "core/layout/line/InlineFlowBox.h" |
| 16 #include "core/layout/svg/LayoutSVGInlineText.h" | 15 #include "core/layout/svg/LayoutSVGInlineText.h" |
| 17 #include "core/layout/svg/SVGLayoutSupport.h" | 16 #include "core/layout/svg/SVGLayoutSupport.h" |
| 18 #include "core/layout/svg/SVGResourcesCache.h" | 17 #include "core/layout/svg/SVGResourcesCache.h" |
| 19 #include "core/layout/svg/line/SVGInlineTextBox.h" | 18 #include "core/layout/svg/line/SVGInlineTextBox.h" |
| 20 #include "core/paint/InlineTextBoxPainter.h" | 19 #include "core/paint/InlineTextBoxPainter.h" |
| 21 #include "core/paint/LayoutObjectDrawingRecorder.h" | 20 #include "core/paint/LayoutObjectDrawingRecorder.h" |
| 22 #include "core/paint/PaintInfo.h" | 21 #include "core/paint/PaintInfo.h" |
| (...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 637 } | 636 } |
| 638 FloatRect fragmentRect = m_svgInlineTextBox.selectionRectForTextFragment( | 637 FloatRect fragmentRect = m_svgInlineTextBox.selectionRectForTextFragment( |
| 639 fragment, textMatchInfo.startPosition, textMatchInfo.endPosition, | 638 fragment, textMatchInfo.startPosition, textMatchInfo.endPosition, |
| 640 style); | 639 style); |
| 641 paintInfo.context.setFillColor(color); | 640 paintInfo.context.setFillColor(color); |
| 642 paintInfo.context.fillRect(fragmentRect); | 641 paintInfo.context.fillRect(fragmentRect); |
| 643 } | 642 } |
| 644 } | 643 } |
| 645 | 644 |
| 646 } // namespace blink | 645 } // namespace blink |
| OLD | NEW |