[webkit-dev] make failure due to libffi
Hi I am trying to port webkit to Microblaze. It goes well until almost the last step that it is building the libwebkit.la It needs to use libffi and there is no port of libffi for microblaze. I tried to do it my self but no luck. As far as I understood libffi is used in webkit for JavaScript. Is there any way that I can disable JavaScript when compiling and building webkit? Thanks Soheil Servati Beiragh PhD Candidate, ECE Department, Research Center for Integrated Microsystems, University of Windsor. Room 268 Essex Hall 401 Sunset Avenue Windsor, Ontario Canada, N9B 3P4 Phone: 519-253-3000 Ext 3396 Email: serv...@uwindsor.ca___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] Reading from Object
I think my issue some kind of lack of knowledge in C++. I'm trying to redesign the the text placement engine in webkit. For my purpose I need to get access to font face which is stored in the place I mentioned. I know that they are private but I want to read them, and I know it is possible to do so. Soheil Servati Beiragh PhD Candidate, ECE Department, Research Center for Integrated Microsystems, University of Windsor. Room 268 Essex Hall 401 Sunset Avenue Windsor, Ontario Canada, N9B 3P4 Phone: 519-253-3000 Ext 3396 Email: serv...@uwindsor.ca From: Ryosuke Niwa rn...@webkit.org To: Soheil Servati Beiragh sserv...@yahoo.com Cc: webkit-dev@lists.webkit.org webkit-dev@lists.webkit.org Sent: Wednesday, October 12, 2011 3:37 AM Subject: Re: [webkit-dev] Reading from Object What are you trying to do here? Clearly, all member variables are private here so you shouldn't be accessing directly by m_fontlist.m_ptr-m_cachePrimarySimpleFontData-m_platformData.m_face. I don't know much about the rendering engine but perhaps other contributors can help you out if you give us more context in which you're trying to do this. - Ryosuke On Tue, Oct 11, 2011 at 12:57 PM, Soheil Servati Beiragh sserv...@yahoo.com wrote: In RenderBlockLineLayout.cpp, I'm trying to read face of the font from pointer to a structure named f below: RenderText* t = toRenderText(o); const Font f = t-style(firstLine)-font(); the data I need exist in: f.m_fontlist.m_ptr-m_cachePrimarySimpleFontData-m_platformData.m_face I have tried all the ways I could think of but either I got errors when adding headers to the above file or couldn't read the face value or the m_ptr being private. Can you please show me a way to reach there? It might be my lack of knowledge of C++ Soheil Servati Beiragh PhD Candidate, ECE Department, Research Center for Integrated Microsystems, University of Windsor. Room 268 Essex Hall 401 Sunset Avenue Windsor, Ontario Canada, N9B 3P4 Phone: 519-253-3000 Ext 3396 Email: serv...@uwindsor.ca ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
[webkit-dev] Reading from Object
In RenderBlockLineLayout.cpp, I'm trying to read face of the font from pointer to a structure named f below: RenderText* t = toRenderText(o); const Font f = t-style(firstLine)-font(); the data I need exist in: f.m_fontlist.m_ptr-m_cachePrimarySimpleFontData-m_platformData.m_face I have tried all the ways I could think of but either I got errors when adding headers to the above file or couldn't read the face value or the m_ptr being private. Can you please show me a way to reach there? It might be my lack of knowledge of C++ Soheil Servati Beiragh PhD Candidate, ECE Department, Research Center for Integrated Microsystems, University of Windsor. Room 268 Essex Hall 401 Sunset Avenue Windsor, Ontario Canada, N9B 3P4 Phone: 519-253-3000 Ext 3396 Email: serv...@uwindsor.ca___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
[webkit-dev] Reading from Object
In RenderBlockLineLayout.cpp, I'm trying to read face of the font from pointer to a structure named f below: RenderText* t = toRenderText(o); const Font f = t-style(firstLine)-font(); the data I need exist in: f.m_fontlist.m_ptr-m_cachePrimarySimpleFontData-m_platformData.m_face I have tried all the ways I could think of but either I got errors when adding headers to the above file or couldn't read the face value or the m_ptr being private. Can you please show me a way to reach there? It might be my lack of knowledge of C++ Soheil Servati Beiragh PhD Candidate, ECE Department, Research Center for Integrated Microsystems, University of Windsor. Room 268 Essex Hall 401 Sunset Avenue Windsor, Ontario Canada, N9B 3P4 Phone: 519-253-3000 Ext 3396 Email: serv...@uwindsor.ca___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
[webkit-dev] Text Box in Frame Layout
Hi I'm doing a redesign on text processing. Previously I have had some discussions on the mailing list but after all I couldn't find the start place where webkit starts the inline box for text. There is a place in rendering process where webkit sees that there is paragraph of text on the webframe and it needs to decide how big it will be to fit that text. It has the width and needs to calculate the height of that box. I want to know where is this place. Thanks for any help Soheil Servati Beiragh PhD Candidate, ECE Department, Research Center for Integrated Microsystems, University of Windsor. Room 268 Essex Hall 401 Sunset Avenue Windsor, Ontario Canada, N9B 3P4 Phone: 519-253-3000 Ext 3396 Email: serv...@uwindsor.ca___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
[webkit-dev] WebKit port to my own system?!
I was wondering if there is any version or project of webkit that can be used to port on my own system? I mean a version that doesn't use GTK or...to access frame buffer. A version or a project that uses dumb frame buffer and I can fill the place of GTK or ...for it? Soheil Servati Beiragh PhD Candidate, ECE Department, Research Center for Integrated Microsystems, University of Windsor. Room 268 Essex Hall 401 Sunset Avenue Windsor, Ontario Canada, N9B 3P4 Phone: 519-253-3000 Ext 3396 Email: serv...@uwindsor.ca___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] Font Name
I can add to this that If someone wants to work on text rendering and doesn't want to deal with html or CSS parsing, he can find an index for the font family under: Font-m_fontDescription-m_familyList-m_family-m_Data. I know for example that index for monospace family is 67 or for times new roman is 84 but I still don't know if there is a table some where about all indexes for font families. Soheil Servati Beiragh PhD Candidate, ECE Department, Research Center for Integrated Microsystems, University of Windsor. Room 268 Essex Hall 401 Sunset Avenue Windsor, Ontario Canada, N9B 3P4 Phone: 519-253-3000 Ext 3396 Email: serv...@uwindsor.ca From: Eric Seidel e...@webkit.org To: Mustafizur Rahaman mustaf.h...@gmail.com Cc: Soheil Servati sserv...@yahoo.com; WebKit Development webkit-dev@lists.webkit.org Sent: Sunday, May 29, 2011 12:59 PM Subject: Re: [webkit-dev] Font Name There are a couple steps missing, but this hits most of the important points. I think one could turn such into a blog post with diagrams if so desired. -eric On Sat, May 21, 2011 at 5:55 PM, Mustafizur Rahaman mustaf.h...@gmail.com wrote: Hi, When you are drawing some text, you create a RenderText(RenderObject) which has all the rendering info the m_style of RenderText has the style info required to render the text. Let's consider the following style data I have in my html page style type=text/css body.rahaman{ font:30px courier; } /style body class=rahaman Rahaman /body Once the HTMLTreeBuilder parses the token, it creates HTMLStyleElement CSSStyleSheet then asks the CSSParser to parse the StyleSheet. From there it comes to CSSParser::parseValue()=CSSParser::parseFont() as the I have only used font property We create a FontValue (which contain all the attribute a font property can have like style, size, variant, family etc= in this font_family, you can actually see the font name you have used ). In CSSParser::parseFont, we populate the FontValue structure (you can find the font family name in font-family), calls CSSParser::addProperty() where we create a CSSProperty with the FontValue/CSSValue being passed this property is being stored in CSSParser::m_parsedProperties. Then we call CSSParser::createStyleRule where we used the m_parsedProperties mentioned before to create a CSSMutableStyleDeclaration set this declaration for the CSSRule. We then create CSSStyleSelector and call CSSStyleSelector::styleForElement for the root element. Here somehow (I don't have much details what happens in berween but figured out that we retrieve the same CSSMutableStyleDeclaration mentioned above) call CSSStyleSelector::applyProperty(). Here each StyleSelector has its RenderStyle (m_style), where from we retrieve the FontDescription add the properties accordingly. On the other hand, each RenderObject (the corresponding node in the RenderTree for a node in DOM tree) has RenderStyle, which gets the value we retrieved above. Finally we call GraphicsContext::drawText() passing the Font which we have retrieved from the RenderStyle we dsicussed above. I am not sure if this is what you were looking for, I just shared whatever I knew of the related area. Please let me know if you need anything else. Thanks, Rahaman On Fri, May 20, 2011 at 12:22 AM, Soheil Servati Beiragh sserv...@yahoo.com wrote: Hi I want to know after webkit parses the html file where does it save the font that is used for text? It definitely won't save a name for the font but there should be some kind of index or sth to tell the rendering engine which font is being used. Thanks in advance Soheil Servati Beiragh PhD Candidate, ECE Department, Research Center for Integrated Microsystems, University of Windsor. Room 268 Essex Hall 401 Sunset Avenue Windsor, Ontario Canada, N9B 3P4 Phone: 519-253-3000 Ext 3396 Email: serv...@uwindsor.ca ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] Glyph data in Rendering Text
I didn't found #webkit in the list when I used the IRC chat client software. Soheil Servati Beiragh PhD Candidate, ECE Department, Research Center for Integrated Microsystems, University of Windsor. Room 268 Essex Hall 401 Sunset Avenue Windsor, Ontario Canada, N9B 3P4 Phone: 519-253-3000 Ext 3396 Email: serv...@uwindsor.ca From: Eric Seidel e...@webkit.org To: Soheil Servati Beiragh sserv...@yahoo.com Sent: Sunday, May 29, 2011 4:50 PM Subject: Re: [webkit-dev] Glyph data in Rendering Text #webkit-efl is not likely as useful as #webkit. EFL is just a port, #webkit is where the core devs hang out. On Wed, May 18, 2011 at 3:24 PM, Soheil Servati Beiragh sserv...@yahoo.com wrote: I couldn't manage to find you on IRC yet. I joined the channel #webkit-efl but for now no luck. Any way... I'm working on a new text layout scheme for webkit That sounds like a bad idea... What do you mean by a new text layout scheme? Is it spec'd anywhere? Does any other browser do the scheme in question? How does it interact with CSS layout? and I needed to find out: 1. Does webkit renders bitmap glyphs before it starts to do layout or it just uses the data from font file for metrics? WebKit does not render glyphs. The platform's font system does. Source/WebCore/platform/graphics (and /text) have abstractions for taling to the various platform font systems. 2. If it does, where does it save the bitmap glyphs and if not where it saves the data from font file? Again, this is all handled by the underlying platform libraries. WebCore keeps a glyph cache. Where it caches glyph identifiers (pointers on some platforms) as well as some measurement information per-character. But it just hands those identifiers off to the platform again to do the drawing. 3. I need to find out where it gives the layout engine the size of the block for text and the position of the block on screen? This sort of information is calculated during layout() and stored on the RenderObjects. RenderBoxModelObject is the superclass for all RenderObjects which layout according to the CSS box model (which you can search for on google and read more about). Search for my name on YouTube to find a video describing some of this. Thanks for your attention Again, inventing a new layout scheme is probably a bad idea. Designing one in a research paper is fine, but you probably won't want to implement it... :) SVG Text has some of its own line layout. You'll need to learn more about the line box tree. (InlineBox and subclasses.) MathML also does some of its own layout modifications on top of CSS line layout. Best of luck. Soheil Servati Beiragh PhD Candidate, ECE Department, Research Center for Integrated Microsystems, University of Windsor. Room 268 Essex Hall 401 Sunset Avenue Windsor, Ontario Canada, N9B 3P4 Phone: 519-253-3000 Ext 3396 Email: serv...@uwindsor.ca From: Eric Seidel e...@webkit.org To: Soheil Servati Beiragh sserv...@yahoo.com Sent: Tuesday, May 17, 2011 4:35 PM Subject: Re: [webkit-dev] Glyph data in Rendering Text Did you find your answer? I'm on #webkit as 'eseidel' On Mon, May 16, 2011 at 12:40 PM, Eric Seidel e...@webkit.org wrote: http://www.webkit.org/contact.html On May 16, 2011 12:25 PM, Soheil Servati Beiragh sserv...@yahoo.com wrote: what do you mean by #webkit? Soheil Servati Beiragh PhD Candidate, ECE Department, Research Center for Integrated Microsystems, University of Windsor. Room 268 Essex Hall 401 Sunset Avenue Windsor, Ontario Canada, N9B 3P4 Phone: 519-253-3000 Ext 3396 Email: serv...@uwindsor.ca From: Eric Seidel e...@webkit.org To: Soheil Servati Beiragh sserv...@yahoo.com Sent: Monday, May 16, 2011 2:11 PM Subject: Re: [webkit-dev] Glyph data in Rendering Text Best to discuss this on #webkit. On Mon, May 16, 2011 at 10:58 AM, Soheil Servati Beiragh sserv...@yahoo.com wrote: In the while loop on line 1944 of RenderBlockLineLayout.cpp the script should use the width of characters from glyph metrics to determine where to put the line break. I want to know where it looks for that data. I did searched and grep the webcore/platform/graphics before but nothing useful in glyph header files so far! Soheil Servati Beiragh PhD Candidate, ECE Department, Research Center for Integrated Microsystems, University of Windsor. Room 268 Essex Hall 401 Sunset Avenue Windsor, Ontario Canada, N9B 3P4 Phone: 519-253-3000 Ext 3396 Email: serv...@uwindsor.ca From: Eric Seidel e...@webkit.org To: Soheil Servati Beiragh sserv...@yahoo.com Cc: webkit-dev@lists.webkit.org webkit-dev@lists.webkit.org Sent: Monday, May 16, 2011 1:50 PM Subject: Re: [webkit-dev] Glyph data in Rendering Text Look under Sources/WebCore/platform/graphics. Or just grep the source directory for glyph. :) -eric On Mon, May 16
[webkit-dev] Font Name
Hi I want to know after webkit parses the html file where does it save the font that is used for text? It definitely won't save a name for the font but there should be some kind of index or sth to tell the rendering engine which font is being used. Thanks in advance Soheil Servati Beiragh PhD Candidate, ECE Department, Research Center for Integrated Microsystems, University of Windsor. Room 268 Essex Hall 401 Sunset Avenue Windsor, Ontario Canada, N9B 3P4 Phone: 519-253-3000 Ext 3396 Email: serv...@uwindsor.ca___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
[webkit-dev] Glyph data in Rendering Text
Hi I want to find out where does webkit saves the glyph data of characters and read from it? I think when it renders text it should first render bitmap of the characters and use the measuring data to do layout. I went trough lots of objects but no success. Soheil Servati Beiragh PhD Candidate, ECE Department, Research Center for Integrated Microsystems, University of Windsor. Room 268 Essex Hall 401 Sunset Avenue Windsor, Ontario Canada, N9B 3P4 Phone: 519-253-3000 Ext 3396 Email: serv...@uwindsor.ca___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
[webkit-dev] Glyph data in Rendering Text
Hi I want to find out where does webkit saves the glyph data of characters and read from it? I think when it renders text it should first render bitmap of the characters and use the measuring data to do layout. I went trough lots of objects but no success. Soheil Servati Beiragh PhD Candidate, ECE Department, Research Center for Integrated Microsystems, University of Windsor. Room 268 Essex Hall 401 Sunset Avenue Windsor, Ontario Canada, N9B 3P4 Phone: 519-253-3000 Ext 3396 Email: serv...@uwindsor.ca___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
[webkit-dev] Glyph data in Rendering Text
Hi I want to find out where does webkit saves the glyph data of characters and read from it? I think when it renders text it should first render bitmap of the characters and use the measuring data to do layout. I went trough lots of objects but no success. Soheil Servati Beiragh PhD Candidate, ECE Department, Research Center for Integrated Microsystems, University of Windsor. Room 268 Essex Hall 401 Sunset Avenue Windsor, Ontario Canada, N9B 3P4 Phone: 519-253-3000 Ext 3396 Email: serv...@uwindsor.ca___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
[webkit-dev] Text display
I think webcore puts the address to the index of the first character of a string of text in run.m_characters. I tried to use it in a simple way and show the character index by putting : printf(%d, run.m_characters); in the Font.cpp but it gives me an error regarding that error: ‘const UChar* WebCore::TextRun::m_characters’ is private within this context What can I do about it? Is there any way for me to get the address to the beginning of the string of text? Soheil Servati BeiraghPhD Candidate, ECE Department, Research Center for Integrated Microsystems,University of Windsor.___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
[webkit-dev] Text display procedure in Webkit GtK
HiI'm working on the WebKit and Text placement. I did lots of back trace on webkit in Gtk to find out where actually does the webkit gives the string of text to the text handler like cairo to show it.Can you give me any help or advise on that?Thanks Soheil Servati BeiraghPhD Candidate, ECE Department, Research Center for Integrated Microsystems,University of Windsor.___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev