Changeset 65367 in webkit
- Timestamp:
- Aug 14, 2010 8:36:40 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 5 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r65366 r65367 1 2010-08-14 Matthew Delaney <mdelaney@apple.com> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 Canvas is not reset when setting canvas.width 6 https://bugs.webkit.org/show_bug.cgi?id=43341 7 8 * html/HTMLCanvasElement.cpp: 9 (WebCore::HTMLCanvasElement::reset): Moved the call to 10 hasCreatedImageBuffer up *before* the call to setSurface since setSurface 11 sets hasCreatedImageBuffer to false every time. 12 1 13 2010-08-14 Patrick Gansterer <paroga@paroga.com> 2 14 -
trunk/WebCore/html/HTMLCanvasElement.cpp
r65097 r65367 234 234 235 235 bool ok; 236 bool hadImageBuffer = hasCreatedImageBuffer(); 236 237 int w = getAttribute(widthAttr).toInt(&ok); 237 238 if (!ok || w < 0) … … 249 250 #endif 250 251 251 bool hadImageBuffer = hasCreatedImageBuffer();252 252 if (m_context && m_context->is2d()) 253 253 static_cast<CanvasRenderingContext2D*>(m_context.get())->reset();
Note: See TracChangeset
for help on using the changeset viewer.