| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 | 304 |
| 305 void WebScrollbarImpl::getTickmarks(Vector<WebCore::IntRect>& tickmarks) const | 305 void WebScrollbarImpl::getTickmarks(Vector<WebCore::IntRect>& tickmarks) const |
| 306 { | 306 { |
| 307 WebVector<WebRect> ticks; | 307 WebVector<WebRect> ticks; |
| 308 m_client->getTickmarks(const_cast<WebScrollbarImpl*>(this), &ticks); | 308 m_client->getTickmarks(const_cast<WebScrollbarImpl*>(this), &ticks); |
| 309 tickmarks.resize(ticks.size()); | 309 tickmarks.resize(ticks.size()); |
| 310 for (size_t i = 0; i < ticks.size(); ++i) | 310 for (size_t i = 0; i < ticks.size(); ++i) |
| 311 tickmarks[i] = ticks[i]; | 311 tickmarks[i] = ticks[i]; |
| 312 } | 312 } |
| 313 | 313 |
| 314 Scrollbar* WebScrollbarImpl::horizontalScrollbar() const |
| 315 { |
| 316 return m_scrollbar->orientation() == HorizontalScrollbar ? m_scrollbar.get()
: 0; |
| 317 } |
| 318 |
| 319 Scrollbar* WebScrollbarImpl::verticalScrollbar() const |
| 320 { |
| 321 return m_scrollbar->orientation() == VerticalScrollbar ? m_scrollbar.get() :
0; |
| 322 } |
| 323 |
| 314 } // namespace WebKit | 324 } // namespace WebKit |
| OLD | NEW |