[Qt][WK2] Fix QWebKitTest's notification of device pixel ratio change
https://bugs.webkit.org/show_bug.cgi?id=104269

Unreviewed, trivialy fixing last minute change.

Move signal emission to the correct place.

* UIProcess/API/qt/qquickwebview.cpp:
(QQuickWebViewFlickablePrivate::onComponentComplete):
* UIProcess/qt/PageViewportControllerClientQt.cpp:
(WebKit::PageViewportControllerClientQt::PageViewportControllerClientQt):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136859 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove harmful string->function cache
https://bugs.webkit.org/show_bug.cgi?id=104193

Reviewed by Alexey Proskuryakov.

Remove the string->function code cache that turned out to actually
be quite harmful.

* runtime/CodeCache.cpp:
(JSC::CodeCache::getFunctionCodeBlock):
* runtime/CodeCache.h:
(JSC::CodeCache::clear):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136860 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Expose acceleratedCompositingForScrollableFramesEnabled in WebKit API
https://bugs.webkit.org/show_bug.cgi?id=104272

We may need the API to enable compositing scrollable frames in Chromium.

Reviewed by Darin Fisher.

* public/WebSettings.h:
* src/WebSettingsImpl.cpp:
(WebKit::WebSettingsImpl::setAcceleratedCompositingForScrollableFramesEnabled):
(WebKit):
* src/WebSettingsImpl.h:
(WebSettingsImpl):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136861 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove gyp config for incomplete and unused Apple Mac gyp build
https://bugs.webkit.org/show_bug.cgi?id=104068

Reviewed by Adam Barth.

As part of the removal, move some files to the proper sections
of the gypi file.

* WebCore.gyp/WebCore.gyp:
* WebCore.gypi:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136862 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Build fix, last patch rolled out logic that is now needed on ToT.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136863 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix a bad rebaseline

Unreviewed expectations fix.

This test is apparently flaky and I put in the wrong flake.

* platform/chromium-mac-lion/svg/custom/mask-invalidation-expected.png: Removed.
* platform/chromium-win/svg/custom/mask-invalidation-expected.png:


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

Add expected results for transforms/3d tests that are producing correct resulta.

* platform/efl/TestExpectations:
* platform/efl/transforms/3d: Added.
* platform/efl/transforms/3d/general: Added.
* platform/efl/transforms/3d/general/perspective-non-layer-expected.png: Added.
* platform/efl/transforms/3d/general/perspective-non-layer-expected.txt: Added.
* platform/efl/transforms/3d/general/perspective-units-expected.png: Added.
* platform/efl/transforms/3d/general/perspective-units-expected.txt: Added.
* platform/efl/transforms/3d/hit-testing: Added.
* platform/efl/transforms/3d/hit-testing/backface-hit-test-expected.png: Added.
* platform/efl/transforms/3d/hit-testing/backface-hit-test-expected.txt: Added.
* platform/efl/transforms/3d/hit-testing/backface-no-transform-hit-test-expected.png: Added.
* platform/efl/transforms/3d/hit-testing/backface-no-transform-hit-test-expected.txt: Added.
* platform/efl/transforms/3d/point-mapping: Added.
* platform/efl/transforms/3d/point-mapping/3d-point-mapping-2-expected.png: Added.
* platform/efl/transforms/3d/point-mapping/3d-point-mapping-2-expected.txt: Added.
* platform/efl/transforms/3d/point-mapping/3d-point-mapping-3-expected.png: Added.
* platform/efl/transforms/3d/point-mapping/3d-point-mapping-3-expected.txt: Added.
* platform/efl/transforms/3d/point-mapping/3d-point-mapping-coplanar-expected.png: Added.
* platform/efl/transforms/3d/point-mapping/3d-point-mapping-coplanar-expected.txt: Added.
* platform/efl/transforms/3d/point-mapping/3d-point-mapping-deep-expected.txt: Added.
* platform/efl/transforms/3d/point-mapping/3d-point-mapping-expected.png: Added.
* platform/efl/transforms/3d/point-mapping/3d-point-mapping-expected.txt: Added.
* platform/efl/transforms/3d/point-mapping/3d-point-mapping-overlapping-expected.png: Added.
* platform/efl/transforms/3d/point-mapping/3d-point-mapping-overlapping-expected.txt: Added.
* platform/efl/transforms/3d/point-mapping/3d-point-mapping-preserve-3d-expected.png: Added.
* platform/efl/transforms/3d/point-mapping/3d-point-mapping-preserve-3d-expected.txt: Added.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136865 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Mac] Drain the CSSValuePool on memory pressure.
<http://webkit.org/b/104274>

Reviewed by Antti Koivisto.

Add a drain() mechanism to CSSValuePool and call it when we're under memory pressure.

* WebCore.xcodeproj/project.pbxproj:
* css/CSSValuePool.cpp:
(WebCore::CSSValuePool::drain):
* css/CSSValuePool.h:
* platform/mac/MemoryPressureHandlerMac.mm:
(WebCore::MemoryPressureHandler::releaseMemory):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136866 268f45cc-cd09-0410-ab3c-d52691b4dbfc
New pixel baselines for fast/backgrounds/gradient-background-leakage.html
https://bugs.webkit.org/show_bug.cgi?id=103896

