So scary. But I need to fix a crasher in HTMLTokenizer... so let's clean'er up first.
I'm about to attach like 10 git patches. I will squash them down and land them as one large patch, but reviewing all the little pieces is likely easier (certainly safer).
Created attachment 25057[details]
Rename scriptNode to m_scriptNode make the type specific
WebCore/html/HTMLTokenizer.cpp | 18 +++++++++---------
WebCore/html/HTMLTokenizer.h | 3 ++-
2 files changed, 11 insertions(+), 10 deletions(-)
Created attachment 25065[details]
Rename parser to m_parser and make it an OwnPtr
WebCore/html/HTMLTokenizer.cpp | 19 +++++++++----------
WebCore/html/HTMLTokenizer.h | 4 ++--
2 files changed, 11 insertions(+), 12 deletions(-)
Created attachment 25074[details]
Rename scriptSrc to m_scriptTagSrcAttrValue and scriptSrcCharset to m_scriptTagCharsetAttrValue -- a bit unwieldy, but more precise
WebCore/html/HTMLTokenizer.cpp | 16 ++++++++--------
WebCore/html/HTMLTokenizer.h | 4 ++--
2 files changed, 10 insertions(+), 10 deletions(-)
Comment on attachment 25060[details]
Rename noMoreData to m_noMoreData and cBuffer to m_cBuffer
#define CBUFLEN 1024
could make this a static const with better name since you are here.
Comment on attachment 25071[details]
Rename searchStopper to m_searchStopper and searchStopperLen to m_searchStopperLen
Maybe m_searchStopperLenght instead of m_searchStopperLen?
Comment on attachment 25075[details]
Rename flat to selfClosingTag
This class nees some m_ consistency too. Maybe it should be a struct since fields are public? Then m_ can go too.
Committing to http://svn.webkit.org/repository/webkit/trunk ...
M WebCore/ChangeLog
M WebCore/css/CSSParser.cpp
M WebCore/dom/XMLTokenizer.cpp
M WebCore/dom/XMLTokenizerLibxml2.cpp
M WebCore/html/HTMLDocument.cpp
M WebCore/html/HTMLElement.cpp
M WebCore/html/HTMLFormControlElement.cpp
M WebCore/html/HTMLParser.cpp
M WebCore/html/HTMLParser.h
M WebCore/html/HTMLTokenizer.cpp
M WebCore/html/HTMLTokenizer.h
M WebCore/html/HTMLViewSourceDocument.h
M WebCore/rendering/RenderBlock.cpp
M WebCore/xml/XSLTProcessor.cpp
Committed r38327
2008-11-11 15:17 PST, Eric Seidel (no email)
2008-11-11 15:17 PST, Eric Seidel (no email)
2008-11-11 15:17 PST, Eric Seidel (no email)
2008-11-11 15:17 PST, Eric Seidel (no email)
2008-11-11 15:17 PST, Eric Seidel (no email)
2008-11-11 15:17 PST, Eric Seidel (no email)
2008-11-11 15:17 PST, Eric Seidel (no email)
2008-11-11 15:17 PST, Eric Seidel (no email)
2008-11-11 15:17 PST, Eric Seidel (no email)
2008-11-11 15:17 PST, Eric Seidel (no email)
2008-11-11 15:17 PST, Eric Seidel (no email)
2008-11-11 15:17 PST, Eric Seidel (no email)
2008-11-11 15:17 PST, Eric Seidel (no email)
2008-11-11 15:18 PST, Eric Seidel (no email)
2008-11-11 15:18 PST, Eric Seidel (no email)
2008-11-11 15:18 PST, Eric Seidel (no email)
2008-11-11 15:18 PST, Eric Seidel (no email)
2008-11-11 15:18 PST, Eric Seidel (no email)
2008-11-11 15:18 PST, Eric Seidel (no email)
2008-11-11 15:18 PST, Eric Seidel (no email)
2008-11-11 15:18 PST, Eric Seidel (no email)