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

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

Issue 899753003: Walk render tree instead of render layers for paint. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: address review comments 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
« no previous file with comments | « sky/engine/core/rendering/InlineBox.cpp ('k') | sky/engine/core/rendering/InlineFlowBox.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 /* 1 /*
2 * Copyright (C) 2003, 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2004, 2005, 2006, 2007 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 virtual void adjustPosition(float dx, float dy) override; 108 virtual void adjustPosition(float dx, float dy) override;
109 109
110 virtual void extractLineBoxFromRenderObject(); 110 virtual void extractLineBoxFromRenderObject();
111 virtual void attachLineBoxToRenderObject(); 111 virtual void attachLineBoxToRenderObject();
112 virtual void removeLineBoxFromRenderObject(); 112 virtual void removeLineBoxFromRenderObject();
113 113
114 virtual void clearTruncation() override; 114 virtual void clearTruncation() override;
115 115
116 IntRect roundedFrameRect() const; 116 IntRect roundedFrameRect() const;
117 117
118 virtual void paint(PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, Layou tUnit lineBottom) override; 118 virtual void paint(PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, Layou tUnit lineBottom, Vector<RenderBox*>& layers) override;
119 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, LayoutUnit lineTop, LayoutUnit lineBottom) override; 119 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, LayoutUnit lineTop, LayoutUnit lineBottom) override;
120 120
121 bool boxShadowCanBeAppliedToBackground(const FillLayer&) const; 121 bool boxShadowCanBeAppliedToBackground(const FillLayer&) const;
122 122
123 virtual RenderLineBoxList* rendererLineBoxes() const; 123 virtual RenderLineBoxList* rendererLineBoxes() const;
124 124
125 // logicalLeft = left in a horizontal line and top in a vertical line. 125 // logicalLeft = left in a horizontal line and top in a vertical line.
126 LayoutUnit marginBorderPaddingLogicalLeft() const { return marginLogicalLeft () + borderLogicalLeft() + paddingLogicalLeft(); } 126 LayoutUnit marginBorderPaddingLogicalLeft() const { return marginLogicalLeft () + borderLogicalLeft() + paddingLogicalLeft(); }
127 LayoutUnit marginBorderPaddingLogicalRight() const { return marginLogicalRig ht() + borderLogicalRight() + paddingLogicalRight(); } 127 LayoutUnit marginBorderPaddingLogicalRight() const { return marginLogicalRig ht() + borderLogicalRight() + paddingLogicalRight(); }
128 LayoutUnit marginLogicalLeft() const 128 LayoutUnit marginLogicalLeft() const
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 } 364 }
365 365
366 } // namespace blink 366 } // namespace blink
367 367
368 #ifndef NDEBUG 368 #ifndef NDEBUG
369 // Outside the WebCore namespace for ease of invocation from gdb. 369 // Outside the WebCore namespace for ease of invocation from gdb.
370 void showTree(const blink::InlineFlowBox*); 370 void showTree(const blink::InlineFlowBox*);
371 #endif 371 #endif
372 372
373 #endif // SKY_ENGINE_CORE_RENDERING_INLINEFLOWBOX_H_ 373 #endif // SKY_ENGINE_CORE_RENDERING_INLINEFLOWBOX_H_
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/InlineBox.cpp ('k') | sky/engine/core/rendering/InlineFlowBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698