| 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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 void InlineBox::adjustPosition(float dx, float dy) | 186 void InlineBox::adjustPosition(float dx, float dy) |
| 187 { | 187 { |
| 188 m_topLeft.move(dx, dy); | 188 m_topLeft.move(dx, dy); |
| 189 | 189 |
| 190 if (renderer().isReplaced()) | 190 if (renderer().isReplaced()) |
| 191 toRenderBox(renderer()).move(dx, dy); | 191 toRenderBox(renderer()).move(dx, dy); |
| 192 } | 192 } |
| 193 | 193 |
| 194 void InlineBox::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset, Layo
utUnit /* lineTop */, LayoutUnit /*lineBottom*/) | 194 void InlineBox::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset, Layo
utUnit /* lineTop */, LayoutUnit /*lineBottom*/) |
| 195 { | 195 { |
| 196 if (!paintInfo.shouldPaintWithinRoot(&renderer()) || (paintInfo.phase != Pai
ntPhaseForeground && paintInfo.phase != PaintPhaseSelection)) | 196 if (paintInfo.phase != PaintPhaseForeground && paintInfo.phase != PaintPhase
Selection) |
| 197 return; | 197 return; |
| 198 | 198 |
| 199 LayoutPoint childPoint = paintOffset; | 199 LayoutPoint childPoint = paintOffset; |
| 200 RenderBlock::paintAsInlineBlock(&renderer(), paintInfo, childPoint); | 200 RenderBlock::paintAsInlineBlock(&renderer(), paintInfo, childPoint); |
| 201 } | 201 } |
| 202 | 202 |
| 203 bool InlineBox::nodeAtPoint(const HitTestRequest& request, HitTestResult& result
, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffs
et, LayoutUnit /* lineTop */, LayoutUnit /*lineBottom*/) | 203 bool InlineBox::nodeAtPoint(const HitTestRequest& request, HitTestResult& result
, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffs
et, LayoutUnit /* lineTop */, LayoutUnit /*lineBottom*/) |
| 204 { | 204 { |
| 205 // Hit test all phases of replaced elements atomically, as though the replac
ed element established its | 205 // Hit test all phases of replaced elements atomically, as though the replac
ed element established its |
| 206 // own stacking context. (See Appendix E.2, section 6.4 on inline block/tab
le elements in the CSS2.1 | 206 // own stacking context. (See Appendix E.2, section 6.4 on inline block/tab
le elements in the CSS2.1 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 b->showTreeForThis(); | 322 b->showTreeForThis(); |
| 323 } | 323 } |
| 324 | 324 |
| 325 void showLineTree(const blink::InlineBox* b) | 325 void showLineTree(const blink::InlineBox* b) |
| 326 { | 326 { |
| 327 if (b) | 327 if (b) |
| 328 b->showLineTreeForThis(); | 328 b->showLineTreeForThis(); |
| 329 } | 329 } |
| 330 | 330 |
| 331 #endif | 331 #endif |
| OLD | NEW |