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

Issue 1549001: Merge 56663 - CSSPrimitiveValue::setFloatValue/setStringValue should throw an... (Closed)

Created:
10 years, 9 months ago by Chris Evans
Modified:
9 years, 6 months ago
Reviewers:
jschuh
CC:
chromium-reviews
Visibility:
Public.

Description

Merge 56663 - CSSPrimitiveValue::setFloatValue/setStringValue should throw an exception if passed an incorrect unit type. <http://webkit.org/b/36680>; / <rdar://problem/7801016> Reviewed by Darin Adler. WebCore: Test: fast/dom/setPrimitiveValueexceptions.html * css/CSSPrimitiveValue.cpp: (WebCore::CSSPrimitiveValue::setFloatValue): Throw an INVALID_ACCESS_ERR if either of our type or the passedin type is not a numeric type. (WebCore::CSSPrimitiveValue::setStringValue): Throw an INVALID_ACCESS_ERR if either of our type or the passedin type is not a string type. LayoutTests: * fast/dom/scripttests/setPrimitiveValueexceptions.js: Added. * fast/dom/setPrimitiveValueexceptionsexpected.txt: Added. * fast/dom/setPrimitiveValueexceptions.html: Copied from LayoutTests/fast/dom/eventattributeavailability.html. TBR=jschuh@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=42929

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -8 lines) Patch
A LayoutTests/fast/dom/script-tests/setPrimitiveValue-exceptions.js View 1 chunk +49 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/setPrimitiveValue-exceptions.html View 1 chunk +13 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/setPrimitiveValue-exceptions-expected.txt View 1 chunk +28 lines, -0 lines 0 comments Download
M WebCore/css/CSSPrimitiveValue.cpp View 2 chunks +4 lines, -8 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Chris Evans
10 years, 9 months ago (2010-03-29 04:45:35 UTC) #1
jschuh
10 years, 8 months ago (2010-03-29 16:18:17 UTC) #2
LGTM

Powered by Google App Engine
This is Rietveld 408576698