| 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 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1114 graphicsContext->drawConvexPolygon(4, quad, antialias); | 1114 graphicsContext->drawConvexPolygon(4, quad, antialias); |
| 1115 graphicsContext->setStrokeStyle(oldStrokeStyle); | 1115 graphicsContext->setStrokeStyle(oldStrokeStyle); |
| 1116 break; | 1116 break; |
| 1117 } | 1117 } |
| 1118 } | 1118 } |
| 1119 } | 1119 } |
| 1120 | 1120 |
| 1121 void RenderObject::paintFocusRing(PaintInfo& paintInfo, const LayoutPoint& paint
Offset, RenderStyle* style) | 1121 void RenderObject::paintFocusRing(PaintInfo& paintInfo, const LayoutPoint& paint
Offset, RenderStyle* style) |
| 1122 { | 1122 { |
| 1123 Vector<IntRect> focusRingRects; | 1123 Vector<IntRect> focusRingRects; |
| 1124 addFocusRingRects(focusRingRects, paintOffset, paintInfo.paintContainer); | 1124 addFocusRingRects(focusRingRects, paintOffset, paintInfo.paintContainer()); |
| 1125 if (style->outlineStyleIsAuto()) | 1125 if (style->outlineStyleIsAuto()) |
| 1126 paintInfo.context->drawFocusRing(focusRingRects, style->outlineWidth(),
style->outlineOffset(), resolveColor(style, CSSPropertyOutlineColor)); | 1126 paintInfo.context->drawFocusRing(focusRingRects, style->outlineWidth(),
style->outlineOffset(), resolveColor(style, CSSPropertyOutlineColor)); |
| 1127 else | 1127 else |
| 1128 addPDFURLRect(paintInfo.context, unionRect(focusRingRects)); | 1128 addPDFURLRect(paintInfo.context, unionRect(focusRingRects)); |
| 1129 } | 1129 } |
| 1130 | 1130 |
| 1131 void RenderObject::addPDFURLRect(GraphicsContext* context, const LayoutRect& rec
t) | 1131 void RenderObject::addPDFURLRect(GraphicsContext* context, const LayoutRect& rec
t) |
| 1132 { | 1132 { |
| 1133 if (rect.isEmpty()) | 1133 if (rect.isEmpty()) |
| 1134 return; | 1134 return; |
| (...skipping 2178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3313 { | 3313 { |
| 3314 if (object1) { | 3314 if (object1) { |
| 3315 const WebCore::RenderObject* root = object1; | 3315 const WebCore::RenderObject* root = object1; |
| 3316 while (root->parent()) | 3316 while (root->parent()) |
| 3317 root = root->parent(); | 3317 root = root->parent(); |
| 3318 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); | 3318 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); |
| 3319 } | 3319 } |
| 3320 } | 3320 } |
| 3321 | 3321 |
| 3322 #endif | 3322 #endif |
| OLD | NEW |