| Index: Source/core/svg/SVGLengthContext.cpp
|
| diff --git a/Source/core/svg/SVGLengthContext.cpp b/Source/core/svg/SVGLengthContext.cpp
|
| index 0f4b7bee928b13745646bb2f76681146a8d0e94c..73b96e9f821d735c57afe46e0c598fa1150b2ad6 100644
|
| --- a/Source/core/svg/SVGLengthContext.cpp
|
| +++ b/Source/core/svg/SVGLengthContext.cpp
|
| @@ -217,11 +217,11 @@ static inline RenderStyle* renderStyleForLengthResolving(const SVGElement* conte
|
| return 0;
|
|
|
| const ContainerNode* currentContext = context;
|
| - while (currentContext) {
|
| + do {
|
| if (currentContext->renderer())
|
| return currentContext->renderer()->style();
|
| currentContext = currentContext->parentNode();
|
| - }
|
| + } while (currentContext);
|
|
|
| // There must be at least a RenderSVGRoot renderer, carrying a style.
|
| ASSERT_NOT_REACHED();
|
|
|