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 1373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1384 } | 1384 } |
1385 } | 1385 } |
1386 | 1386 |
1387 void RenderInline::paintOutline(PaintInfo& paintInfo, const LayoutPoint& paintOf
fset) | 1387 void RenderInline::paintOutline(PaintInfo& paintInfo, const LayoutPoint& paintOf
fset) |
1388 { | 1388 { |
1389 if (!hasOutline()) | 1389 if (!hasOutline()) |
1390 return; | 1390 return; |
1391 | 1391 |
1392 RenderStyle* styleToUse = style(); | 1392 RenderStyle* styleToUse = style(); |
1393 if (styleToUse->outlineStyleIsAuto() || hasOutlineAnnotation()) { | 1393 if (styleToUse->outlineStyleIsAuto() || hasOutlineAnnotation()) { |
1394 if (!theme()->supportsFocusRing(styleToUse)) { | 1394 if (theme()->shouldDrawDefaultFocusRing(this)) { |
1395 // Only paint the focus ring by hand if the theme isn't able to draw
the focus ring. | 1395 // Only paint the focus ring by hand if the theme isn't able to draw
the focus ring. |
1396 paintFocusRing(paintInfo, paintOffset, styleToUse); | 1396 paintFocusRing(paintInfo, paintOffset, styleToUse); |
1397 } | 1397 } |
1398 } | 1398 } |
1399 | 1399 |
1400 GraphicsContext* graphicsContext = paintInfo.context; | 1400 GraphicsContext* graphicsContext = paintInfo.context; |
1401 if (graphicsContext->paintingDisabled()) | 1401 if (graphicsContext->paintingDisabled()) |
1402 return; | 1402 return; |
1403 | 1403 |
1404 if (styleToUse->outlineStyleIsAuto() || styleToUse->outlineStyle() == BNONE) | 1404 if (styleToUse->outlineStyleIsAuto() || styleToUse->outlineStyle() == BNONE) |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1564 | 1564 |
1565 void RenderInline::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const | 1565 void RenderInline::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const |
1566 { | 1566 { |
1567 MemoryClassInfo info(memoryObjectInfo, this, PlatformMemoryTypes::Rendering)
; | 1567 MemoryClassInfo info(memoryObjectInfo, this, PlatformMemoryTypes::Rendering)
; |
1568 RenderBoxModelObject::reportMemoryUsage(memoryObjectInfo); | 1568 RenderBoxModelObject::reportMemoryUsage(memoryObjectInfo); |
1569 info.addMember(m_children, "children"); | 1569 info.addMember(m_children, "children"); |
1570 info.addMember(m_lineBoxes, "lineBoxes"); | 1570 info.addMember(m_lineBoxes, "lineBoxes"); |
1571 } | 1571 } |
1572 | 1572 |
1573 } // namespace WebCore | 1573 } // namespace WebCore |
OLD | NEW |