[chromium] Fix inside chromium build on Mac

Unreviewed build fix.

Xcode won't create a static library without any sources. So instead of
ommitting the sources, just override the webkit_test_support's type
with 'none'.

* WebKit.gyp:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131906 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Should have a test case where InsertionPoint has a ShadowRoot.
https://bugs.webkit.org/show_bug.cgi?id=99822

Reviewed by Dimitri Glazkov.

We didn't have a test case where InsertionPoint has a ShadowRoot. Let's have it not to cause a regression.

* fast/dom/shadow/shadowroot-of-insertionpoint-expected.html: Added.
* fast/dom/shadow/shadowroot-of-insertionpoint.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131907 268f45cc-cd09-0410-ab3c-d52691b4dbfc
VO issues with hidden <legend> and last explicitly labelled element within a group <fieldset>
https://bugs.webkit.org/show_bug.cgi?id=96325

Reviewed by Beth Dakin.

Source/WebCore: 

 When finding a <legend> for accessibility, we need to consider those that are offscreen. This patch
 modifies the original findLegend method to take a parameter to determine what should be done.

Test: accessibility/hidden-legend.html

* accessibility/AccessibilityRenderObject.cpp:
(WebCore::AccessibilityRenderObject::titleUIElement):
* rendering/RenderFieldset.cpp:
(WebCore::RenderFieldset::findLegend):
* rendering/RenderFieldset.h:

LayoutTests: 

* accessibility/hidden-legend-expected.txt: Added.
* accessibility/hidden-legend.html: Added.
* platform/chromium/TestExpectations:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131908 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix incorrect User Timing test case path in TestExpectations of qt-5.0-wk2 platform.
https://bugs.webkit.org/show_bug.cgi?id=99811.

Patch by Pan Deng <pan.deng@intel.com> on 2012-10-19
Reviewed by Tony Gentilcore.

Path 'http/tests/w3c/webperf/proposal/Intel/user-timing' is replaced by 'http/tests/w3c/webperf/submission/Intel/user-timing' in this patch.

* platform/qt-5.0-wk2/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131909 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Elements assigned to <shadow> should not be reprojected.
https://bugs.webkit.org/show_bug.cgi?id=99680

Reviewed by Dimitri Glazkov.

Source/WebCore:

In the current spec, we don't have shadow reprojection, i.e. elements assigned to <shadow> should not be
reprojected to content. However, we can select them by <shadow>.

Tests: fast/dom/shadow/content-reprojection-complex.html
       fast/dom/shadow/content-reprojection-shadow.html
       fast/dom/shadow/shadow-reprojection-prohibited.html

* html/shadow/ContentDistributor.cpp:
(WebCore::ContentDistributor::distribute): When a node is <shadow>, we should not add elements assigned to <shadow>
to POOL. Instead, <shadow> itself should be added to POOL.
* html/shadow/HTMLContentElement.h:
(WebCore::isHTMLContentElement):
(WebCore):

LayoutTests:

* fast/dom/shadow/content-reprojection-complex-expected.html: Added.
* fast/dom/shadow/content-reprojection-complex.html: Added.
* fast/dom/shadow/content-reprojection-shadow-expected.html: Added.
* fast/dom/shadow/content-reprojection-shadow.html: Added.
* fast/dom/shadow/shadow-reprojection-prohibited-expected.html: Added.
* fast/dom/shadow/shadow-reprojection-prohibited.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131910 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] fix the fix

Unreviewed build fix.

Forgot to invert the condition when to set the type to none in the
previous attempt.

* WebKit.gyp:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131911 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[BlackBerry] Don't attempt to auto scroll on input for Fixed Position elements.
https://bugs.webkit.org/show_bug.cgi?id=99833

Reviewed by Antonio Gomes.

PR 195024.

Don't attempt to scroll fixed position elements.

Reviewed Internally by Arvid Nilsson.

* WebKitSupport/DOMSupport.cpp:
(BlackBerry::WebKit::DOMSupport::isFixedPositionOrHasFixedPositionAncestor):
(DOMSupport):
* WebKitSupport/DOMSupport.h:
(WebCore):
* WebKitSupport/InputHandler.cpp:
(BlackBerry::WebKit::InputHandler::ensureFocusTextElementVisible):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131912 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Clean up RegExpKey
https://bugs.webkit.org/show_bug.cgi?id=99798

Reviewed by Darin Adler.

RegExpHash doesn't need to be a class template specialization when the class template is specialized
for JSC::RegExpKey only. Make it a nested class of RegExp instead. Also, make operator== a friend function
so Hash::equal can see it.

