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

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

Issue 1376523002: Support 'pathLength' for stroking operations on <path> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove double space Created 4 years, 10 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 // Important functions used by nearly all SVG layoutObjects centralizing coo rdinate transformations / paint invalidation rect calculations 77 // Important functions used by nearly all SVG layoutObjects centralizing coo rdinate transformations / paint invalidation rect calculations
78 static LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutObject &, 78 static LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutObject &,
79 const LayoutBoxModelObject* paintInvalidationContainer, const PaintInval idationState*, 79 const LayoutBoxModelObject* paintInvalidationContainer, const PaintInval idationState*,
80 float strokeWidthForHairlinePadding = 0); 80 float strokeWidthForHairlinePadding = 0);
81 static const LayoutSVGRoot& mapRectToSVGRootForPaintInvalidation(const Layou tObject&, 81 static const LayoutSVGRoot& mapRectToSVGRootForPaintInvalidation(const Layou tObject&,
82 const FloatRect& localPaintInvalidationRect, LayoutRect&, float strokeWi dthForHairlinePadding = 0); 82 const FloatRect& localPaintInvalidationRect, LayoutRect&, float strokeWi dthForHairlinePadding = 0);
83 static void mapLocalToAncestor(const LayoutObject*, const LayoutBoxModelObje ct* ancestor, TransformState&, bool* wasFixed = nullptr, const PaintInvalidation State* = nullptr); 83 static void mapLocalToAncestor(const LayoutObject*, const LayoutBoxModelObje ct* ancestor, TransformState&, bool* wasFixed = nullptr, const PaintInvalidation State* = nullptr);
84 static const LayoutObject* pushMappingToContainer(const LayoutObject*, const LayoutBoxModelObject* ancestorToStopAt, LayoutGeometryMap&); 84 static const LayoutObject* pushMappingToContainer(const LayoutObject*, const LayoutBoxModelObject* ancestorToStopAt, LayoutGeometryMap&);
85 85
86 // Shared between SVG layoutObjects and resources. 86 // Shared between SVG layoutObjects and resources.
87 static void applyStrokeStyleToStrokeData(StrokeData&, const ComputedStyle&, const LayoutObject&); 87 static void applyStrokeStyleToStrokeData(StrokeData&, const ComputedStyle&, const LayoutObject&, float dashScaleFactor);
88 88
89 static DashArray resolveSVGDashArray(const SVGDashArray&, const ComputedStyl e&, const SVGLengthContext&); 89 static DashArray resolveSVGDashArray(const SVGDashArray&, const ComputedStyl e&, const SVGLengthContext&);
90 90
91 // Determines if any ancestor's transform has changed. 91 // Determines if any ancestor's transform has changed.
92 static bool transformToRootChanged(LayoutObject*); 92 static bool transformToRootChanged(LayoutObject*);
93 93
94 // FIXME: These methods do not belong here. 94 // FIXME: These methods do not belong here.
95 static const LayoutSVGRoot* findTreeRootObject(const LayoutObject*); 95 static const LayoutSVGRoot* findTreeRootObject(const LayoutObject*);
96 96
97 // Helper method for determining if a LayoutObject marked as text (isText()= = true) 97 // Helper method for determining if a LayoutObject marked as text (isText()= = true)
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 return true; 134 return true;
135 if (child->hasNonIsolatedBlendingDescendants() && !willIsolateBlendingDe scendantsForObject(child)) 135 if (child->hasNonIsolatedBlendingDescendants() && !willIsolateBlendingDe scendantsForObject(child))
136 return true; 136 return true;
137 } 137 }
138 return false; 138 return false;
139 } 139 }
140 140
141 } // namespace blink 141 } // namespace blink
142 142
143 #endif // SVGLayoutSupport_h 143 #endif // SVGLayoutSupport_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698