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

Issue 730003002: Refactoring XSLT (Closed)

Created:
6 years, 1 month ago by tasak
Modified:
6 years, 1 month ago
Reviewers:
haraken
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Refactoring XSLT - added DocumentXSLT, document's supplement. - moved transformSourceDocument and applyXSLTransform from Document to DocumentXSLT. - moved StyleEngine's XSLT code to DocumentXSLT by using EventListener. BUG=367689 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=185643

Patch Set 1 #

Total comments: 28

Patch Set 2 : Fixed oilpan build #

Total comments: 26

Patch Set 3 : #

Patch Set 4 : Added ASSERT, processingInstruction{InsertedInto|RemovedFrom}Document #

Patch Set 5 : Fixed ASSERT crashes when xsltEnabled() returns false #

Unified diffs Side-by-side diffs Delta from patch set Stats (+274 lines, -103 lines) Patch
M Source/core/core.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/dom/Document.h View 1 2 3 4 2 chunks +0 lines, -5 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 2 3 4 3 chunks +0 lines, -24 lines 0 comments Download
M Source/core/dom/ProcessingInstruction.h View 1 2 3 3 chunks +8 lines, -0 lines 0 comments Download
M Source/core/dom/ProcessingInstruction.cpp View 1 2 3 4 9 chunks +14 lines, -16 lines 0 comments Download
M Source/core/dom/StyleEngine.h View 2 chunks +0 lines, -4 lines 0 comments Download
M Source/core/dom/StyleEngine.cpp View 5 chunks +0 lines, -49 lines 0 comments Download
A Source/core/xml/DocumentXSLT.h View 1 2 3 1 chunk +56 lines, -0 lines 0 comments Download
A Source/core/xml/DocumentXSLT.cpp View 1 2 3 1 chunk +183 lines, -0 lines 0 comments Download
M Source/core/xml/XSLTProcessor.cpp View 2 chunks +6 lines, -2 lines 0 comments Download
M Source/core/xml/parser/XMLDocumentParser.cpp View 3 chunks +3 lines, -2 lines 0 comments Download
M Source/core/xml/parser/XMLErrors.cpp View 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 13 (4 generated)
tasak
PTAL?
6 years, 1 month ago (2014-11-17 09:35:57 UTC) #2
haraken
https://codereview.chromium.org/730003002/diff/1/Source/core/dom/ProcessingInstruction.cpp File Source/core/dom/ProcessingInstruction.cpp (right): https://codereview.chromium.org/730003002/diff/1/Source/core/dom/ProcessingInstruction.cpp#newcode267 Source/core/dom/ProcessingInstruction.cpp:267: // No need to register XSLStyleSheet with StyleEngine. with ...
6 years, 1 month ago (2014-11-17 14:18:32 UTC) #3
tasak
Thank you for review. https://codereview.chromium.org/730003002/diff/1/Source/core/dom/ProcessingInstruction.cpp File Source/core/dom/ProcessingInstruction.cpp (right): https://codereview.chromium.org/730003002/diff/1/Source/core/dom/ProcessingInstruction.cpp#newcode267 Source/core/dom/ProcessingInstruction.cpp:267: // No need to register ...
6 years, 1 month ago (2014-11-19 08:23:17 UTC) #4
haraken
Mostly looks good. https://codereview.chromium.org/730003002/diff/20001/Source/core/xml/DocumentXSLT.cpp File Source/core/xml/DocumentXSLT.cpp (right): https://codereview.chromium.org/730003002/diff/20001/Source/core/xml/DocumentXSLT.cpp#newcode24 Source/core/xml/DocumentXSLT.cpp:24: class DOMContentLoadedListener : public V8AbstractEventListener { ...
6 years, 1 month ago (2014-11-19 09:01:36 UTC) #5
tasak
https://codereview.chromium.org/730003002/diff/20001/Source/core/dom/ProcessingInstruction.cpp File Source/core/dom/ProcessingInstruction.cpp (right): https://codereview.chromium.org/730003002/diff/20001/Source/core/dom/ProcessingInstruction.cpp#newcode269 Source/core/dom/ProcessingInstruction.cpp:269: ASSERT(m_listenerForXSLT); Should be ASSERT(m_listenerForXSLT || !RuntimeEnabledFeatures::xsltEnabled()); https://codereview.chromium.org/730003002/diff/20001/Source/core/dom/ProcessingInstruction.cpp#newcode284 Source/core/dom/ProcessingInstruction.cpp:284: } ...
6 years, 1 month ago (2014-11-19 09:23:04 UTC) #6
haraken
LGTM https://codereview.chromium.org/730003002/diff/20001/Source/core/xml/DocumentXSLT.cpp File Source/core/xml/DocumentXSLT.cpp (right): https://codereview.chromium.org/730003002/diff/20001/Source/core/xml/DocumentXSLT.cpp#newcode33 Source/core/xml/DocumentXSLT.cpp:33: ASSERT(event->type() == "DOMContentLoaded"); On 2014/11/19 09:23:03, tasak wrote: ...
6 years, 1 month ago (2014-11-19 09:33:59 UTC) #7
tasak
Thank you for review. I will check when RuntimeEnabledFeatures::xsltEnabled() == false. https://codereview.chromium.org/730003002/diff/20001/Source/core/xml/DocumentXSLT.cpp File Source/core/xml/DocumentXSLT.cpp (right): ...
6 years, 1 month ago (2014-11-19 11:12:35 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/730003002/120001
6 years, 1 month ago (2014-11-20 03:51:39 UTC) #12
commit-bot: I haz the power
6 years, 1 month ago (2014-11-20 04:58:44 UTC) #13
Message was sent while issue was closed.
Committed patchset #5 (id:120001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=185643

Powered by Google App Engine
This is Rietveld 408576698