* runtime/RegExpKey.h:
(JSC::RegExpKey::RegExpKey):
(JSC::RegExpKey::operator==):
(RegExpKey):
(JSC::RegExpKey::Hash::hash):
(JSC::RegExpKey::Hash::equal):
(Hash):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131913 268f45cc-cd09-0410-ab3c-d52691b4dbfc
MediaStream API: Rename owner to client in MediaStreamDescriptor
https://bugs.webkit.org/show_bug.cgi?id=99593

Reviewed by Adam Barth.

This patch renames owner to client in MediaStreamDescriptor as discussed in #99080.

No new tests needed, covered by existing tests.

* Modules/mediastream/MediaStream.cpp:
(WebCore::MediaStream::MediaStream):
(WebCore::MediaStream::~MediaStream):
* Modules/mediastream/MediaStream.h:
(MediaStream):
* Modules/mediastream/PeerConnection00.cpp:
(WebCore::PeerConnection00::didRemoveRemoteStream):
* Modules/mediastream/RTCPeerConnection.cpp:
(WebCore::RTCPeerConnection::didRemoveRemoteStream):
* platform/mediastream/MediaStreamCenter.cpp:
(WebCore::MediaStreamCenter::endLocalMediaStream):
(WebCore::MediaStreamCenter::addMediaStreamTrack):
(WebCore::MediaStreamCenter::removeMediaStreamTrack):
* platform/mediastream/MediaStreamDescriptor.h:
(WebCore::MediaStreamDescriptorClient::~MediaStreamDescriptorClient):
(WebCore::MediaStreamDescriptor::client):
(WebCore::MediaStreamDescriptor::setClient):
(WebCore::MediaStreamDescriptor::MediaStreamDescriptor):
(MediaStreamDescriptor):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131914 268f45cc-cd09-0410-ab3c-d52691b4dbfc
AX: aria-hidden=false does not work as expected
https://bugs.webkit.org/show_bug.cgi?id=98787

Reviewed by Beth Dakin.

Source/WebCore: 

ARIA requires that aria-hidden=false override an element's native visibility and include that
node in the AX hierarchy.
 
To accomplish this we have to allow invisible items to be included, as well as items that
have no renderers associated with them.

Test: accessibility/aria-hidden-negates-no-visibility.html

* accessibility/AXObjectCache.cpp:
(WebCore::AXObjectCache::getOrCreate):
* accessibility/AccessibilityARIAGrid.cpp:
(WebCore::AccessibilityARIAGrid::addTableCellChild):
(WebCore::AccessibilityARIAGrid::addChildren):
* accessibility/AccessibilityARIAGrid.h:
(AccessibilityARIAGrid):
* accessibility/AccessibilityNodeObject.cpp:
(WebCore):
(WebCore::AccessibilityNodeObject::boundingBoxRect):
(WebCore::AccessibilityNodeObject::insertChild):
(WebCore::AccessibilityNodeObject::addChild):
(WebCore::AccessibilityNodeObject::addChildren):
(WebCore::AccessibilityNodeObject::textUnderElement):
* accessibility/AccessibilityNodeObject.h:
(AccessibilityNodeObject):
* accessibility/AccessibilityObject.cpp:
(WebCore::AccessibilityObject::textIteratorBehaviorForTextRange):
(WebCore):
* accessibility/AccessibilityObject.h:
(AccessibilityObject):
(WebCore::AccessibilityObject::addChild):
(WebCore::AccessibilityObject::insertChild):
* accessibility/AccessibilityRenderObject.cpp:
(WebCore):
(WebCore::AccessibilityRenderObject::accessibilityIsIgnoredBase):
(WebCore::AccessibilityRenderObject::addHiddenChildren):
(WebCore::AccessibilityRenderObject::addChildren):
* accessibility/AccessibilityRenderObject.h:
(AccessibilityRenderObject):

LayoutTests: 

* accessibility/aria-hidden-negates-no-visibility.html: Added.
* platform/mac/accessibility/aria-hidden-negates-no-visibility-expected.txt: Added.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131915 268f45cc-cd09-0410-ab3c-d52691b4dbfc
REGRESSION (r131686): Crash in NSToolTipManager mouseEnteredToolTip
<rdar://problem/12527528> and https://bugs.webkit.org/show_bug.cgi?id=99792

Patch by Darin Adler, reviewed by Brady Eidson.

We should explicitly remove tooltips when the view moves to a new window.

* UIProcess/API/mac/WKView.mm:
(-[WKView viewDidMoveToWindow]):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131916 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[BlackBerry] Should suspend AnimationController when WebPage becomes invisible.
https://bugs.webkit.org/show_bug.cgi?id=99844

Patch by Andrew Lo <anlo@rim.com> on 2012-10-19
Reviewed by Yong Li.
Internally reviewed by Arvid Nilsson & Yong Li.

Suspend animation controller when the tab becomes invisible,
in addition to suspending scripted animations.

* Api/WebPage.cpp:
(BlackBerry::WebKit::WebPagePrivate::setVisible):

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