| 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 26 matching lines...) Expand all Loading... |
| 37 // FIXME: The following #includes are a layering violation and should be removed
. | 37 // FIXME: The following #includes are a layering violation and should be removed
. |
| 38 #include "AXObjectCache.h" | 38 #include "AXObjectCache.h" |
| 39 #include "AccessibilityScrollbar.h" | 39 #include "AccessibilityScrollbar.h" |
| 40 #include "Document.h" | 40 #include "Document.h" |
| 41 #include "EventHandler.h" | 41 #include "EventHandler.h" |
| 42 #include "Frame.h" | 42 #include "Frame.h" |
| 43 #include "FrameView.h" | 43 #include "FrameView.h" |
| 44 | 44 |
| 45 using namespace std; | 45 using namespace std; |
| 46 | 46 |
| 47 #if PLATFORM(CHROMIUM) && (OS(UNIX) && !OS(DARWIN)) | 47 #if OS(UNIX) && !OS(DARWIN) |
| 48 // The position of the scrollbar thumb affects the appearance of the steppers, s
o | 48 // The position of the scrollbar thumb affects the appearance of the steppers, s
o |
| 49 // when the thumb moves, we have to invalidate them for painting. | 49 // when the thumb moves, we have to invalidate them for painting. |
| 50 #define THUMB_POSITION_AFFECTS_BUTTONS | 50 #define THUMB_POSITION_AFFECTS_BUTTONS |
| 51 #endif | 51 #endif |
| 52 | 52 |
| 53 namespace WebCore { | 53 namespace WebCore { |
| 54 | 54 |
| 55 PassRefPtr<Scrollbar> Scrollbar::createNativeScrollbar(ScrollableArea* scrollabl
eArea, ScrollbarOrientation orientation, ScrollbarControlSize size) | 55 PassRefPtr<Scrollbar> Scrollbar::createNativeScrollbar(ScrollableArea* scrollabl
eArea, ScrollbarOrientation orientation, ScrollbarControlSize size) |
| 56 { | 56 { |
| 57 return adoptRef(new Scrollbar(scrollableArea, orientation, size)); | 57 return adoptRef(new Scrollbar(scrollableArea, orientation, size)); |
| (...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 | 603 |
| 604 IntPoint Scrollbar::convertFromContainingView(const IntPoint& parentPoint) const | 604 IntPoint Scrollbar::convertFromContainingView(const IntPoint& parentPoint) const |
| 605 { | 605 { |
| 606 if (m_scrollableArea) | 606 if (m_scrollableArea) |
| 607 return m_scrollableArea->convertFromContainingViewToScrollbar(this, pare
ntPoint); | 607 return m_scrollableArea->convertFromContainingViewToScrollbar(this, pare
ntPoint); |
| 608 | 608 |
| 609 return Widget::convertFromContainingView(parentPoint); | 609 return Widget::convertFromContainingView(parentPoint); |
| 610 } | 610 } |
| 611 | 611 |
| 612 } // namespace WebCore | 612 } // namespace WebCore |
| OLD | NEW |