Title: [104734] trunk/Source/WebCore
Revision
104734
Author
[email protected]
Date
2012-01-11 12:41:59 -0800 (Wed, 11 Jan 2012)

Log Message

[Coverity] Address some uninit constructor issues in WebCore/dom
https://bugs.webkit.org/show_bug.cgi?id=74977

Patch by Greg Billock <[email protected]> on 2012-01-11
Reviewed by Ryosuke Niwa.

* css/SelectorChecker.h:
(WebCore::SelectorChecker::ParentStackFrame::ParentStackFrame):
* dom/DeviceMotionData.cpp:
(WebCore::DeviceMotionData::DeviceMotionData):
* dom/DeviceOrientation.cpp:
(WebCore::DeviceOrientation::DeviceOrientation):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (104733 => 104734)


--- trunk/Source/WebCore/ChangeLog	2012-01-11 20:38:36 UTC (rev 104733)
+++ trunk/Source/WebCore/ChangeLog	2012-01-11 20:41:59 UTC (rev 104734)
@@ -1,3 +1,17 @@
+2012-01-11  Greg Billock  <[email protected]>
+
+        [Coverity] Address some uninit constructor issues in WebCore/dom
+        https://bugs.webkit.org/show_bug.cgi?id=74977
+
+        Reviewed by Ryosuke Niwa.
+
+        * css/SelectorChecker.h:
+        (WebCore::SelectorChecker::ParentStackFrame::ParentStackFrame):
+        * dom/DeviceMotionData.cpp:
+        (WebCore::DeviceMotionData::DeviceMotionData):
+        * dom/DeviceOrientation.cpp:
+        (WebCore::DeviceOrientation::DeviceOrientation):
+
 2012-01-11  Kenneth Russell  <[email protected]>
 
         [chromium] Color profiles are incorrect for images without premultiplied alpha

Modified: trunk/Source/WebCore/css/SelectorChecker.h (104733 => 104734)


--- trunk/Source/WebCore/css/SelectorChecker.h	2012-01-11 20:38:36 UTC (rev 104733)
+++ trunk/Source/WebCore/css/SelectorChecker.h	2012-01-11 20:41:59 UTC (rev 104734)
@@ -115,7 +115,7 @@
     mutable HashSet<LinkHash, LinkHashHash> m_linksCheckedForVisitedState;
 
     struct ParentStackFrame {
-        ParentStackFrame() { }
+        ParentStackFrame() : element(0) { }
         ParentStackFrame(Element* element) : element(element) { }
         Element* element;
         Vector<unsigned, 4> identifierHashes;

Modified: trunk/Source/WebCore/dom/DeviceMotionData.cpp (104733 => 104734)


--- trunk/Source/WebCore/dom/DeviceMotionData.cpp	2012-01-11 20:38:36 UTC (rev 104733)
+++ trunk/Source/WebCore/dom/DeviceMotionData.cpp	2012-01-11 20:41:59 UTC (rev 104734)
@@ -76,6 +76,7 @@
 
 DeviceMotionData::DeviceMotionData()
     : m_canProvideInterval(false)
+    , m_interval(0)
 {
 }
 

Modified: trunk/Source/WebCore/dom/DeviceOrientation.cpp (104733 => 104734)


--- trunk/Source/WebCore/dom/DeviceOrientation.cpp	2012-01-11 20:38:36 UTC (rev 104733)
+++ trunk/Source/WebCore/dom/DeviceOrientation.cpp	2012-01-11 20:41:59 UTC (rev 104734)
@@ -43,6 +43,9 @@
     : m_canProvideAlpha(false)
     , m_canProvideBeta(false)
     , m_canProvideGamma(false)
+    , m_alpha(0)
+    , m_beta(0)
+    , m_gamma(0)
 {
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to