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

Side by Side Diff: sky/engine/core/rendering/InlineBox.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 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All r ights reserved. 2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All r ights 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 } 83 }
84 void adjustLineDirectionPosition(float delta) 84 void adjustLineDirectionPosition(float delta)
85 { 85 {
86 adjustPosition(delta, 0); 86 adjustPosition(delta, 0);
87 } 87 }
88 void adjustBlockDirectionPosition(float delta) 88 void adjustBlockDirectionPosition(float delta)
89 { 89 {
90 adjustPosition(0, delta); 90 adjustPosition(0, delta);
91 } 91 }
92 92
93 virtual void paint(PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, Layou tUnit lineBottom); 93 virtual void paint(PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, Layou tUnit lineBottom, Vector<RenderBox*> layers);
94 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, LayoutUnit lineTop, LayoutUnit lineBottom); 94 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, LayoutUnit lineTop, LayoutUnit lineBottom);
95 95
96 // InlineBoxes are allocated out of the rendering partition. 96 // InlineBoxes are allocated out of the rendering partition.
97 void* operator new(size_t); 97 void* operator new(size_t);
98 void operator delete(void*); 98 void operator delete(void*);
99 99
100 #ifndef NDEBUG 100 #ifndef NDEBUG
101 void showTreeForThis() const; 101 void showTreeForThis() const;
102 void showLineTreeForThis() const; 102 void showLineTreeForThis() const;
103 103
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 413
414 } // namespace blink 414 } // namespace blink
415 415
416 #ifndef NDEBUG 416 #ifndef NDEBUG
417 // Outside the WebCore namespace for ease of invocation from gdb. 417 // Outside the WebCore namespace for ease of invocation from gdb.
418 void showTree(const blink::InlineBox*); 418 void showTree(const blink::InlineBox*);
419 void showLineTree(const blink::InlineBox*); 419 void showLineTree(const blink::InlineBox*);
420 #endif 420 #endif
421 421
422 #endif // SKY_ENGINE_CORE_RENDERING_INLINEBOX_H_ 422 #endif // SKY_ENGINE_CORE_RENDERING_INLINEBOX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698