Changeset 207988 in webkit
- Timestamp:
- Oct 27, 2016, 4:18:52 AM (10 years ago)
- Location:
- branches/safari-602-branch/Source/WebCore
- Files:
-
- 5 edited
-
ChangeLog (modified) (1 diff)
-
html/MediaElementSession.cpp (modified) (1 diff)
-
platform/graphics/ImageSource.cpp (modified) (1 diff)
-
platform/graphics/IntRect.h (modified) (1 diff)
-
rendering/shapes/Shape.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-602-branch/Source/WebCore/ChangeLog
r207955 r207988 1 2016-10-27 David Kilzer <ddkilzer@apple.com> 2 3 Fix merge r207708. rdar://problem/28962914 4 5 * html/MediaElementSession.cpp: 6 (WebCore::isElementRectMostlyInMainFrame): Call unsafeGet(). 7 * platform/graphics/ImageSource.cpp: 8 (WebCore::ImageSource::calculateMaximumSubsamplingLevel): Call unsafeGet(). 9 * platform/graphics/IntRect.h: 10 (WebCore::IntRect::area): Replace non-template area() method with template version. 11 * rendering/shapes/Shape.cpp: 12 (WebCore::Shape::createRasterShape): Call unsafeGet(). 13 1 14 2016-10-27 Matthew Hanson <matthew_hanson@apple.com> 2 15 -
branches/safari-602-branch/Source/WebCore/html/MediaElementSession.cpp
r207953 r207988 658 658 IntRect mainFrameRectAdjustedForScrollPosition = IntRect(-mainFrameView->documentScrollPositionRelativeToViewOrigin(), mainFrameView->contentsSize()); 659 659 IntRect elementRectInMainFrame = element.clientRect(); 660 unsigned totalElementArea = elementRectInMainFrame.area() ;660 unsigned totalElementArea = elementRectInMainFrame.area().unsafeGet(); 661 661 elementRectInMainFrame.intersect(mainFrameRectAdjustedForScrollPosition); 662 662 663 return elementRectInMainFrame.area() > totalElementArea / 2;663 return elementRectInMainFrame.area().unsafeGet() > totalElementArea / 2; 664 664 } 665 665 -
branches/safari-602-branch/Source/WebCore/platform/graphics/ImageSource.cpp
r207953 r207988 104 104 105 105 for (SubsamplingLevel level = 0; level < maxSubsamplingLevel; ++level) { 106 if (frameSizeAtIndex(0, level).area() < maximumImageAreaBeforeSubsampling)106 if (frameSizeAtIndex(0, level).area().unsafeGet() < maximumImageAreaBeforeSubsampling) 107 107 return level; 108 108 } -
branches/safari-602-branch/Source/WebCore/platform/graphics/IntRect.h
r207953 r207988 86 86 int width() const { return m_size.width(); } 87 87 int height() const { return m_size.height(); } 88 89 unsigned area() const { return m_size.area().unsafeGet(); } 88 89 template <typename T = WTF::CrashOnOverflow> 90 Checked<unsigned, T> area() const { return m_size.area<T>(); } 90 91 91 92 void setX(int x) { m_location.setX(x); } -
branches/safari-602-branch/Source/WebCore/rendering/shapes/Shape.cpp
r207953 r207988 197 197 int maxBufferY = std::min(imageRect.height(), marginRect.maxY() - imageRect.y()); 198 198 199 if ((imageRect.area() * 4) == pixelArrayLength) {199 if ((imageRect.area() * 4).unsafeGet() == pixelArrayLength) { 200 200 for (int y = minBufferY; y < maxBufferY; ++y) { 201 201 int startX = -1;
Note:
See TracChangeset
for help on using the changeset viewer.