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

Side by Side Diff: Source/core/rendering/InlineFlowBox.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: Second try 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, 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 virtual void extractLineBoxFromRenderObject(); 104 virtual void extractLineBoxFromRenderObject();
105 virtual void attachLineBoxToRenderObject(); 105 virtual void attachLineBoxToRenderObject();
106 virtual void removeLineBoxFromRenderObject(); 106 virtual void removeLineBoxFromRenderObject();
107 107
108 virtual void clearTruncation() OVERRIDE; 108 virtual void clearTruncation() OVERRIDE;
109 109
110 IntRect roundedFrameRect() const; 110 IntRect roundedFrameRect() const;
111 111
112 void paintBoxDecorations(PaintInfo&, const LayoutPoint&); 112 void paintBoxDecorations(PaintInfo&, const LayoutPoint&);
113 void paintMask(PaintInfo&, const LayoutPoint&); 113 void paintMask(PaintInfo&, const LayoutPoint&);
114 void paintFillLayers(const PaintInfo&, const Color&, const FillLayer*, const LayoutRect&, CompositeOperator = CompositeSourceOver); 114 void paintFillLayers(PaintInfo&, const Color&, const FillLayer*, const Layou tRect&, CompositeOperator = CompositeSourceOver);
115 void paintFillLayer(const PaintInfo&, const Color&, const FillLayer*, const LayoutRect&, CompositeOperator = CompositeSourceOver); 115 void paintFillLayer(PaintInfo&, const Color&, const FillLayer*, const Layout Rect&, CompositeOperator = CompositeSourceOver);
116 void paintBoxShadow(const PaintInfo&, RenderStyle*, ShadowStyle, const Layou tRect&); 116 void paintBoxShadow(PaintInfo&, RenderStyle*, ShadowStyle, const LayoutRect& );
117 virtual void paint(PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, Layou tUnit lineBottom); 117 virtual void paint(PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, Layou tUnit lineBottom);
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 bool boxShadowCanBeAppliedToBackground(const FillLayer&) const; 120 bool boxShadowCanBeAppliedToBackground(const FillLayer&) const;
121 121
122 virtual RenderLineBoxList* rendererLineBoxes() const; 122 virtual RenderLineBoxList* rendererLineBoxes() const;
123 123
124 // logicalLeft = left in a horizontal line and top in a vertical line. 124 // logicalLeft = left in a horizontal line and top in a vertical line.
125 LayoutUnit marginBorderPaddingLogicalLeft() const { return marginLogicalLeft () + borderLogicalLeft() + paddingLogicalLeft(); } 125 LayoutUnit marginBorderPaddingLogicalLeft() const { return marginLogicalLeft () + borderLogicalLeft() + paddingLogicalLeft(); }
126 LayoutUnit marginBorderPaddingLogicalRight() const { return marginLogicalRig ht() + borderLogicalRight() + paddingLogicalRight(); } 126 LayoutUnit marginBorderPaddingLogicalRight() const { return marginLogicalRig ht() + borderLogicalRight() + paddingLogicalRight(); }
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 } 380 }
381 381
382 } // namespace WebCore 382 } // namespace WebCore
383 383
384 #ifndef NDEBUG 384 #ifndef NDEBUG
385 // Outside the WebCore namespace for ease of invocation from gdb. 385 // Outside the WebCore namespace for ease of invocation from gdb.
386 void showTree(const WebCore::InlineFlowBox*); 386 void showTree(const WebCore::InlineFlowBox*);
387 #endif 387 #endif
388 388
389 #endif // InlineFlowBox_h 389 #endif // InlineFlowBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698