| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |