Unreviewed warning correction. Avoid uninitialized renderer.
authorbfulgham@apple.com <bfulgham@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 16 Sep 2013 16:29:31 +0000 (16:29 +0000)
committerbfulgham@apple.com <bfulgham@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 16 Sep 2013 16:29:31 +0000 (16:29 +0000)
* css/CSSComputedStyleDeclaration.cpp:
(WebCore::ComputedStyleExtractor::propertyValue): Renderer can be uninitialized.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@155871 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/css/CSSComputedStyleDeclaration.cpp

index 4dba6c8..fd37299 100644 (file)
@@ -1,5 +1,12 @@
 2013-09-16  Brent Fulgham  <bfulgham@apple.com>
 
+        Unreviewed warning correction. Avoid uninitialized renderer.
+
+        * css/CSSComputedStyleDeclaration.cpp:
+        (WebCore::ComputedStyleExtractor::propertyValue): Renderer can be uninitialized.
+
+2013-09-16  Brent Fulgham  <bfulgham@apple.com>
+
         Unreviewed warning correction.
 
         * css/CSSParser.cpp:
index ec99942..cd59edc 100644 (file)
@@ -1708,7 +1708,7 @@ PassRefPtr<CSSValue> ComputedStyleExtractor::propertyValue(CSSPropertyID propert
         return 0;
 
     RefPtr<RenderStyle> style;
-    RenderObject* renderer;
+    RenderObject* renderer = 0;
     bool forceFullLayout = false;
     if (updateLayout) {
         Document& document = styledNode->document();