[Webkit-unassigned] [Bug 79092] Remove stylesheet pointer from StylePropertySet
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Feb 21 03:24:11 PST 2012
https://bugs.webkit.org/show_bug.cgi?id=79092
Andreas Kling <kling at webkit.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #127945|review? |review+
Flag| |
--- Comment #2 from Andreas Kling <kling at webkit.org> 2012-02-21 03:24:11 PST ---
(From update of attachment 127945)
View in context: https://bugs.webkit.org/attachment.cgi?id=127945&action=review
r=me with some glorious exposition:
> Source/WebCore/css/CSSParser.cpp:349
> + Document* document = contextStyleSheet->findDocument();
Are we sure it's safe to always dereference 'contextStyleSheet' here? An assertion might be nice.
> Source/WebCore/css/CSSParser.cpp:473
> + Document* document = contextStyleSheet->findDocument();
Same story.
> Source/WebCore/css/WebKitCSSMatrix.cpp:56
> - if (CSSParser::parseValue(styleDeclaration.get(), CSSPropertyWebkitTransform, string, true, true)) {
> + if (CSSParser::parseValue(styleDeclaration.get(), CSSPropertyWebkitTransform, string, true, true, 0)) {
Here's a call site where parseValue() would have a null contextStyleSheet.
Though it won't be a problem for CSSPropertyWebkitTransform, it sets a bad precedent.
> Source/WebCore/dom/StyledElement.h:72
> + void applyPresentationAttributeToStyle(StylePropertySet*, int propertyID, int value);
> + void applyPresentationAttributeToStyle(StylePropertySet*, int propertyID, double value, CSSPrimitiveValue::UnitTypes);
> + void applyPresentationAttributeToStyle(StylePropertySet*, int propertyID, const String& value);
This name is not entirely fabulous, as the function is only concerned with a single property at a time. addPropertyToAttributeStyle() perhaps?
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list