OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
reserved. | 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 1400 matching lines...) Loading... |
1411 return; | 1411 return; |
1412 | 1412 |
1413 RenderStyle* styleToUse = style(); | 1413 RenderStyle* styleToUse = style(); |
1414 if (styleToUse->outlineStyleIsAuto() || hasOutlineAnnotation()) { | 1414 if (styleToUse->outlineStyleIsAuto() || hasOutlineAnnotation()) { |
1415 if (theme()->shouldDrawDefaultFocusRing(this)) { | 1415 if (theme()->shouldDrawDefaultFocusRing(this)) { |
1416 // Only paint the focus ring by hand if the theme isn't able to draw
the focus ring. | 1416 // Only paint the focus ring by hand if the theme isn't able to draw
the focus ring. |
1417 paintFocusRing(paintInfo, paintOffset, styleToUse); | 1417 paintFocusRing(paintInfo, paintOffset, styleToUse); |
1418 } | 1418 } |
1419 } | 1419 } |
1420 | 1420 |
1421 GraphicsContext* graphicsContext = paintInfo.context; | 1421 GraphicsContext* graphicsContext = paintInfo.getContext(); |
1422 if (graphicsContext->paintingDisabled()) | 1422 if (graphicsContext->paintingDisabled()) |
1423 return; | 1423 return; |
1424 | 1424 |
1425 if (styleToUse->outlineStyleIsAuto() || styleToUse->outlineStyle() == BNONE) | 1425 if (styleToUse->outlineStyleIsAuto() || styleToUse->outlineStyle() == BNONE) |
1426 return; | 1426 return; |
1427 | 1427 |
1428 Vector<LayoutRect> rects; | 1428 Vector<LayoutRect> rects; |
1429 | 1429 |
1430 rects.append(LayoutRect()); | 1430 rects.append(LayoutRect()); |
1431 for (InlineFlowBox* curr = firstLineBox(); curr; curr = curr->nextLineBox())
{ | 1431 for (InlineFlowBox* curr = firstLineBox(); curr; curr = curr->nextLineBox())
{ |
(...skipping 145 matching lines...) Loading... |
1577 container = this; | 1577 container = this; |
1578 | 1578 |
1579 FloatPoint absPos = container->localToAbsolute(); | 1579 FloatPoint absPos = container->localToAbsolute(); |
1580 region.bounds.setX(absPos.x() + region.bounds.x()); | 1580 region.bounds.setX(absPos.x() + region.bounds.x()); |
1581 region.bounds.setY(absPos.y() + region.bounds.y()); | 1581 region.bounds.setY(absPos.y() + region.bounds.y()); |
1582 | 1582 |
1583 regions.append(region); | 1583 regions.append(region); |
1584 } | 1584 } |
1585 | 1585 |
1586 } // namespace WebCore | 1586 } // namespace WebCore |
OLD | NEW |