Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Issue 26763004: Vector stores Expression object as OwnPtr instead of raw pointer in XPath. (Closed)

Created:
7 years, 2 months ago by dshwang
Modified:
7 years, 2 months ago
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Vector stores Expression object as OwnPtr instead of raw pointer in XPath. Vector can handle OwnPtr, so we don't have to delete an element in Vector manually. BUG=307055 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=159752

Patch Set 1 #

Patch Set 2 : #

Total comments: 5

Patch Set 3 : Change XPathGrammar.y also #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -58 lines) Patch
M Source/core/xml/XPathExpressionNode.h View 1 2 2 chunks +5 lines, -5 lines 0 comments Download
M Source/core/xml/XPathExpressionNode.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/xml/XPathFunctions.h View 1 2 2 chunks +3 lines, -2 lines 1 comment Download
M Source/core/xml/XPathFunctions.cpp View 1 2 3 chunks +12 lines, -5 lines 0 comments Download
M Source/core/xml/XPathGrammar.y View 1 2 13 chunks +17 lines, -17 lines 0 comments Download
M Source/core/xml/XPathParser.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/xml/XPathParser.cpp View 1 2 3 chunks +4 lines, -6 lines 0 comments Download
M Source/core/xml/XPathPath.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/xml/XPathPath.cpp View 1 2 2 chunks +6 lines, -4 lines 2 comments Download
M Source/core/xml/XPathPredicate.h View 1 2 5 chunks +5 lines, -5 lines 0 comments Download
M Source/core/xml/XPathPredicate.cpp View 1 2 4 chunks +6 lines, -7 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
dshwang
7 years, 2 months ago (2013-10-10 19:08:56 UTC) #1
dshwang
could you review? :)
7 years, 2 months ago (2013-10-11 20:24:30 UTC) #2
abarth-chromium
lgtm https://codereview.chromium.org/26763004/diff/7001/Source/core/xml/XPathExpressionNode.h File Source/core/xml/XPathExpressionNode.h (right): https://codereview.chromium.org/26763004/diff/7001/Source/core/xml/XPathExpressionNode.h#newcode66 Source/core/xml/XPathExpressionNode.h:66: void addSubExpression(Expression* expr) This should be a PassOwnPtr<Expression> ...
7 years, 2 months ago (2013-10-11 20:28:05 UTC) #3
dshwang
https://codereview.chromium.org/26763004/diff/7001/Source/core/xml/XPathExpressionNode.h File Source/core/xml/XPathExpressionNode.h (right): https://codereview.chromium.org/26763004/diff/7001/Source/core/xml/XPathExpressionNode.h#newcode68 Source/core/xml/XPathExpressionNode.h:68: m_subExpressions.append(adoptPtr(expr)); On 2013/10/11 20:28:05, abarth wrote: > We should ...
7 years, 2 months ago (2013-10-11 20:43:34 UTC) #4
abarth-chromium
On 2013/10/11 20:43:34, dshwang wrote: > https://codereview.chromium.org/26763004/diff/7001/Source/core/xml/XPathExpressionNode.h > File Source/core/xml/XPathExpressionNode.h (right): > > https://codereview.chromium.org/26763004/diff/7001/Source/core/xml/XPathExpressionNode.h#newcode68 > ...
7 years, 2 months ago (2013-10-11 20:56:04 UTC) #5
dshwang
On 2013/10/11 20:56:04, abarth wrote: > On 2013/10/11 20:43:34, dshwang wrote: > > > https://codereview.chromium.org/26763004/diff/7001/Source/core/xml/XPathExpressionNode.h ...
7 years, 2 months ago (2013-10-14 15:55:54 UTC) #6
dshwang
https://codereview.chromium.org/26763004/diff/18001/Source/core/xml/XPathFunctions.h File Source/core/xml/XPathFunctions.h (left): https://codereview.chromium.org/26763004/diff/18001/Source/core/xml/XPathFunctions.h#oldcode50 Source/core/xml/XPathFunctions.h:50: Function* createFunction(const String& name, const Vector<Expression*>& args = Vector<Expression*>()); ...
7 years, 2 months ago (2013-10-14 15:56:04 UTC) #7
abarth-chromium
LGTM. This looks like a good direction for this code. Thank you for the CL. ...
7 years, 2 months ago (2013-10-15 17:51:36 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dongseong.hwang@intel.com/26763004/18001
7 years, 2 months ago (2013-10-15 17:52:00 UTC) #9
commit-bot: I haz the power
7 years, 2 months ago (2013-10-16 10:33:36 UTC) #10
Message was sent while issue was closed.
Change committed as 159752

Powered by Google App Engine
This is Rietveld 408576698