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

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

Issue 1516683002: Introducing LayoutObject::mapToVisibleRectInContainerSpace (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Fix flipping logic Created 5 years 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutBox.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2016 matching lines...) Expand 10 before | Expand all | Expand 10 after
2027 2027
2028 toLayoutCounter(layoutObject)->updateCounter(); 2028 toLayoutCounter(layoutObject)->updateCounter();
2029 } 2029 }
2030 } 2030 }
2031 2031
2032 IntRect FrameView::windowClipRect(IncludeScrollbarsInRect scrollbarInclusion) co nst 2032 IntRect FrameView::windowClipRect(IncludeScrollbarsInRect scrollbarInclusion) co nst
2033 { 2033 {
2034 ASSERT(m_frame->view() == this); 2034 ASSERT(m_frame->view() == this);
2035 2035
2036 LayoutRect clipRect(LayoutPoint(), LayoutSize(visibleContentSize(scrollbarIn clusion))); 2036 LayoutRect clipRect(LayoutPoint(), LayoutSize(visibleContentSize(scrollbarIn clusion)));
2037 layoutView()->mapRectToPaintInvalidationBacking(&layoutView()->containerForP aintInvalidation(), clipRect, nullptr); 2037 layoutView()->mapToVisibleRectInContainerSpace(&layoutView()->containerForPa intInvalidation(), clipRect, nullptr);
2038 return enclosingIntRect(clipRect); 2038 return enclosingIntRect(clipRect);
2039 } 2039 }
2040 2040
2041 bool FrameView::shouldUseIntegerScrollOffset() const 2041 bool FrameView::shouldUseIntegerScrollOffset() const
2042 { 2042 {
2043 if (m_frame->settings() && !m_frame->settings()->preferCompositingToLCDTextE nabled()) 2043 if (m_frame->settings() && !m_frame->settings()->preferCompositingToLCDTextE nabled())
2044 return true; 2044 return true;
2045 2045
2046 return ScrollableArea::shouldUseIntegerScrollOffset(); 2046 return ScrollableArea::shouldUseIntegerScrollOffset();
2047 } 2047 }
(...skipping 1937 matching lines...) Expand 10 before | Expand all | Expand 10 after
3985 return m_hiddenForThrottling && m_crossOriginForThrottling; 3985 return m_hiddenForThrottling && m_crossOriginForThrottling;
3986 } 3986 }
3987 3987
3988 LayoutBox& FrameView::boxForScrollControlPaintInvalidation() const 3988 LayoutBox& FrameView::boxForScrollControlPaintInvalidation() const
3989 { 3989 {
3990 ASSERT(layoutView()); 3990 ASSERT(layoutView());
3991 return *layoutView(); 3991 return *layoutView();
3992 } 3992 }
3993 3993
3994 } // namespace blink 3994 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698