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

Side by Side Diff: Source/core/rendering/svg/SVGRenderSupport.h

Issue 458833002: [SVG] Skip layout viewport change calculation when not needed. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Test + minor cleanup. Created 6 years, 4 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 | Annotate | Revision Log
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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 // FIXME: These methods do not belong here. 86 // FIXME: These methods do not belong here.
87 static const RenderSVGRoot* findTreeRootObject(const RenderObject*); 87 static const RenderSVGRoot* findTreeRootObject(const RenderObject*);
88 88
89 // Helper method for determining if a RenderObject marked as text (isText()= = true) 89 // Helper method for determining if a RenderObject marked as text (isText()= = true)
90 // can/will be rendered as part of a <text>. 90 // can/will be rendered as part of a <text>.
91 static bool isRenderableTextNode(const RenderObject*); 91 static bool isRenderableTextNode(const RenderObject*);
92 92
93 private: 93 private:
94 static void updateObjectBoundingBox(FloatRect& objectBoundingBox, bool& obje ctBoundingBoxValid, RenderObject* other, FloatRect otherBoundingBox); 94 static void updateObjectBoundingBox(FloatRect& objectBoundingBox, bool& obje ctBoundingBoxValid, RenderObject* other, FloatRect otherBoundingBox);
95 static void invalidateResourcesOfChildren(RenderObject* start);
96 static bool layoutSizeOfNearestViewportChanged(const RenderObject* start); 95 static bool layoutSizeOfNearestViewportChanged(const RenderObject* start);
97 }; 96 };
98 97
99 } // namespace blink 98 } // namespace blink
100 99
101 #endif // SVGRenderSupport_h 100 #endif // SVGRenderSupport_h
OLDNEW
« no previous file with comments | « LayoutTests/svg/custom/viewport-resource-inval-expected.svg ('k') | Source/core/rendering/svg/SVGRenderSupport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698