HTML Parser should produce 8 bit strings for doctype, comment and tagName tokens
https://bugs.webkit.org/show_bug.cgi?id=99889

Reviewed by Geoffrey Garen.

Added 8 bit check for accumulating all token data in MarkupTokenBase.  Added code to convert
"name" token data directly to a string (8 or 16 as appropriate).  Changed to accumulate
m_bufferedEndTagName as LChar's.

No new tests, covered by existing tests.

* html/parser/HTMLToken.h:
(HTMLToken):
* html/parser/HTMLTokenizer.cpp:
(WebCore::HTMLTokenizer::nextToken):
(WebCore::HTMLTokenizer::addToPossibleEndTag):
(WebCore::HTMLTokenizer::isAppropriateEndTag):
* html/parser/HTMLTokenizer.h:
(HTMLTokenizer):
* html/parser/HTMLTreeBuilder.cpp:
(WebCore::HTMLTreeBuilder::ExternalCharacterTokenBuffer::takeLeading):
* xml/parser/MarkupTokenBase.h:
(WebCore::MarkupTokenBase::beginStartTag):
(WebCore::MarkupTokenBase::beginEndTag):
(MarkupTokenBase):
(WebCore::MarkupTokenBase::beginDOCTYPE):
(WebCore::MarkupTokenBase::appendToComment):
(WebCore::MarkupTokenBase::appendToName):
(WebCore::MarkupTokenBase::nameString):
(WebCore::AtomicMarkupTokenBase::AtomicMarkupTokenBase):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132165 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] Move the call to RegisterIsolatedFileSystem to the WebTestDelegate interface
https://bugs.webkit.org/show_bug.cgi?id=100048

Reviewed by Adam Barth.

The call needs to be done outside of the sandbox.

* DumpRenderTree/chromium/TestRunner/public/WebTestDelegate.h:
(WebTestDelegate):
* DumpRenderTree/chromium/TestRunner/src/EventSender.cpp:
(WebTestRunner):
(WebTestRunner::EventSender::beginDragWithFiles):
* DumpRenderTree/chromium/TestRunner/src/TestDelegate.h:
(TestDelegate):
* DumpRenderTree/chromium/TestRunner/src/WebTestInterfaces.cpp:
(WebTestInterfaces::Internal):
(WebTestRunner::WebTestInterfaces::Internal::registerIsolatedFileSystem):
(WebTestRunner):
* DumpRenderTree/chromium/WebViewHost.cpp:
(WebViewHost::registerIsolatedFileSystem):
* DumpRenderTree/chromium/WebViewHost.h:
(WebViewHost):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132166 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, more Chromium ML expectation updating.

* platform/chromium-mac-mountainlion/TestExpectations:
* platform/chromium/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132167 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Refactoring around ContainerNode::attachChildren
https://bugs.webkit.org/show_bug.cgi?id=99968

Reviewed by Hajime Morita.

Since ContainerNode::attach() is now equivalent to ContainerNode::attachChildren() + Node::attach(), we should call
ContainerNode::attach() instead of calling them.

No new tests, no change in behavior.

* dom/ContainerNode.h:
(ContainerNode):
* dom/Element.cpp:
(WebCore::Element::attach):
* dom/ShadowRoot.cpp:
(WebCore::ShadowRoot::attach):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132168 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Handle ArgumentCoder template specializations that take the ArgumentEncoder as a reference
https://bugs.webkit.org/show_bug.cgi?id=100056

Reviewed by Andreas Kling.

Use template magic to make it possible to have ArgumentCoder specializations where the encode
function takes the ArgumentEncoder object as a reference instead of as a pointer. Also, add an
operator<< to ArgumentEncoder and change the string related ArgumentCoder specializations over to taking
the encoder as a reference and using stream operators.

* Platform/CoreIPC/ArgumentCoders.cpp:
(CoreIPC::::encode):
* Platform/CoreIPC/ArgumentCoders.h:
* Platform/CoreIPC/ArgumentEncoder.h:
(ArgumentEncoder):
(UsesDeprecatedEncodeFunction):
(NoType):
(CoreIPC::ArgumentEncoder::encode):
(CoreIPC::ArgumentEncoder::operator<<):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132169 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Introduce Localizer::standAloneMonthLabels
https://bugs.webkit.org/show_bug.cgi?id=99963

Reviewed by Kentaro Hara.

Source/WebCore:

We realized full month names and full stand-alone month names were
necessary for input[type=month] UI. We change the compile-flag for
Localizer::monthLabels from "ENABLE(CALENDAR_PICKER)" to
"ENABLE(CALENDAR_PICKER) || ENABLE(INPUT_MULTIPLE_FIELDS_UI)," and
introduce Localizer::standAloneMonthLabels.

Tests: Add some test cases to Source/WebKit/chromium/LocaleMacTest.cpp
and LocalizedDateICUTest.cpp.

* platform/text/Localizer.h:
(Localizer):
- Add pure virtual standAloneMonthLabels.
- Change the condition for monthLabels.

* platform/text/LocaleNone.cpp:
(LocaleNone): Declare monthLabels, standAloneMonthLabels, and m_monthLabels.
(WebCore::LocaleNone::monthLabels):
Added. It always returns English month names.
(WebCore::LocaleNone::standAloneMonthLabels):
Added. Just calls monthLabels.

* platform/text/LocaleWin.h:
(LocaleWin):
Declare standAloneMonthLabels, and change the condition for monthLabels.
* platform/text/LocaleWin.cpp:
(WebCore): Change the condition for monthLabels.
(WebCore::LocaleWin::standAloneMonthLabels):
Added. Just calls monthLabels.

* platform/text/mac/LocaleMac.h:
(LocaleMac):
- Add standAloneMonthLabels and m_standAloneMonthLabels
- Change the condition for monthLabels and m_monthLabels.
* platform/text/mac/LocaleMac.mm:
(WebCore): Change the condition for monthLabels.
(WebCore::LocaleMac::standAloneMonthLabels):
Added. Get the information with NSDateFormatter::standaloneMonthSymbols.

* platform/text/LocaleICU.h:
(LocaleICU):
- Add standAloneMonthLabels and m_standAloneMonthLabels
- Change the condition for monthLabels and m_monthLabels.
* platform/text/LocaleICU.cpp:
(WebCore::LocaleICU::initializeCalendar):
Remove m_monthLabels initialization in order to avoid dependecy from monthLabels.
(WebCore):
(WebCore::createFallbackMonthLabels): Change the compile condition.
(WebCore::LocaleICU::monthLabels):
- Change the compile condition.
- Don't depend on initializeCalendar to make the code for
ENABLE(INPUT_MULTIPLE_FIELDS_UI) && !ENABLE(CALENDAR_PICKER) minimal.
(WebCore::LocaleICU::standAloneMonthLabels):
Added. The code is similar to shortStandAloneMonthLabels.

Source/WebKit/chromium:

Note that we don't add tests to LocaleWinTest because new function
LocaleWin::standAloneMonthLabels is equivalent to monthLabels.

* tests/LocaleMacTest.cpp:
(LocaleMacTest::standAloneMonthLabel): Added a helper function.
(TEST_F): Add some tests. We don't test ru_ru locale because it has
different data on OSX versions.
* tests/LocalizedDateICUTest.cpp:
(LocalizedDateICUTest::standAloneMonthLabel): Added a helper function.
(TEST_F): Add some tests.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132170 268f45cc-cd09-0410-ab3c-d52691b4dbfc