| 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 1429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1440 bool useTransparencyLayer = outlineColor.hasAlpha(); | 1440 bool useTransparencyLayer = outlineColor.hasAlpha(); |
| 1441 if (useTransparencyLayer) { | 1441 if (useTransparencyLayer) { |
| 1442 graphicsContext->beginTransparencyLayer(static_cast<float>(outlineColor.
alpha()) / 255); | 1442 graphicsContext->beginTransparencyLayer(static_cast<float>(outlineColor.
alpha()) / 255); |
| 1443 outlineColor = Color(outlineColor.red(), outlineColor.green(), outlineCo
lor.blue()); | 1443 outlineColor = Color(outlineColor.red(), outlineColor.green(), outlineCo
lor.blue()); |
| 1444 } | 1444 } |
| 1445 | 1445 |
| 1446 for (unsigned i = 1; i < rects.size() - 1; i++) | 1446 for (unsigned i = 1; i < rects.size() - 1; i++) |
| 1447 paintOutlineForLine(graphicsContext, paintOffset, rects.at(i - 1), rects
.at(i), rects.at(i + 1), outlineColor); | 1447 paintOutlineForLine(graphicsContext, paintOffset, rects.at(i - 1), rects
.at(i), rects.at(i + 1), outlineColor); |
| 1448 | 1448 |
| 1449 if (useTransparencyLayer) | 1449 if (useTransparencyLayer) |
| 1450 graphicsContext->endTransparencyLayer(); | 1450 graphicsContext->endLayer(); |
| 1451 } | 1451 } |
| 1452 | 1452 |
| 1453 void RenderInline::paintOutlineForLine(GraphicsContext* graphicsContext, const L
ayoutPoint& paintOffset, | 1453 void RenderInline::paintOutlineForLine(GraphicsContext* graphicsContext, const L
ayoutPoint& paintOffset, |
| 1454 const LayoutRect& lastline, const LayoutR
ect& thisline, const LayoutRect& nextline, | 1454 const LayoutRect& lastline, const LayoutR
ect& thisline, const LayoutRect& nextline, |
| 1455 const Color outlineColor) | 1455 const Color outlineColor) |
| 1456 { | 1456 { |
| 1457 RenderStyle* styleToUse = style(); | 1457 RenderStyle* styleToUse = style(); |
| 1458 int outlineWidth = styleToUse->outlineWidth(); | 1458 int outlineWidth = styleToUse->outlineWidth(); |
| 1459 EBorderStyle outlineStyle = styleToUse->outlineStyle(); | 1459 EBorderStyle outlineStyle = styleToUse->outlineStyle(); |
| 1460 | 1460 |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after 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 |