Remove the topDocumentURL member of the GraphicsContext3D::Attributes struct
authorzandobersek@gmail.com <zandobersek@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 23 Jul 2013 11:24:10 +0000 (11:24 +0000)
committerzandobersek@gmail.com <zandobersek@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 23 Jul 2013 11:24:10 +0000 (11:24 +0000)
https://bugs.webkit.org/show_bug.cgi?id=118987

Reviewed by Darin Adler.

Remove the topDocumentURL member that currently resides in the GraphicsContext3D::Attributes struct.
It's not used anywhere and only has one place where it is set, in WebGLRenderingContext::create.

* html/canvas/WebGLRenderingContext.cpp:
(WebCore::WebGLRenderingContext::create):
* platform/graphics/GraphicsContext3D.h:

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

Source/WebCore/ChangeLog
Source/WebCore/html/canvas/WebGLRenderingContext.cpp
Source/WebCore/platform/graphics/GraphicsContext3D.h

index 615c3ad..736fb46 100644 (file)
@@ -1,5 +1,19 @@
 2013-07-23  Zan Dobersek  <zdobersek@igalia.com>
 
+        Remove the topDocumentURL member of the GraphicsContext3D::Attributes struct
+        https://bugs.webkit.org/show_bug.cgi?id=118987
+
+        Reviewed by Darin Adler.
+
+        Remove the topDocumentURL member that currently resides in the GraphicsContext3D::Attributes struct.
+        It's not used anywhere and only has one place where it is set, in WebGLRenderingContext::create.
+
+        * html/canvas/WebGLRenderingContext.cpp:
+        (WebCore::WebGLRenderingContext::create):
+        * platform/graphics/GraphicsContext3D.h:
+
+2013-07-23  Zan Dobersek  <zdobersek@igalia.com>
+
         Remove unused DrawingBuffer::paintRenderingResultsToImageData
         https://bugs.webkit.org/show_bug.cgi?id=118986
 
index 4dfa3b7..61a68d4 100644 (file)
@@ -430,7 +430,6 @@ PassOwnPtr<WebGLRenderingContext> WebGLRenderingContext::create(HTMLCanvasElemen
     attributes.noExtensions = true;
     attributes.shareResources = false;
     attributes.preferDiscreteGPU = true;
-    attributes.topDocumentURL = document->topDocument()->url();
 
     RefPtr<GraphicsContext3D> context(GraphicsContext3D::create(attributes, hostWindow));
 
index ab46727..d6f57ba 100644 (file)
@@ -29,7 +29,6 @@
 #include "GraphicsTypes3D.h"
 #include "Image.h"
 #include "IntRect.h"
-#include "KURL.h"
 #include "PlatformLayer.h"
 #include <wtf/HashMap.h>
 #include <wtf/ListHashSet.h>
@@ -454,7 +453,6 @@ public:
         bool noExtensions;
         bool shareResources;
         bool preferDiscreteGPU;
-        KURL topDocumentURL;
     };
 
     enum RenderStyle {