WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
52233
WebKitCSSMatrix constructor should accept 'none'
https://bugs.webkit.org/show_bug.cgi?id=52233
Summary
WebKitCSSMatrix constructor should accept 'none'
Dean Jackson
Reported
2011-01-11 12:14:34 PST
Sometime recently-ish, an element without a transform started returning 'none' as a computed style. This breaks existing code that simply pushes the computed style into the WebKitCSSMatrix constructor, since it does not accept the 'none' string. Update the constructor to accept 'none'. <
rdar://problem/8844355
>
Attachments
Patch
(4.83 KB, patch)
2011-01-11 12:25 PST
,
Dean Jackson
no flags
Details
Formatted Diff
Diff
Patch
(4.99 KB, patch)
2011-01-11 12:54 PST
,
Dean Jackson
simon.fraser
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Dean Jackson
Comment 1
2011-01-11 12:25:57 PST
Created
attachment 78577
[details]
Patch
Simon Fraser (smfr)
Comment 2
2011-01-11 12:31:49 PST
Comment on
attachment 78577
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=78577&action=review
> LayoutTests/transforms/cssmatrix-2d-interface.xhtml:19 > +function testConstructor(desc, parameter) { > + var m = null; > + m = new WebKitCSSMatrix(parameter); > + if (m) > + testPassed(desc); > + else > + testFailed(desc); > +}
No need for this, since you can do 1-line tests: shouldBeNull('"new WebKitCSSMatrix(foopy)"') or similar (with some quoting magic).
> LayoutTests/transforms/cssmatrix-2d-interface.xhtml:31 > +var m = new WebKitCSSMatrix(); > if (m) > testPassed("default constructor"); > else > testFailed("default constructor");
These should be 1-liners using shouldBeNull() etc.
> Source/WebCore/css/WebKitCSSMatrix.cpp:61 > - PassRefPtr<CSSValue> val = styleDeclaration->getPropertyCSSValue(CSSPropertyWebkitTransform); > + CSSValue* value = styleDeclaration->getPropertyCSSValue(CSSPropertyWebkitTransform).get();
This should be a RefPtr<CSSValue>
Dean Jackson
Comment 3
2011-01-11 12:54:03 PST
Created
attachment 78586
[details]
Patch
Dean Jackson
Comment 4
2011-01-11 14:02:52 PST
Landed in
http://trac.webkit.org/changeset/75542
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