| Index: LayoutTests/fast/shapes/resources/multi-segment-polygon.js
|
| diff --git a/LayoutTests/fast/shapes/resources/multi-segment-polygon.js b/LayoutTests/fast/shapes/resources/multi-segment-polygon.js
|
| deleted file mode 100644
|
| index e592c61fe89bb3c2b56cc5b2535b208b07ca6583..0000000000000000000000000000000000000000
|
| --- a/LayoutTests/fast/shapes/resources/multi-segment-polygon.js
|
| +++ /dev/null
|
| @@ -1,39 +0,0 @@
|
| -function generatePolygon(width, height, fontSize, points, content, elementId) {
|
| - var div = createOrInsert(elementId);
|
| - var polygon = points.map(function(elem, index, array) {
|
| - return elem.toString() + 'px' + (index < array.length - 1 && index % 2 == 1 ? ',' : '');
|
| - }).join(' ');
|
| - polygon = 'polygon(' + polygon + ')';
|
| - div.style.setProperty('shape-inside', polygon);
|
| - div.style.setProperty('width', width + 'px');
|
| - div.style.setProperty('height', height + 'px');
|
| - div.style.setProperty('font', fontSize + 'px/1 Ahem, sans-serif');
|
| - div.style.setProperty('color', 'green');
|
| - div.style.setProperty('word-wrap', 'break-word');
|
| - div.innerHTML = content;
|
| -}
|
| -
|
| -function simulateWithText(width, height, fontSize, content, elementId) {
|
| - var div = createOrInsert(elementId);
|
| - div.style.setProperty('width', width + 'px');
|
| - div.style.setProperty('height', height + 'px');
|
| - div.style.setProperty('font', fontSize + 'px/1 Ahem, sans-serif');
|
| - div.style.setProperty('color', 'green');
|
| - if (content instanceof Array) {
|
| - div.style.setProperty('white-space', 'pre');
|
| - content = content.join('\n');
|
| - }
|
| - div.innerHTML = content;
|
| -}
|
| -
|
| -function createOrInsert(elementId) {
|
| - if (elementId)
|
| - return document.getElementById(elementId);
|
| -
|
| - var div = document.createElement('div');
|
| - if (document.body.childNodes.length)
|
| - docuemnt.body.insertBefore(div, document.body.childNodes[0]);
|
| - else
|
| - document.body.appendChild(div);
|
| - return div;
|
| -}
|
|
|