diff options
| author | Steve Block <steveblock@google.com> | 2011-05-13 06:44:40 -0700 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-05-13 06:44:40 -0700 |
| commit | 08014c20784f3db5df3a89b73cce46037b77eb59 (patch) | |
| tree | 47749210d31e19e6e2f64036fa8fae2ad693476f /Source/WebCore/manual-tests/svg-node-count-vs-scroll.xhtml | |
| parent | 860220379e56aeb66424861ad602b07ee22b4055 (diff) | |
| parent | 4c3661f7918f8b3f139f824efb7855bedccb4c94 (diff) | |
| download | external_webkit-08014c20784f3db5df3a89b73cce46037b77eb59.zip external_webkit-08014c20784f3db5df3a89b73cce46037b77eb59.tar.gz external_webkit-08014c20784f3db5df3a89b73cce46037b77eb59.tar.bz2 | |
Merge changes Ide388898,Ic49f367c,I1158a808,Iacb6ca5d,I2100dd3a,I5c1abe54,Ib0ef9902,I31dbc523,I570314b3
* changes:
Merge WebKit at r75315: Update WebKit version
Merge WebKit at r75315: Add FrameLoaderClient PageCache stubs
Merge WebKit at r75315: Stub out AXObjectCache::remove()
Merge WebKit at r75315: Fix ImageBuffer
Merge WebKit at r75315: Fix PluginData::initPlugins()
Merge WebKit at r75315: Fix conflicts
Merge WebKit at r75315: Fix Makefiles
Merge WebKit at r75315: Move Android-specific WebCore files to Source
Merge WebKit at r75315: Initial merge by git.
Diffstat (limited to 'Source/WebCore/manual-tests/svg-node-count-vs-scroll.xhtml')
| -rw-r--r-- | Source/WebCore/manual-tests/svg-node-count-vs-scroll.xhtml | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/Source/WebCore/manual-tests/svg-node-count-vs-scroll.xhtml b/Source/WebCore/manual-tests/svg-node-count-vs-scroll.xhtml new file mode 100644 index 0000000..1890a53 --- /dev/null +++ b/Source/WebCore/manual-tests/svg-node-count-vs-scroll.xhtml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xmlns:svg="http://www.w3.org/2000/svg" xml:lang="en"> + <head> + <title>SVG Scrolling Performance depends on #node is Safari?</title> + + <script type="text/javascript"> + <![CDATA[ + + var SVG_NS = 'http://www.w3.org/2000/svg'; + + function init() { + var nodeCount = parseInt(prompt('# <rect> to generate? ', 50000)); + + var svgRoot = document.createElementNS(SVG_NS, 'svg'); + + for (var i = 0; i < nodeCount; i++) { + var node = document.createElementNS(SVG_NS, 'rect'); + node.setAttribute('x', i); + node.setAttribute('y', i); + node.setAttribute('width', 1); + node.setAttribute('height', i); + node.setAttribute('fill', 'red'); + + svgRoot.appendChild(node); + } + + svgRoot.style.width = nodeCount + 'px'; + svgRoot.style.height = nodeCount + 'px'; + document.body.appendChild(svgRoot); + } + + ]]> + </script> + </head> + + <body onload="init()"> + <h1>SVG Scrolling Performance depends on #node is Safari?</h1> + </body> +</html> + |
