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

Side by Side Diff: Source/core/layout/svg/SVGLayoutSupport.h

Issue 1162383003: C++11: Replace 0 with nullptr where applicable in layout code. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add one more file. Created 5 years, 6 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
OLDNEW
1 /** 1 /**
2 * Copyright (C) 2007 Rob Buis <buis@kde.org> 2 * Copyright (C) 2007 Rob Buis <buis@kde.org>
3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org>
4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2009 Google, Inc. All rights reserved. 5 * Copyright (C) 2009 Google, Inc. All rights reserved.
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 // Transform |pointInParent| to |object|'s user-space and check if it is 67 // Transform |pointInParent| to |object|'s user-space and check if it is
68 // within the clipping area. Returns false if the transform is singular or 68 // within the clipping area. Returns false if the transform is singular or
69 // the point is outside the clipping area. 69 // the point is outside the clipping area.
70 static bool transformToUserSpaceAndCheckClipping(LayoutObject*, const Affine Transform& localTransform, const FloatPoint& pointInParent, FloatPoint& localPoi nt); 70 static bool transformToUserSpaceAndCheckClipping(LayoutObject*, const Affine Transform& localTransform, const FloatPoint& pointInParent, FloatPoint& localPoi nt);
71 71
72 static void computeContainerBoundingBoxes(const LayoutObject* container, Flo atRect& objectBoundingBox, bool& objectBoundingBoxValid, FloatRect& strokeBoundi ngBox, FloatRect& paintInvalidationBoundingBox); 72 static void computeContainerBoundingBoxes(const LayoutObject* container, Flo atRect& objectBoundingBox, bool& objectBoundingBoxValid, FloatRect& strokeBoundi ngBox, FloatRect& paintInvalidationBoundingBox);
73 73
74 // Important functions used by nearly all SVG layoutObjects centralizing coo rdinate transformations / paint invalidation rect calculations 74 // Important functions used by nearly all SVG layoutObjects centralizing coo rdinate transformations / paint invalidation rect calculations
75 static LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutObject &, const LayoutBoxModelObject* paintInvalidationContainer, const PaintInvalidati onState*); 75 static LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutObject &, const LayoutBoxModelObject* paintInvalidationContainer, const PaintInvalidati onState*);
76 static const LayoutSVGRoot& mapRectToSVGRootForPaintInvalidation(const Layou tObject&, const FloatRect& localPaintInvalidationRect, LayoutRect&); 76 static const LayoutSVGRoot& mapRectToSVGRootForPaintInvalidation(const Layou tObject&, const FloatRect& localPaintInvalidationRect, LayoutRect&);
77 static void mapLocalToContainer(const LayoutObject*, const LayoutBoxModelObj ect* paintInvalidationContainer, TransformState&, bool* wasFixed = 0, const Pain tInvalidationState* = 0); 77 static void mapLocalToContainer(const LayoutObject*, const LayoutBoxModelObj ect* paintInvalidationContainer, TransformState&, bool* wasFixed = nullptr, cons t PaintInvalidationState* = nullptr);
78 static const LayoutObject* pushMappingToContainer(const LayoutObject*, const LayoutBoxModelObject* ancestorToStopAt, LayoutGeometryMap&); 78 static const LayoutObject* pushMappingToContainer(const LayoutObject*, const LayoutBoxModelObject* ancestorToStopAt, LayoutGeometryMap&);
79 79
80 // Shared between SVG layoutObjects and resources. 80 // Shared between SVG layoutObjects and resources.
81 static void applyStrokeStyleToStrokeData(StrokeData&, const ComputedStyle&, const LayoutObject&); 81 static void applyStrokeStyleToStrokeData(StrokeData&, const ComputedStyle&, const LayoutObject&);
82 82
83 static DashArray resolveSVGDashArray(const SVGDashArray&, const ComputedStyl e&, const SVGLengthContext&); 83 static DashArray resolveSVGDashArray(const SVGDashArray&, const ComputedStyl e&, const SVGLengthContext&);
84 84
85 // Determines if any ancestor's transform has changed. 85 // Determines if any ancestor's transform has changed.
86 static bool transformToRootChanged(LayoutObject*); 86 static bool transformToRootChanged(LayoutObject*);
87 87
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 return true; 124 return true;
125 if (child->hasNonIsolatedBlendingDescendants() && !willIsolateBlendingDe scendantsForObject(child)) 125 if (child->hasNonIsolatedBlendingDescendants() && !willIsolateBlendingDe scendantsForObject(child))
126 return true; 126 return true;
127 } 127 }
128 return false; 128 return false;
129 } 129 }
130 130
131 } // namespace blink 131 } // namespace blink
132 132
133 #endif // SVGLayoutSupport_h 133 #endif // SVGLayoutSupport_h
OLDNEW
« no previous file with comments | « Source/core/layout/svg/ReferenceFilterBuilder.cpp ('k') | Source/core/layout/svg/SVGMarkerData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698