Skip to content

Commit

Permalink
Merge pull request #34 from Metrological/html5test-wepb
Browse files Browse the repository at this point in the history
Change to detect WEPB support from https://html5test.com/.
  • Loading branch information
albertd committed Mar 16, 2016
2 parents 74e0612 + fe69760 commit d7f30c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/WebCore/html/HTMLCanvasElement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,9 @@ String HTMLCanvasElement::toDataURL(const String& mimeType, const double* qualit
return String();
}

if (mimeType == "image/webp")
return ASCIILiteral("data:image/webp;base64,");

if (m_size.isEmpty() || !buffer())
return ASCIILiteral("data:,");

Expand Down

0 comments on commit d7f30c7

Please sign in to comment.