RESOLVED FIXED 83426
Don't expose internal CSSValues in API
https://bugs.webkit.org/show_bug.cgi?id=83426
Summary Don't expose internal CSSValues in API
Antti Koivisto
Reported 2012-04-07 11:27:06 PDT
The CSSValues returned from functions like CSSStyleDeclaration.getPropertyCSSValue() are currently the same instances we use internally. This creates various problems. The values can't be shared between documents as the wrappers would be shared too. Having to maintain per-document CSSValuePools complicate the architecture and increase memory usage. This also prevents sharing style sheet data structures between documents.
Attachments
patch (35.75 KB, patch)
2012-04-07 11:45 PDT, Antti Koivisto
no flags
rebased (35.67 KB, patch)
2012-04-07 11:57 PDT, Antti Koivisto
webkit-ews: commit-queue-
try to fix build (35.71 KB, patch)
2012-04-07 12:41 PDT, Antti Koivisto
kling: review+
buildbot: commit-queue-
try to fix win build (36.13 KB, patch)
2012-04-07 14:28 PDT, Antti Koivisto
no flags
Antti Koivisto
Comment 1 2012-04-07 11:45:23 PDT
Antti Koivisto
Comment 2 2012-04-07 11:57:50 PDT
Early Warning System Bot
Comment 3 2012-04-07 12:11:09 PDT
Early Warning System Bot
Comment 4 2012-04-07 12:13:28 PDT
Build Bot
Comment 5 2012-04-07 12:35:11 PDT
Antti Koivisto
Comment 6 2012-04-07 12:41:58 PDT
Created attachment 136137 [details] try to fix build
Build Bot
Comment 7 2012-04-07 13:06:21 PDT
Comment on attachment 136137 [details] try to fix build Attachment 136137 [details] did not pass win-ews (win): Output: http://queues.webkit.org/results/12367042
Andreas Kling
Comment 8 2012-04-07 14:13:10 PDT
Comment on attachment 136137 [details] try to fix build View in context: https://bugs.webkit.org/attachment.cgi?id=136137&action=review Very cool. r=me. (Though you'll need to do something about the win failure.) > Source/WebCore/css/CSSImageSetValue.cpp:146 > + // Non-CSSValueList data is not accesible through CSS OM, no need to clone. Typo accessible. > Source/WebCore/css/CSSValue.h:38 > +// Please don't expose more CSSValue types to the web. Hear hear. Perhaps we could even get rid of WebKitCSSTransformValue.idl and WebKitCSSFilterValue.idl. > Source/WebCore/css/RGBColor.cpp:42 > + // Unique instances are safe. Don't think this comment is needed.
Antti Koivisto
Comment 9 2012-04-07 14:28:49 PDT
Created attachment 136140 [details] try to fix win build
WebKit Review Bot
Comment 10 2012-04-09 03:03:50 PDT
Comment on attachment 136140 [details] try to fix win build Rejecting attachment 136140 [details] from commit-queue. Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 1 ERROR: /mnt/git/webkit-commit-queue/Source/WebCore/ChangeLog neither lists a valid reviewer nor contains the string "Unreviewed" or "Rubber stamp" (case insensitive). Full output: http://queues.webkit.org/results/12372107
WebKit Review Bot
Comment 11 2012-04-09 10:01:26 PDT
Comment on attachment 136140 [details] try to fix win build Clearing flags on attachment: 136140 Committed r113588: <http://trac.webkit.org/changeset/113588>
WebKit Review Bot
Comment 12 2012-04-09 10:01:31 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.