[Chromium] Code cleanup: removing support for non-deferred 2d canvas rendering
https://bugs.webkit.org/show_bug.cgi?id=112605

Reviewed by James Robinson.

Source/WebCore:

Deleting all the code that was used for propagating and supporting
the Chromium setting for disabling deferred 2d canvas rendering.

No new tests: Affected code paths covered by existing tests.

* html/HTMLCanvasElement.cpp:
(WebCore::HTMLCanvasElement::createImageBuffer):
* html/HTMLCanvasElement.h:
* page/Settings.in:
* platform/graphics/ImageBuffer.h:
(WebCore::ImageBuffer::create):
(ImageBuffer):
* platform/graphics/blackberry/ImageBufferBlackBerry.cpp:
(WebCore::ImageBuffer::ImageBuffer):
* platform/graphics/cairo/ImageBufferCairo.cpp:
(WebCore::ImageBuffer::ImageBuffer):
* platform/graphics/cg/ImageBufferCG.cpp:
(WebCore::ImageBuffer::ImageBuffer):
* platform/graphics/chromium/Canvas2DLayerBridge.cpp:
(WebCore::Canvas2DLayerBridge::Canvas2DLayerBridge):
(WebCore::Canvas2DLayerBridge::~Canvas2DLayerBridge):
(WebCore::Canvas2DLayerBridge::prepareForDraw):
(WebCore::Canvas2DLayerBridge::storageAllocatedForRecordingChanged):
(WebCore::Canvas2DLayerBridge::storageAllocatedForRecording):
(WebCore::Canvas2DLayerBridge::freeMemoryIfPossible):
(WebCore::Canvas2DLayerBridge::flush):
(WebCore::Canvas2DLayerBridge::skCanvas):
(WebCore::Canvas2DLayerBridge::prepareTexture):
(WebCore::Canvas2DLayerBridge::contextAcquired):
* platform/graphics/chromium/Canvas2DLayerBridge.h:
(WebCore::Canvas2DLayerBridge::create):
(Canvas2DLayerBridge):
* platform/graphics/qt/ImageBufferQt.cpp:
(WebCore::ImageBuffer::ImageBuffer):
* platform/graphics/skia/ImageBufferSkia.cpp:
(WebCore::createAcceleratedCanvas):
(WebCore::ImageBuffer::ImageBuffer):
* platform/graphics/wince/ImageBufferWinCE.cpp:
(WebCore::ImageBuffer::ImageBuffer):
* platform/graphics/wx/ImageBufferWx.cpp:
(WebCore::ImageBuffer::ImageBuffer):

Source/WebKit/chromium:

Deleting all the code that was used for propagating and supporting
the Chromium setting for disabling deferred 2d canvas rendering.

* public/WebSettings.h:
(WebKit::WebSettings::setDeferred2dCanvasEnabled):
* src/WebSettingsImpl.cpp:
(WebKit::WebSettingsImpl::setDeferred2dCanvasEnabled):
* tests/Canvas2DLayerBridgeTest.cpp:
(Canvas2DLayerBridgeTest::fullLifecycleTest):
* tests/Canvas2DLayerManagerTest.cpp:
(FakeCanvas2DLayerBridge::FakeCanvas2DLayerBridge):

Tools:

Deleting all the code that was used for propagating and supporting
the Chromium setting for disabling deferred 2d canvas rendering.

* DumpRenderTree/chromium/DumpRenderTree.cpp:
(main):
* DumpRenderTree/chromium/TestRunner/public/WebPreferences.h:
* DumpRenderTree/chromium/TestRunner/src/WebPreferences.cpp:
(WebTestRunner::WebPreferences::reset):
(WebTestRunner::WebPreferences::applyTo):
* DumpRenderTree/chromium/TestShell.cpp:
(TestShell::TestShell):
(TestShell::resetWebSettings):
(TestShell::runFileTest):
* DumpRenderTree/chromium/TestShell.h:
(TestShell):

LayoutTests:

Marked some 2d canvas tests as failing. These tests are using the
two point radial gradient API.  The bug was already present in
chromium. Starts getting detected in DRT with this change.
Related: crbug.com/222140


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146351 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Qt 4.8 expected results removal from Trunk.

Reviewed by Csaba Osztrogonác.

