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

Side by Side Diff: Source/core/rendering/RootInlineBox.h

Issue 21430003: Implement interfaces in PaintInfo and make it a class. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@getterPaintInfo01
Patch Set: Fixed Linux compilation (hopefuly Windows too), addressing some reviewer's suggestions. Created 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2006, 2007, 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 virtual void paint(PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, Layou tUnit lineBottom); 119 virtual void paint(PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, Layou tUnit lineBottom);
120 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, LayoutUnit lineTop, LayoutUnit lineBottom) OVERRIDE FINAL; 120 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, LayoutUnit lineTop, LayoutUnit lineBottom) OVERRIDE FINAL;
121 121
122 using InlineBox::hasSelectedChildren; 122 using InlineBox::hasSelectedChildren;
123 using InlineBox::setHasSelectedChildren; 123 using InlineBox::setHasSelectedChildren;
124 124
125 virtual RenderObject::SelectionState selectionState() OVERRIDE FINAL; 125 virtual RenderObject::SelectionState selectionState() OVERRIDE FINAL;
126 InlineBox* firstSelectedBox(); 126 InlineBox* firstSelectedBox();
127 InlineBox* lastSelectedBox(); 127 InlineBox* lastSelectedBox();
128 128
129 GapRects lineSelectionGap(RenderBlock* rootBlock, const LayoutPoint& rootBlo ckPhysicalPosition, const LayoutSize& offsetFromRootBlock, LayoutUnit selTop, La youtUnit selHeight, const PaintInfo*); 129 GapRects lineSelectionGap(RenderBlock* rootBlock, const LayoutPoint& rootBlo ckPhysicalPosition, const LayoutSize& offsetFromRootBlock, LayoutUnit selTop, La youtUnit selHeight, PaintInfo*);
130 130
131 RenderBlock* block() const; 131 RenderBlock* block() const;
132 132
133 InlineBox* closestLeafChildForPoint(const IntPoint&, bool onlyEditableLeaves ); 133 InlineBox* closestLeafChildForPoint(const IntPoint&, bool onlyEditableLeaves );
134 InlineBox* closestLeafChildForLogicalLeftPosition(int, bool onlyEditableLeav es = false); 134 InlineBox* closestLeafChildForLogicalLeftPosition(int, bool onlyEditableLeav es = false);
135 135
136 void appendFloat(RenderBox* floatingBox) 136 void appendFloat(RenderBox* floatingBox)
137 { 137 {
138 ASSERT(!isDirty()); 138 ASSERT(!isDirty());
139 if (m_floats) 139 if (m_floats)
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 OwnPtr<LineFragmentationData> m_fragmentationData; 243 OwnPtr<LineFragmentationData> m_fragmentationData;
244 244
245 // Floats hanging off the line are pushed into this vector during layout. It is only 245 // Floats hanging off the line are pushed into this vector during layout. It is only
246 // good for as long as the line has not been marked dirty. 246 // good for as long as the line has not been marked dirty.
247 OwnPtr<Vector<RenderBox*> > m_floats; 247 OwnPtr<Vector<RenderBox*> > m_floats;
248 }; 248 };
249 249
250 } // namespace WebCore 250 } // namespace WebCore
251 251
252 #endif // RootInlineBox_h 252 #endif // RootInlineBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698