Bug 90726

Summary: Remove unnecessary member HTMLTreeBuilder::m_lastScriptElementStartPosition
Product: WebKit Reporter: Kwang Yul Seo <skyul>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, eric
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch abarth: review+

Kwang Yul Seo
Reported 2012-07-07 04:06:43 PDT
HTMLTreeBuilder::m_lastScriptElementStartPosition is of no use. Currently, m_lastScriptElementStartPosition is used to store the text position in "script" start tag, and then the stored position is passed to m_scriptToProcessStartPosition later in "script" end tag. Because HTMLTreeBuilder handles one script tag at a time, we can store the text position directly to m_scriptToProcessStartPosition in "script" start tag.
Attachments
Patch (4.14 KB, patch)
2012-07-07 04:10 PDT, Kwang Yul Seo
abarth: review+
Kwang Yul Seo
Comment 1 2012-07-07 04:10:28 PDT
Adam Barth
Comment 2 2012-07-08 20:38:49 PDT
Comment on attachment 151138 [details] Patch I haven't paged all this code back in, but I believe this is correct. There's also lots of test coverage for this issue since DRT prints out the line number with every script error.
Kwang Yul Seo
Comment 3 2012-07-08 21:28:10 PDT
(In reply to comment #2) > (From update of attachment 151138 [details]) > I haven't paged all this code back in, but I believe this is correct. There's also lots of test coverage for this issue since DRT prints out the line number with every script error. I ran the layout tests and confirmed that there is no regression.
Kwang Yul Seo
Comment 4 2012-07-08 21:30:22 PDT
Adam Barth
Comment 5 2012-07-08 21:31:04 PDT
> I ran the layout tests and confirmed that there is no regression. The cr-linux bot also runs the tests and confirms that as well. :)
Note You need to log in before you can comment on or make changes to this bug.