Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for Issue #111: a valid fill attribute cannot override its parental "fill='none'" attribute. #112

Merged
merged 1 commit into from
Aug 9, 2020

Conversation

mpsuzuki
Copy link
Collaborator

SVGStringParser::ParsePaint() sets the initial value of 'result' to kInvalid. In some cases, the result is updated to kDisabled, but it is never updated to kSuccess, except of the case that ParseColor() updates it. Therefore, once the parental element sets "fill='none'", often the child elements cannot override it, like Issue #111.

This commit changes the initial value from kInvalid to kSuccess, and all 'return result' before changing 'result' are replaced by immediate 'return kInvalid'.

…t' from kInvalid to kSuccess, all 'return result' before changing 'result' are replaced by 'return kInvalid'
@mpsuzuki mpsuzuki linked an issue May 18, 2020 that may be closed by this pull request
@dirkschulze
Copy link
Member

Thanks a lot @mpsuzuki !

@mpsuzuki mpsuzuki merged commit d15aa67 into adobe:master Aug 9, 2020
@mpsuzuki
Copy link
Collaborator Author

mpsuzuki commented Aug 9, 2020

@dirkschulze , sorry for delayed action! To work with other issues #114, #115, I've committed this change set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

This image cannot be displayed.
2 participants