Changeset 63219 in webkit
- Timestamp:
- Jul 13, 2010 10:19:26 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r63217 r63219 1 2010-07-13 W. James MacLean <wjmaclean@chromium.org> 2 3 Reviewed by Darin Fisher 4 5 Bug 41962 Limit html canvas element dimensions to 32767 for Skia platform 6 https://bugs.webkit.org/show_bug.cgi?id=41962 7 8 * fast/canvas/canvas-skia-excessive-size.html: Added. 9 * fast/canvas/canvas-skia-excessive-size-expected.txt: Added. 10 1 11 2010-07-13 Alexey Proskuryakov <ap@apple.com> 2 12 -
trunk/WebCore/ChangeLog
r63215 r63219 1 2010-07-13 W. James MacLean <wjmaclean@chromium.org> 2 3 Reviewed by Darin Fisher 4 5 Bug 41962 Limit html canvas element dimensions to 32767 for Skia platform 6 https://bugs.webkit.org/show_bug.cgi?id=41962 7 8 Test: fast/canvas/canvas-skia-excessive-size.html 9 10 * WebCore/html/HTMLCanvasElement.cpp 11 (WebCore::HTMLCanvasElement::convertLogicalToDevice): 12 1 13 2010-07-10 Zhenyao Mo <zmo@google.com> 2 14 -
trunk/WebCore/html/HTMLCanvasElement.cpp
r63031 r63219 67 67 static const float MaxCanvasArea = 32768 * 8192; // Maximum canvas area in CSS pixels 68 68 69 //In Skia, we will also limit width/height to 32767. 70 static const float MaxSkiaDim = 32767.0F; // Maximum width/height in CSS pixels. 71 69 72 HTMLCanvasElement::HTMLCanvasElement(const QualifiedName& tagName, Document* document) 70 73 : HTMLElement(tagName, document) … … 345 348 return IntSize(); 346 349 350 #if PLATFORM(SKIA) 351 if (wf > MaxSkiaDim || hf > MaxSkiaDim) 352 return IntSize(); 353 #endif 354 347 355 return IntSize(static_cast<unsigned>(wf), static_cast<unsigned>(hf)); 348 356 }
Note: See TracChangeset
for help on using the changeset viewer.