From: jianli@chromium.org Date: Tue, 25 Aug 2009 21:04:58 +0000 (+0000) Subject: [V8] Fix compiling errors in Chromium build caused by Canvas3D changes from r47752. X-Git-Url: http://git.webkit.org/?p=WebKit-https.git;a=commitdiff_plain;h=e5b64f8d96f3aceba75bb6fba35b87bb036220b8;hp=78d37fe73c658cf2b6a5e351610fc86b2aa150af [V8] Fix compiling errors in Chromium build caused by Canvas3D changes from r47752. https://bugs.webkit.org/show_bug.cgi?id=28717 Reviewed by David Levin. * bindings/v8/DOMObjectsInclude.h: * bindings/v8/DerivedSourcesAllInOne.cpp: * bindings/v8/V8Index.cpp: * bindings/v8/V8Index.h: * bindings/v8/custom/V8DocumentCustom.cpp: (WebCore::CALLBACK_FUNC_DECL): * bindings/v8/custom/V8HTMLCanvasElementCustom.cpp: (WebCore::CALLBACK_FUNC_DECL): git-svn-id: https://svn.webkit.org/repository/webkit/trunk@47757 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog index 9655803..645dd1f 100644 --- a/WebCore/ChangeLog +++ b/WebCore/ChangeLog @@ -1,3 +1,19 @@ +2009-08-25 Jian Li + + Reviewed by David Levin. + + [V8] Fix compiling errors in Chromium build caused by Canvas3D changes from r47752. + https://bugs.webkit.org/show_bug.cgi?id=28717 + + * bindings/v8/DOMObjectsInclude.h: + * bindings/v8/DerivedSourcesAllInOne.cpp: + * bindings/v8/V8Index.cpp: + * bindings/v8/V8Index.h: + * bindings/v8/custom/V8DocumentCustom.cpp: + (WebCore::CALLBACK_FUNC_DECL): + * bindings/v8/custom/V8HTMLCanvasElementCustom.cpp: + (WebCore::CALLBACK_FUNC_DECL): + 2009-08-25 Alpha Lam Reviewed by David Levin. diff --git a/WebCore/bindings/v8/DOMObjectsInclude.h b/WebCore/bindings/v8/DOMObjectsInclude.h index d5a4dcc..2a7f487 100644 --- a/WebCore/bindings/v8/DOMObjectsInclude.h +++ b/WebCore/bindings/v8/DOMObjectsInclude.h @@ -36,6 +36,7 @@ #include "CanvasGradient.h" #include "CanvasPattern.h" #include "CanvasPixelArray.h" +#include "CanvasRenderingContext.h" #include "CanvasRenderingContext2D.h" #include "CanvasStyle.h" #include "CharacterData.h" diff --git a/WebCore/bindings/v8/DerivedSourcesAllInOne.cpp b/WebCore/bindings/v8/DerivedSourcesAllInOne.cpp index 6af7f54..ff659fc 100644 --- a/WebCore/bindings/v8/DerivedSourcesAllInOne.cpp +++ b/WebCore/bindings/v8/DerivedSourcesAllInOne.cpp @@ -37,6 +37,7 @@ #include "bindings/V8CanvasGradient.cpp" #include "bindings/V8CanvasPattern.cpp" #include "bindings/V8CanvasPixelArray.cpp" +#include "bindings/V8CanvasRenderingContext.cpp" #include "bindings/V8CanvasRenderingContext2D.cpp" #include "bindings/V8CDATASection.cpp" #include "bindings/V8CharacterData.cpp" diff --git a/WebCore/bindings/v8/V8Index.cpp b/WebCore/bindings/v8/V8Index.cpp index ca430a8..25e4dd7 100644 --- a/WebCore/bindings/v8/V8Index.cpp +++ b/WebCore/bindings/v8/V8Index.cpp @@ -33,6 +33,7 @@ #include "V8Attr.h" #include "V8BarInfo.h" +#include "V8CanvasRenderingContext.h" #include "V8CanvasRenderingContext2D.h" #include "V8CanvasGradient.h" #include "V8CanvasPattern.h" diff --git a/WebCore/bindings/v8/V8Index.h b/WebCore/bindings/v8/V8Index.h index 07646e8..eabbf3b 100644 --- a/WebCore/bindings/v8/V8Index.h +++ b/WebCore/bindings/v8/V8Index.h @@ -313,6 +313,7 @@ typedef v8::Persistent (*FunctionTemplateFactory)(); V(BARINFO, BarInfo) \ V(CANVASGRADIENT, CanvasGradient) \ V(CANVASPATTERN, CanvasPattern) \ + V(CANVASRENDERINGCONTEXT, CanvasRenderingContext) \ V(CANVASRENDERINGCONTEXT2D, CanvasRenderingContext2D) \ V(CLIENTRECT, ClientRect) \ V(CLIENTRECTLIST, ClientRectList) \ diff --git a/WebCore/bindings/v8/custom/V8DocumentCustom.cpp b/WebCore/bindings/v8/custom/V8DocumentCustom.cpp index cefcecc9..c67d87e 100644 --- a/WebCore/bindings/v8/custom/V8DocumentCustom.cpp +++ b/WebCore/bindings/v8/custom/V8DocumentCustom.cpp @@ -92,8 +92,8 @@ CALLBACK_FUNC_DECL(DocumentGetCSSCanvasContext) String name = toWebCoreString(args[1]); int width = toInt32(args[2]); int height = toInt32(args[3]); - CanvasRenderingContext2D* result = imp->getCSSCanvasContext(contextId, name, width, height); - return V8DOMWrapper::convertToV8Object(V8ClassIndex::CANVASRENDERINGCONTEXT2D, result); + CanvasRenderingContext* result = imp->getCSSCanvasContext(contextId, name, width, height); + return V8DOMWrapper::convertToV8Object(V8ClassIndex::CANVASRENDERINGCONTEXT, result); } } // namespace WebCore diff --git a/WebCore/bindings/v8/custom/V8HTMLCanvasElementCustom.cpp b/WebCore/bindings/v8/custom/V8HTMLCanvasElementCustom.cpp index 6ba9367..ba381a5 100644 --- a/WebCore/bindings/v8/custom/V8HTMLCanvasElementCustom.cpp +++ b/WebCore/bindings/v8/custom/V8HTMLCanvasElementCustom.cpp @@ -44,8 +44,8 @@ CALLBACK_FUNC_DECL(HTMLCanvasElementGetContext) v8::Handle holder = args.Holder(); HTMLCanvasElement* imp = V8DOMWrapper::convertDOMWrapperToNode(holder); String contextId = toWebCoreString(args[0]); - CanvasRenderingContext2D* result = imp->getContext(contextId); - return V8DOMWrapper::convertToV8Object(V8ClassIndex::CANVASRENDERINGCONTEXT2D, result); + CanvasRenderingContext* result = imp->getContext(contextId); + return V8DOMWrapper::convertToV8Object(V8ClassIndex::CANVASRENDERINGCONTEXT, result); } } // namespace WebCore