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

Side by Side Diff: Source/core/rendering/svg/SVGRenderTreeAsText.cpp

Issue 295513003: add 'slow' prefix to RenderObject's firstChild() / lastChild() methods (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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) 2004, 2005, 2007, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2005, 2007, 2009 Apple Inc. All rights reserved.
3 * (C) 2005 Rob Buis <buis@kde.org> 3 * (C) 2005 Rob Buis <buis@kde.org>
4 * (C) 2006 Alexander Kellett <lypanov@kde.org> 4 * (C) 2006 Alexander Kellett <lypanov@kde.org>
5 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 5 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 { 466 {
467 writeIndent(ts, indent); 467 writeIndent(ts, indent);
468 ts << object.renderName(); 468 ts << object.renderName();
469 469
470 if (object.node()) 470 if (object.node())
471 ts << " {" << object.node()->nodeName() << "}"; 471 ts << " {" << object.node()->nodeName() << "}";
472 } 472 }
473 473
474 static void writeChildren(TextStream& ts, const RenderObject& object, int indent ) 474 static void writeChildren(TextStream& ts, const RenderObject& object, int indent )
475 { 475 {
476 for (RenderObject* child = object.firstChild(); child; child = child->nextSi bling()) 476 for (RenderObject* child = object.slowFirstChild(); child; child = child->ne xtSibling())
477 write(ts, *child, indent + 1); 477 write(ts, *child, indent + 1);
478 } 478 }
479 479
480 static inline void writeCommonGradientProperties(TextStream& ts, SVGSpreadMethod Type spreadMethod, const AffineTransform& gradientTransform, SVGUnitTypes::SVGUn itType gradientUnits) 480 static inline void writeCommonGradientProperties(TextStream& ts, SVGSpreadMethod Type spreadMethod, const AffineTransform& gradientTransform, SVGUnitTypes::SVGUn itType gradientUnits)
481 { 481 {
482 writeNameValuePair(ts, "gradientUnits", gradientUnits); 482 writeNameValuePair(ts, "gradientUnits", gradientUnits);
483 483
484 if (spreadMethod != SVGSpreadMethodPad) 484 if (spreadMethod != SVGSpreadMethodPad)
485 ts << " [spreadMethod=" << spreadMethod << "]"; 485 ts << " [spreadMethod=" << spreadMethod << "]";
486 486
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 ts << " "; 673 ts << " ";
674 writeNameAndQuotedValue(ts, "filter", svgStyle->filterResource()); 674 writeNameAndQuotedValue(ts, "filter", svgStyle->filterResource());
675 ts << " "; 675 ts << " ";
676 writeStandardPrefix(ts, *filter, 0); 676 writeStandardPrefix(ts, *filter, 0);
677 ts << " " << filter->resourceBoundingBox(&renderer) << "\n"; 677 ts << " " << filter->resourceBoundingBox(&renderer) << "\n";
678 } 678 }
679 } 679 }
680 } 680 }
681 681
682 } // namespace WebCore 682 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/SVGRenderSupport.cpp ('k') | Source/core/rendering/svg/SVGResourcesCycleSolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698