Removing the unused member variable m_wasMalformed from HTMLFormElement class and...
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 5 Oct 2012 04:59:49 +0000 (04:59 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 5 Oct 2012 04:59:49 +0000 (04:59 +0000)
commit5e5cc5210b530c73925c5ec1c417b9d974f435bd
tree33a8e1655b8a9236ef9e5805438c1339bd58bdad
parent52bcf3b5fe04cc94a39549149238f8b11f6fbd02
Removing the unused member variable m_wasMalformed from HTMLFormElement class and its related code frgment.
https://bugs.webkit.org/show_bug.cgi?id=98444

Patch by Pravin D <pravind.2k4@gmail.com> on 2012-10-04
Reviewed by Eric Seidel.

The member variable m_wasMalformed of HTMLFormElement class was used to determine if the <form> tag was malformed or not.
This information was used elsewhere to decide if bottom margins have to be included for such a <form>.
However currently this member variable is not being set by any code following code refactoring in HTML parser class.

Code cleanup patch. No new tests required.

* html/HTMLFormElement.cpp:
(WebCore::HTMLFormElement::HTMLFormElement):
  Removed m_wasMalformed initialization.

* html/HTMLFormElement.h:
(HTMLFormElement):
 Removed m_wasMalformed variable.
 Removed m_wasMalformed variable's setter and getter functions.

* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::layoutBlock):
 Removed code fragment using/dependent on m_wasMalformed.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@130461 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/html/HTMLFormElement.cpp
Source/WebCore/html/HTMLFormElement.h
Source/WebCore/rendering/RenderBlock.cpp