Bug 73742 - Rename CSSPrimitiveValueCache to CSSValuePool.
Summary: Rename CSSPrimitiveValueCache to CSSValuePool.
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: 2011-12-03 05:33 PST by Andreas Kling
Modified: 2011-12-03 10:19 PST (History)
6 users (show)

See Also:


Attachments
Proposed patch (239.05 KB, patch)
2011-12-03 06:09 PST, Andreas Kling
koivisto: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Kling 2011-12-03 05:33:24 PST
I plan to cache some more values per document, so the "Primitive" won't apply anymore. Furthermore, as pointed out by Antti, it's more of a Pool than a Cache, so let's rename it accordingly.
Comment 1 Andreas Kling 2011-12-03 06:09:53 PST
Created attachment 117755 [details]
Proposed patch
Comment 2 WebKit Review Bot 2011-12-03 06:12:06 PST
Attachment 117755 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/CMakeLists.txt', u'Source/W..." exit_code: 1

Source/WebCore/css/CSSValuePool.cpp:27:  You should add a blank line after implementation file's own header.  [build/include_order] [4]
Source/WebCore/css/CSSValuePool.cpp:95:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
Source/WebCore/css/CSSValuePool.cpp:100:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
Source/WebCore/css/CSSValuePool.cpp:105:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
Total errors found: 4 in 16 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 WebKit Review Bot 2011-12-03 08:08:25 PST
Comment on attachment 117755 [details]
Proposed patch

Attachment 117755 [details] did not pass chromium-ews (chromium-xvfb):
Output: http://queues.webkit.org/results/10728326

New failing tests:
svg/custom/linking-uri-01-b.svg
Comment 4 Antti Koivisto 2011-12-03 08:16:53 PST
Comment on attachment 117755 [details]
Proposed patch

View in context: https://bugs.webkit.org/attachment.cgi?id=117755&action=review

r=me

> Source/WebCore/css/CSSValuePool.h:53
> +    typedef HashMap<int, RefPtr<CSSPrimitiveValue> > IdentifierValueCache;
> +    IdentifierValueCache m_identifierValueCache;
> +
> +    typedef HashMap<unsigned, RefPtr<CSSPrimitiveValue> > ColorValueCache;
> +    ColorValueCache m_colorValueCache;

These should be renamed too at some point.
Comment 5 Andreas Kling 2011-12-03 10:19:54 PST
Committed r101932: <http://trac.webkit.org/changeset/101932>