Some more WK2 test skipping.

* platform/wk2/Skipped:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97231 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Separate compositor client thread from webkit's main thread.
https://bugs.webkit.org/show_bug.cgi?id=69048

Patch by Antoine Labour <piman@chromium.org> on 2011-10-11
Reviewed by Darin Fisher.

Source/WebCore:

Covered by compositing tests.

* platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
(WebCore::CCLayerTreeHost::CCLayerTreeHost):
* platform/graphics/chromium/cc/CCMainThread.cpp:
* platform/graphics/chromium/cc/CCMainThread.h:
* platform/graphics/chromium/cc/CCProxy.cpp:
(WebCore::CCProxy::isMainThread):
(WebCore::CCProxy::setMainThread):
(WebCore::CCProxy::CCProxy):
* platform/graphics/chromium/cc/CCProxy.h:

Source/WebKit/chromium:

* WebKit.gyp:
* public/WebKitPlatformSupport.h:
(WebKit::WebKitPlatformSupport::currentThread):
* src/CCMainThreadImpl.cpp: Added.
(WTF::TaskWrapper::TaskWrapper):
(WTF::TaskWrapper::~TaskWrapper):
(WTF::TaskWrapper::run):
(WebCore::CCMainThread::initialize):
(WebCore::CCMainThread::postTask):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97232 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] Add accessor for plugin request to not scale print output.
https://bugs.webkit.org/show_bug.cgi?id=68853

Patch by Steve VanDeBogart <vandebo@chromium.org> on 2011-10-11
Reviewed by Darin Fisher.

* public/WebFrame.h:
* public/WebPlugin.h:
(WebKit::WebPlugin::isPrintScalingDisabled):
* src/WebFrameImpl.cpp:
(WebKit::WebFrameImpl::isPrintScalingDisabledForPlugin):
* src/WebFrameImpl.h:
* src/WebPluginContainerImpl.cpp:
(WebKit::WebPluginContainerImpl::isPrintScalingDisabled):
* src/WebPluginContainerImpl.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97233 268f45cc-cd09-0410-ab3c-d52691b4dbfc
DFG 32_64 - fix silentFillGPR
https://bugs.webkit.org/show_bug.cgi?id=69903

Patch by Yuqiang Xian <yuqiang.xian@intel.com> on 2011-10-11
Reviewed by Filip Pizlo.

Fix a small bug in silentFillGPR,
and add the newly introduced DFG file to CMakeListsEfl.

* CMakeListsEfl.txt:
* dfg/DFGJITCodeGenerator.h:
(JSC::DFG::JITCodeGenerator::silentFillGPR):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97234 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, temporarily reverted r97216 due to bug #69897.

* dfg/DFGJITCodeGenerator.h:
(JSC::DFG::JITCodeGenerator::silentFillGPR):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97235 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Rebaseline after r97225.

* fast/dom/constructed-objects-prototypes-expected.txt:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97236 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Chromium Mac build fix after r97227.

* platform/chromium/ScrollbarThemeChromiumMac.mm:
(+[ScrollbarPrefsObserver appearancePrefsChanged:]):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97237 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Move the content of SelectElementData into HTMLSelectElement, and remove SelectElement.{cpp,h}
https://bugs.webkit.org/show_bug.cgi?id=69828

Reviewed by Darin Adler.

- Move all of the data members of SelectElementData to
HTMLSelectElement, and their accessor functions are not needed
anymore.
- Move SelectElementData::useMenuList() to HTMLSelectElement.

No new tests, just a refactoring.

