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

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

Issue 738863002: Move TextPainter to core/paint/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/paint/EllipsisBoxPainter.cpp ('k') | Source/core/paint/TextPainter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "config.h" 5 #include "config.h"
6 #include "core/paint/InlineTextBoxPainter.h" 6 #include "core/paint/InlineTextBoxPainter.h"
7 7
8 #include "core/dom/DocumentMarkerController.h" 8 #include "core/dom/DocumentMarkerController.h"
9 #include "core/dom/RenderedDocumentMarker.h" 9 #include "core/dom/RenderedDocumentMarker.h"
10 #include "core/editing/CompositionUnderline.h" 10 #include "core/editing/CompositionUnderline.h"
11 #include "core/editing/CompositionUnderlineRangeFilter.h" 11 #include "core/editing/CompositionUnderlineRangeFilter.h"
12 #include "core/editing/Editor.h" 12 #include "core/editing/Editor.h"
13 #include "core/editing/InputMethodController.h" 13 #include "core/editing/InputMethodController.h"
14 #include "core/frame/LocalFrame.h" 14 #include "core/frame/LocalFrame.h"
15 #include "core/paint/BoxPainter.h" 15 #include "core/paint/BoxPainter.h"
16 #include "core/paint/DrawingRecorder.h" 16 #include "core/paint/DrawingRecorder.h"
17 #include "core/paint/TextPainter.h"
17 #include "core/rendering/InlineTextBox.h" 18 #include "core/rendering/InlineTextBox.h"
18 #include "core/rendering/PaintInfo.h" 19 #include "core/rendering/PaintInfo.h"
19 #include "core/rendering/RenderBlock.h" 20 #include "core/rendering/RenderBlock.h"
20 #include "core/rendering/RenderCombineText.h" 21 #include "core/rendering/RenderCombineText.h"
21 #include "core/rendering/RenderTheme.h" 22 #include "core/rendering/RenderTheme.h"
22 #include "core/rendering/TextPainter.h"
23 23
24 namespace blink { 24 namespace blink {
25 25
26 typedef WTF::HashMap<const InlineTextBox*, TextBlobPtr> InlineTextBoxBlobCacheMa p; 26 typedef WTF::HashMap<const InlineTextBox*, TextBlobPtr> InlineTextBoxBlobCacheMa p;
27 static InlineTextBoxBlobCacheMap* gTextBlobCache; 27 static InlineTextBoxBlobCacheMap* gTextBlobCache;
28 28
29 static const int misspellingLineThickness = 3; 29 static const int misspellingLineThickness = 3;
30 30
31 void InlineTextBoxPainter::removeFromTextBlobCache(InlineTextBox& inlineTextBox) 31 void InlineTextBoxPainter::removeFromTextBlobCache(InlineTextBox& inlineTextBox)
32 { 32 {
(...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 RenderTheme::theme().platformActiveTextSearchHighlightColor() : 794 RenderTheme::theme().platformActiveTextSearchHighlightColor() :
795 RenderTheme::theme().platformInactiveTextSearchHighlightColor(); 795 RenderTheme::theme().platformInactiveTextSearchHighlightColor();
796 GraphicsContextStateSaver stateSaver(*pt); 796 GraphicsContextStateSaver stateSaver(*pt);
797 pt->clip(FloatRect(boxOrigin.x(), boxOrigin.y() - deltaY, m_inlineTextBo x.logicalWidth(), selHeight)); 797 pt->clip(FloatRect(boxOrigin.x(), boxOrigin.y() - deltaY, m_inlineTextBo x.logicalWidth(), selHeight));
798 pt->drawHighlightForText(font, run, FloatPoint(boxOrigin.x(), boxOrigin. y() - deltaY), selHeight, color, sPos, ePos); 798 pt->drawHighlightForText(font, run, FloatPoint(boxOrigin.x(), boxOrigin. y() - deltaY), selHeight, color, sPos, ePos);
799 } 799 }
800 } 800 }
801 801
802 802
803 } // namespace blink 803 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/paint/EllipsisBoxPainter.cpp ('k') | Source/core/paint/TextPainter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698