Explicitly include unistd.h in TestNetscapePlugIn
https://bugs.webkit.org/show_bug.cgi?id=72385

This is needed for the sleep() call in the indicateTestFailure method,
which seems to be implicitly available for other platforms. This is not
the case on Android.

Patch by Peter Beverloo <peter@chromium.org> on 2011-11-16
Reviewed by Steve Block.

* DumpRenderTree/TestNetscapePlugIn/PluginTest.cpp:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@100432 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: [Extensions API] drop ExtensionSidebarPane.onUpdated, use callbacks instead
https://bugs.webkit.org/show_bug.cgi?id=72388

Reviewed by Pavel Feldman.

Source/WebCore:

Tests: inspector/extensions/extensions-panel.html
       inspector/extensions/extensions-sidebar.html

- fire ExtensionSidebarPane.on{Hidden,Shown} for non-iframe content (experssions/objects);
- drop ExtensionsSidebarPane.onUpdated, provide callback for setObject()/setExpression() instead;
- fix an exception when a page is replaced with object/expression.

 inspector/front-end/ExtensionAPI.js:
(injectedExtensionAPI.ExtensionSidebarPaneImpl):
(injectedExtensionAPI.ExtensionSidebarPaneImpl.prototype.setExpression):
(injectedExtensionAPI.ExtensionSidebarPaneImpl.prototype.setObject):
* inspector/front-end/ExtensionPanel.js:
(WebInspector.ExtensionNotifierView):
(WebInspector.ExtensionNotifierView.prototype.wasShown):
(WebInspector.ExtensionNotifierView.prototype.willHide):
(WebInspector.ExtensionSidebarPane.prototype.setObject):
(WebInspector.ExtensionSidebarPane.prototype.setExpression):
(WebInspector.ExtensionSidebarPane.prototype.setPage):
(WebInspector.ExtensionSidebarPane.prototype._onEvaluate):
(WebInspector.ExtensionSidebarPane.prototype._makeObjectPropertiesView):
(WebInspector.ExtensionSidebarPane.prototype._setObject):
* inspector/front-end/ExtensionServer.js:
(WebInspector.ExtensionServer.prototype._onSetSidebarContent.callback):
(WebInspector.ExtensionServer.prototype._onSetSidebarContent):
(WebInspector.ExtensionServer.prototype._dispatchCallback):
* inspector/front-end/View.js:
(WebInspector.View.prototype.detach):

LayoutTests:

- split LayoutTests/inspector/extensions.html into extensions-panel.html & extensions-sidebar.html.

* inspector/extensions/extensions-panel-expected.txt: Added.
* inspector/extensions/extensions-panel.html: Added.
* inspector/extensions/extensions-sidebar-expected.txt: Renamed from LayoutTests/inspector/extensions/extensions-expected.txt.
* inspector/extensions/extensions-sidebar.html: Renamed from LayoutTests/inspector/extensions/extensions.html.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@100433 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] new test css3/flexbox/line-wrapping.html failing
https://bugs.webkit.org/show_bug.cgi?id=72490

Unreviewed gardening.

* platform/qt/Skipped:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@100434 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Layout Test inspector/extensions/extensions-events.html is flaky
https://bugs.webkit.org/show_bug.cgi?id=72447

Unreviewed gardening

* platform/chromium/test_expectations.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@100435 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTest fast/replaced/width100percent-textarea.html fails on Chromium Mac 10.6
https://bugs.webkit.org/show_bug.cgi?id=72494

Unreviewed gardening

* platform/chromium/test_expectations.txt:

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

* platform/qt/Skipped: Skip http/tests/plugins/third-party-cookie-accept-policy.html
again, because it makes all plugin related tests fail intermittently.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@100437 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] Pass screen refresh rate into compositor.
https://bugs.webkit.org/show_bug.cgi?id=71040

Patch by Iain Merrick <husky@google.com> on 2011-11-16
Reviewed by Tony Gentilcore.

Source/WebCore:

* platform/PlatformScreen.h:
* platform/chromium/PlatformScreenChromium.cpp:
(WebCore::screenRefreshRate):
* platform/chromium/PlatformSupport.h:
* platform/graphics/chromium/cc/CCLayerTreeHost.h:
(WebCore::CCSettings::CCSettings):
* platform/graphics/chromium/cc/CCThreadProxy.cpp:
(WebCore::CCThreadProxy::initializeImplOnImplThread):

Source/WebKit/chromium:

* public/WebScreenInfo.h:
(WebKit::WebScreenInfo::WebScreenInfo):
* src/PlatformSupport.cpp:
(WebCore::PlatformSupport::screenRefreshRate):
* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::setIsAcceleratedCompositingActive):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@100438 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Layout Test inspector/extensions/extensions-events.html is flaky
https://bugs.webkit.org/show_bug.cgi?id=72447

Reviewed by Yury Semikhatsky.

* inspector/extensions/extensions-events-expected.txt:
* inspector/extensions/extensions-events.html:
* platform/chromium/test_expectations.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@100439 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix path to module file in root project file

