Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Bug 946065 - Part 1: Move content/canvas/ to dom/ and flatten subdire…
Browse files Browse the repository at this point in the history
…ctories. r=ehsan
  • Loading branch information
poiru committed Jul 25, 2014
1 parent d02ab4e commit 4d3b523
Show file tree
Hide file tree
Showing 883 changed files with 142 additions and 159 deletions.
10 changes: 0 additions & 10 deletions content/canvas/moz.build

This file was deleted.

15 changes: 0 additions & 15 deletions content/canvas/public/moz.build

This file was deleted.

6 changes: 0 additions & 6 deletions content/canvas/test/android.json

This file was deleted.

2 changes: 0 additions & 2 deletions content/canvas/test/image_green-redirect^headers^

This file was deleted.

2 changes: 1 addition & 1 deletion content/html/content/src/HTMLCanvasElement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#include "ActiveLayerTracker.h"

#ifdef MOZ_WEBGL
#include "../canvas/src/WebGL2Context.h"
#include "WebGL2Context.h"
#endif

using namespace mozilla::layers;
Expand Down
2 changes: 1 addition & 1 deletion content/html/content/src/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,11 @@ include('/ipc/chromium/chromium-config.mozbuild')
FINAL_LIBRARY = 'xul'
LOCAL_INCLUDES += [
'/content/base/src',
'/content/canvas/src',
'/content/html/document/src',
'/content/media/',
'/content/xul/content/src',
'/dom/base',
'/dom/canvas',
'/dom/xbl',
'/editor/libeditor/base',
'/editor/libeditor/text',
Expand Down
1 change: 0 additions & 1 deletion content/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

PARALLEL_DIRS += [
'base',
'canvas',
'html',
'mathml/content/src',
'media',
Expand Down
5 changes: 0 additions & 5 deletions content/test/reftest/reftest.list
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
# Canvas reftests
# From: /content/test/reftest
# To: /content/canvas/test/reftest
skip-if(xulFennec) include ../../canvas/test/reftest/reftest.list

include ../../base/test/reftest/reftest.list # bug 920877

== bug453105.html bug453105-ref.html
Expand Down
2 changes: 1 addition & 1 deletion dom/bindings/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ MSVC_ENABLE_PGO = True

LOCAL_INCLUDES += [
'/content/base/src',
'/content/canvas/src',
'/content/html/content/src',
'/content/html/document/src',
'/content/media/webaudio',
Expand All @@ -54,6 +53,7 @@ LOCAL_INCLUDES += [
'/dom/battery',
'/dom/bluetooth',
'/dom/camera',
'/dom/canvas',
'/dom/file',
'/dom/indexedDB',
'/dom/src/geolocation',
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ SOURCES += sorted('%s.cpp' % t for t in CPP_UNIT_TESTS)
FAIL_ON_WARNINGS = True

LOCAL_INCLUDES += [
'../src',
'../',
]

USE_LIBS += [
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 12 additions & 0 deletions content/canvas/src/moz.build → dom/canvas/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

TEST_DIRS += ['test']
TEST_TOOL_DIRS += ['compiledtest']

EXPORTS += [
'nsICanvasRenderingContextInternal.h',
]

EXPORTS.mozilla.ipc += [
'DocumentRendererChild.h',
'DocumentRendererParent.h',
]

EXPORTS.mozilla.dom += [
'CanvasGradient.h',
'CanvasPattern.h',
Expand Down
6 changes: 6 additions & 0 deletions dom/canvas/test/android.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"runtests": {},
"excludetests": {
"dom/canvas/test/webgl/test_webgl_conformance_test_suite.html": ""
}
}
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
// Now run the non-chrome code to verify the security of this WebGL chrome-only extension.

var iframe = document.createElement("iframe");
iframe.src = "http://mochi.test:8888/chrome/content/canvas/test/chrome/nonchrome_webgl_debug_renderer_info.html";
iframe.src = "http://mochi.test:8888/chrome/dom/canvas/test/chrome/nonchrome_webgl_debug_renderer_info.html";

iframe.onload = function () {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
}

// Now kick off the tests.
const testPath = "/tests/content/canvas/test/crossorigin/"
const testPath = "/tests/dom/canvas/test/crossorigin/"

// First column is image file, second column is what CORS headers the server sends
const imageFiles = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
var manager = new MediaTestManager;
var corsTests = [];

const host = "http://example.com/tests/content/canvas/test/crossorigin/video.sjs";
const host = "http://example.com/tests/dom/canvas/test/crossorigin/video.sjs";
const serverAttrValues = [
[ "&cors=none", "none" ],
[ "&cors=anonymous", "anonymous" ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,68 +73,68 @@
}


testTexture("http://mochi.test:8888/tests/content/canvas/test/crossorigin/image.png",
testTexture("http://mochi.test:8888/tests/dom/canvas/test/crossorigin/image.png",
"missing-value-default",
OK);
testTexture("http://mochi.test:8888/tests/content/canvas/test/crossorigin/image.png",
testTexture("http://mochi.test:8888/tests/dom/canvas/test/crossorigin/image.png",
"",
OK);
testTexture("http://mochi.test:8888/tests/content/canvas/test/crossorigin/image.png",
testTexture("http://mochi.test:8888/tests/dom/canvas/test/crossorigin/image.png",
"just-crossOrigin-without-value",
OK);
testTexture("http://example.com/tests/content/canvas/test/crossorigin/image.png",
testTexture("http://example.com/tests/dom/canvas/test/crossorigin/image.png",
"missing-value-default",
"SecurityError");
testTexture("http://example.com/tests/content/canvas/test/crossorigin/image.png",
testTexture("http://example.com/tests/dom/canvas/test/crossorigin/image.png",
"",
"SecurityError");
testTexture("http://example.com/tests/content/canvas/test/crossorigin/image.png",
testTexture("http://example.com/tests/dom/canvas/test/crossorigin/image.png",
"just-crossOrigin-without-value",
"SecurityError");

testTexture("http://example.com/tests/content/canvas/test/crossorigin/image-allow-star.png",
testTexture("http://example.com/tests/dom/canvas/test/crossorigin/image-allow-star.png",
"missing-value-default",
"SecurityError");
testTexture("http://example.com/tests/content/canvas/test/crossorigin/image-allow-star.png",
testTexture("http://example.com/tests/dom/canvas/test/crossorigin/image-allow-star.png",
"",
OK);
testTexture("http://example.com/tests/content/canvas/test/crossorigin/image-allow-star.png",
testTexture("http://example.com/tests/dom/canvas/test/crossorigin/image-allow-star.png",
"just-crossOrigin-without-value",
OK);
testTexture("http://example.com/tests/content/canvas/test/crossorigin/image-allow-star.png",
testTexture("http://example.com/tests/dom/canvas/test/crossorigin/image-allow-star.png",
"anonymous",
OK);
testTexture("http://example.com/tests/content/canvas/test/crossorigin/image-allow-star.png",
testTexture("http://example.com/tests/dom/canvas/test/crossorigin/image-allow-star.png",
"use-credentials",
"SecurityError");

testTexture("http://example.com/tests/content/canvas/test/crossorigin/image-allow-credentials.png",
testTexture("http://example.com/tests/dom/canvas/test/crossorigin/image-allow-credentials.png",
"missing-value-default",
"SecurityError");
testTexture("http://example.com/tests/content/canvas/test/crossorigin/image-allow-credentials.png",
testTexture("http://example.com/tests/dom/canvas/test/crossorigin/image-allow-credentials.png",
"",
OK);
testTexture("http://example.com/tests/content/canvas/test/crossorigin/image-allow-credentials.png",
testTexture("http://example.com/tests/dom/canvas/test/crossorigin/image-allow-credentials.png",
"just-crossOrigin-without-value",
OK);
testTexture("http://example.com/tests/content/canvas/test/crossorigin/image-allow-credentials.png",
testTexture("http://example.com/tests/dom/canvas/test/crossorigin/image-allow-credentials.png",
"anonymous",
OK);
testTexture("http://example.com/tests/content/canvas/test/crossorigin/image-allow-credentials.png",
testTexture("http://example.com/tests/dom/canvas/test/crossorigin/image-allow-credentials.png",
"use-credentials",
OK);

// Test that bad values for crossorigin="..." are interpreted as invalid-value-default which is "anonymous".
testTexture("http://mochi.test:8888/tests/content/canvas/test/crossorigin/image.png",
testTexture("http://mochi.test:8888/tests/dom/canvas/test/crossorigin/image.png",
"foobar",
OK);
testTexture("http://example.com/tests/content/canvas/test/crossorigin/image.png",
testTexture("http://example.com/tests/dom/canvas/test/crossorigin/image.png",
"foobar",
"SecurityError");
testTexture("http://example.com/tests/content/canvas/test/crossorigin/image-allow-star.png",
testTexture("http://example.com/tests/dom/canvas/test/crossorigin/image-allow-star.png",
"foobar",
OK);
testTexture("http://example.com/tests/content/canvas/test/crossorigin/image-allow-credentials.png",
testTexture("http://example.com/tests/dom/canvas/test/crossorigin/image-allow-credentials.png",
"foobar",
OK);

Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
2 changes: 2 additions & 0 deletions dom/canvas/test/image_green-redirect^headers^
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
HTTP 302 Moved
Location: http://example.com/tests/dom/canvas/test/image_green-1x1.png
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
Loading

0 comments on commit 4d3b523

Please sign in to comment.