OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2006, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006, 2008 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 && paintInfo.phase == PaintPhaseForeground) | 168 && paintInfo.phase == PaintPhaseForeground) |
169 ellipsisBox()->paint(paintInfo, paintOffset, lineTop, lineBottom); | 169 ellipsisBox()->paint(paintInfo, paintOffset, lineTop, lineBottom); |
170 } | 170 } |
171 | 171 |
172 void RootInlineBox::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset,
LayoutUnit lineTop, LayoutUnit lineBottom) | 172 void RootInlineBox::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset,
LayoutUnit lineTop, LayoutUnit lineBottom) |
173 { | 173 { |
174 InlineFlowBox::paint(paintInfo, paintOffset, lineTop, lineBottom); | 174 InlineFlowBox::paint(paintInfo, paintOffset, lineTop, lineBottom); |
175 paintEllipsisBox(paintInfo, paintOffset, lineTop, lineBottom); | 175 paintEllipsisBox(paintInfo, paintOffset, lineTop, lineBottom); |
176 } | 176 } |
177 | 177 |
| 178 void RootInlineBox::paintDecorationStyle(PaintInfo& paintInfo, const LayoutPoint
& paintOffset, LayoutUnit lineTop, LayoutUnit lineBottom, float decorationThickn
ess) |
| 179 { |
| 180 InlineFlowBox::paintDecorationStyle(paintInfo, paintOffset, lineTop, lineBot
tom, decorationThickness); |
| 181 } |
| 182 |
| 183 void RootInlineBox::getPaintDecorationSyle(PaintInfo& paintInfo, const LayoutPoi
nt& paintOffset, float * decorationThickness) |
| 184 { |
| 185 InlineFlowBox::getPaintDecorationSyle(paintInfo, paintOffset, decorationThic
kness); |
| 186 } |
| 187 |
178 bool RootInlineBox::nodeAtPoint(const HitTestRequest& request, HitTestResult& re
sult, const HitTestLocation& locationInContainer, const LayoutPoint& accumulated
Offset, LayoutUnit lineTop, LayoutUnit lineBottom) | 188 bool RootInlineBox::nodeAtPoint(const HitTestRequest& request, HitTestResult& re
sult, const HitTestLocation& locationInContainer, const LayoutPoint& accumulated
Offset, LayoutUnit lineTop, LayoutUnit lineBottom) |
179 { | 189 { |
180 if (hasEllipsisBox() && visibleToHitTestRequest(request)) { | 190 if (hasEllipsisBox() && visibleToHitTestRequest(request)) { |
181 if (ellipsisBox()->nodeAtPoint(request, result, locationInContainer, acc
umulatedOffset, lineTop, lineBottom)) { | 191 if (ellipsisBox()->nodeAtPoint(request, result, locationInContainer, acc
umulatedOffset, lineTop, lineBottom)) { |
182 renderer().updateHitTestResult(result, locationInContainer.point() -
toLayoutSize(accumulatedOffset)); | 192 renderer().updateHitTestResult(result, locationInContainer.point() -
toLayoutSize(accumulatedOffset)); |
183 return true; | 193 return true; |
184 } | 194 } |
185 } | 195 } |
186 return InlineFlowBox::nodeAtPoint(request, result, locationInContainer, accu
mulatedOffset, lineTop, lineBottom); | 196 return InlineFlowBox::nodeAtPoint(request, result, locationInContainer, accu
mulatedOffset, lineTop, lineBottom); |
187 } | 197 } |
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
871 } | 881 } |
872 | 882 |
873 #ifndef NDEBUG | 883 #ifndef NDEBUG |
874 const char* RootInlineBox::boxName() const | 884 const char* RootInlineBox::boxName() const |
875 { | 885 { |
876 return "RootInlineBox"; | 886 return "RootInlineBox"; |
877 } | 887 } |
878 #endif | 888 #endif |
879 | 889 |
880 } // namespace WebCore | 890 } // namespace WebCore |
OLD | NEW |