| Summary: | problem with empty cssRules in styleSheets | ||
|---|---|---|---|
| Product: | [Applications] konqueror | Reporter: | lunter <lunter> |
| Component: | khtml | Assignee: | Konqueror Bugs <konqueror-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | germain, maksim, WojciechK |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Microsoft Windows | ||
| OS: | Microsoft Windows | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | source | ||
|
Description
lunter
2008-09-04 20:17:56 UTC
Created attachment 27244 [details]
source
Confirmed on konqueror 4.0 SVN commit 867194 by ggarand:
do not skip empty CSS rules - they must appear in the cssRules array.
digg.com, for instance, needs this to perform some unspeakable CSS hacks.
BUG: 170411, 165734
M +1 -1 parser.cpp
M +1 -1 parser.y
--- trunk/KDE/kdelibs/khtml/css/parser.cpp #867193:867194
@@ -2427,7 +2427,7 @@
kDebug( 6080 ) << "got ruleset" << endl << " selector:";
#endif
CSSParser *p = static_cast<CSSParser *>(parser);
- if ( (yyvsp[(1) - (2)].selectorList) && (yyvsp[(2) - (2)].ok) && p->numParsedProperties ) {
+ if ( (yyvsp[(1) - (2)].selectorList) ) {
CSSStyleRuleImpl *rule = new CSSStyleRuleImpl( p->styleElement );
CSSStyleDeclarationImpl *decl = p->createStyleDeclaration( rule );
rule->setSelector( (yyvsp[(1) - (2)].selectorList) );
--- trunk/KDE/kdelibs/khtml/css/parser.y #867193:867194
@@ -648,7 +648,7 @@
kDebug( 6080 ) << "got ruleset" << endl << " selector:";
#endif
CSSParser *p = static_cast<CSSParser *>(parser);
- if ( $1 && $2 && p->numParsedProperties ) {
+ if ( $1 ) {
CSSStyleRuleImpl *rule = new CSSStyleRuleImpl( p->styleElement );
CSSStyleDeclarationImpl *decl = p->createStyleDeclaration( rule );
rule->setSelector( $1 );
SVN commit 873668 by ggarand: automatically merged revision 867194: do not skip empty CSS rules - they must appear in the cssRules array. digg.com, for instance, needs this to perform some unspeakable CSS hacks. BUG: 170411, 165734 M +1 -1 parser.cpp M +1 -1 parser.y WebSVN link: http://websvn.kde.org/?view=rev&revision=873668 |