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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLCanvasElement.h

Issue 1815093002: Canvas2d: fix event.region being null on mouseleave/out events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2006, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2006, 2009, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> 3 * Copyright (C) 2007 Alp Toker <alp@atoker.com>
4 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. 4 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 179
180 void createImageBufferUsingSurfaceForTesting(PassOwnPtr<ImageBufferSurface>) ; 180 void createImageBufferUsingSurfaceForTesting(PassOwnPtr<ImageBufferSurface>) ;
181 181
182 static void registerRenderingContextFactory(PassOwnPtr<CanvasRenderingContex tFactory>); 182 static void registerRenderingContextFactory(PassOwnPtr<CanvasRenderingContex tFactory>);
183 void updateExternallyAllocatedMemory() const; 183 void updateExternallyAllocatedMemory() const;
184 184
185 void styleDidChange(const ComputedStyle* oldStyle, const ComputedStyle& newS tyle); 185 void styleDidChange(const ComputedStyle* oldStyle, const ComputedStyle& newS tyle);
186 186
187 void notifyListenersCanvasChanged(); 187 void notifyListenersCanvasChanged();
188 188
189 // For Canvas HitRegions
189 bool isSupportedInteractiveCanvasFallback(const Element&); 190 bool isSupportedInteractiveCanvasFallback(const Element&);
190 std::pair<Element*, String> getControlAndIdIfHitRegionExists(const LayoutPoi nt&); 191 std::pair<Element*, String> getControlAndIdIfHitRegionExists(const LayoutPoi nt&);
192 String getIdFromControl(const Element*);
191 193
192 protected: 194 protected:
193 void didMoveToNewDocument(Document& oldDocument) override; 195 void didMoveToNewDocument(Document& oldDocument) override;
194 196
195 private: 197 private:
196 explicit HTMLCanvasElement(Document&); 198 explicit HTMLCanvasElement(Document&);
197 199
198 using ContextFactoryVector = Vector<OwnPtr<CanvasRenderingContextFactory>>; 200 using ContextFactoryVector = Vector<OwnPtr<CanvasRenderingContextFactory>>;
199 static ContextFactoryVector& renderingContextFactories(); 201 static ContextFactoryVector& renderingContextFactories();
200 static CanvasRenderingContextFactory* getRenderingContextFactory(int); 202 static CanvasRenderingContextFactory* getRenderingContextFactory(int);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 mutable bool m_didFailToCreateImageBuffer; 238 mutable bool m_didFailToCreateImageBuffer;
237 bool m_imageBufferIsClear; 239 bool m_imageBufferIsClear;
238 OwnPtr<ImageBuffer> m_imageBuffer; 240 OwnPtr<ImageBuffer> m_imageBuffer;
239 241
240 mutable RefPtr<Image> m_copiedImage; // FIXME: This is temporary for platfor ms that have to copy the image buffer to render (and for CSSCanvasValue). 242 mutable RefPtr<Image> m_copiedImage; // FIXME: This is temporary for platfor ms that have to copy the image buffer to render (and for CSSCanvasValue).
241 }; 243 };
242 244
243 } // namespace blink 245 } // namespace blink
244 246
245 #endif // HTMLCanvasElement_h 247 #endif // HTMLCanvasElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698