[webkit-dev] DumpRenderTree objects not getting inserted in window object
We are using webkit as one of our module i.e. building webkit with our own application. Migrated from revision 164362 to 187486. In revision 164362 DumpRenderTree test cases were working fine. Now we have used Cmake build tool to build our system. Modified the build files and compiled the webkit. But now windows.testRunner and window.eventSender object is not working. Debugged the code , found that JS API is being used to inject testRunner and eventSender object in window object. JSObject.h putDirect () function is getting called correctly. Can some one provide any idea what has been changed internally? Any pointers are welcome. TIA, Ankit ___ webkit-dev mailing list webkit-dev@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-dev
Re: [webkit-dev] Image save and repainting inside webkit
Hi All, Working on a webkit DRT test case media/video-canvas-drawing-output.html . Test is getting failed on Win environment with only 1 pixel value difference. But is working fine on linux. Is this test should be added in the skipped list for windows ? Is their is some difference in clourspace management on win and Linux environment ? TIA. Ankit On Sat, Mar 7, 2015 at 6:32 PM, ankit srivastav <ank@gmail.com> wrote: > Hi Max > > Thanks for your reply. > > But may be you took the question into a different direction. We are trying > to make changes into Webkit code, so that the functionality works for each > and every application/Webpage. > > We have to achieve two things: > 1) An event {from within the webkit} when the whole Web Page is rendered. > 2) To Store images, so that after page gets rendered ,we can repaint them > again after doing some modifications. > > The problem is- Is it possible to repaint only the saved images again ? > And if yes is their any way to do that. > > TIA.. > ___ webkit-dev mailing list webkit-dev@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-dev
[webkit-dev] DRT Test case video-canvas-drawing-output.html failed on Win Enviornment
Hi All, Working on a webkit DRT test case media/video-canvas-drawing-output.html . Test is getting failed on Win environment with only 1 pixel value difference. But is working fine on linux. Is this test should be added in the skipped list for windows ? Is their is some difference in clourspace management on win and Linux environment ? TIA. Ankit ___ webkit-dev mailing list webkit-dev@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-dev
[webkit-dev] Image save and repainting inside webkit
Hi Max Thanks for your reply. But may be you took the question into a different direction. We are trying to make changes into Webkit code, so that the functionality works for each and every application/Webpage. We have to achieve two things: 1) An event {from within the webkit} when the whole Web Page is rendered. 2) To Store images, so that after page gets rendered ,we can repaint them again after doing some modifications. The problem is- Is it possible to repaint only the saved images again ? And if yes is their any way to do that. TIA.. ___ webkit-dev mailing list webkit-dev@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-dev
Re: [webkit-dev] Event firing and repainting of saved Images in webkit
Hi Max Thanks for your reply. But may be you took the question into a different direction. We are trying to make changes into Webkit code, so that the functionality works for each and every application/Webpage. We have to achieve two things: 1) An event {from within the webkit} when the whole Web Page is rendered. 2) To Store images, so that after page gets rendered ,we can repaint them again after doing some modifications. The problem is- Is it possible to repaint only the saved images again ? And if yes is their any way to do that. TIA.. On Wed, Mar 4, 2015 at 8:24 PM, Myles C. Maxfield mmaxfi...@apple.com wrote: It might also be worth investigating if you can implement your entire algorithm in JavaScript using canvas. The performance might be acceptable. That would greatly simplify your code. On Mar 4, 2015, at 6:50 AM, Myles C. Maxfield mmaxfi...@apple.com wrote: You might want to look at how the onLoad JavaScript event gets fired as well as how ImageLoader updates the contents of images as more bytes are downloaded. Investigating how animated gifs cause repaints might also be helpful. As far as the control of reacting to page load and setting up timers, you might want to investigate doing that part in script, and implementing only the image manipulation algorithm itself in native code. On Mar 4, 2015, at 12:44 AM, ankit srivastav ank@gmail.com wrote: Hi All, We are working on manipulation of images(falling under a certain criteria) on a web page, but the algorithms being used for the purpose are a bit slow. So, the idea is to save the images/renderImage objects and continue to render/paint the entire page and once the page has been loaded/rendered we will trigger an event which will read the saved images one by one, apply the algorithm on them, and then finally repaint them. For this mechanism to work correctly we need : 1) An event after the whole page will get rendered. 2) A procedure by which we can trigger the repainting of the saved images. Will it be possible to achieve this using events? If yes, what could be the possible approach? Thanks and Regards Ankit ___ webkit-dev mailing list webkit-dev@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-dev ___ webkit-dev mailing list webkit-dev@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-dev ___ webkit-dev mailing list webkit-dev@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-dev
[webkit-dev] Event firing and repainting of saved Images in webkit
Hi All, We are working on manipulation of images(falling under a certain criteria) on a web page, but the algorithms being used for the purpose are a bit slow. So, the idea is to save the images/renderImage objects and continue to render/paint the entire page and once the page has been loaded/rendered we will trigger an event which will read the saved images one by one, apply the algorithm on them, and then finally repaint them. For this mechanism to work correctly we need : 1) An event after the whole page will get rendered. 2) A procedure by which we can trigger the repainting of the saved images. Will it be possible to achieve this using events? If yes, what could be the possible approach? Thanks and Regards Ankit ___ webkit-dev mailing list webkit-dev@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-dev
Re: [webkit-dev] Painting /Drawing mechanism in webkit
Thanks Max, But the problem I'm facing in Imageloader.cpp is the unavailability of raw image data [unsigned char*]. I'm trying to get the image data in ImageLoader::notifyFinished(CachedResource* resource) So that after getting data I can do my changes and set the data again But m_image is not providing me the data. Is there any way I can get the raw data of the image. TIA... On Sun, Feb 1, 2015 at 5:29 AM, Myles C. Maxfield mmaxfi...@apple.com wrote: Take a look at the ImageLoader class. This is involved when new bytes of an image are downloaded, and thus eventually ends up triggering the update of the relevant portion of the screen. You can use this class as a model for updating the screen once your algorithm is complete. —Myles On Jan 30, 2015, at 8:58 PM, ankit srivastav ank@gmail.com wrote: Hi All, I'm new to webkit in context of Painting/Drawing. I'm trying to use my own algo instead of Webkit defaults Bilenear Interpolation algo for interpolation of images on a webpage. That is if destImage Size is greater then SrcImage Size my algo will also come into picture alongside Webkit Bilinear. But the problem is my algo take lots of time to do the interpolation, hence the page load becomes slow. Specially for large images it takes too much time to load the image and hence the webpage. I have tried to use my algo in PlatformGraphicsContext.cpp along with Bilinear. If I'm using a separate thread to for my algo. I'm not getting the exact result i.e. once the images are drawn by Bilinear it is not been drawn after my algo. It means I need to fire an event after interpolation is done by my algo, so that images will be drawn using the data from my algo. Please if someone can tell me the Painting/Drawing mechanism of webkit it would be great. Regards, Ank ___ webkit-dev mailing list webkit-dev@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-dev ___ webkit-dev mailing list webkit-dev@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-dev
[webkit-dev] Painting /Drawing mechanism in webkit
Hi All, I'm new to webkit in context of Painting/Drawing. I'm trying to use my own algo instead of Webkit defaults Bilenear Interpolation algo for interpolation of images on a webpage. That is if destImage Size is greater then SrcImage Size my algo will also come into picture alongside Webkit Bilinear. But the problem is my algo take lots of time to do the interpolation, hence the page load becomes slow. Specially for large images it takes too much time to load the image and hence the webpage. I have tried to use my algo in PlatformGraphicsContext.cpp along with Bilinear. If I'm using a separate thread to for my algo. I'm not getting the exact result i.e. once the images are drawn by Bilinear it is not been drawn after my algo. It means I need to fire an event after interpolation is done by my algo, so that images will be drawn using the data from my algo. Please if someone can tell me the Painting/Drawing mechanism of webkit it would be great. Regards, Ank ___ webkit-dev mailing list webkit-dev@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-dev
[webkit-dev] Exposing Mouse Simulation event API from webkit
HI All, I'm working on Webkit for WIN post. I have done changes to expose the mouse simulation API from webkit. Everything is working fine. But I have a issue I have done changes in webpage.message.in file . This file will create derived sources file. The functions I have added in a Tag (#define S_WIN) but this doesn't seems to work as in the derived sources I can't find my Tag, but I can see other tags like #if ENABLE(TOUCH_EVENTS) in derived sources files. Can someone give me an idea how I can make my Tag work for derived sources files. Reagards, Ankit ___ webkit-dev mailing list webkit-dev@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-dev
[webkit-dev] HTML5 Body onLoad event not firing
Hi All, I'm working for Webkit WIN32 port. I'm facing an issue : 1) For HTML5 video tag: videoonload = onLoad() src = E:/xyz.mp4 for the above mentioned code onLoad fucntion is not firing. but if I remove src tag value onLoad event will start firing. I have debugged and found that, :checkCompleted() is exiting from if (m_frame-document()-isDelayingLoadEvent()) return; and thus Implicit Close is not firing. Please let me know if there is any solution. Regards, Ankit Srivastava ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo/webkit-dev
[webkit-dev] HTML5 Video tag: Onload event not firing
Hi All, I'm working for Webkit WIN32 port. I'm facing an issue : 1) For HTML5 video tag videoonload = onLoad() src = E:/xyz.mp4 for the above mentioned code onLoad fucntion is not firing. but if I remove src tag value onLoad event will start firing. Please let me know if there is any solution. Regards, Ankit Srivastava ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo/webkit-dev
[webkit-dev] How to modify JsHTMLMediaElement.cpp to add STOP fucntionality
Hi All, I'm trying to add stop functionality in my application which is using webkit on WIN port. currently Play and Pause functions are available but no STOP function is present , so in JsHTMLMediaElement.cpp I have added a new function: jsHTMLMediaElementPrototypeFunctionStop(ExecState* exec) After this function and couple of changes in my application , I'm able to perform STOP functionality. But I guess I can not modify this file. So can someone please let me know , how to add this function ?? Regards, Ankit ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo/webkit-dev
Re: [webkit-dev] Application crash when calling WKDrawMediaUIPart().
I'm working on windows, WIN32 port... My application is trying to play a video. From the same application I'm able to see pictures , but application is crashing while playing audio and video file. On 10/22/12, ankit srivastav ank@gmail.com wrote: Hi, Can anyone let me know why I'm getting a crash when my application function calls the fucntion WKDrawMediaUIPart(). Regards, ank_code ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo/webkit-dev