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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.cpp

Issue 2385123003: Rewrap comments to 80 columns in Source/platform/graphics/paint/. (Closed)
Patch Set: Resync Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.cpp b/third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.cpp
index 14f9f54e6618573fe27aea02bc5d5b908d93d81a..6ef4910a0b91a8d110eb98a68fd8016af531771c 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.cpp
@@ -43,8 +43,9 @@ FloatRect GeometryMapper::slowMapToVisualRectInDestinationSpace(
sourceState.transform(), destinationState.transform());
DCHECK(lcaTransform);
- // Assume that the clip of destinationState is an ancestor of the clip of sourceState
- // and is under the space of lcaTransform. Otherwise localToAncestorClipRect() will fail.
+ // Assume that the clip of destinationState is an ancestor of the clip of
+ // sourceState and is under the space of lcaTransform. Otherwise
+ // localToAncestorClipRect() will fail.
PropertyTreeState lcaState = destinationState;
lcaState.setTransform(lcaTransform);
@@ -163,8 +164,8 @@ FloatRect GeometryMapper::localToAncestorClipRect(
FloatRect clip(LayoutRect::infiniteIntRect());
bool found = false;
- // Iterate over the path from localState.clip to ancestorState.clip. Stop if we've found a memoized (precomputed) clip
- // for any particular node.
+ // Iterate over the path from localState.clip to ancestorState.clip. Stop if
+ // we've found a memoized (precomputed) clip for any particular node.
while (clipNode) {
auto it = precomputedData.toAncestorClipRects.find(clipNode);
if (it != precomputedData.toAncestorClipRects.end()) {
@@ -184,7 +185,8 @@ FloatRect GeometryMapper::localToAncestorClipRect(
return clip;
}
- // Iterate down from the top intermediate node found in the previous loop, computing and memoizing clip rects as we go.
+ // Iterate down from the top intermediate node found in the previous loop,
+ // computing and memoizing clip rects as we go.
for (auto it = intermediateNodes.rbegin(); it != intermediateNodes.rend();
++it) {
if ((*it) != ancestorState.clip()) {
@@ -216,8 +218,9 @@ const TransformationMatrix& GeometryMapper::localToAncestorMatrix(
TransformationMatrix transformMatrix;
bool found = false;
- // Iterate over the path from localTransformNode to ancestorState.transform. Stop if we've found a memoized (precomputed) transform
- // for any particular node.
+ // Iterate over the path from localTransformNode to ancestorState.transform.
+ // Stop if we've found a memoized (precomputed) transform for any particular
+ // node.
while (transformNode) {
auto it = precomputedData.toAncestorTransforms.find(transformNode);
if (it != precomputedData.toAncestorTransforms.end()) {
@@ -238,7 +241,8 @@ const TransformationMatrix& GeometryMapper::localToAncestorMatrix(
return m_identity;
}
- // Iterate down from the top intermediate node found in the previous loop, computing and memoizing transforms as we go.
+ // Iterate down from the top intermediate node found in the previous loop,
+ // computing and memoizing transforms as we go.
for (auto it = intermediateNodes.rbegin(); it != intermediateNodes.rend();
it++) {
if ((*it) != ancestorState.transform()) {

Powered by Google App Engine
This is Rietveld 408576698