Bug 88204 - Remove SelectorQueryCacheEntry from SelectorQuery.h
Summary: Remove SelectorQueryCacheEntry from SelectorQuery.h
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Kentaro Hara
URL:
Keywords:
Depends on:
Blocks: 87625
  Show dependency treegraph
 
Reported: 2012-06-03 18:49 PDT by Kentaro Hara
Modified: 2012-06-04 08:44 PDT (History)
3 users (show)

See Also:


Attachments
Patch (5.44 KB, patch)
2012-06-03 18:52 PDT, Kentaro Hara
morrita: commit-queue-
Details | Formatted Diff | Diff
patch for landing (5.44 KB, patch)
2012-06-03 22:06 PDT, Kentaro Hara
koivisto: commit-queue-
Details | Formatted Diff | Diff
patch for landing (5.22 KB, patch)
2012-06-04 01:39 PDT, Kentaro Hara
webkit.review.bot: commit-queue-
Details | Formatted Diff | Diff
patch for landing (5.21 KB, patch)
2012-06-04 05:16 PDT, Kentaro Hara
webkit.review.bot: commit-queue-
Details | Formatted Diff | Diff
patch for landing (5.21 KB, patch)
2012-06-04 05:22 PDT, Kentaro Hara
webkit.review.bot: commit-queue-
Details | Formatted Diff | Diff
patch for landing (5.21 KB, patch)
2012-06-04 05:27 PDT, Kentaro Hara
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kentaro Hara 2012-06-03 18:49:23 PDT
As anttik@ pointed out in https://bugs.webkit.org/show_bug.cgi?id=87942#c15 , we can remove SelectorQueryCacheEntry by having SelectorQuery hold CSSSelectorList.
Comment 1 Kentaro Hara 2012-06-03 18:52:11 PDT
Created attachment 145501 [details]
Patch
Comment 2 Hajime Morrita 2012-06-03 22:02:29 PDT
Comment on attachment 145501 [details]
Patch

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

> Source/WebCore/dom/SelectorQuery.cpp:187
> +    SelectorQuery* selectorQueryPtr = selectorQuery.get();

Don't use abbreviations like Ptr. FooPointer or rawFoo would be nicer.
Comment 3 Kentaro Hara 2012-06-03 22:06:02 PDT
Created attachment 145515 [details]
patch for landing
Comment 4 Kentaro Hara 2012-06-03 22:06:50 PDT
(In reply to comment #2)
> (From update of attachment 145501 [details])
> Don't use abbreviations like Ptr. FooPointer or rawFoo would be nicer.

Fixed.

anttik: If the patch looks OK, please cq+ it.
Comment 5 Antti Koivisto 2012-06-04 01:36:41 PDT
Comment on attachment 145515 [details]
patch for landing

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

> Source/WebCore/dom/SelectorQuery.cpp:147
> +SelectorQuery::SelectorQuery(const CSSSelectorList& selectorList) : m_selectorList(selectorList)
>  {

In WebKit style an initializer goes to a line of its own (indented)

> Source/WebCore/dom/SelectorQuery.h:79
> +    // m_selectorList keeps the lifetime of CSSSelector objects in m_selectors.
> +    // Since m_selectors just holds pointers to CSSSelector objects,
> +    // m_selectorList must not be destructed before m_selectors is destructed.

This comment no longer adds value and can be removed
Comment 6 Kentaro Hara 2012-06-04 01:39:01 PDT
Created attachment 145538 [details]
patch for landing
Comment 7 Kentaro Hara 2012-06-04 01:39:43 PDT
(In reply to comment #5)
> > Source/WebCore/dom/SelectorQuery.cpp:147
> > +SelectorQuery::SelectorQuery(const CSSSelectorList& selectorList) : m_selectorList(selectorList)
> >  {
> 
> In WebKit style an initializer goes to a line of its own (indented)

Fixed.

> > Source/WebCore/dom/SelectorQuery.h:79
> > +    // m_selectorList keeps the lifetime of CSSSelector objects in m_selectors.
> > +    // Since m_selectors just holds pointers to CSSSelector objects,
> > +    // m_selectorList must not be destructed before m_selectors is destructed.
> 
> This comment no longer adds value and can be removed

Removed. Thanks.
Comment 8 WebKit Review Bot 2012-06-04 01:53:41 PDT
Comment on attachment 145538 [details]
patch for landing

Rejecting attachment 145538 [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:
#1 succeeded at 1 with fuzz 3.
patching file Source/WebCore/dom/SelectorQuery.cpp
Hunk #1 succeeded at 143 with fuzz 1.
Hunk #2 succeeded at 169 (offset 6 lines).
patching file Source/WebCore/dom/SelectorQuery.h
Hunk #1 FAILED at 67.
Hunk #2 succeeded at 102 (offset 1 line).
1 out of 2 hunks FAILED -- saving rejects to file Source/WebCore/dom/SelectorQuery.h.rej

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

Full output: http://queues.webkit.org/results/12894238
Comment 9 Kentaro Hara 2012-06-04 05:16:32 PDT
Created attachment 145562 [details]
patch for landing
Comment 10 WebKit Review Bot 2012-06-04 05:20:51 PDT
Comment on attachment 145562 [details]
patch for landing

Rejecting attachment 145562 [details] from commit-queue.

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

MORITA Hajime found in /mnt/git/webkit-commit-queue/Source/WebCore/ChangeLog does not appear to be a valid reviewer according to committers.py.
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/12894294
Comment 11 Kentaro Hara 2012-06-04 05:22:43 PDT
Created attachment 145564 [details]
patch for landing
Comment 12 WebKit Review Bot 2012-06-04 05:26:18 PDT
Comment on attachment 145564 [details]
patch for landing

Rejecting attachment 145564 [details] from commit-queue.

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

Morita Hajime found in /mnt/git/webkit-commit-queue/Source/WebCore/ChangeLog does not appear to be a valid reviewer according to committers.py.
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/12900193
Comment 13 Kentaro Hara 2012-06-04 05:27:38 PDT
Created attachment 145565 [details]
patch for landing
Comment 14 WebKit Review Bot 2012-06-04 08:30:55 PDT
Comment on attachment 145565 [details]
patch for landing

Clearing flags on attachment: 145565

Committed r119399: <http://trac.webkit.org/changeset/119399>