From 8d473cf9743f1d30a16a27114e93bd5af5648d23 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Fri, 18 May 2012 14:03:11 +0200 Subject: Imported WebKit commit 1350e72f7345ced9da2bd9980deeeb5a8d62fab4 (http://svn.webkit.org/repository/webkit/trunk@117578) Weekly snapshot --- Source/WebCore/rendering/RenderTextControl.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Source/WebCore/rendering/RenderTextControl.cpp') diff --git a/Source/WebCore/rendering/RenderTextControl.cpp b/Source/WebCore/rendering/RenderTextControl.cpp index ddc647570..8b138352e 100644 --- a/Source/WebCore/rendering/RenderTextControl.cpp +++ b/Source/WebCore/rendering/RenderTextControl.cpp @@ -208,6 +208,9 @@ bool RenderTextControl::hasValidAvgCharWidth(AtomicString family) { static HashSet* fontFamiliesWithInvalidCharWidthMap = 0; + if (family.isEmpty()) + return false; + if (!fontFamiliesWithInvalidCharWidthMap) { fontFamiliesWithInvalidCharWidthMap = new HashSet; -- cgit v1.2.1