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 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) | 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv
ed. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv
ed. |
7 * Copyright (C) 2009 Google Inc. All rights reserved. | 7 * Copyright (C) 2009 Google Inc. All rights reserved. |
8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
9 * | 9 * |
10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
(...skipping 1136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1147 { | 1147 { |
1148 if (!hasOutline()) | 1148 if (!hasOutline()) |
1149 return; | 1149 return; |
1150 | 1150 |
1151 RenderStyle* styleToUse = style(); | 1151 RenderStyle* styleToUse = style(); |
1152 LayoutUnit outlineWidth = styleToUse->outlineWidth(); | 1152 LayoutUnit outlineWidth = styleToUse->outlineWidth(); |
1153 | 1153 |
1154 int outlineOffset = styleToUse->outlineOffset(); | 1154 int outlineOffset = styleToUse->outlineOffset(); |
1155 | 1155 |
1156 if (styleToUse->outlineStyleIsAuto() || hasOutlineAnnotation()) { | 1156 if (styleToUse->outlineStyleIsAuto() || hasOutlineAnnotation()) { |
1157 if (!theme()->supportsFocusRing(styleToUse)) { | 1157 if (theme()->shouldDrawDefaultFocusRing(this)) { |
1158 // Only paint the focus ring by hand if the theme isn't able to draw
the focus ring. | 1158 // Only paint the focus ring by hand if the theme isn't able to draw
the focus ring. |
1159 paintFocusRing(paintInfo, paintRect.location(), styleToUse); | 1159 paintFocusRing(paintInfo, paintRect.location(), styleToUse); |
1160 } | 1160 } |
1161 } | 1161 } |
1162 | 1162 |
1163 if (styleToUse->outlineStyleIsAuto() || styleToUse->outlineStyle() == BNONE) | 1163 if (styleToUse->outlineStyleIsAuto() || styleToUse->outlineStyle() == BNONE) |
1164 return; | 1164 return; |
1165 | 1165 |
1166 IntRect inner = pixelSnappedIntRect(paintRect); | 1166 IntRect inner = pixelSnappedIntRect(paintRect); |
1167 inner.inflate(outlineOffset); | 1167 inner.inflate(outlineOffset); |
(...skipping 2023 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3191 { | 3191 { |
3192 if (object1) { | 3192 if (object1) { |
3193 const WebCore::RenderObject* root = object1; | 3193 const WebCore::RenderObject* root = object1; |
3194 while (root->parent()) | 3194 while (root->parent()) |
3195 root = root->parent(); | 3195 root = root->parent(); |
3196 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); | 3196 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); |
3197 } | 3197 } |
3198 } | 3198 } |
3199 | 3199 |
3200 #endif | 3200 #endif |
OLD | NEW |