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

Side by Side Diff: sky/engine/core/rendering/InlineTextBox.h

Issue 899753003: Walk render tree instead of render layers for paint. (Closed) Base URL: https://github.com/domokit/mojo.git@master
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
OLDNEW
1 /* 1 /*
2 * (C) 1999 Lars Knoll (knoll@kde.org) 2 * (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Dirk Mueller (mueller@kde.org) 3 * (C) 2000 Dirk Mueller (mueller@kde.org)
4 * Copyright (C) 2004, 2005, 2006, 2009, 2010, 2011 Apple Inc. All rights reserv ed. 4 * Copyright (C) 2004, 2005, 2006, 2009, 2010, 2011 Apple Inc. All rights reserv ed.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 107
108 public: 108 public:
109 TextRun constructTextRunForInspector(RenderStyle*, const Font&) const; 109 TextRun constructTextRunForInspector(RenderStyle*, const Font&) const;
110 virtual FloatRect calculateBoundaries() const override { return FloatRect(x( ), y(), width(), height()); } 110 virtual FloatRect calculateBoundaries() const override { return FloatRect(x( ), y(), width(), height()); }
111 111
112 virtual LayoutRect localSelectionRect(int startPos, int endPos); 112 virtual LayoutRect localSelectionRect(int startPos, int endPos);
113 bool isSelected(int startPos, int endPos) const; 113 bool isSelected(int startPos, int endPos) const;
114 void selectionStartEnd(int& sPos, int& ePos); 114 void selectionStartEnd(int& sPos, int& ePos);
115 115
116 protected: 116 protected:
117 virtual void paint(PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, Layou tUnit lineBottom) override; 117 virtual void paint(PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, Layou tUnit lineBottom, Vector<RenderBox*> layers) override;
118 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, LayoutUnit lineTop, LayoutUnit lineBottom) override; 118 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, LayoutUnit lineTop, LayoutUnit lineBottom) override;
119 119
120 private: 120 private:
121 virtual void deleteLine() override final; 121 virtual void deleteLine() override final;
122 virtual void extractLine() override final; 122 virtual void extractLine() override final;
123 virtual void attachLine() override final; 123 virtual void attachLine() override final;
124 124
125 public: 125 public:
126 virtual RenderObject::SelectionState selectionState() override final; 126 virtual RenderObject::SelectionState selectionState() override final;
127 127
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 199
200 inline AffineTransform InlineTextBox::rotation(const FloatRect& boxRect, Rotatio nDirection rotationDirection) 200 inline AffineTransform InlineTextBox::rotation(const FloatRect& boxRect, Rotatio nDirection rotationDirection)
201 { 201 {
202 return rotationDirection == Clockwise ? AffineTransform(0, 1, -1, 0, boxRect .x() + boxRect.maxY(), boxRect.maxY() - boxRect.x()) 202 return rotationDirection == Clockwise ? AffineTransform(0, 1, -1, 0, boxRect .x() + boxRect.maxY(), boxRect.maxY() - boxRect.x())
203 : AffineTransform(0, -1, 1, 0, boxRect.x() - boxRect.maxY(), boxRect.x() + boxRect.maxY()); 203 : AffineTransform(0, -1, 1, 0, boxRect.x() - boxRect.maxY(), boxRect.x() + boxRect.maxY());
204 } 204 }
205 205
206 } // namespace blink 206 } // namespace blink
207 207
208 #endif // SKY_ENGINE_CORE_RENDERING_INLINETEXTBOX_H_ 208 #endif // SKY_ENGINE_CORE_RENDERING_INLINETEXTBOX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698