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

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

Issue 1230643006: Update inclusion of GraphicsContextStateSaver.h (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/paint/FieldsetPainter.cpp ('k') | Source/core/paint/ObjectPainter.cpp » ('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/layout/LayoutBlock.h" 15 #include "core/layout/LayoutBlock.h"
16 #include "core/layout/LayoutTextCombine.h" 16 #include "core/layout/LayoutTextCombine.h"
17 #include "core/layout/LayoutTheme.h" 17 #include "core/layout/LayoutTheme.h"
18 #include "core/layout/line/InlineTextBox.h" 18 #include "core/layout/line/InlineTextBox.h"
19 #include "core/paint/BoxPainter.h" 19 #include "core/paint/BoxPainter.h"
20 #include "core/paint/PaintInfo.h" 20 #include "core/paint/PaintInfo.h"
21 #include "core/paint/TextPainter.h" 21 #include "core/paint/TextPainter.h"
22 #include "platform/graphics/GraphicsContextStateSaver.h"
22 #include "platform/graphics/paint/DrawingRecorder.h" 23 #include "platform/graphics/paint/DrawingRecorder.h"
23 #include "wtf/Optional.h" 24 #include "wtf/Optional.h"
24 25
25 namespace blink { 26 namespace blink {
26 27
27 typedef WTF::HashMap<const InlineTextBox*, TextBlobPtr> InlineTextBoxBlobCacheMa p; 28 typedef WTF::HashMap<const InlineTextBox*, TextBlobPtr> InlineTextBoxBlobCacheMa p;
28 static InlineTextBoxBlobCacheMap* gTextBlobCache; 29 static InlineTextBoxBlobCacheMap* gTextBlobCache;
29 30
30 static const int misspellingLineThickness = 3; 31 static const int misspellingLineThickness = 3;
31 32
(...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after
812 LayoutTheme::theme().platformActiveTextSearchHighlightColor() : 813 LayoutTheme::theme().platformActiveTextSearchHighlightColor() :
813 LayoutTheme::theme().platformInactiveTextSearchHighlightColor(); 814 LayoutTheme::theme().platformInactiveTextSearchHighlightColor();
814 GraphicsContextStateSaver stateSaver(*pt); 815 GraphicsContextStateSaver stateSaver(*pt);
815 pt->clip(FloatRect(boxOrigin.x().toFloat(), (boxOrigin.y() - deltaY).toF loat(), m_inlineTextBox.logicalWidth().toFloat(), selHeight)); 816 pt->clip(FloatRect(boxOrigin.x().toFloat(), (boxOrigin.y() - deltaY).toF loat(), m_inlineTextBox.logicalWidth().toFloat(), selHeight));
816 pt->drawHighlightForText(font, run, FloatPoint(boxOrigin.x().toFloat(), (boxOrigin.y() - deltaY).toFloat()), selHeight, color, sPos, ePos); 817 pt->drawHighlightForText(font, run, FloatPoint(boxOrigin.x().toFloat(), (boxOrigin.y() - deltaY).toFloat()), selHeight, color, sPos, ePos);
817 } 818 }
818 } 819 }
819 820
820 821
821 } // namespace blink 822 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/paint/FieldsetPainter.cpp ('k') | Source/core/paint/ObjectPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698