Changeset 173737 in webkit
- Timestamp:
- Sep 18, 2014, 3:31:43 PM (11 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r173726 r173737 1 2014-09-18 Simon Fraser <simon.fraser@apple.com> 2 3 Avoid divide by zero when we get an empty rect while snapshotting a node 4 https://bugs.webkit.org/show_bug.cgi?id=136932 5 rdar://problem/18383473 6 7 Reviewed by Dean Jackson. 8 9 renderer()->paintingRootRect() can return an empty rect for some inline configurations, 10 for example an <a> containing a floated <span> 11 12 When this occurs, avoid a divide by zero and return a null snapshot image. 13 14 * WebProcess/WebPage/WebPage.cpp: 15 (WebKit::WebPage::snapshotNode): 16 1 17 2014-09-18 Carlos Garcia Campos <cgarcia@igalia.com> 2 18 -
trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp
r173710 r173737 1713 1713 LayoutRect topLevelRect; 1714 1714 IntRect snapshotRect = snappedIntRect(node.renderer()->paintingRootRect(topLevelRect)); 1715 if (snapshotRect.isEmpty()) 1716 return nullptr; 1715 1717 1716 1718 double scaleFactor = 1;
Note:
See TracChangeset
for help on using the changeset viewer.