FrameSelection should use shadowHost instead of shadowAncestorNode
https://bugs.webkit.org/show_bug.cgi?id=107220

Reviewed by Kent Tamura.

shadowAncestorNode() is deprecated and we want to use shadowHost.
Here, all objects calling shadowAncestorNode() is in ShadowDOM, we can safely convert
the call to shadowHost().

No new tests, simple refactoring.

* editing/FrameSelection.cpp:
(WebCore::FrameSelection::selectAll):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140381 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Move HTML Attribute case-sensitivity logic out of SelectorChecker to HTMLDocument.
https://bugs.webkit.org/show_bug.cgi?id=107460

The case-sensitivity of HTML attributes is defined in HTML spec and is only applicable in HTML documents,
so having this logic in HTMLDocument seems like a good thing.

Reviewed by Eric Seidel.

Refactoring, covered by existing tests.

* css/SelectorChecker.cpp:
(WebCore): Moved code out of here.
(WebCore::isFastCheckableMatch): Changed the callsite to use new location.
(WebCore::SelectorChecker::checkOne): Ditto.
* html/HTMLDocument.cpp:
(WebCore::addLocalNameToSet): Moved the code into here.
(WebCore): Ditto.
(WebCore::createHtmlCaseInsensitiveAttributesSet): Ditto.
(WebCore::HTMLDocument::isCaseSensitiveAttribute): Ditto.
* html/HTMLDocument.h:
(HTMLDocument): Added decl for the newly moved function.


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