diff options
Diffstat (limited to 'WebCore/svg/SVGZoomAndPan.cpp')
-rw-r--r-- | WebCore/svg/SVGZoomAndPan.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/WebCore/svg/SVGZoomAndPan.cpp b/WebCore/svg/SVGZoomAndPan.cpp index 93ab3ad..36d4a60 100644 --- a/WebCore/svg/SVGZoomAndPan.cpp +++ b/WebCore/svg/SVGZoomAndPan.cpp @@ -56,9 +56,9 @@ static const UChar magnify[] = {'m', 'a', 'g', 'n', 'i', 'f', 'y'}; bool SVGZoomAndPan::parseZoomAndPan(const UChar*& start, const UChar* end) { - if (skipString(start, end, disable, sizeof(disable) / sizeof(UChar))) + if (skipString(start, end, disable, WTF_ARRAY_LENGTH(disable))) setZoomAndPan(SVG_ZOOMANDPAN_DISABLE); - else if (skipString(start, end, magnify, sizeof(magnify) / sizeof(UChar))) + else if (skipString(start, end, magnify, WTF_ARRAY_LENGTH(magnify))) setZoomAndPan(SVG_ZOOMANDPAN_MAGNIFY); else return false; |