* CMakeLists.txt: Remove SelectElement.cpp.
* WebCore.gypi: Remove SelectElement.{cpp,h}.
* WebCore.pro: ditto.
* WebCore.vcproj/WebCore.vcproj: ditto.
* WebCore.xcodeproj/project.pbxproj: ditto.
* dom/OptionElement.cpp: Remove a reference to SelectElement.h.
* dom/SelectElement.cpp: Removed.
* dom/SelectElement.h: Removed.
* html/HTMLSelectElement.cpp:
(WebCore::HTMLSelectElement::HTMLSelectElement):
Initializes the moved data members.
(WebCore::HTMLSelectElement::formControlType):
(WebCore::HTMLSelectElement::setSelectedIndexByUser):
(WebCore::HTMLSelectElement::activeSelectionStartListIndex):
(WebCore::HTMLSelectElement::activeSelectionEndListIndex):
(WebCore::HTMLSelectElement::parseMappedAttribute):
(WebCore::HTMLSelectElement::canSelectAll):
(WebCore::HTMLSelectElement::createRenderer):
(WebCore::HTMLSelectElement::setOption):
(WebCore::HTMLSelectElement::selectAll):
(WebCore::HTMLSelectElement::saveLastSelection):
(WebCore::HTMLSelectElement::setActiveSelectionAnchorIndex):
(WebCore::HTMLSelectElement::setActiveSelectionEndIndex):
(WebCore::HTMLSelectElement::updateListBoxSelection):
(WebCore::HTMLSelectElement::listBoxOnChange):
(WebCore::HTMLSelectElement::menuListOnChange):
(WebCore::HTMLSelectElement::scrollToSelection):
(WebCore::HTMLSelectElement::setOptionsChangedOnRenderer):
(WebCore::HTMLSelectElement::setRecalcListItems):
(WebCore::HTMLSelectElement::recalcListItemsInternal):
(WebCore::HTMLSelectElement::setSelectedIndexInternal):
(WebCore::HTMLSelectElement::dispatchFocusEvent):
(WebCore::HTMLSelectElement::dispatchBlurEvent):
(WebCore::HTMLSelectElement::parseMultipleAttribute):
(WebCore::HTMLSelectElement::reset):
(WebCore::HTMLSelectElement::menuListDefaultEventHandler):
(WebCore::HTMLSelectElement::updateSelectedState):
(WebCore::HTMLSelectElement::listBoxDefaultEventHandler):
(WebCore::HTMLSelectElement::defaultEventHandler):
(WebCore::HTMLSelectElement::typeAheadFind):
(WebCore::HTMLSelectElement::accessKeySetSelectedIndex):
* html/HTMLSelectElement.h:
(WebCore::HTMLSelectElement::size):
(WebCore::HTMLSelectElement::multiple):
(WebCore::HTMLSelectElement::usesMenuList):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97238 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Build fixes for r97238.
https://bugs.webkit.org/show_bug.cgi?id=69828

* GNUmakefile.list.am: Remove SelectElement.{cpp,h}.
* dom/DOMAllInOne.cpp: Remove SelectElement.cpp.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97239 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Layout tests crashing in DFG JIT code
https://bugs.webkit.org/show_bug.cgi?id=69897

Reviewed by Gavin Barraclough.

Abstract value filtration didn't take into account cases where a structure
set filter, combined with predicted type knowledge, could lead to a stronger
filter for the structure abstract value.

This bug would have been benign in release builds; it would have just meant
that the analysis was less precise and some optimization opportunities would
be missed. I have an ASSERT that is meant to catch such cases, and it was
triggering sporadically in one of the LayoutTests.

* dfg/DFGAbstractValue.h:
(JSC::DFG::AbstractValue::filter):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97240 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Unreviewed gardening. Add platform specific expected result for new tests.

* platform/qt/fast/writing-mode/margins-expected.png: Added.
* platform/qt/fast/writing-mode/margins-expected.txt: Added.
* platform/qt/plugins/iframe-plugin-bgcolor-expected.png: Added.
* platform/qt/plugins/iframe-plugin-bgcolor-expected.txt: Added.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97241 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Add myself to committers.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97242 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Unreviewed gardening.

* platform/qt-mac/Skipped: Skip new failing tests.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97243 268f45cc-cd09-0410-ab3c-d52691b4dbfc
REGRESSION(r94836): An assertion fails in HTMLFormControlElement::isValidFormControlElement
when HTMLInputElement::setValue() is called while the element is focused.
https://bugs.webkit.org/show_bug.cgi?id=69909

Reviewed by Ryosuke Niwa.

Source/WebCore:

setNeedsValidityCheck() should be called after the value update
and before any style recalculation. r94836 moved
setSelectionRange() call, and it recalculates the element style.

* html/HTMLInputElement.cpp:
(WebCore::HTMLInputElement::setValue): Move setNeedsValidityCheck() to setValueInternal().
(WebCore::HTMLInputElement::setValueInternal): Move setNeedsValidityCheck() from setValue().

LayoutTests:

* fast/forms/input-live-pseudo-selectors-expected.txt:
* fast/forms/resources/input-live-pseudo-selectors.js: Add a testcase for the bug.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97244 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Web Inspector: repair interactive tests for debugger pause
https://bugs.webkit.org/show_bug.cgi?id=69912

Listen to DebuggerModel event instead of overriding private methods on it.

Reviewed by Pavel Feldman.

* src/js/Tests.js:
(.TestSuite.prototype._waitForScriptPause):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97245 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Web Inspector:  add test for pause in shared worker initialization
https://bugs.webkit.org/show_bug.cgi?id=69915

