Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(833)

Unified Diff: third_party/WebKit/Source/core/xml/DocumentXMLTreeViewer.js

Issue 1416793004: Remove support for -webkit-canvas and Document.getCSSCanvasContext. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/xml/DocumentXMLTreeViewer.js
diff --git a/third_party/WebKit/Source/core/xml/DocumentXMLTreeViewer.js b/third_party/WebKit/Source/core/xml/DocumentXMLTreeViewer.js
index 983ea657ff12375c6956df66b722d7ffe6283e86..c377a2c2250dc3434419fb2ecd7f1b02165b34ef 100644
--- a/third_party/WebKit/Source/core/xml/DocumentXMLTreeViewer.js
+++ b/third_party/WebKit/Source/core/xml/DocumentXMLTreeViewer.js
@@ -59,7 +59,6 @@ privateScriptController.installClass("Document", function(DocumentPrototype) {
for (var i = 0; i < nodeParentPairs.length; i++)
processNode(nodeParentPairs[i].parentElement, nodeParentPairs[i].node);
- drawArrows();
initButtons();
return false;
@@ -340,33 +339,6 @@ privateScriptController.installClass("Document", function(DocumentPrototype) {
return attribute;
}
- // Tree behaviour.
-
- function drawArrows()
- {
- var ctx = document.getCSSCanvasContext("2d", "arrowRight", 10, 11);
-
- ctx.fillStyle = "rgb(90,90,90)";
- ctx.beginPath();
- ctx.moveTo(0, 0);
- ctx.lineTo(0, 8);
- ctx.lineTo(7, 4);
- ctx.lineTo(0, 0);
- ctx.fill();
- ctx.closePath();
-
- var ctx = document.getCSSCanvasContext("2d", "arrowDown", 10, 10);
-
- ctx.fillStyle = "rgb(90,90,90)";
- ctx.beginPath();
- ctx.moveTo(0, 0);
- ctx.lineTo(8, 0);
- ctx.lineTo(4, 7);
- ctx.lineTo(0, 0);
- ctx.fill();
- ctx.closePath();
- }
-
function expandFunction(sectionId)
{
return function()

Powered by Google App Engine
This is Rietveld 408576698