diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-01-01 21:04:51 +0530 |
---|---|---|
committer | bors-servo <lbergstrom+bors@mozilla.com> | 2016-01-01 21:04:51 +0530 |
commit | 11d160fc73c7692ca08a24966e129454baa1dbf9 (patch) | |
tree | 1826dcd8b95b32d5f4114bf79e9b7912531f9d90 /components/script/cors.rs | |
parent | b8e7cd71d6aada507a7eab1ddad44181b0d2d029 (diff) | |
parent | 1ccab328f9bc7e2952bbbfe7591804b6ce65ee9e (diff) | |
download | servo-11d160fc73c7692ca08a24966e129454baa1dbf9.tar.gz servo-11d160fc73c7692ca08a24966e129454baa1dbf9.zip |
Auto merge of #9109 - nerith:createpattern, r=jdm
Support empty strings as the repeat argument (CreatePattern)
According to the third step in the specification [1], createPattern
should let the repetition argument be "repeat" when it is the empty
string.
The code in CanvasRenderingContext2D::CreatePattern did not implement
this step and instead threw a SyntaxError exception when an empty
string was supplied as the repetition argument.
Fixes #9079.
[1] https://html.spec.whatwg.org/multipage/#dom-context-2d-createpattern
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9109)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/cors.rs')
0 files changed, 0 insertions, 0 deletions