Changeset 151804 in webkit
- Timestamp:
- Jun 20, 2013, 2:28:20 PM (12 years ago)
- Location:
- trunk/Source
- Files:
- 
      - 6 edited
 
 - 
          
  WebCore/ChangeLog (modified) (1 diff)
- 
          
  WebCore/page/ChromeClient.h (modified) (1 diff)
- 
          
  WebCore/page/FrameView.cpp (modified) (1 diff)
- 
          
  WebKit/mac/ChangeLog (modified) (1 diff)
- 
          
  WebKit/mac/WebCoreSupport/WebChromeClient.h (modified) (1 diff)
- 
          
  WebKit/mac/WebCoreSupport/WebChromeClient.mm (modified) (1 diff)
 
Legend:
- Unmodified
- Added
- Removed
- 
      trunk/Source/WebCore/ChangeLogr151803 r151804 1 2013-06-20 Simon Fraser <simon.fraser@apple.com> 2 3 FrameView needs to initialize paintsEntireContents on creation 4 https://bugs.webkit.org/show_bug.cgi?id=117844 5 6 Reviewed by Anders Carlsson. 7 8 In WebKit1, if the WebView is layer-backed, WebHTMLView gets a layer. 9 In this mode, FrameView::paintsEntireContents() is true. However, 10 we would only call setPaintsEntireContents(true) on the FrameView 11 when the view's layer-backed status changes. FrameView also needs 12 to fetch this state when it is initialized, because we may be creating 13 a new FrameView for an already layer-backed WebHTMLView. 14 15 * page/ChromeClient.h: 16 (WebCore::ChromeClient::shouldPaintEntireContents): 17 * page/FrameView.cpp: 18 (WebCore::FrameView::init): 19 1 20 2013-06-20 Simon Fraser <simon.fraser@apple.com> 2 21 
- 
      trunk/Source/WebCore/page/ChromeClient.hr151221 r151804 239 239 virtual void elementDidFocus(const Node*) { }; 240 240 virtual void elementDidBlur(const Node*) { }; 241 242 virtual bool shouldPaintEntireContents() const { return false; } 241 243 242 244 #if USE(ACCELERATED_COMPOSITING) 
- 
      trunk/Source/WebCore/page/FrameView.cppr151803 r151804 357 357 setMarginHeight(marginHeight); 358 358 } 359 360 Page* page = frame() ? frame()->page() : 0; 361 if (page && page->chrome().client()->shouldPaintEntireContents()) 362 setPaintsEntireContents(true); 359 363 } 360 364 
- 
      trunk/Source/WebKit/mac/ChangeLogr151757 r151804 1 2013-06-20 Simon Fraser <simon.fraser@apple.com> 2 3 FrameView needs to initialize paintsEntireContents on creation 4 https://bugs.webkit.org/show_bug.cgi?id=117844 5 6 Reviewed by Anders Carlsson. 7 8 In WebKit1, if the WebView is layer-backed, WebHTMLView gets a layer. 9 In this mode, FrameView::paintsEntireContents() is true. However, 10 we would only call setPaintsEntireContents(true) on the FrameView 11 when the view's layer-backed status changes. FrameView also needs 12 to fetch this state when it is initialized, because we may be creating 13 a new FrameView for an already layer-backed WebHTMLView. 14 15 * WebCoreSupport/WebChromeClient.h: 16 * WebCoreSupport/WebChromeClient.mm: 17 (WebChromeClient::shouldPaintEntireContents): 18 1 19 2013-06-19 Benjamin Poulain <bpoulain@apple.com> 2 20 
- 
      trunk/Source/WebKit/mac/WebCoreSupport/WebChromeClient.hr150353 r151804 146 146 virtual void elementDidBlur(const WebCore::Node*) OVERRIDE; 147 147 148 virtual bool shouldPaintEntireContents() const OVERRIDE; 149 148 150 #if USE(ACCELERATED_COMPOSITING) 149 151 virtual void attachRootGraphicsLayer(WebCore::Frame*, WebCore::GraphicsLayer*) OVERRIDE; 
- 
      trunk/Source/WebKit/mac/WebCoreSupport/WebChromeClient.mmr151530 r151804 844 844 } 845 845 846 bool WebChromeClient::shouldPaintEntireContents() const 847 { 848 NSView *documentView = [[[m_webView mainFrame] frameView] documentView]; 849 return [documentView layer]; 850 } 851 846 852 #if USE(ACCELERATED_COMPOSITING) 847 853 
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  
