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

Issue 1709803: Fixing a bug where c.g.g.dom.client.Style can throw a JS exception if a style property is set to... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
1 year ago by jlabanca
Modified:
1 year ago
Reviewers:
skybrian, cromwellian
CC:
google-web-toolkit-contributors_googlegroups.com
Base URL:
http://google-web-toolkit.googlecode.com/svn/
Visibility:
Public.

Description

Fixing a bug where c.g.g.dom.client.Style can throw a JS exception if a style
property is set to a numeric type (eg: zIndex = 1).  Most browsers automatically
coerce the value to a String, but IE6-7 does not.  We now coerce the returned
value to a string if it is a numeric type.  This doesn't come up often because
you have to manually set the value to a numeric type using a native method (our
API always sets the value as a string).

Issue: 5548

Patch Set 1

Total comments: 3

Patch Set 2 : Updated based on comments

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats Patch
M user/src/com/google/gwt/dom/client/DOMImpl.java View 1 2 chunks +12 lines, -0 lines 1 comment Download
M user/src/com/google/gwt/dom/client/DOMImplIE9.java View 1 3 chunks +12 lines, -1 line 1 comment Download
M user/src/com/google/gwt/dom/client/DOMImplTrident.java View 1 1 chunk +9 lines, -0 lines 0 comments Download
M user/src/com/google/gwt/dom/client/Style.java View 1 2 chunks +4 lines, -4 lines 2 comments Download
M user/test/com/google/gwt/dom/client/StyleTest.java View 2 chunks +18 lines, -0 lines 0 comments Download

Messages

Total messages: 7
jlabanca
1 year ago #1
skybrian
LGTM http://gwt-code-reviews.appspot.com/1709803/diff/1/user/src/com/google/gwt/dom/client/Style.java File user/src/com/google/gwt/dom/client/Style.java (right): http://gwt-code-reviews.appspot.com/1709803/diff/1/user/src/com/google/gwt/dom/client/Style.java#newcode1764 user/src/com/google/gwt/dom/client/Style.java:1764: return typeof(prop) == "number" ? "" + prop ...
1 year ago #2
cromwellian
http://gwt-code-reviews.appspot.com/1709803/diff/1/user/src/com/google/gwt/dom/client/Style.java File user/src/com/google/gwt/dom/client/Style.java (right): http://gwt-code-reviews.appspot.com/1709803/diff/1/user/src/com/google/gwt/dom/client/Style.java#newcode1764 user/src/com/google/gwt/dom/client/Style.java:1764: return typeof(prop) == "number" ? "" + prop : ...
1 year ago #3
jlabanca
1 year ago #4
jlabanca
http://gwt-code-reviews.appspot.com/1709803/diff/1/user/src/com/google/gwt/dom/client/Style.java File user/src/com/google/gwt/dom/client/Style.java (right): http://gwt-code-reviews.appspot.com/1709803/diff/1/user/src/com/google/gwt/dom/client/Style.java#newcode1764 user/src/com/google/gwt/dom/client/Style.java:1764: return typeof(prop) == "number" ? "" + prop : ...
1 year ago #5
skybrian
LGTM
1 year ago #6
jlabanca
1 year ago #7
committed as 10980
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld revision f51cb906c4ad+