Add WebKit part of interactive ui test for pause in worker initialization.

Reviewed by Pavel Feldman.

* src/js/Tests.js:
(.TestSuite.prototype.testPauseInSharedWorkerInitialization):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97246 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Update test expectations.

Update fast/forms/input-disabled-color.html, and remove an entry
for fast/forms/file/input-file-label.html.

* platform/chromium-cg-mac-leopard/fast/forms/input-disabled-color-expected.png:
* platform/chromium-cg-mac-snowleopard/fast/forms/input-disabled-color-expected.png: Added.
* platform/chromium-linux/fast/forms/input-disabled-color-expected.png:
* platform/chromium-mac-leopard/fast/forms/input-disabled-color-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/forms/input-disabled-color-expected.png: Added.
* platform/chromium-mac/fast/forms/input-disabled-color-expected.png: Removed.
* platform/chromium-win/fast/forms/input-disabled-color-expected.png:
* platform/chromium-win/fast/forms/input-disabled-color-expected.txt:
* platform/chromium/test_expectations.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97247 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Resolve regular and visited link style in a single pass
https://bugs.webkit.org/show_bug.cgi?id=69838

Reviewed by Darin Adler
        
We can simplify and speed up selector matching by removing the recursive matching done
to generate the style for the :visited pseudo selector. Both regular and visited link style
can be generated in a single pass through the style selector.
        
- Make SelectorChecker::checkSelector to return both :visited and :link matches for all links.
- For each selector statically determine and cache the link states it may match.
- When applying the matched style declarations, apply them to the right RenderStyle
  (regular, visited, or both).

Statically determining which link state will be matched works since we only support :visited matching
based on the current element state (not ancestors or siblings).
        
A later patch will eliminate the separate RenderStyle for visited style completely and include the
few allowed properties to the regular RenderStyle.

* css/CSSStyleSelector.cpp:
(WebCore::RuleData::linkMatchType):
(WebCore::RuleSet::linkPseudoClassRules):
(WebCore::CSSStyleSelector::addMatchedDeclaration):
(WebCore::CSSStyleSelector::matchRules):
(WebCore::CSSStyleSelector::styleForElement):
(WebCore::CSSStyleSelector::pseudoStyleForElement):
(WebCore::CSSStyleSelector::updateFont):
(WebCore::CSSStyleSelector::checkSelector):
(WebCore::RuleData::RuleData):
(WebCore::RuleSet::addRule):
(WebCore::RuleSet::collectFeatures):
(WebCore::RuleSet::shrinkToFit):
(WebCore::CSSStyleSelector::applyDeclaration):
(WebCore::CSSStyleSelector::applyDeclarations):
(WebCore::CSSStyleSelector::applyProperty):
(WebCore::CSSStyleSelector::getColorFromPrimitiveValue):
* css/CSSStyleSelector.h:
(WebCore::CSSStyleSelector::MatchedStyleDeclaration::MatchedStyleDeclaration):
* css/SelectorChecker.cpp:
(WebCore::SelectorChecker::SelectorChecker):
(WebCore::SelectorChecker::checkSelector):
(WebCore::SelectorChecker::fastCheckRightmostSelector):
(WebCore::SelectorChecker::fastCheckSelector):
(WebCore::SelectorChecker::checkOneSelector):
(WebCore::SelectorChecker::commonPseudoClassSelectorMatches):
(WebCore::SelectorChecker::determineLinkMatchType):
* css/SelectorChecker.h:
* rendering/style/RenderStyle.cpp:
(WebCore::RenderStyle::addCachedPseudoStyle):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97248 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebSocket: Update WebSocket protocol to hybi-17
https://bugs.webkit.org/show_bug.cgi?id=69910

Reviewed by Kent Tamura.

Essential changes between hybi-10 and hybi-17 are:
- Sec-WebSocket-Origin header has been renamed to "Origin".
- Sec-WebSocket-Version header value has been bumped to 13.

No new tests are necessary. pywebsocket has already been updated to the latest version
which understands the new protocol. Tests under http/tests/websocket/ should keep
passing.

* websockets/WebSocketHandshake.cpp:
(WebCore::WebSocketHandshake::clientHandshakeMessage):
(WebCore::WebSocketHandshake::clientHandshakeRequest):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97249 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2011-10-12  Pavel Podivilov  <podivilov@chromium.org>

        Unreviewed, mark four js tests as failing after v8 roll.

        * platform/chromium/test_expectations.txt:


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