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

Side by Side Diff: third_party/WebKit/Source/core/style/SVGComputedStyle.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 Nikolas Zimmermann <zimmermann@kde.org> 2 Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 2004, 2005, 2010 Rob Buis <buis@kde.org> 3 2004, 2005, 2010 Rob Buis <buis@kde.org>
4 Copyright (C) Research In Motion Limited 2010. All rights reserved. 4 Copyright (C) Research In Motion Limited 2010. All rights reserved.
5 5
6 Based on khtml code by: 6 Based on khtml code by:
7 Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) 7 Copyright (C) 1999 Antti Koivisto (koivisto@kde.org)
8 Copyright (C) 1999-2003 Lars Knoll (knoll@kde.org) 8 Copyright (C) 1999-2003 Lars Knoll (knoll@kde.org)
9 Copyright (C) 2002-2003 Dirk Mueller (mueller@kde.org) 9 Copyright (C) 2002-2003 Dirk Mueller (mueller@kde.org)
10 Copyright (C) 2002 Apple Computer, Inc. 10 Copyright (C) 2002 Apple Computer, Inc.
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 } else if (diffNeedsPaintInvalidation(other)) { 123 } else if (diffNeedsPaintInvalidation(other)) {
124 styleDifference.setNeedsPaintInvalidationObject(); 124 styleDifference.setNeedsPaintInvalidationObject();
125 } 125 }
126 126
127 return styleDifference; 127 return styleDifference;
128 } 128 }
129 129
130 bool SVGComputedStyle::diffNeedsLayoutAndPaintInvalidation( 130 bool SVGComputedStyle::diffNeedsLayoutAndPaintInvalidation(
131 const SVGComputedStyle* other) const { 131 const SVGComputedStyle* other) const {
132 // If resources change, we need a relayout, as the presence of resources 132 // If resources change, we need a relayout, as the presence of resources
133 // influences the paint invalidation rect. 133 // influences the visual rect.
134 if (resources != other->resources) 134 if (resources != other->resources)
135 return true; 135 return true;
136 136
137 // If markers change, we need a relayout, as marker boundaries are cached in 137 // If markers change, we need a relayout, as marker boundaries are cached in
138 // LayoutSVGPath. 138 // LayoutSVGPath.
139 if (inheritedResources != other->inheritedResources) 139 if (inheritedResources != other->inheritedResources)
140 return true; 140 return true;
141 141
142 // All text related properties influence layout. 142 // All text related properties influence layout.
143 if (svg_inherited_flags.textAnchor != other->svg_inherited_flags.textAnchor || 143 if (svg_inherited_flags.textAnchor != other->svg_inherited_flags.textAnchor ||
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 pt = paintOrderSequence(PT_MARKERS, PT_STROKE, PT_FILL); 270 pt = paintOrderSequence(PT_MARKERS, PT_STROKE, PT_FILL);
271 break; 271 break;
272 } 272 }
273 273
274 pt = 274 pt =
275 (pt >> (kPaintOrderBitwidth * index)) & ((1u << kPaintOrderBitwidth) - 1); 275 (pt >> (kPaintOrderBitwidth * index)) & ((1u << kPaintOrderBitwidth) - 1);
276 return (EPaintOrderType)pt; 276 return (EPaintOrderType)pt;
277 } 277 }
278 278
279 } // namespace blink 279 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/TableSectionPainter.cpp ('k') | third_party/WebKit/Source/core/svg/SVGSVGElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698