[webkit-qt] New API for comments
Alexis Menard
alexis.menard at openbossa.org
Tue Mar 1 11:50:22 PST 2011
On Tuesday 01 March 2011 16:50:19 Benjamin Poulain wrote:
> Hello,
>
> Andreas and I were talking about the recuring problem of QWebElement
> being too simple to handle use cases with text.
>
> We were thinking about what kind of simple change would get us out of
> those problems (text wrapping, selections, text + element as children,
> etc).
>
>
> Given the following changes, anyone has comments?:
>
> class QWebNode {
> enum Type { Element, Text };
> Type type() const;
> QWebElement parent() const;
> QWebElement document() const;
> QWebNode nextSibling() const;
I think changing the return type is not BIC. MSVC mangling put the name of the
return type if I recall correctly.
> QWebNode previousSibling() const;
> QString toPlainText() const;
> }
>
> class QWebElement: public QWebNode {
> }
> So we could play with QWebNode of type Text for text.
>
> (Yep, I think that is BC to change the parent class in this case :))
>
>
> cheers,
> Benjamin,
> _______________________________________________
> webkit-qt mailing list
> webkit-qt at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-qt
More information about the webkit-qt
mailing list