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

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

Issue 2623513005: Introduce Element::AttributeModificationParams (Closed)
Patch Set: Created 3 years, 11 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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 explicit HTMLCanvasElement(Document&); 245 explicit HTMLCanvasElement(Document&);
246 void dispose(); 246 void dispose();
247 247
248 using ContextFactoryVector = 248 using ContextFactoryVector =
249 Vector<std::unique_ptr<CanvasRenderingContextFactory>>; 249 Vector<std::unique_ptr<CanvasRenderingContextFactory>>;
250 static ContextFactoryVector& renderingContextFactories(); 250 static ContextFactoryVector& renderingContextFactories();
251 static CanvasRenderingContextFactory* getRenderingContextFactory(int); 251 static CanvasRenderingContextFactory* getRenderingContextFactory(int);
252 252
253 bool shouldAccelerate(const IntSize&) const; 253 bool shouldAccelerate(const IntSize&) const;
254 254
255 void parseAttribute(const QualifiedName&, 255 void parseAttribute(const AttributeModificationParams&) override;
256 const AtomicString&,
257 const AtomicString&) override;
258 LayoutObject* createLayoutObject(const ComputedStyle&) override; 256 LayoutObject* createLayoutObject(const ComputedStyle&) override;
259 bool areAuthorShadowsAllowed() const override { return false; } 257 bool areAuthorShadowsAllowed() const override { return false; }
260 258
261 void reset(); 259 void reset();
262 260
263 std::unique_ptr<ImageBufferSurface> createWebGLImageBufferSurface( 261 std::unique_ptr<ImageBufferSurface> createWebGLImageBufferSurface(
264 const IntSize& deviceSize, 262 const IntSize& deviceSize,
265 OpacityMode); 263 OpacityMode);
266 std::unique_ptr<ImageBufferSurface> createAcceleratedImageBufferSurface( 264 std::unique_ptr<ImageBufferSurface> createAcceleratedImageBufferSurface(
267 const IntSize& deviceSize, 265 const IntSize& deviceSize,
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 // Used for OffscreenCanvas that controls this HTML canvas element 309 // Used for OffscreenCanvas that controls this HTML canvas element
312 std::unique_ptr<CanvasSurfaceLayerBridge> m_surfaceLayerBridge; 310 std::unique_ptr<CanvasSurfaceLayerBridge> m_surfaceLayerBridge;
313 311
314 int m_numFramesSinceLastRenderingModeSwitch; 312 int m_numFramesSinceLastRenderingModeSwitch;
315 bool m_pendingRenderingModeSwitch; 313 bool m_pendingRenderingModeSwitch;
316 }; 314 };
317 315
318 } // namespace blink 316 } // namespace blink
319 317
320 #endif // HTMLCanvasElement_h 318 #endif // HTMLCanvasElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLButtonElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698