Shadow DOM should be able to be disabled per context.
authorMORITA Hajime <morrita@google.com>
Mon, 5 Nov 2012 03:09:45 +0000 (03:09 +0000)
committerMORITA Hajime <morrita@google.com>
Mon, 5 Nov 2012 03:09:45 +0000 (03:09 +0000)
commit70d52a68bf74ee765f897be5d49976afc2f268e2
tree8cbc8cea04699c9b6da37db79b223a948faeb6a6
parent8420c1b4f76825678281729bb07f9a4297e36d7c
Shadow DOM should be able to be disabled per context.
https://bugs.webkit.org/show_bug.cgi?id=101173

Reviewed by Dimitri Glazkov.

Source/WebCore:

This change pulls back relevant bits from r131549. Note that if
the the port enables runtime Shadow DOM flag, this can cause slow
down on some Chromium page cycler test cases (which r131549
attempted to fix).

This change is temporal and the flags should be switched back from
ContextFeatures to RuntimeEnabledFeatures once it gains sufficent
stability.

* dom/ContextFeatures.cpp:
(WebCore::ContextFeatures::shadowDOMEnabled):
(WebCore):
* dom/ContextFeatures.h:
* dom/Position.cpp:
(WebCore::Position::Position):
(WebCore::Position::findParent):
* dom/TreeScope.cpp:
(WebCore::TreeScope::getSelection):
* html/HTMLTagNames.in:
* html/shadow/HTMLContentElement.cpp:
(WebCore::HTMLContentElement::contentTagName):
* page/DOMWindow.idl:

Source/WebKit/chromium:

* src/ContextFeaturesClientImpl.cpp:
(WebKit::ContextFeaturesClientImpl::askIfIsEnabled):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@133429 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/dom/ContextFeatures.cpp
Source/WebCore/dom/ContextFeatures.h
Source/WebCore/dom/Position.cpp
Source/WebCore/dom/TreeScope.cpp
Source/WebCore/html/HTMLTagNames.in
Source/WebCore/html/shadow/HTMLContentElement.cpp
Source/WebCore/page/DOMWindow.idl
Source/WebKit/chromium/ChangeLog
Source/WebKit/chromium/src/ContextFeaturesClientImpl.cpp