Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(388)

Side by Side Diff: third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp

Issue 2817663002: Rewrite references to "wtf/" to "platform/wtf/" in core/paint. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/InlineTextBoxPainter.h" 5 #include "core/paint/InlineTextBoxPainter.h"
6 6
7 #include "core/editing/CompositionUnderline.h" 7 #include "core/editing/CompositionUnderline.h"
8 #include "core/editing/Editor.h" 8 #include "core/editing/Editor.h"
9 #include "core/editing/markers/DocumentMarkerController.h" 9 #include "core/editing/markers/DocumentMarkerController.h"
10 #include "core/frame/LocalFrame.h" 10 #include "core/frame/LocalFrame.h"
11 #include "core/layout/LayoutTextCombine.h" 11 #include "core/layout/LayoutTextCombine.h"
12 #include "core/layout/LayoutTheme.h" 12 #include "core/layout/LayoutTheme.h"
13 #include "core/layout/api/LineLayoutAPIShim.h" 13 #include "core/layout/api/LineLayoutAPIShim.h"
14 #include "core/layout/api/LineLayoutBox.h" 14 #include "core/layout/api/LineLayoutBox.h"
15 #include "core/layout/line/InlineTextBox.h" 15 #include "core/layout/line/InlineTextBox.h"
16 #include "core/paint/PaintInfo.h" 16 #include "core/paint/PaintInfo.h"
17 #include "core/paint/TextPainter.h" 17 #include "core/paint/TextPainter.h"
18 #include "core/style/AppliedTextDecoration.h" 18 #include "core/style/AppliedTextDecoration.h"
19 #include "platform/graphics/GraphicsContextStateSaver.h" 19 #include "platform/graphics/GraphicsContextStateSaver.h"
20 #include "platform/graphics/paint/DrawingRecorder.h" 20 #include "platform/graphics/paint/DrawingRecorder.h"
21 #include "wtf/Optional.h" 21 #include "platform/wtf/Optional.h"
22 22
23 namespace blink { 23 namespace blink {
24 24
25 namespace { 25 namespace {
26 26
27 std::pair<unsigned, unsigned> GetMarkerPaintOffsets( 27 std::pair<unsigned, unsigned> GetMarkerPaintOffsets(
28 const DocumentMarker& marker, 28 const DocumentMarker& marker,
29 const InlineTextBox& text_box) { 29 const InlineTextBox& text_box) {
30 const unsigned start_offset = marker.StartOffset() > text_box.Start() 30 const unsigned start_offset = marker.StartOffset() > text_box.Start()
31 ? marker.StartOffset() - text_box.Start() 31 ? marker.StartOffset() - text_box.Start()
(...skipping 1352 matching lines...) Expand 10 before | Expand all | Expand 10 after
1384 1384
1385 LayoutRect box_rect(box_origin, LayoutSize(inline_text_box_.LogicalWidth(), 1385 LayoutRect box_rect(box_origin, LayoutSize(inline_text_box_.LogicalWidth(),
1386 inline_text_box_.LogicalHeight())); 1386 inline_text_box_.LogicalHeight()));
1387 context.Clip(FloatRect(box_rect)); 1387 context.Clip(FloatRect(box_rect));
1388 context.DrawHighlightForText(font, run, FloatPoint(box_origin), 1388 context.DrawHighlightForText(font, run, FloatPoint(box_origin),
1389 box_rect.Height().ToInt(), color, 1389 box_rect.Height().ToInt(), color,
1390 paint_offsets.first, paint_offsets.second); 1390 paint_offsets.first, paint_offsets.second);
1391 } 1391 }
1392 1392
1393 } // namespace blink 1393 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/InlineTextBoxPainter.h ('k') | third_party/WebKit/Source/core/paint/LayerClipRecorder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698