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

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

Issue 2010823002: Remove assorted unnecessary includes in core/paint/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missing includes. Created 4 years, 7 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/editing/markers/RenderedDocumentMarker.h"
11 #include "core/frame/LocalFrame.h" 10 #include "core/frame/LocalFrame.h"
12 #include "core/layout/LayoutBlock.h"
13 #include "core/layout/LayoutTextCombine.h" 11 #include "core/layout/LayoutTextCombine.h"
14 #include "core/layout/LayoutTheme.h" 12 #include "core/layout/LayoutTheme.h"
15 #include "core/layout/api/LineLayoutAPIShim.h" 13 #include "core/layout/api/LineLayoutAPIShim.h"
16 #include "core/layout/api/LineLayoutBox.h" 14 #include "core/layout/api/LineLayoutBox.h"
17 #include "core/layout/api/LineLayoutText.h"
18 #include "core/layout/line/InlineTextBox.h" 15 #include "core/layout/line/InlineTextBox.h"
19 #include "core/paint/BoxPainter.h"
20 #include "core/paint/PaintInfo.h" 16 #include "core/paint/PaintInfo.h"
21 #include "core/paint/TextPainter.h" 17 #include "core/paint/TextPainter.h"
22 #include "platform/graphics/GraphicsContextStateSaver.h" 18 #include "platform/graphics/GraphicsContextStateSaver.h"
23 #include "platform/graphics/paint/DrawingRecorder.h" 19 #include "platform/graphics/paint/DrawingRecorder.h"
24 #include "wtf/Optional.h" 20 #include "wtf/Optional.h"
25 21
26 namespace blink { 22 namespace blink {
27 23
28 typedef WTF::HashMap<const InlineTextBox*, TextBlobPtr> InlineTextBoxBlobCacheMa p; 24 typedef WTF::HashMap<const InlineTextBox*, TextBlobPtr> InlineTextBoxBlobCacheMa p;
29 static InlineTextBoxBlobCacheMap* gTextBlobCache; 25 static InlineTextBoxBlobCacheMap* gTextBlobCache;
(...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after
853 849
854 Color color = LayoutTheme::theme().platformTextSearchHighlightColor(marker-> activeMatch()); 850 Color color = LayoutTheme::theme().platformTextSearchHighlightColor(marker-> activeMatch());
855 GraphicsContext& context = paintInfo.context; 851 GraphicsContext& context = paintInfo.context;
856 GraphicsContextStateSaver stateSaver(context); 852 GraphicsContextStateSaver stateSaver(context);
857 context.clip(FloatRect(boxOrigin.x().toFloat(), (boxOrigin.y() - deltaY).toF loat(), m_inlineTextBox.logicalWidth().toFloat(), selHeight)); 853 context.clip(FloatRect(boxOrigin.x().toFloat(), (boxOrigin.y() - deltaY).toF loat(), m_inlineTextBox.logicalWidth().toFloat(), selHeight));
858 context.drawHighlightForText(font, run, FloatPoint(boxOrigin.x().toFloat(), (boxOrigin.y() - deltaY).toFloat()), selHeight, color, sPos, ePos); 854 context.drawHighlightForText(font, run, FloatPoint(boxOrigin.x().toFloat(), (boxOrigin.y() - deltaY).toFloat()), selHeight, color, sPos, ePos);
859 } 855 }
860 856
861 857
862 } // namespace blink 858 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/InlinePainter.cpp ('k') | third_party/WebKit/Source/core/paint/LineBoxListPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698