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

Side by Side Diff: Source/WebCore/platform/ScrollView.cpp

Issue 12084101: Merge 141226 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1364/
Patch Set: Created 7 years, 10 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
« no previous file with comments | « no previous file | no next file » | 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) 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 595
596 if (m_scrollbarsSuppressed) 596 if (m_scrollbarsSuppressed)
597 m_verticalScrollbar->setSuppressInvalidation(true); 597 m_verticalScrollbar->setSuppressInvalidation(true);
598 m_verticalScrollbar->setEnabled(contentsHeight() > clientHeight); 598 m_verticalScrollbar->setEnabled(contentsHeight() > clientHeight);
599 m_verticalScrollbar->setSteps(Scrollbar::pixelsPerLineStep(), pageStep); 599 m_verticalScrollbar->setSteps(Scrollbar::pixelsPerLineStep(), pageStep);
600 m_verticalScrollbar->setProportion(clientHeight, contentsHeight()); 600 m_verticalScrollbar->setProportion(clientHeight, contentsHeight());
601 if (m_scrollbarsSuppressed) 601 if (m_scrollbarsSuppressed)
602 m_verticalScrollbar->setSuppressInvalidation(false); 602 m_verticalScrollbar->setSuppressInvalidation(false);
603 } 603 }
604 604
605 if (hasHorizontalScrollbar != (m_horizontalScrollbar != 0) || hasVerticalScr ollbar != (m_verticalScrollbar != 0)) { 605 if (hasHorizontalScrollbar != newHasHorizontalScrollbar || hasVerticalScroll bar != newHasVerticalScrollbar) {
606 // FIXME: Is frameRectsChanged really necessary here? Have any frame rec ts changed? 606 // FIXME: Is frameRectsChanged really necessary here? Have any frame rec ts changed?
607 frameRectsChanged(); 607 frameRectsChanged();
608 positionScrollbarLayers(); 608 positionScrollbarLayers();
609 updateScrollCorner(); 609 updateScrollCorner();
610 if (!m_horizontalScrollbar && !m_verticalScrollbar) 610 if (!m_horizontalScrollbar && !m_verticalScrollbar)
611 invalidateScrollCornerRect(oldScrollCornerRect); 611 invalidateScrollCornerRect(oldScrollCornerRect);
612 } 612 }
613 613
614 IntPoint adjustedScrollPosition = IntPoint(desiredOffset); 614 IntPoint adjustedScrollPosition = IntPoint(desiredOffset);
615 615
(...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after
1422 } 1422 }
1423 1423
1424 bool ScrollView::platformIsOffscreen() const 1424 bool ScrollView::platformIsOffscreen() const
1425 { 1425 {
1426 return false; 1426 return false;
1427 } 1427 }
1428 1428
1429 #endif 1429 #endif
1430 1430
1431 } 1431 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698