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

Issue 11256: DOMita resizing and scrolling (Closed)

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

Description

Implemented window.resize{To,By}, {window,Element}.scroll{To,By} and fields {client,scroll,offset}{Top,Left,Width,Height}. * Defined operations for scrolling and resizing operations. All positioning against the window object actually affects the pseudo-body element. * Reimplemented the tame window as a regular class. This was necessary so that I could add getters and setters for scrollTop and the like. * New tests for resizing and scrolling functions, and positioning members. * Fixed testCustomEvents to run on IE. Apparently I was running domita_test in my second instance of Firefox instead of IE last CL. Most of the event operations are now part of bridal, and I changed the way events are dispatched on IE since IE does not allow fireEvent to be called for custom events. I took a page from Prototype, and use the ondataavailable event. * Modified JSUnit so that if the location has a query parameter ?test.filter=foo, only tests matching the value as a regular expression will be run. * Added NOBR to the HTML extensions schema. It's in HTML5 and is widely supported by browsers though deprecated. The CSS equivalent whitespace:no-break does not work on all browsers so NOBR is useful.

Patch Set 1 #

Total comments: 7

Patch Set 2 : DOMita resizing and scrolling #

Unified diffs Side-by-side diffs Delta from patch set Stats (+598 lines, -93 lines) Patch
M src/com/google/caja/lang/html/HtmlSchema.java View 1 1 chunk +4 lines, -2 lines 0 comments Download
A src/com/google/caja/lang/html/html4-elements-extensions.json View 1 chunk +8 lines, -0 lines 0 comments Download
A src/com/google/caja/lang/html/html4-elements-extensions-defs.json View 1 chunk +10 lines, -0 lines 0 comments Download
A src/com/google/caja/lang/html/html4-elements-extensions-whitelist.json View 1 chunk +5 lines, -0 lines 0 comments Download
M src/com/google/caja/lang/html/html4-elements-whitelist.json View 1 1 chunk +1 line, -1 line 0 comments Download
M src/com/google/caja/plugin/bridal.js View 1 4 chunks +96 lines, -5 lines 0 comments Download
M src/com/google/caja/plugin/domita.js View 1 16 chunks +325 lines, -78 lines 0 comments Download
M tests/com/google/caja/plugin/domita_test.html View 1 2 chunks +4 lines, -1 line 0 comments Download
M tests/com/google/caja/plugin/domita_test_untrusted.html View 1 3 chunks +98 lines, -2 lines 0 comments Download
M tests/com/google/caja/plugin/jsunit.js View 1 1 chunk +24 lines, -0 lines 0 comments Download
M third_party/js/jqueryjs/runtest/env.js View 1 1 chunk +23 lines, -4 lines 0 comments Download

Messages

Total messages: 5
MikeSamuel
17 years, 11 months ago (2008-12-19 04:30:57 UTC) #1
Jasvir
http://codereview.appspot.com/11256/diff/1/11 File src/com/google/caja/plugin/bridal.js (right): http://codereview.appspot.com/11256/diff/1/11#newcode57 Line 57: function untameEventType(type) { This is incorrect if this ...
17 years, 11 months ago (2008-12-20 02:31:49 UTC) #2
MikeSamuel
http://codereview.appspot.com/11256/diff/1/11 File src/com/google/caja/plugin/bridal.js (right): http://codereview.appspot.com/11256/diff/1/11#newcode57 Line 57: function untameEventType(type) { On 2008/12/20 02:31:49, jasvir wrote: ...
17 years, 11 months ago (2009-01-08 22:32:01 UTC) #3
MikeSamuel
On 2009/01/08 22:32:01, MikeSamuel wrote: > http://codereview.appspot.com/11256/diff/1/11 > File src/com/google/caja/plugin/bridal.js (right): > > http://codereview.appspot.com/11256/diff/1/11#newcode57 > ...
17 years, 10 months ago (2009-01-13 00:57:08 UTC) #4
Jasvir
17 years, 10 months ago (2009-01-13 01:06:46 UTC) #5
LGTM
Sign in to reply to this message.

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