Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(409)

Issue 110843004: Replaced HTMLIdentifier with an atomized string factory function (Closed)

Created:
7 years ago by oystein (OOO til 10th of July)
Modified:
7 years ago
CC:
blink-reviews, dglazkov+blink, adamk+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Replaced HTMLIdentifier usage with a factory function which will try to match the string with a map of all known static strings. As the HTMLNames strings are now static and hence threadsafe, the HTMLIdentifier wrapper used for thread safe string usage by the parser thread is no longer needed. Sourced from discussions in https://codereview.chromium.org/74513003/ R=abarth@chromium.org,eseidel@chromium.org BUG=277886 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=163806

Patch Set 1 #

Total comments: 4

Patch Set 2 : Review fixes #

Total comments: 8

Patch Set 3 : Review fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -320 lines) Patch
M Source/core/core.gypi View 1 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/html/parser/AtomicHTMLToken.h View 3 chunks +5 lines, -5 lines 0 comments Download
M Source/core/html/parser/CSSPreloadScanner.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/parser/CSSPreloadScanner.cpp View 1 2 chunks +6 lines, -8 lines 0 comments Download
M Source/core/html/parser/CompactHTMLToken.h View 5 chunks +5 lines, -6 lines 0 comments Download
M Source/core/html/parser/CompactHTMLToken.cpp View 1 2 4 chunks +6 lines, -5 lines 0 comments Download
M Source/core/html/parser/HTMLDocumentParser.cpp View 1 2 chunks +0 lines, -3 lines 0 comments Download
M Source/core/html/parser/HTMLIdentifier.h View 1 1 chunk +0 lines, -82 lines 0 comments Download
M Source/core/html/parser/HTMLIdentifier.cpp View 1 1 chunk +0 lines, -121 lines 0 comments Download
M Source/core/html/parser/HTMLParserIdioms.h View 1 2 2 chunks +23 lines, -8 lines 0 comments Download
M Source/core/html/parser/HTMLParserIdioms.cpp View 1 2 2 chunks +25 lines, -2 lines 0 comments Download
M Source/core/html/parser/HTMLPreloadScanner.cpp View 2 chunks +7 lines, -7 lines 0 comments Download
M Source/core/html/parser/HTMLTreeBuilderSimulator.cpp View 3 chunks +60 lines, -60 lines 0 comments Download
M Source/wtf/text/AtomicString.cpp View 1 1 chunk +3 lines, -3 lines 0 comments Download
M Source/wtf/text/StringImpl.h View 1 5 chunks +7 lines, -1 line 0 comments Download
M Source/wtf/text/StringImpl.cpp View 1 2 4 chunks +14 lines, -6 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
oystein (OOO til 10th of July)
Something like this?
7 years ago (2013-12-10 00:56:56 UTC) #1
abarth-chromium
LGTM. This CL is a step in the right direction. I've noted how we can ...
7 years ago (2013-12-10 01:22:51 UTC) #2
oystein (OOO til 10th of July)
On 2013/12/10 01:22:51, abarth wrote: > LGTM. This CL is a step in the right ...
7 years ago (2013-12-10 02:28:48 UTC) #3
abarth-chromium
https://codereview.chromium.org/110843004/diff/40001/Source/core/html/parser/HTMLParserIdioms.cpp File Source/core/html/parser/HTMLParserIdioms.cpp (right): https://codereview.chromium.org/110843004/diff/40001/Source/core/html/parser/HTMLParserIdioms.cpp#newcode302 Source/core/html/parser/HTMLParserIdioms.cpp:302: // However ASSERTs in addNames() guard against there ever ...
7 years ago (2013-12-10 04:48:23 UTC) #4
oystein (OOO til 10th of July)
https://codereview.chromium.org/110843004/diff/40001/Source/core/html/parser/HTMLParserIdioms.cpp File Source/core/html/parser/HTMLParserIdioms.cpp (right): https://codereview.chromium.org/110843004/diff/40001/Source/core/html/parser/HTMLParserIdioms.cpp#newcode302 Source/core/html/parser/HTMLParserIdioms.cpp:302: // However ASSERTs in addNames() guard against there ever ...
7 years ago (2013-12-10 18:42:26 UTC) #5
oystein (OOO til 10th of July)
ping :)
7 years ago (2013-12-12 18:29:11 UTC) #6
abarth-chromium
lgtm Sorry for the delay.
7 years ago (2013-12-12 18:36:09 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oysteine@chromium.org/110843004/60001
7 years ago (2013-12-12 18:36:49 UTC) #8
commit-bot: I haz the power
7 years ago (2013-12-12 19:43:44 UTC) #9
Message was sent while issue was closed.
Change committed as 163806

Powered by Google App Engine
This is Rietveld 408576698