RESOLVED FIXED 29639
[Qt] Update the stypeProperty API of QWebElement.
https://bugs.webkit.org/show_bug.cgi?id=29639
Summary [Qt] Update the stypeProperty API of QWebElement.
Jocelyn Turcotte
Reported 2009-09-22 05:51:52 PDT
Change to the QWebElement as discussed in meetings+mails. The ResolveRule vs. StyleResolveStrategy enum name was still under discussion, please add any comment regarding this if needed. The patch also update the documentation.
Attachments
Patch (28.29 KB, patch)
2009-09-22 05:54 PDT, Jocelyn Turcotte
eric: review-
Split patch (16.08 KB, patch)
2009-09-24 04:29 PDT, Jocelyn Turcotte
no flags
Split patch v0.2 (16.18 KB, patch)
2009-09-24 05:20 PDT, Jocelyn Turcotte
hausmann: review+
Jocelyn Turcotte
Comment 1 2009-09-22 05:54:48 PDT
Kenneth Rohde Christiansen
Comment 2 2009-09-22 05:57:52 PDT
I like the new StyleResolveStrategy, but I think we should use the old name for it, the ResolveRule, as it is more a rule than a strategy, as what we are doing is very well defined. You could call it StyleResolveRule or maybe even CssResolveRule?
Antonio Gomes
Comment 3 2009-09-22 06:22:00 PDT
patch does much more than what is described in bug title: "Update QWebElement API to remove QtScript related methods." could we split it up ? maybe even in two bugs ?
Eric Seidel (no email)
Comment 4 2009-09-23 17:36:33 PDT
Comment on attachment 39916 [details] Patch r- based on the above request to have this split. 28k is pretty big for a patch, making it difficult to review. :(
Jocelyn Turcotte
Comment 5 2009-09-24 04:29:40 PDT
Created attachment 40058 [details] Split patch Yes this makes sense, I've split the patch in 3 including these two other bugs: https://bugs.webkit.org/show_bug.cgi?id=29708 https://bugs.webkit.org/show_bug.cgi?id=29709 This patch now only contain the modifications about QWebElement::styleProperty: (QWebElement::styleProperty): - Merge the stypeProperty and the computedStyleProperty methods - Remove the default value for the style resolving enum - Rename ResolveRule to StyleResolveStrategy (QWebElement::setStyleProperty): - Remove the priority argument since it is possible to control the behaviour by adding !important or removing in the value.
Jocelyn Turcotte
Comment 6 2009-09-24 05:20:14 PDT
Created attachment 40060 [details] Split patch v0.2 - Removes the extra computedStyle method from qwebelement.h - Specify in setStyleProperty's doc that this modifies the inline style.
Antonio Gomes
Comment 7 2009-09-24 05:28:02 PDT
jocelyn, changes look nice to me, as they make api simpler. one simple question: should we keep the "\since 4.6" ? (..) - \enum QWebElement::ResolveRule - \since 4.6 + \enum QWebElement::StyleResolveStrategy (..)
Jocelyn Turcotte
Comment 8 2009-09-24 05:48:13 PDT
In fact QWebElement in whole is new to 4.6 so it is not needed. I took the opportunity of this patch to change this, I should have noted this extra change earlier in the bug or changelog. (In reply to comment #7) > jocelyn, changes look nice to me, as they make api simpler. > > one simple question: should we keep the "\since 4.6" ? > > (..) > - \enum QWebElement::ResolveRule > - \since 4.6 > + \enum QWebElement::StyleResolveStrategy > (..)
Simon Hausmann
Comment 9 2009-09-25 01:13:29 PDT
Comment on attachment 40060 [details] Split patch v0.2 r=me. Let's discuss Strategy vs. Rule with Kenneth though, we can still change it
Simon Hausmann
Comment 10 2009-09-25 01:44:00 PDT
Note You need to log in before you can comment on or make changes to this bug.