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

Unified Diff: third_party/WebKit/Source/modules/canvas2d/HitRegion.cpp

Issue 1654653002: Canvas2d: Implement rerouting event by hit region's control. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix bot errors Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/canvas2d/HitRegion.cpp
diff --git a/third_party/WebKit/Source/modules/canvas2d/HitRegion.cpp b/third_party/WebKit/Source/modules/canvas2d/HitRegion.cpp
index 77acbb53dfc781246bf1e40246fdfe2aeda4f6d9..4423f63ba2b4b30065e9dbb7a6214b60128fa64c 100644
--- a/third_party/WebKit/Source/modules/canvas2d/HitRegion.cpp
+++ b/third_party/WebKit/Source/modules/canvas2d/HitRegion.cpp
@@ -10,7 +10,7 @@
namespace blink {
HitRegion::HitRegion(const Path& path, const HitRegionOptions& options)
- : m_id(options.id())
+ : m_id(options.id().isEmpty() ? String() : options.id())
, m_control(options.control())
, m_path(path)
{

Powered by Google App Engine
This is Rietveld 408576698