WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
71218
Kill StyleBase.
https://bugs.webkit.org/show_bug.cgi?id=71218
Summary
Kill StyleBase.
Andreas Kling
Reported
2011-10-31 05:34:13 PDT
Let's get rid of StyleBase and let CSSRule, StyleSheet and friends stand on their own legs!
Attachments
Le Patch
(46.50 KB, patch)
2011-10-31 06:29 PDT
,
Andreas Kling
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Andreas Kling
Comment 1
2011-10-31 06:29:58 PDT
Created
attachment 113044
[details]
Le Patch
Early Warning System Bot
Comment 2
2011-10-31 06:41:42 PDT
Comment on
attachment 113044
[details]
Le Patch
Attachment 113044
[details]
did not pass qt-ews (qt): Output:
http://queues.webkit.org/results/10236953
WebKit Review Bot
Comment 3
2011-10-31 06:48:10 PDT
Comment on
attachment 113044
[details]
Le Patch
Attachment 113044
[details]
did not pass chromium-ews (chromium-xvfb): Output:
http://queues.webkit.org/results/10237913
Antti Koivisto
Comment 4
2011-10-31 06:49:09 PDT
Comment on
attachment 113044
[details]
Le Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=113044&action=review
r=me, very nice!
> Source/WebCore/css/CSSStyleSheet.cpp:254 > + for (CSSStyleSheet* sheet = this; sheet; sheet = sheet->parentStyleSheet()) { > + if (Node* ownerNode = sheet->ownerNode()) > + return ownerNode->document();
Wonder if the ownerNode is always found from the root. If so, this could be a root search + assertion that ownerNode is null in child stylesheets.
Andreas Kling
Comment 5
2011-10-31 07:13:31 PDT
Committed
r98853
: <
http://trac.webkit.org/changeset/98853
>
Luke Macpherson
Comment 6
2011-10-31 10:00:10 PDT
I like it. Thanks!
Csaba Osztrogonác
Comment 7
2011-10-31 15:56:20 PDT
It broke the debug build on the Qt bots: ../../WebCore/debug/libwebcore.a(XSLStyleSheetQt.o): In function `~XSLStyleSheet': /ramdisk/qt-linux-32-debug/build/WebKitBuild/Debug/WebCore/../../../Source/WebCore/xml/XSLStyleSheetQt.cpp:45: undefined reference to `WebCore::XSLImportRule::parentStyleSheet() const' /ramdisk/qt-linux-32-debug/build/WebKitBuild/Debug/WebCore/../../../Source/WebCore/xml/XSLStyleSheetQt.cpp:45: undefined reference to `WebCore::XSLImportRule::parentStyleSheet() const' /ramdisk/qt-linux-32-debug/build/WebKitBuild/Debug/WebCore/../../../Source/WebCore/xml/XSLStyleSheetQt.cpp:45: undefined reference to `WebCore::XSLImportRule::parentStyleSheet() const' Could you fix the build please?
Andreas Kling
Comment 8
2011-10-31 17:11:31 PDT
(In reply to
comment #7
)
> It broke the debug build on the Qt bots: > > ../../WebCore/debug/libwebcore.a(XSLStyleSheetQt.o): In function `~XSLStyleSheet': > /ramdisk/qt-linux-32-debug/build/WebKitBuild/Debug/WebCore/../../../Source/WebCore/xml/XSLStyleSheetQt.cpp:45: undefined reference to `WebCore::XSLImportRule::parentStyleSheet() const' > /ramdisk/qt-linux-32-debug/build/WebKitBuild/Debug/WebCore/../../../Source/WebCore/xml/XSLStyleSheetQt.cpp:45: undefined reference to `WebCore::XSLImportRule::parentStyleSheet() const' > /ramdisk/qt-linux-32-debug/build/WebKitBuild/Debug/WebCore/../../../Source/WebCore/xml/XSLStyleSheetQt.cpp:45: undefined reference to `WebCore::XSLImportRule::parentStyleSheet() const' > > Could you fix the build please?
I'll fix it first thing tomorrow dude, in the office! :)
Csaba Osztrogonác
Comment 9
2011-10-31 17:46:44 PDT
It seems that WTF_USE_LIBXML2 is false in WebCore.pro. This function is declared in the header, but the cpp file isn't linked.
Csaba Osztrogonác
Comment 10
2011-10-31 18:01:11 PDT
Where is WTF_USE_LIBXML2 defined? I can't see it anywhere.
Csaba Osztrogonác
Comment 11
2011-10-31 18:11:02 PDT
(In reply to
comment #10
)
> Where is WTF_USE_LIBXML2 defined? I can't see it anywhere.
Checking this non-existent define introduced in
http://trac.webkit.org/changeset/89516
. Yael, Andreas have you got any idea what is it?
Andreas Kling
Comment 12
2011-10-31 18:42:21 PDT
(In reply to
comment #11
)
> (In reply to
comment #10
) > > Where is WTF_USE_LIBXML2 defined? I can't see it anywhere. > > Checking this non-existent define introduced in
http://trac.webkit.org/changeset/89516
. Yael, Andreas have you got any idea what is it?
Hm, looks like WebCore/xml/XSLImportRule.cpp should always be built if ENABLE_XSLT; independent of USE_LIBXML2
Csaba Osztrogonác
Comment 13
2011-11-02 00:45:32 PDT
(In reply to
comment #12
)
> (In reply to
comment #11
) > > (In reply to
comment #10
) > > > Where is WTF_USE_LIBXML2 defined? I can't see it anywhere. > > > > Checking this non-existent define introduced in
http://trac.webkit.org/changeset/89516
. Yael, Andreas have you got any idea what is it? > > Hm, looks like WebCore/xml/XSLImportRule.cpp should always be built if ENABLE_XSLT; independent of USE_LIBXML2
But there isn't any WTF_USE_LIBXML2 define, so USE(LIBXML2) is always false. FYI: A workaround landed in
http://trac.webkit.org/changeset/98933
.
Yael
Comment 14
2011-11-02 17:22:24 PDT
(In reply to
comment #13
)
> (In reply to
comment #12
) > > (In reply to
comment #11
) > > > (In reply to
comment #10
) > > > > Where is WTF_USE_LIBXML2 defined? I can't see it anywhere. > > > > > > Checking this non-existent define introduced in
http://trac.webkit.org/changeset/89516
. Yael, Andreas have you got any idea what is it? > > > > Hm, looks like WebCore/xml/XSLImportRule.cpp should always be built if ENABLE_XSLT; independent of USE_LIBXML2 > > But there isn't any WTF_USE_LIBXML2 define, so USE(LIBXML2) is always false. > > FYI: A workaround landed in
http://trac.webkit.org/changeset/98933
.
WTF_USE_LIBXML2 isn't defined because I don't have a solution for mac and Windows. Enabling it requires libxml2 and libxslt.
Csaba Osztrogonác
Comment 15
2011-11-03 06:08:09 PDT
(In reply to
comment #12
)
> (In reply to
comment #11
) > > (In reply to
comment #10
) > > > Where is WTF_USE_LIBXML2 defined? I can't see it anywhere. > > > > Checking this non-existent define introduced in
http://trac.webkit.org/changeset/89516
. Yael, Andreas have you got any idea what is it? > > Hm, looks like WebCore/xml/XSLImportRule.cpp should always be built if ENABLE_XSLT; independent of USE_LIBXML2
It would be better than the landed hacky workaround.
Andreas Kling
Comment 16
2011-11-03 06:17:05 PDT
(In reply to
comment #15
)
> (In reply to
comment #12
) > > (In reply to
comment #11
) > > > (In reply to
comment #10
) > > > > Where is WTF_USE_LIBXML2 defined? I can't see it anywhere. > > > > > > Checking this non-existent define introduced in
http://trac.webkit.org/changeset/89516
. Yael, Andreas have you got any idea what is it? > > > > Hm, looks like WebCore/xml/XSLImportRule.cpp should always be built if ENABLE_XSLT; independent of USE_LIBXML2 > > It would be better than the landed hacky workaround.
Yep, not sure why that was never fixed; I told Renata it was the wrong solution. Anyhow, no reason to revert that change, the method should remain inline.
Andreas Kling
Comment 17
2011-12-04 05:39:04 PST
No build issue remains.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug