Changeset 76393 in webkit
- Timestamp:
- Jan 21, 2011 2:09:19 PM (13 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r76391 r76393 1 2011-01-21 Anders Carlsson <andersca@apple.com> 2 3 Reviewed by Dan Bernstein. 4 5 DrawingAreaProxyImpl::paint should return the unpainted region 6 https://bugs.webkit.org/show_bug.cgi?id=52918 7 8 * UIProcess/API/mac/WKView.mm: 9 (-[WKView drawRect:]): 10 Add unpaintedRegion parameter. 11 12 * UIProcess/BackingStore.h: 13 (WebKit::BackingStore::size): 14 Add a size getter. 15 16 * UIProcess/DrawingAreaProxyImpl.cpp: 17 (WebKit::DrawingAreaProxyImpl::paint): 18 Initialize the unpainted region to the dirty region, then subtract the painted region. 19 1 20 2011-01-21 Anders Carlsson <andersca@apple.com> 2 21 -
trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm
r76186 r76393 38 38 #import "PasteboardTypes.h" 39 39 #import "PrintInfo.h" 40 #import "Region.h" 40 41 #import "RunLoop.h" 41 42 #import "TextChecker.h" … … 1275 1276 [self getRectsBeingDrawn:&rectsBeingDrawn count:&numRectsBeingDrawn]; 1276 1277 for (NSInteger i = 0; i < numRectsBeingDrawn; ++i) { 1278 Region unpaintedRegion; 1277 1279 IntRect rect = enclosingIntRect(rectsBeingDrawn[i]); 1278 drawingArea->paint(context, rect );1280 drawingArea->paint(context, rect, unpaintedRegion); 1279 1281 } 1280 1282 } else if (_data->_page->drawsBackground()) { -
trunk/Source/WebKit2/UIProcess/BackingStore.h
r76305 r76393 52 52 ~BackingStore(); 53 53 54 const WebCore::IntSize& size() const { return m_size; } 55 54 56 #if PLATFORM(MAC) 55 57 typedef CGContextRef PlatformGraphicsContext; -
trunk/Source/WebKit2/UIProcess/DrawingAreaProxyImpl.cpp
r76179 r76393 27 27 28 28 #include "DrawingAreaMessages.h" 29 #include "Region.h" 29 30 #include "UpdateInfo.h" 30 31 #include "WebPageProxy.h" … … 54 55 } 55 56 56 void DrawingAreaProxyImpl::paint(BackingStore::PlatformGraphicsContext context, const IntRect& rect )57 void DrawingAreaProxyImpl::paint(BackingStore::PlatformGraphicsContext context, const IntRect& rect, Region& unpaintedRegion) 57 58 { 59 unpaintedRegion = rect; 60 58 61 if (!m_backingStore) 59 62 return; 60 63 61 64 m_backingStore->paint(context, rect); 65 unpaintedRegion.subtract(IntRect(IntPoint(), m_backingStore->size())); 62 66 } 63 67 -
trunk/Source/WebKit2/UIProcess/DrawingAreaProxyImpl.h
r76157 r76393 32 32 namespace WebKit { 33 33 34 class Region; 35 34 36 class DrawingAreaProxyImpl : public DrawingAreaProxy { 35 37 public: … … 37 39 virtual ~DrawingAreaProxyImpl(); 38 40 39 void paint(BackingStore::PlatformGraphicsContext, const WebCore::IntRect& );41 void paint(BackingStore::PlatformGraphicsContext, const WebCore::IntRect&, Region& unpaintedRegion); 40 42 41 43 private:
Note: See TracChangeset
for help on using the changeset viewer.