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

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/SVGLayoutTreeAsText.cpp

Issue 2465983002: Rename "paint invalidation rect" etc. to "visual rect". (Closed)
Patch Set: - Created 4 years, 1 month 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
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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 writeIfNotDefault(ts, "clip rule", svgStyle.clipRule(), RULE_NONZERO); 320 writeIfNotDefault(ts, "clip rule", svgStyle.clipRule(), RULE_NONZERO);
321 } 321 }
322 322
323 writeIfNotEmpty(ts, "start marker", svgStyle.markerStartResource()); 323 writeIfNotEmpty(ts, "start marker", svgStyle.markerStartResource());
324 writeIfNotEmpty(ts, "middle marker", svgStyle.markerMidResource()); 324 writeIfNotEmpty(ts, "middle marker", svgStyle.markerMidResource());
325 writeIfNotEmpty(ts, "end marker", svgStyle.markerEndResource()); 325 writeIfNotEmpty(ts, "end marker", svgStyle.markerEndResource());
326 } 326 }
327 327
328 static TextStream& writePositionAndStyle(TextStream& ts, 328 static TextStream& writePositionAndStyle(TextStream& ts,
329 const LayoutObject& object) { 329 const LayoutObject& object) {
330 ts << " " 330 ts << " " << enclosingIntRect(
331 << enclosingIntRect( 331 const_cast<LayoutObject&>(object).absoluteVisualRect());
332 const_cast<LayoutObject&>(object).absoluteClippedOverflowRect());
333 writeStyle(ts, object); 332 writeStyle(ts, object);
334 return ts; 333 return ts;
335 } 334 }
336 335
337 static TextStream& operator<<(TextStream& ts, const LayoutSVGShape& shape) { 336 static TextStream& operator<<(TextStream& ts, const LayoutSVGShape& shape) {
338 writePositionAndStyle(ts, shape); 337 writePositionAndStyle(ts, shape);
339 338
340 SVGElement* svgElement = shape.element(); 339 SVGElement* svgElement = shape.element();
341 ASSERT(svgElement); 340 ASSERT(svgElement);
342 SVGLengthContext lengthContext(svgElement); 341 SVGLengthContext lengthContext(svgElement);
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
756 ts << " "; 755 ts << " ";
757 writeStandardPrefix(ts, *filter, 0); 756 writeStandardPrefix(ts, *filter, 0);
758 ts << " " << filter->resourceBoundingBox(&object) << "\n"; 757 ts << " " << filter->resourceBoundingBox(&object) << "\n";
759 } 758 }
760 } 759 }
761 } 760 }
762 } 761 }
763 } 762 }
764 763
765 } // namespace blink 764 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698