Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(33)

Issue 224059: Change SafeHtmlMaker to declare variables per module (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
16 years, 1 month ago by MikeSamuel
Modified:
16 years, 1 month ago
Reviewers:
Jasvir
CC:
google-caja-discuss_googlegroups.com
Base URL:
http://google-caja.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Previously, SafeHtmlMaker declared vars in one block, and assumed they were visible in other blocks. This fixes that in preparation for modular decomposition in CL 207079. The extra var declarations can probably be optimized out in later stages -- e.g. the repeated el___ and emitter___ declarations can be optimized as in CL 214052. Submitted @4009

Patch Set 1 #

Patch Set 2 : Change SafeHtmlMaker to declare variables per module #

Patch Set 3 : Change SafeHtmlMaker to declare variables per module #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+412 lines, -284 lines) Patch
M src/com/google/caja/plugin/templates/HtmlAttributeRewriter.java View 1 6 chunks +16 lines, -12 lines 0 comments Download
M src/com/google/caja/plugin/templates/SafeCssMaker.java View 1 5 chunks +15 lines, -26 lines 0 comments Download
M src/com/google/caja/plugin/templates/SafeHtmlMaker.java View 1 14 chunks +46 lines, -18 lines 0 comments Download
M src/com/google/caja/plugin/templates/TemplateCompiler.java View 1 2 chunks +7 lines, -16 lines 0 comments Download
M tests/com/google/caja/demos/applet/caja-applet-valija-golden.js View 1 1 chunk +2 lines, -0 lines 0 comments Download
M tests/com/google/caja/opensocial/example-rewritten.xml View 1 4 chunks +13 lines, -9 lines 0 comments Download
M tests/com/google/caja/parser/quasiliteral/CajitaRewriterTest.java View 1 chunk +1 line, -1 line 0 comments Download
M tests/com/google/caja/plugin/HtmlEmitterTest.java View 1 3 chunks +6 lines, -0 lines 0 comments Download
M tests/com/google/caja/plugin/templates/TemplateCompilerTest.java View 1 12 chunks +180 lines, -110 lines 2 comments Download
M tests/com/google/caja/plugin/templates/template-compiler-golden1-dynamic.js View 1 1 chunk +63 lines, -47 lines 0 comments Download
M tests/com/google/caja/plugin/templates/template-compiler-golden1-static.js View 1 1 chunk +58 lines, -42 lines 1 comment Download
M tests/com/google/caja/service/HtmlHandlerTest.java View 1 4 chunks +5 lines, -3 lines 0 comments Download

Messages

Total messages: 6
MikeSamuel
16 years, 1 month ago (2010-02-25 22:12:43 UTC) #1
MikeSamuel
ping
16 years, 1 month ago (2010-02-27 01:28:42 UTC) #2
MikeSamuel
ping
16 years, 1 month ago (2010-03-04 22:31:43 UTC) #3
Jasvir
http://codereview.appspot.com/224059/diff/1013/1016 File tests/com/google/caja/plugin/templates/TemplateCompilerTest.java (right): http://codereview.appspot.com/224059/diff/1013/1016#newcode125 tests/com/google/caja/plugin/templates/TemplateCompilerTest.java:125: + "function module() {" I don't understand how this ...
16 years, 1 month ago (2010-03-04 23:30:47 UTC) #4
MikeSamuel
http://codereview.appspot.com/224059/diff/1013/1016 File tests/com/google/caja/plugin/templates/TemplateCompilerTest.java (right): http://codereview.appspot.com/224059/diff/1013/1016#newcode125 tests/com/google/caja/plugin/templates/TemplateCompilerTest.java:125: + "function module() {" This is just illustrative code ...
16 years, 1 month ago (2010-03-04 23:32:38 UTC) #5
Jasvir
16 years, 1 month ago (2010-03-09 02:02:32 UTC) #6
LGTM

http://codereview.appspot.com/224059/diff/1013/1018
File tests/com/google/caja/plugin/templates/template-compiler-golden1-static.js
(right):

http://codereview.appspot.com/224059/diff/1013/1018#newcode1
tests/com/google/caja/plugin/templates/template-compiler-golden1-static.js:1:
function module() {
Note: Because of all of these functions named "module" this file appears to be
semantically incorrect javascript file but only because its the render of an
intermediate stage.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b