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

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

Issue 23643003: ImageBuffer-less SVG masking and clipping. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated per review comments. 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
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 * (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 1204 matching lines...) Expand 10 before | Expand all | Expand 10 after
1215 int topInner = inner.y(); 1215 int topInner = inner.y();
1216 int bottomOuter = outer.maxY(); 1216 int bottomOuter = outer.maxY();
1217 int bottomInner = inner.maxY(); 1217 int bottomInner = inner.maxY();
1218 1218
1219 drawLineForBoxSide(graphicsContext, leftOuter, topOuter, leftInner, bottomOu ter, BSLeft, outlineColor, outlineStyle, outlineWidth, outlineWidth); 1219 drawLineForBoxSide(graphicsContext, leftOuter, topOuter, leftInner, bottomOu ter, BSLeft, outlineColor, outlineStyle, outlineWidth, outlineWidth);
1220 drawLineForBoxSide(graphicsContext, leftOuter, topOuter, rightOuter, topInne r, BSTop, outlineColor, outlineStyle, outlineWidth, outlineWidth); 1220 drawLineForBoxSide(graphicsContext, leftOuter, topOuter, rightOuter, topInne r, BSTop, outlineColor, outlineStyle, outlineWidth, outlineWidth);
1221 drawLineForBoxSide(graphicsContext, rightInner, topOuter, rightOuter, bottom Outer, BSRight, outlineColor, outlineStyle, outlineWidth, outlineWidth); 1221 drawLineForBoxSide(graphicsContext, rightInner, topOuter, rightOuter, bottom Outer, BSRight, outlineColor, outlineStyle, outlineWidth, outlineWidth);
1222 drawLineForBoxSide(graphicsContext, leftOuter, bottomInner, rightOuter, bott omOuter, BSBottom, outlineColor, outlineStyle, outlineWidth, outlineWidth); 1222 drawLineForBoxSide(graphicsContext, leftOuter, bottomInner, rightOuter, bott omOuter, BSBottom, outlineColor, outlineStyle, outlineWidth, outlineWidth);
1223 1223
1224 if (useTransparencyLayer) 1224 if (useTransparencyLayer)
1225 graphicsContext->endTransparencyLayer(); 1225 graphicsContext->endLayer();
1226 } 1226 }
1227 1227
1228 IntRect RenderObject::absoluteBoundingBoxRect(bool useTransforms) const 1228 IntRect RenderObject::absoluteBoundingBoxRect(bool useTransforms) const
1229 { 1229 {
1230 if (useTransforms) { 1230 if (useTransforms) {
1231 Vector<FloatQuad> quads; 1231 Vector<FloatQuad> quads;
1232 absoluteQuads(quads); 1232 absoluteQuads(quads);
1233 1233
1234 size_t n = quads.size(); 1234 size_t n = quads.size();
1235 if (!n) 1235 if (!n)
(...skipping 2096 matching lines...) Expand 10 before | Expand all | Expand 10 after
3332 { 3332 {
3333 if (object1) { 3333 if (object1) {
3334 const WebCore::RenderObject* root = object1; 3334 const WebCore::RenderObject* root = object1;
3335 while (root->parent()) 3335 while (root->parent())
3336 root = root->parent(); 3336 root = root->parent();
3337 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); 3337 root->showRenderTreeAndMark(object1, "*", object2, "-", 0);
3338 } 3338 }
3339 } 3339 }
3340 3340
3341 #endif 3341 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698