WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
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
Details
Formatted Diff
Diff
rebased
(35.67 KB, patch)
2012-04-07 11:57 PDT
,
Antti Koivisto
webkit-ews
: commit-queue-
Details
Formatted Diff
Diff
try to fix build
(35.71 KB, patch)
2012-04-07 12:41 PDT
,
Antti Koivisto
kling
: review+
buildbot
: commit-queue-
Details
Formatted Diff
Diff
try to fix win build
(36.13 KB, patch)
2012-04-07 14:28 PDT
,
Antti Koivisto
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Antti Koivisto
Comment 1
2012-04-07 11:45:23 PDT
Created
attachment 136135
[details]
patch
Antti Koivisto
Comment 2
2012-04-07 11:57:50 PDT
Created
attachment 136136
[details]
rebased
Early Warning System Bot
Comment 3
2012-04-07 12:11:09 PDT
Comment on
attachment 136136
[details]
rebased
Attachment 136136
[details]
did not pass qt-wk2-ews (qt): Output:
http://queues.webkit.org/results/12362468
Early Warning System Bot
Comment 4
2012-04-07 12:13:28 PDT
Comment on
attachment 136136
[details]
rebased
Attachment 136136
[details]
did not pass qt-ews (qt): Output:
http://queues.webkit.org/results/12364444
Build Bot
Comment 5
2012-04-07 12:35:11 PDT
Comment on
attachment 136136
[details]
rebased
Attachment 136136
[details]
did not pass mac-ews (mac): Output:
http://queues.webkit.org/results/12358494
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.
Ryosuke Niwa
Comment 13
2012-04-09 17:37:40 PDT
It seems like this patch regressed some perf. tests:
http://webkit-perf.appspot.com/graph.html#tests=[[314224,2001,32196]]&sel=1333978732699.9312,1334010760286.138,1137.9310344827586,1896.5517241379312&displayrange=7&datatype=running
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