Changeset 122081 in webkit
- Timestamp:
- Jul 8, 2012 9:30:08 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r122079 r122081 1 2012-07-07 Kwang Yul Seo <skyul@company100.net> 2 3 Remove unnecessary member HTMLTreeBuilder::m_lastScriptElementStartPosition 4 https://bugs.webkit.org/show_bug.cgi?id=90726 5 6 Reviewed by Adam Barth. 7 8 HTMLTreeBuilder::m_lastScriptElementStartPosition is of no use. Currently, 9 m_lastScriptElementStartPosition is used to store the text position in 10 "script" start tag, and then the stored position is passed to m_scriptToProcessStartPosition 11 later in "script" end tag. Because HTMLTreeBuilder handles one script tag at 12 a time, we can store the text position directly to m_scriptToProcessStartPosition 13 in "script" start tag. 14 15 No behavior change, so no new tests. 16 17 * html/parser/HTMLTreeBuilder.cpp: 18 (WebCore::HTMLTreeBuilder::HTMLTreeBuilder): 19 (WebCore::HTMLTreeBuilder::processEndTag): 20 (WebCore::HTMLTreeBuilder::processScriptStartTag): 21 * html/parser/HTMLTreeBuilder.h: 22 (HTMLTreeBuilder): 23 1 24 2012-07-08 Philip Rogers <pdr@google.com> 2 25 -
trunk/Source/WebCore/html/parser/HTMLTreeBuilder.cpp
r121858 r122081 358 358 , m_parser(parser) 359 359 , m_scriptToProcessStartPosition(uninitializedPositionValue1()) 360 , m_lastScriptElementStartPosition(TextPosition::belowRangePosition())361 360 , m_usePreHTML5ParserQuirks(usePreHTML5ParserQuirks) 362 361 { … … 377 376 , m_parser(parser) 378 377 , m_scriptToProcessStartPosition(uninitializedPositionValue1()) 379 , m_lastScriptElementStartPosition(TextPosition::belowRangePosition())380 378 , m_usePreHTML5ParserQuirks(usePreHTML5ParserQuirks) 381 379 { … … 2133 2131 ASSERT(m_tree.currentElement()->hasTagName(scriptTag)); 2134 2132 m_scriptToProcess = m_tree.currentElement(); 2135 m_scriptToProcessStartPosition = m_lastScriptElementStartPosition;2136 2133 m_tree.openElements()->pop(); 2137 2134 if (isParsingFragment() && m_fragmentContext.scriptingPermission() == DisallowScriptingContent) … … 2647 2644 TextPosition position = m_parser->textPosition(); 2648 2645 2649 m_ lastScriptElementStartPosition = position;2646 m_scriptToProcessStartPosition = position; 2650 2647 2651 2648 setInsertionMode(TextMode); -
trunk/Source/WebCore/html/parser/HTMLTreeBuilder.h
r117731 r122081 237 237 TextPosition m_scriptToProcessStartPosition; // Starting line number of the script tag needing processing. 238 238 239 // FIXME: We probably want to remove this member. Originally, it was240 // created to service the legacy tree builder, but it seems to be used for241 // some other things now.242 TextPosition m_lastScriptElementStartPosition;243 244 239 bool m_usePreHTML5ParserQuirks; 245 240 };
Note: See TracChangeset
for help on using the changeset viewer.