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

Side by Side Diff: Source/core/layout/line/EllipsisBox.h

Issue 899163003: Move rendering/RenderObject to layout/LayoutObject. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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
OLDNEW
1 /** 1 /**
2 * Copyright (C) 2003, 2006 Apple Computer, Inc. 2 * Copyright (C) 2003, 2006 Apple Computer, Inc.
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 12 matching lines...) Expand all
23 #include "core/layout/line/FloatToLayoutUnit.h" 23 #include "core/layout/line/FloatToLayoutUnit.h"
24 #include "core/layout/line/InlineBox.h" 24 #include "core/layout/line/InlineBox.h"
25 25
26 namespace blink { 26 namespace blink {
27 27
28 class HitTestRequest; 28 class HitTestRequest;
29 class HitTestResult; 29 class HitTestResult;
30 30
31 class EllipsisBox final : public InlineBox { 31 class EllipsisBox final : public InlineBox {
32 public: 32 public:
33 EllipsisBox(RenderObject& obj, const AtomicString& ellipsisStr, InlineFlowBo x* parent, 33 EllipsisBox(LayoutObject& obj, const AtomicString& ellipsisStr, InlineFlowBo x* parent,
34 int width, int height, int x, int y, bool firstLine, bool isVertical, In lineBox* markupBox) 34 int width, int height, int x, int y, bool firstLine, bool isVertical, In lineBox* markupBox)
35 : InlineBox(obj, FloatPointWillBeLayoutPoint(x, y), width, firstLine, tr ue, false, false, isVertical, 0, 0, parent) 35 : InlineBox(obj, FloatPointWillBeLayoutPoint(x, y), width, firstLine, tr ue, false, false, isVertical, 0, 0, parent)
36 , m_shouldPaintMarkupBox(markupBox) 36 , m_shouldPaintMarkupBox(markupBox)
37 , m_height(height) 37 , m_height(height)
38 , m_str(ellipsisStr) 38 , m_str(ellipsisStr)
39 , m_selectionState(RenderObject::SelectionNone) 39 , m_selectionState(LayoutObject::SelectionNone)
40 { 40 {
41 setHasVirtualLogicalHeight(); 41 setHasVirtualLogicalHeight();
42 } 42 }
43 43
44 virtual void paint(const PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, LayoutUnit lineBottom) override; 44 virtual void paint(const PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, LayoutUnit lineBottom) override;
45 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, LayoutUnit lineTop, LayoutUnit lineBottom) override; 45 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, LayoutUnit lineTop, LayoutUnit lineBottom) override;
46 void setSelectionState(RenderObject::SelectionState s) { m_selectionState = s; } 46 void setSelectionState(LayoutObject::SelectionState s) { m_selectionState = s; }
47 IntRect selectionRect(); 47 IntRect selectionRect();
48 48
49 virtual FloatWillBeLayoutUnit virtualLogicalHeight() const override { return m_height; } 49 virtual FloatWillBeLayoutUnit virtualLogicalHeight() const override { return m_height; }
50 virtual RenderObject::SelectionState selectionState() const override { retur n m_selectionState; } 50 virtual LayoutObject::SelectionState selectionState() const override { retur n m_selectionState; }
51 const AtomicString& ellipsisStr() { return m_str; } 51 const AtomicString& ellipsisStr() { return m_str; }
52 InlineBox* markupBox() const; 52 InlineBox* markupBox() const;
53 53
54 private: 54 private:
55 55
56 bool m_shouldPaintMarkupBox; 56 bool m_shouldPaintMarkupBox;
57 int m_height; 57 int m_height;
58 AtomicString m_str; 58 AtomicString m_str;
59 RenderObject::SelectionState m_selectionState; 59 LayoutObject::SelectionState m_selectionState;
60 }; 60 };
61 61
62 } // namespace blink 62 } // namespace blink
63 63
64 #endif // EllipsisBox_h 64 #endif // EllipsisBox_h
OLDNEW
« no previous file with comments | « Source/core/layout/line/BreakingContextInlineHeaders.h ('k') | Source/core/layout/line/InlineBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698