* platform/qt-4.8/TestExpectations: Removed.
* platform/qt-4.8/css1/text_properties/text_transform-expected.txt: Removed.
* platform/qt-4.8/editing/selection/regional-indicators-expected.txt: Removed.
* platform/qt-4.8/fast/css/dumpAsText/xml-stylesheet-pi-not-in-prolog-expected.txt: Removed.
* platform/qt-4.8/fast/dom/Range/surround-contents-font-face-crash-expected.txt: Removed.
* platform/qt-4.8/fast/dom/xml-parser-error-message-crash-expected.txt: Removed.
* platform/qt-4.8/fast/encoding/dumpAsText/utf-16-no-bom-expected.txt: Removed.
* platform/qt-4.8/fast/events/xsl-onload-expected.txt: Removed.
* platform/qt-4.8/fast/parser/xml-colon-entity-expected.txt: Removed.
* platform/qt-4.8/fast/parser/xml-declaration-missing-ending-mark-expected.txt: Removed.
* platform/qt-4.8/fast/parser/xslt-with-html-expected.txt: Removed.
* platform/qt-4.8/fast/table/table-row-focus-ring-paint-expected.png: Removed.
* platform/qt-4.8/fast/text/find-kana-expected.txt: Removed.
* platform/qt-4.8/fast/text/find-russian-expected.txt: Removed.
* platform/qt-4.8/fast/text/find-soft-hyphen-expected.txt: Removed.
* platform/qt-4.8/fast/url/path-expected.txt: Removed.
* platform/qt-4.8/fast/xsl/subframe-location-expected.txt: Removed.
* platform/qt-4.8/fast/xsl/transform-to-html-expected.txt: Removed.
* platform/qt-4.8/fast/xsl/utf8-chunks-expected.txt: Removed.
* platform/qt-4.8/fast/xsl/xslt-bad-import-uri-expected.txt: Removed.
* platform/qt-4.8/fast/xsl/xslt-doc-noenc-expected.txt: Removed.
* platform/qt-4.8/fast/xsl/xslt-entity-enc-expected.txt: Removed.
* platform/qt-4.8/fast/xsl/xslt-entity-expected.png: Removed.
* platform/qt-4.8/fast/xsl/xslt-mismatched-tags-in-xslt-expected.txt: Removed.
* platform/qt-4.8/fast/xsl/xslt-recursion-expected.txt: Removed.
* platform/qt-4.8/http/tests/misc/location-test-xsl-style-sheet-expected.txt: Removed.
* platform/qt-4.8/http/tests/security/contentSecurityPolicy/xsl-allowed-expected.txt: Removed.
* platform/qt-4.8/http/tests/security/contentSecurityPolicy/xsl-img-blocked-expected.txt: Removed.
* platform/qt-4.8/http/tests/security/contentSecurityPolicy/xsl-unaffected-by-style-src-2-expected.txt: Removed.
* platform/qt-4.8/http/tests/security/cookies/first-party-cookie-allow-xslt-expected.png: Removed.
* platform/qt-4.8/http/tests/security/cookies/first-party-cookie-allow-xslt-expected.txt: Removed.
* platform/qt-4.8/http/tests/security/cookies/third-party-cookie-blocking-xslt-expected.png: Removed.
* platform/qt-4.8/http/tests/security/cookies/third-party-cookie-blocking-xslt-expected.txt: Removed.
* platform/qt-4.8/http/tests/security/xss-DENIED-xml-external-entity-expected.txt: Removed.
* platform/qt-4.8/http/tests/security/xss-DENIED-xsl-document-redirect-expected.txt: Removed.
* platform/qt-4.8/http/tests/security/xss-DENIED-xsl-document-securityOrigin-expected.txt: Removed.
* platform/qt-4.8/http/tests/security/xss-DENIED-xsl-external-entity-expected.txt: Removed.
* platform/qt-4.8/http/tests/security/xss-DENIED-xsl-external-entity-redirect-expected.txt: Removed.
* platform/qt-4.8/http/tests/xmlhttprequest/methods-expected.txt: Removed.
* platform/qt-4.8/http/tests/xmlhttprequest/workers/methods-async-expected.txt: Removed.
* platform/qt-4.8/http/tests/xmlhttprequest/workers/methods-expected.txt: Removed.
* platform/qt-4.8/http/tests/xmlhttprequest/workers/shared-worker-methods-async-expected.txt: Removed.
* platform/qt-4.8/svg/custom/bug45331-expected.png: Removed.
* platform/qt-4.8/svg/custom/bug45331-expected.txt: Removed.
* platform/qt-4.8/svg/custom/bug78807-expected.txt: Removed.
* platform/qt-4.8/svg/custom/use-invalid-html-expected.txt: Removed.
* platform/qt-4.8/svg/custom/use-invalid-style-expected.txt: Removed.
* platform/qt-4.8/svg/hixie/error/dumpAsText/004-expected.txt: Removed.
* platform/qt-4.8/svg/hixie/error/dumpAsText/005-expected.txt: Removed.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146352 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: Plumbing CSS warnings
https://bugs.webkit.org/show_bug.cgi?id=111334

Patch by Sergey Ryazanov <serya@chromium.org> on 2013-03-20
Reviewed by Pavel Feldman.

Adding a framework for plumbing CSS warnings from CSSParser/grammar to the Inspector console.

* css/CSSParser.cpp:
(WebCore::CSSParser::CSSParser):
(WebCore::CSSParser::parseSheet):
(WebCore::CSSParser::syntaxError):
(WebCore):
(WebCore::CSSParser::isLoggingErrors):
(WebCore::CSSParser::logError):
* css/CSSParser.h:
(CSSParser):
(CSSParser::Location):
(WebCore):
* css/StyleSheetContents.cpp:
(WebCore::StyleSheetContents::parseAuthorStyleSheet):
(WebCore::StyleSheetContents::parseString):
(WebCore::StyleSheetContents::parseStringAtLine):
* css/StyleSheetContents.h:
(StyleSheetContents):
* dom/StyleElement.cpp:
(WebCore::StyleElement::createSheet):
* page/PageConsole.cpp:
(WebCore::PageConsole::addMessage):

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