Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Side by Side Diff: Source/core/frame/FrameView.cpp

Issue 455883002: Re-land of: Allow paint invalidation containers to cross frame boundaries. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
3 * 1999 Lars Knoll <knoll@kde.org> 3 * 1999 Lars Knoll <knoll@kde.org>
4 * 1999 Antti Koivisto <koivisto@kde.org> 4 * 1999 Antti Koivisto <koivisto@kde.org>
5 * 2000 Dirk Mueller <mueller@kde.org> 5 * 2000 Dirk Mueller <mueller@kde.org>
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com)
8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
9 * Copyright (C) 2009 Google Inc. All rights reserved. 9 * Copyright (C) 2009 Google Inc. All rights reserved.
10 * 10 *
(...skipping 1608 matching lines...) Expand 10 before | Expand all | Expand 10 after
1619 { 1619 {
1620 Page* page = frame().page(); 1620 Page* page = frame().page();
1621 if (!page) 1621 if (!page)
1622 return 0; 1622 return 0;
1623 return &page->chrome(); 1623 return &page->chrome();
1624 } 1624 }
1625 1625
1626 void FrameView::contentRectangleForPaintInvalidation(const IntRect& r) 1626 void FrameView::contentRectangleForPaintInvalidation(const IntRect& r)
1627 { 1627 {
1628 ASSERT(paintInvalidationIsAllowed()); 1628 ASSERT(paintInvalidationIsAllowed());
1629 ASSERT(!m_frame->owner()); 1629 ASSERT(!m_frame->ownerRenderer());
1630 1630
1631 if (m_isTrackingPaintInvalidations) { 1631 if (m_isTrackingPaintInvalidations) {
1632 IntRect paintInvalidationRect = r; 1632 IntRect paintInvalidationRect = r;
1633 paintInvalidationRect.move(-scrollOffset()); 1633 paintInvalidationRect.move(-scrollOffset());
1634 m_trackedPaintInvalidationRects.append(paintInvalidationRect); 1634 m_trackedPaintInvalidationRects.append(paintInvalidationRect);
1635 // FIXME: http://crbug.com/368518. Eventually, invalidateContentRectangl eForPaint 1635 // FIXME: http://crbug.com/368518. Eventually, invalidateContentRectangl eForPaint
1636 // is going away entirely once all layout tests are FCM. In the short 1636 // is going away entirely once all layout tests are FCM. In the short
1637 // term, no code should be tracking non-composited FrameView paint inval idations. 1637 // term, no code should be tracking non-composited FrameView paint inval idations.
1638 RELEASE_ASSERT_NOT_REACHED(); 1638 RELEASE_ASSERT_NOT_REACHED();
1639 } 1639 }
(...skipping 1504 matching lines...) Expand 10 before | Expand all | Expand 10 after
3144 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o rientation) 3144 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o rientation)
3145 { 3145 {
3146 ScrollableArea::willRemoveScrollbar(scrollbar, orientation); 3146 ScrollableArea::willRemoveScrollbar(scrollbar, orientation);
3147 if (AXObjectCache* cache = axObjectCache()) { 3147 if (AXObjectCache* cache = axObjectCache()) {
3148 cache->remove(scrollbar); 3148 cache->remove(scrollbar);
3149 cache->handleScrollbarUpdate(this); 3149 cache->handleScrollbarUpdate(this);
3150 } 3150 }
3151 } 3151 }
3152 3152
3153 } // namespace blink 3153 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | Source/core/rendering/RenderLayerRepainter.cpp » ('j') | Source/core/rendering/RenderObject.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698