Bug 97470 - StylePropertySet: Use subclasses to manage varying object layouts.
Summary: StylePropertySet: Use subclasses to manage varying object layouts.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Andreas Kling
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-24 11:33 PDT by Andreas Kling
Modified: 2012-09-25 12:55 PDT (History)
5 users (show)

See Also:


Attachments
Patch (20.28 KB, patch)
2012-09-24 11:34 PDT, Andreas Kling
koivisto: review+
webkit.review.bot: commit-queue-
Details | Formatted Diff | Diff
Hatch for splanding (20.23 KB, patch)
2012-09-25 12:19 PDT, Andreas Kling
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Kling 2012-09-24 11:33:17 PDT
We can avoid allocating StylePropertySet's Vector<CSSProperty> on the heap if we split the mutable/immutable behavior into subclasses.
Comment 1 Andreas Kling 2012-09-24 11:34:41 PDT
Created attachment 165416 [details]
Patch
Comment 2 WebKit Review Bot 2012-09-24 11:38:03 PDT
Attachment 165416 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1
Source/WebCore/css/StylePropertySet.h:52:  The parameter name "cssParserMode" adds no information, so it should be removed.  [readability/parameter_name] [5]
Total errors found: 1 in 4 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 WebKit Review Bot 2012-09-25 05:49:27 PDT
Comment on attachment 165416 [details]
Patch

Rejecting attachment 165416 [details] from commit-queue.

Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 2

Last 500 characters of output:
 1029 (offset -1 lines).
Hunk #10 succeeded at 1042 (offset -1 lines).
Hunk #11 FAILED at 1106.
Hunk #12 succeeded at 1115 (offset -1 lines).
Hunk #13 succeeded at 1128 (offset -1 lines).
1 out of 13 hunks FAILED -- saving rejects to file Source/WebCore/css/StylePropertySet.cpp.rej
patching file Source/WebCore/css/StylePropertySet.h

Failed to run "[u'/mnt/git/webkit-commit-queue/Tools/Scripts/svn-apply', u'--force', u'--reviewer', u'Antti Koiv..." exit_code: 1 cwd: /mnt/git/webkit-commit-queue

Full output: http://queues.webkit.org/results/13998000
Comment 4 Andreas Kling 2012-09-25 12:19:57 PDT
Created attachment 165654 [details]
Hatch for splanding
Comment 5 WebKit Review Bot 2012-09-25 12:54:58 PDT
Comment on attachment 165654 [details]
Hatch for splanding

Clearing flags on attachment: 165654

Committed r129543: <http://trac.webkit.org/changeset/129543>
Comment 6 WebKit Review Bot 2012-09-25 12:55:01 PDT
All reviewed patches have been landed.  Closing bug.