Continue making XSSAuditor thread safe: Remove dependencies on m_parser from init()
https://bugs.webkit.org/show_bug.cgi?id=108531

Reviewed by Adam Barth.

The threaded HTML parser will create and init() the XSSAuditor on the main thread, but filterToken() will be called on the background.

No new tests because no change in functionality.

* html/parser/HTMLDocumentParser.cpp:
(WebCore::HTMLDocumentParser::pumpTokenizer):
* html/parser/XSSAuditor.cpp:
(WebCore::XSSAuditor::XSSAuditor):
(WebCore::XSSAuditor::init):
(WebCore::XSSAuditor::filterToken):
* html/parser/XSSAuditor.h:
(WebCore):
(XSSAuditor):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@141605 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Padding in a parent inline preceding an empty inline child should be counted towards width
https://bugs.webkit.org/show_bug.cgi?id=108226

Reviewed by Levi Weintraub.

Source/WebCore:

Add the border/padding/margin from an empty inline's parent inline if it is the first or last
child of the inline.

Tests: fast/inline/parent-inline-element-padding-contributes-width.html
       fast/inline/positioned-element-padding-contributes-width.html

* rendering/RenderBlockLineLayout.cpp:
(WebCore::RenderBlock::LineBreaker::nextSegmentBreak):

LayoutTests:

* fast/inline/parent-inline-element-padding-contributes-width-expected.txt: Added.
* fast/inline/parent-inline-element-padding-contributes-width.html: Added.
* fast/inline/positioned-element-padding-contributes-width-expected.txt: Added.
* fast/inline/positioned-element-padding-contributes-width.html: Added.


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