2011-03-15 Chris Mumford <chris.mumford@palm.com>

        Reviewed by Adam Barth.

        Initializing several member variables that were not initialized in
        their constructors. These values were all read prior to initialization
        as reported by Valgrind.

        No new tests: No feature additions/removals.

        * accessibility/AccessibilityImageMapLink.cpp:
        (WebCore::AccessibilityImageMapLink::AccessibilityImageMapLink):
        * editing/DeleteSelectionCommand.cpp:
        (WebCore::DeleteSelectionCommand::DeleteSelectionCommand):
        * html/HTMLCanvasElement.cpp:
        (WebCore::HTMLCanvasElement::HTMLCanvasElement):
        * xml/XPathResult.cpp:
        (WebCore::XPathResult::XPathResult):

git-svn-id: svn://svn.chromium.org/blink/trunk@81128 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 51a84ad4
2011-03-15 Chris Mumford <chris.mumford@palm.com>
Reviewed by Adam Barth.
Initializing several member variables that were not initialized in
their constructors. These values were all read prior to initialization
as reported by Valgrind.
No new tests: No feature additions/removals.
* accessibility/AccessibilityImageMapLink.cpp:
(WebCore::AccessibilityImageMapLink::AccessibilityImageMapLink):
* editing/DeleteSelectionCommand.cpp:
(WebCore::DeleteSelectionCommand::DeleteSelectionCommand):
* html/HTMLCanvasElement.cpp:
(WebCore::HTMLCanvasElement::HTMLCanvasElement):
* xml/XPathResult.cpp:
(WebCore::XPathResult::XPathResult):
2011-03-15 Ben Taylor <bentaylor.solx86@gmail.com> 2011-03-15 Ben Taylor <bentaylor.solx86@gmail.com>
Reviewed by Adam Barth. Reviewed by Adam Barth.
......
...@@ -42,6 +42,7 @@ using namespace HTMLNames; ...@@ -42,6 +42,7 @@ using namespace HTMLNames;
AccessibilityImageMapLink::AccessibilityImageMapLink() AccessibilityImageMapLink::AccessibilityImageMapLink()
: m_areaElement(0) : m_areaElement(0)
, m_mapElement(0) , m_mapElement(0)
, m_parent(0)
{ {
} }
......
...@@ -72,6 +72,7 @@ DeleteSelectionCommand::DeleteSelectionCommand(Document *document, bool smartDel ...@@ -72,6 +72,7 @@ DeleteSelectionCommand::DeleteSelectionCommand(Document *document, bool smartDel
m_hasSelectionToDelete(false), m_hasSelectionToDelete(false),
m_smartDelete(smartDelete), m_smartDelete(smartDelete),
m_mergeBlocksAfterDelete(mergeBlocksAfterDelete), m_mergeBlocksAfterDelete(mergeBlocksAfterDelete),
m_needPlaceholder(false),
m_replace(replace), m_replace(replace),
m_expandForSpecialElements(expandForSpecialElements), m_expandForSpecialElements(expandForSpecialElements),
m_pruneStartBlockIfNecessary(false), m_pruneStartBlockIfNecessary(false),
...@@ -88,6 +89,7 @@ DeleteSelectionCommand::DeleteSelectionCommand(const VisibleSelection& selection ...@@ -88,6 +89,7 @@ DeleteSelectionCommand::DeleteSelectionCommand(const VisibleSelection& selection
m_hasSelectionToDelete(true), m_hasSelectionToDelete(true),
m_smartDelete(smartDelete), m_smartDelete(smartDelete),
m_mergeBlocksAfterDelete(mergeBlocksAfterDelete), m_mergeBlocksAfterDelete(mergeBlocksAfterDelete),
m_needPlaceholder(false),
m_replace(replace), m_replace(replace),
m_expandForSpecialElements(expandForSpecialElements), m_expandForSpecialElements(expandForSpecialElements),
m_pruneStartBlockIfNecessary(false), m_pruneStartBlockIfNecessary(false),
......
...@@ -76,6 +76,7 @@ static const float MaxSkiaDim = 32767.0F; // Maximum width/height in CSS pixels. ...@@ -76,6 +76,7 @@ static const float MaxSkiaDim = 32767.0F; // Maximum width/height in CSS pixels.
HTMLCanvasElement::HTMLCanvasElement(const QualifiedName& tagName, Document* document) HTMLCanvasElement::HTMLCanvasElement(const QualifiedName& tagName, Document* document)
: HTMLElement(tagName, document) : HTMLElement(tagName, document)
, m_size(DefaultWidth, DefaultHeight) , m_size(DefaultWidth, DefaultHeight)
, m_rendererIsCanvas(false)
, m_ignoreReset(false) , m_ignoreReset(false)
, m_pageScaleFactor(document->frame() ? document->frame()->page()->chrome()->scaleFactor() : 1) , m_pageScaleFactor(document->frame() ? document->frame()->page()->chrome()->scaleFactor() : 1)
, m_originClean(true) , m_originClean(true)
......
...@@ -41,6 +41,8 @@ using namespace XPath; ...@@ -41,6 +41,8 @@ using namespace XPath;
XPathResult::XPathResult(Document* document, const Value& value) XPathResult::XPathResult(Document* document, const Value& value)
: m_value(value) : m_value(value)
, m_nodeSetPosition(0)
, m_domTreeVersion(0)
{ {
switch (m_value.type()) { switch (m_value.type()) {
case Value::BooleanValue: case Value::BooleanValue:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment