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

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

Issue 1261653002: Move SelectionState out of LayoutObject and into Line Layout API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 2 legit 5ever Created 5 years, 4 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/EllipsisBoxPainter.cpp ('k') | Source/core/paint/InlineTextBoxPainter.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/InlineFlowBoxPainter.h" 6 #include "core/paint/InlineFlowBoxPainter.h"
7 7
8 #include "core/layout/LayoutBlock.h" 8 #include "core/layout/LayoutBlock.h"
9 #include "core/layout/LayoutInline.h" 9 #include "core/layout/LayoutInline.h"
10 #include "core/layout/LayoutView.h" 10 #include "core/layout/LayoutView.h"
11 #include "core/layout/api/SelectionState.h"
11 #include "core/layout/line/InlineFlowBox.h" 12 #include "core/layout/line/InlineFlowBox.h"
12 #include "core/paint/BoxPainter.h" 13 #include "core/paint/BoxPainter.h"
13 #include "core/paint/DeprecatedPaintLayer.h" 14 #include "core/paint/DeprecatedPaintLayer.h"
14 #include "core/paint/PaintInfo.h" 15 #include "core/paint/PaintInfo.h"
15 #include "platform/graphics/GraphicsContextStateSaver.h" 16 #include "platform/graphics/GraphicsContextStateSaver.h"
16 #include "platform/graphics/paint/DrawingRecorder.h" 17 #include "platform/graphics/paint/DrawingRecorder.h"
17 18
18 namespace blink { 19 namespace blink {
19 20
20 void InlineFlowBoxPainter::paint(const PaintInfo& paintInfo, const LayoutPoint& paintOffset, const LayoutUnit lineTop, const LayoutUnit lineBottom) 21 void InlineFlowBoxPainter::paint(const PaintInfo& paintInfo, const LayoutPoint& paintOffset, const LayoutUnit lineTop, const LayoutUnit lineBottom)
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 rect.setHeight(logicalHeight); 355 rect.setHeight(logicalHeight);
355 } else { 356 } else {
356 rect.setX(logicalTop); 357 rect.setX(logicalTop);
357 rect.setWidth(logicalHeight); 358 rect.setWidth(logicalHeight);
358 } 359 }
359 } 360 }
360 return rect; 361 return rect;
361 } 362 }
362 363
363 } // namespace blink 364 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/paint/EllipsisBoxPainter.cpp ('k') | Source/core/paint/InlineTextBoxPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698