Reviewed by Simon Hausmann.

* WebKit.pro:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@100440 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Centralize hide_symbols and ensure all libs are built with symbol visibility & bsymbolic_functions

Reviewed by Tor Arne Vestbø.

.:

* Source/api.pri: Eliminate duplicated symbol stuff that lives now in default_post.prf.

Source/JavaScriptCore:

* Target.pri: Eliminate duplicated symbol stuff that lives now in default_post.prf.

Source/WebCore:

* Target.pri: Eliminate duplicated symbol stuff that lives now in default_post.prf.

Tools:

* qmake/mkspecs/features/default_post.prf: Place the common hide_symbols and -Bsymbolic-functions
magic here where we handle all TEMPLATE = lib .pro files.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@100441 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, rolling out r100281 and r100437.
http://trac.webkit.org/changeset/100281
http://trac.webkit.org/changeset/100437
https://bugs.webkit.org/show_bug.cgi?id=72496

It made all plugin tests fail with paralel NRWT (Requested by
ossy on #webkit).

Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2011-11-16

* platform/qt/Skipped:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@100442 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] new test inspector/extensions/extensions-sidebar.html crashing after r100433
https://bugs.webkit.org/show_bug.cgi?id=72493

[Qt] http/tests/misc/onload-remove-iframe-crash-2.html crashing after r100311
https://bugs.webkit.org/show_bug.cgi?id=72491

Unreviewed gardening.

* platform/qt/Skipped:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@100443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Skip new failing tests.

Unreviewed gardening.

* platform/qt-mac/Skipped:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@100444 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt][WK2][Mac] MiniBrowser cannot create socketpair.
https://bugs.webkit.org/show_bug.cgi?id=72389

Use SOCK_DGRAM on mac instead of SOCK_SEQPACKET.

Reviewed by Tor Arne Vestbø.

* UIProcess/Launcher/qt/ProcessLauncherQt.cpp:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@100445 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Layout Test inspector/styles/svg-style.xhtml is flaky
https://bugs.webkit.org/show_bug.cgi?id=72434

Unreviewed gardening

* platform/chromium/test_expectations.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@100446 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove unnecessary if check from RenderListBox::paintItemForeground.
https://bugs.webkit.org/show_bug.cgi?id=72488

Patch by Antaryami Pandia <antaryami.pandia@motorola.com> on 2011-11-16
Reviewed by Andreas Kling.

* rendering/RenderListBox.cpp:
(WebCore::RenderListBox::paintItemForeground):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@100447 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] FrameLoaderClientQt::canShowMIMEType should always return true
https://bugs.webkit.org/show_bug.cgi?id=72169

Patch by Jesus Sanchez-Palencia <jesus.palencia@openbossa.org> on 2011-11-16
Reviewed by Simon Hausmann.

Currently FrameLoaderClientQt::canShowMIMEType is called after
dispatchDecidePolicyForResponse. If decidePolicyForResponse returns
PolicyUse and canShowMIMEType returns false, then we have a bug.
Therefore, FrameLoaderClientQt::canShowMIMEType now will always
return true, following the implemenation of WebKit2.

* WebCoreSupport/FrameLoaderClientQt.cpp:
(WebCore::FrameLoaderClientQt::canShowMIMEType):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@100448 268f45cc-cd09-0410-ab3c-d52691b4dbfc
CSSValue: Clean up initial value construction.
<http://webkit.org/b/72502>

Patch by Andreas Kling <kling@webkit.org> on 2011-11-16
Reviewed by Antti Koivisto.

Instead of determining whether a given CSSInitialValue is 'implicit' or not by
querying the CSSValue::ClassType (InitialClass vs. ImplicitInitialClass),
add a protected CSSValue member and set it from the CSSInitialValue constructor.

Also get rid of the CSSValue::m_isInitial bit since we can now replace the
checks by classType() == InitialClass.

No new tests, this is a cleanup.

* css/CSSInitialValue.h:
(WebCore::CSSInitialValue::CSSInitialValue):

    Poke 'implicit' constructor argument into CSSValue::m_isImplicit.

* css/CSSValue.cpp:
(WebCore::CSSValue::cssText):
(WebCore::CSSValue::destroy):

    Remove ImplicitInitialClass cases.

* css/CSSValue.h:
(WebCore::CSSValue::isImplicitInitialValue):
(WebCore::CSSValue::isInitialValue):
(WebCore::CSSValue::CSSValue):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@100449 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] inspector/elements/elements-panel-selection-on-refresh.html crashing
https://bugs.webkit.org/show_bug.cgi?id=72504

Unreviewed gardening. Skip crashing test.

* platform/qt/Skipped:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@100450 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, test fix after http://trac.webkit.org/changeset/100273.

"font" property is no longer mapped to DOMCSSValue, so use "font-family" mapped to DOMCSSValueList instead.

* platform/mac/plugins/jsobjc-dom-wrappers-expected.txt:
* platform/mac/plugins/jsobjc-dom-wrappers.html:

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