OLD | NEW |
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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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(const PaintInfo&, const Color&, const FillLayer*, const
LayoutRect&, CompositeOperator = CompositeSourceOver); |
115 void paintFillLayer(const PaintInfo&, const Color&, const FillLayer*, const
LayoutRect&, CompositeOperator = CompositeSourceOver); | 115 void paintFillLayer(const PaintInfo&, const Color&, const FillLayer*, const
LayoutRect&, CompositeOperator = CompositeSourceOver); |
116 void paintBoxShadow(const PaintInfo&, RenderStyle*, ShadowStyle, const Layou
tRect&); | 116 void paintBoxShadow(const PaintInfo&, RenderStyle*, ShadowStyle, const Layou
tRect&); |
117 virtual void paint(PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, Layou
tUnit lineBottom); | 117 virtual void paint(PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, Layou
tUnit lineBottom) 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 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(); } |
127 LayoutUnit marginLogicalLeft() const | 127 LayoutUnit marginLogicalLeft() const |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 void flipLinesInBlockDirection(LayoutUnit lineTop, LayoutUnit lineBottom); | 192 void flipLinesInBlockDirection(LayoutUnit lineTop, LayoutUnit lineBottom); |
193 bool requiresIdeographicBaseline(const GlyphOverflowAndFallbackFontsMap&) co
nst; | 193 bool requiresIdeographicBaseline(const GlyphOverflowAndFallbackFontsMap&) co
nst; |
194 | 194 |
195 LayoutUnit computeOverAnnotationAdjustment(LayoutUnit allowedPosition) const
; | 195 LayoutUnit computeOverAnnotationAdjustment(LayoutUnit allowedPosition) const
; |
196 LayoutUnit computeUnderAnnotationAdjustment(LayoutUnit allowedPosition) cons
t; | 196 LayoutUnit computeUnderAnnotationAdjustment(LayoutUnit allowedPosition) cons
t; |
197 | 197 |
198 void computeOverflow(LayoutUnit lineTop, LayoutUnit lineBottom, GlyphOverflo
wAndFallbackFontsMap&); | 198 void computeOverflow(LayoutUnit lineTop, LayoutUnit lineBottom, GlyphOverflo
wAndFallbackFontsMap&); |
199 | 199 |
200 void removeChild(InlineBox* child); | 200 void removeChild(InlineBox* child); |
201 | 201 |
202 virtual RenderObject::SelectionState selectionState(); | 202 virtual RenderObject::SelectionState selectionState() OVERRIDE; |
203 | 203 |
204 virtual bool canAccommodateEllipsis(bool ltr, int blockEdge, int ellipsisWid
th) const OVERRIDE FINAL; | 204 virtual bool canAccommodateEllipsis(bool ltr, int blockEdge, int ellipsisWid
th) const OVERRIDE FINAL; |
205 virtual float placeEllipsisBox(bool ltr, float blockLeftEdge, float blockRig
htEdge, float ellipsisWidth, float &truncatedWidth, bool&) OVERRIDE; | 205 virtual float placeEllipsisBox(bool ltr, float blockLeftEdge, float blockRig
htEdge, float ellipsisWidth, float &truncatedWidth, bool&) OVERRIDE; |
206 | 206 |
207 bool hasTextChildren() const { return m_hasTextChildren; } | 207 bool hasTextChildren() const { return m_hasTextChildren; } |
208 bool hasTextDescendants() const { return m_hasTextDescendants; } | 208 bool hasTextDescendants() const { return m_hasTextDescendants; } |
209 void setHasTextChildren() { m_hasTextChildren = true; setHasTextDescendants(
); } | 209 void setHasTextChildren() { m_hasTextChildren = true; setHasTextDescendants(
); } |
210 void setHasTextDescendants() { m_hasTextDescendants = true; } | 210 void setHasTextDescendants() { m_hasTextDescendants = true; } |
211 | 211 |
212 void checkConsistency() const; | 212 void checkConsistency() const; |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 } | 366 } |
367 | 367 |
368 } // namespace WebCore | 368 } // namespace WebCore |
369 | 369 |
370 #ifndef NDEBUG | 370 #ifndef NDEBUG |
371 // Outside the WebCore namespace for ease of invocation from gdb. | 371 // Outside the WebCore namespace for ease of invocation from gdb. |
372 void showTree(const WebCore::InlineFlowBox*); | 372 void showTree(const WebCore::InlineFlowBox*); |
373 #endif | 373 #endif |
374 | 374 |
375 #endif // InlineFlowBox_h | 375 #endif // InlineFlowBox_h |
OLD | NEW |