Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(504)

Side by Side Diff: Source/core/rendering/RenderInline.cpp

Issue 23643003: ImageBuffer-less SVG masking and clipping. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix the Win build. Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/RenderBoxModelObject.cpp ('k') | Source/core/rendering/RenderLayer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderBoxModelObject.cpp ('k') | Source/core/rendering/RenderLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698