| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2006, 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 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 527 } | 527 } |
| 528 | 528 |
| 529 IntRect Scrollbar::convertFromContainingWidget(const IntRect& parentRect) const | 529 IntRect Scrollbar::convertFromContainingWidget(const IntRect& parentRect) const |
| 530 { | 530 { |
| 531 if (m_scrollableArea) | 531 if (m_scrollableArea) |
| 532 return m_scrollableArea->convertFromContainingWidgetToScrollbar(this, pa
rentRect); | 532 return m_scrollableArea->convertFromContainingWidgetToScrollbar(this, pa
rentRect); |
| 533 | 533 |
| 534 return Widget::convertFromContainingWidget(parentRect); | 534 return Widget::convertFromContainingWidget(parentRect); |
| 535 } | 535 } |
| 536 | 536 |
| 537 FloatRect Scrollbar::convertToContainingWidget(const FloatRect& localRect) const |
| 538 { |
| 539 if (m_scrollableArea) |
| 540 return m_scrollableArea->convertFromScrollbarToContainingWidget(this, lo
calRect); |
| 541 |
| 542 return Widget::convertToContainingWidget(localRect); |
| 543 } |
| 544 |
| 537 IntPoint Scrollbar::convertToContainingWidget(const IntPoint& localPoint) const | 545 IntPoint Scrollbar::convertToContainingWidget(const IntPoint& localPoint) const |
| 538 { | 546 { |
| 539 if (m_scrollableArea) | 547 if (m_scrollableArea) |
| 540 return m_scrollableArea->convertFromScrollbarToContainingWidget(this, lo
calPoint); | 548 return m_scrollableArea->convertFromScrollbarToContainingWidget(this, lo
calPoint); |
| 541 | 549 |
| 542 return Widget::convertToContainingWidget(localPoint); | 550 return Widget::convertToContainingWidget(localPoint); |
| 543 } | 551 } |
| 544 | 552 |
| 545 IntPoint Scrollbar::convertFromContainingWidget(const IntPoint& parentPoint) con
st | 553 IntPoint Scrollbar::convertFromContainingWidget(const IntPoint& parentPoint) con
st |
| 546 { | 554 { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 565 { | 573 { |
| 566 if (m_theme->shouldRepaintAllPartsOnInvalidation()) { | 574 if (m_theme->shouldRepaintAllPartsOnInvalidation()) { |
| 567 m_trackNeedsRepaint = true; | 575 m_trackNeedsRepaint = true; |
| 568 m_thumbNeedsRepaint = true; | 576 m_thumbNeedsRepaint = true; |
| 569 } | 577 } |
| 570 if (m_scrollableArea) | 578 if (m_scrollableArea) |
| 571 m_scrollableArea->setScrollbarNeedsPaintInvalidation(this); | 579 m_scrollableArea->setScrollbarNeedsPaintInvalidation(this); |
| 572 } | 580 } |
| 573 | 581 |
| 574 } // namespace blink | 582 } // namespace blink |
| OLD | NEW |