Unreviewed

* platform/chromium-linux/fast/backgrounds/gradient-background-leakage-expected.png:
* platform/chromium-mac/fast/backgrounds/gradient-background-leakage-expected.png:
* platform/chromium/TestExpectations:
* platform/efl-wk1/fast/backgrounds: Added.
* platform/efl-wk1/fast/backgrounds/gradient-background-leakage-expected.png: Added.
* platform/efl/fast/backgrounds/gradient-background-leakage-expected.png: Removed.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136867 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed chromium rebaselines.

* platform/chromium-linux-x86/compositing/geometry/bounds-ignores-hidden-dynamic-negzindex-expected.png: Removed.
* platform/chromium-linux-x86/platform/chromium/virtual/softwarecompositing/masks: Removed.
* platform/chromium-linux-x86/platform/chromium/virtual/softwarecompositing/masks/masked-ancestor-expected.png: Removed.
* platform/chromium-linux-x86/platform/chromium/virtual/softwarecompositing/shadows: Removed.
* platform/chromium-linux-x86/platform/chromium/virtual/softwarecompositing/shadows/shadow-drawing-expected.png: Removed.
* platform/chromium-mac-lion/platform/chromium/virtual/softwarecompositing/iframes: Added.
* platform/chromium-mac-lion/platform/chromium/virtual/softwarecompositing/iframes/composited-iframe-alignment-expected.png: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136868 268f45cc-cd09-0410-ab3c-d52691b4dbfc
IndexedDB: Remove IDBDatabaseException.idl
https://bugs.webkit.org/show_bug.cgi?id=102961

Reviewed by Adam Barth.

Delete the IDL and references to it. No longer needed as a enum member
in the autogenerated ExceptionCodeDescription.h so removed from the ".in"
file; only direct references are retained in the autogenerated cpp file.

Ideally the code generator would handle these new-style DOMExceptions,
but we don't have any other examples yet to know what pattern to follow.

No new tests - just removing dead code.

* CMakeLists.txt:
* DerivedSources.cpp:
* DerivedSources.make:
* DerivedSources.pri:
* GNUmakefile.list.am:
* Modules/indexeddb/IDBDatabaseException.idl: Removed.
* WebCore.gypi:
* WebCore.vcproj/WebCore.vcproj:
* WebCore.xcodeproj/project.pbxproj:
* dom/DOMExceptions.in:
* dom/make_dom_exceptions.pl:
(generateImplementation):


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

Add some bug IDs to failing tests, and restore some old expectations.
* platform/chromium/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136870 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Create only NodeRareDataBase when setting TreeScope
https://bugs.webkit.org/show_bug.cgi?id=104202

Patch by Elliott Sprehn <esprehn@gmail.com> on 2012-12-06
Reviewed by Dimitri Glazkov.

Move many fields from NodeRareData into NodeRareDataBase and rename it
UncommonNodeData and add a flag to determine if a UncommonNodeData is
actually a full NodeRareData instance. By moving fields up from NodeRareData
we ensure that this new flag in the base class doesn't make NodeRareData
grow in size.

We then make setting the tree scope only allocate the UncommonNodeData
instead of creating the full NodeRareData or ElementRareData. This is
important because when putting nodes into ShadowRoot or any descendant
we must associate the node with a tree scope which adds rare data to the
node making NodeRareData and ElementRareData not very rare.

On 64bit, this reduces the overhead per element from 136 bytes to
32 bytes for a 76% savings, and on other nodes from 64 bytes to 32 bytes
for a 50% savings.

No new tests, no change in behavior.

* dom/Document.h:
(WebCore::Node::treeScope):
* dom/Element.cpp:
(WebCore::Element::createRareData):
* dom/ElementRareData.h:
(ElementRareData):
(WebCore::ElementRareData::ElementRareData):
* dom/Node.cpp:
(WebCore::Node::setTreeScope):
(WebCore::Node::ensureRareData):
(WebCore::Node::createRareData):
(WebCore::Node::clearRareData):
* dom/Node.h:
(WebCore::UncommonNodeData::create):
(UncommonNodeData):
(WebCore::UncommonNodeData::~UncommonNodeData):
(WebCore::UncommonNodeData::isNodeRareData):
(WebCore::UncommonNodeData::UncommonNodeData):
(WebCore::Node::renderer):
(WebCore::Node::setRenderer):
(Node):
(WebCore::Node::hasRareData):
(WebCore::Node::hasUncommonNodeData):
* dom/NodeRareData.h:
(WebCore::NodeRareData::NodeRareData):
(NodeRareData):

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

* platform/chromium-linux/fast/borders/border-radius-constraints-expected.png:
* platform/chromium-linux/fast/borders/mixed-border-styles-radius-expected.png:
* platform/chromium-linux/fast/css/background-clip-radius-values-expected.png:
* platform/chromium-mac-lion/fast/borders/border-radius-constraints-expected.png:
* platform/chromium-mac-lion/fast/css/background-clip-radius-values-expected.png: Removed.
* platform/chromium-mac-snowleopard/fast/borders/border-radius-constraints-expected.png:
* platform/chromium-mac/fast/borders/border-radius-constraints-expected.png:
* platform/chromium-mac/fast/borders/mixed-border-styles-radius-expected.png:
* platform/chromium-mac/fast/css/background-clip-radius-values-expected.png:
* platform/chromium-win/fast/borders/border-radius-constraints-expected.png:
* platform/chromium-win/fast/borders/mixed-border-styles-radius-expected.png:
* platform/chromium-win/fast/css/background-clip-radius-values-expected.png: Added.
* platform/chromium/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136873 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Unreviewed gardening, skip a new test because of missing test font.

* platform/qt/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136874 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Allow for CCing a secondary email address from watchlists
https://bugs.webkit.org/show_bug.cgi?id=104286

Reviewed by Dirk Pranke.

Change my watchlist CC address so I can filter these separately from
when people explicitly CC me and update the watchlist parser to allow that.

* Scripts/webkitpy/common/config/committers.py:
* Scripts/webkitpy/common/config/watchlist:
* Scripts/webkitpy/common/watchlist/watchlistparser.py:
(WatchListParser._validate):
* Scripts/webkitpy/common/watchlist/watchlistparser_unittest.py:
(WatchListParserTest.test_cc_rule_with_invalid_email):
(WatchListParserTest.test_cc_rule_with_secondary_email):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136875 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] Add some null-checks for the touch-lists in TouchEvent
https://bugs.webkit.org/show_bug.cgi?id=104098

Patch by Sadrul Habib Chowdhury <sadrul@chromium.org> on 2012-12-06
Reviewed by Adam Barth.

It is possible for the touch-lists to be NULL in a TouchEvent. V8TouchEvent checks for NULL
touches(), targetTouches() and changedTouches(). So do the same for WebMouseEventBuilder.

* src/WebInputEventConversion.cpp:
(WebKit::WebMouseEventBuilder::WebMouseEventBuilder):
* tests/WebInputEventConversionTest.cpp:

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

effect-reference-hw.html is failing (lighting has a Y-flip), but people
seem tempted to rebaseline it.  Put the software result in its place
for now, and mark it failing, so people aren't tempted to rebaseline it.

* platform/chromium-linux/css3/filters/effect-reference-hw-expected.png: Removed.
* platform/chromium-mac/css3/filters/effect-reference-hw-expected.png:
* platform/chromium-win/css3/filters/effect-reference-hw-expected.png:
* platform/chromium/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136877 268f45cc-cd09-0410-ab3c-d52691b4dbfc
REGRESSION(r135082): Restore the ability to insert author level style sheets from script
https://bugs.webkit.org/show_bug.cgi?id=104042

Reviewed by Antti Koivisto.

.:

Update exports for Internals.cpp.

* Source/autotools/symbols.filter:

Source/WebCore:

Add DocumentStyleSheetCollection::addAuthorSheet so embedders can allow scripts
to insert author level styles. Expose the method to window.interals for testing.

Test: userscripts/insert-stylesheets.html

* WebCore.exp.in: Update exports for Internals.cpp.
* WebCore.order: Update exports for Internals.cpp.
* dom/DocumentStyleSheetCollection.cpp:
(WebCore::DocumentStyleSheetCollection::~DocumentStyleSheetCollection):
(WebCore::DocumentStyleSheetCollection::addAuthorSheet): Add the stylesheet and force a style recalc.
(WebCore::DocumentStyleSheetCollection::updateActiveStyleSheets): Include author level styles.
(WebCore::DocumentStyleSheetCollection::reportMemoryUsage): Include author styles.
* dom/DocumentStyleSheetCollection.h:
(WebCore::DocumentStyleSheetCollection::documentAuthorStyleSheets): Accessor.
(DocumentStyleSheetCollection): Keep track of author styles added by script.
* testing/Internals.cpp:
(WebCore::Internals::insertAuthorCSS): Testing addAuthorSheet.
(WebCore::Internals::insertUserCSS): Testing addUserSheet.
* testing/Internals.h:
* testing/Internals.idl: Add addAuthorSheet and addUserSheet.

Source/WebKit/chromium:

* src/WebDocument.cpp:
(WebKit::WebDocument::insertUserStyleSheet): Use addAuthorSheet if an author level script is requested.

Source/WebKit2:

Update exports for Internals.cpp.

* win/WebKit2.def.in:

LayoutTests:

Add a test that makes sure that an author level style is set.

* userscripts/insert-stylesheets-expected.txt: Added.
* userscripts/insert-stylesheets.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136878 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Profiler should print a helpful message if you pass the wrong arguments
https://bugs.webkit.org/show_bug.cgi?id=104222

Reviewed by Oliver Hunt.

* Scripts/display-profiler-output:



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