OLD | NEW |
1 /** | 1 /** |
2 * Copyright (C) 2003, 2006 Apple Computer, Inc. | 2 * Copyright (C) 2003, 2006 Apple Computer, Inc. |
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 17 matching lines...) Expand all Loading... |
28 #include "core/rendering/InlineTextBox.h" | 28 #include "core/rendering/InlineTextBox.h" |
29 #include "core/rendering/PaintInfo.h" | 29 #include "core/rendering/PaintInfo.h" |
30 #include "core/rendering/RenderBlock.h" | 30 #include "core/rendering/RenderBlock.h" |
31 #include "core/rendering/RootInlineBox.h" | 31 #include "core/rendering/RootInlineBox.h" |
32 #include "core/rendering/style/ShadowData.h" | 32 #include "core/rendering/style/ShadowData.h" |
33 | 33 |
34 namespace WebCore { | 34 namespace WebCore { |
35 | 35 |
36 void EllipsisBox::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset, La
youtUnit lineTop, LayoutUnit lineBottom) | 36 void EllipsisBox::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset, La
youtUnit lineTop, LayoutUnit lineBottom) |
37 { | 37 { |
38 GraphicsContext* context = paintInfo.context; | 38 GraphicsContext* context = paintInfo.getContext(); |
39 RenderStyle* style = m_renderer->style(isFirstLineStyle()); | 39 RenderStyle* style = m_renderer->style(isFirstLineStyle()); |
40 Color styleTextColor = m_renderer->resolveColor(style, CSSPropertyWebkitText
FillColor); | 40 Color styleTextColor = m_renderer->resolveColor(style, CSSPropertyWebkitText
FillColor); |
41 if (styleTextColor != context->fillColor()) | 41 if (styleTextColor != context->fillColor()) |
42 context->setFillColor(styleTextColor); | 42 context->setFillColor(styleTextColor); |
43 | 43 |
44 Color textColor = styleTextColor; | 44 Color textColor = styleTextColor; |
45 const Font& font = style->font(); | 45 const Font& font = style->font(); |
46 if (selectionState() != RenderObject::SelectionNone) { | 46 if (selectionState() != RenderObject::SelectionNone) { |
47 paintSelection(context, paintOffset, style, font); | 47 paintSelection(context, paintOffset, style, font); |
48 | 48 |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 if (visibleToHitTestRequest(request) && boundsRect.intersects(HitTestLocatio
n::rectForPoint(locationInContainer.point(), 0, 0, 0, 0))) { | 169 if (visibleToHitTestRequest(request) && boundsRect.intersects(HitTestLocatio
n::rectForPoint(locationInContainer.point(), 0, 0, 0, 0))) { |
170 renderer()->updateHitTestResult(result, locationInContainer.point() - to
LayoutSize(adjustedLocation)); | 170 renderer()->updateHitTestResult(result, locationInContainer.point() - to
LayoutSize(adjustedLocation)); |
171 if (!result.addNodeToRectBasedTestResult(renderer()->node(), request, lo
cationInContainer, boundsRect)) | 171 if (!result.addNodeToRectBasedTestResult(renderer()->node(), request, lo
cationInContainer, boundsRect)) |
172 return true; | 172 return true; |
173 } | 173 } |
174 | 174 |
175 return false; | 175 return false; |
176 } | 176 } |
177 | 177 |
178 } // namespace WebCore | 178 } // namespace WebCore |
OLD | NEW |