OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. |
3 * | 3 * |
4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. |
5 * | 5 * |
6 * Other contributors: | 6 * Other contributors: |
7 * Robert O'Callahan <roc+@cs.cmu.edu> | 7 * Robert O'Callahan <roc+@cs.cmu.edu> |
8 * David Baron <dbaron@fas.harvard.edu> | 8 * David Baron <dbaron@fas.harvard.edu> |
9 * Christian Biesinger <cbiesinger@web.de> | 9 * Christian Biesinger <cbiesinger@web.de> |
10 * Randall Jesup <rjesup@wgate.com> | 10 * Randall Jesup <rjesup@wgate.com> |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 layer->setNeedsDisplayInRect(rect); | 222 layer->setNeedsDisplayInRect(rect); |
223 return; | 223 return; |
224 } | 224 } |
225 | 225 |
226 if (m_scrollCorner) | 226 if (m_scrollCorner) |
227 m_scrollCorner->repaintRectangle(rect); | 227 m_scrollCorner->repaintRectangle(rect); |
228 if (m_resizer) | 228 if (m_resizer) |
229 m_resizer->repaintRectangle(rect); | 229 m_resizer->repaintRectangle(rect); |
230 } | 230 } |
231 | 231 |
232 bool RenderLayerScrollableArea::isActive() const | 232 bool RenderLayerScrollableArea::isActiveFocus() const |
233 { | 233 { |
234 Page* page = m_box.frame()->page(); | 234 Page* page = m_box.frame()->page(); |
235 return page && page->focusController().isActive(); | 235 return page && page->focusController().isActive(); |
236 } | 236 } |
237 | 237 |
238 bool RenderLayerScrollableArea::isScrollCornerVisible() const | 238 bool RenderLayerScrollableArea::isScrollCornerVisible() const |
239 { | 239 { |
240 return !scrollCornerRect().isEmpty(); | 240 return !scrollCornerRect().isEmpty(); |
241 } | 241 } |
242 | 242 |
(...skipping 1299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1542 void RenderLayerScrollableArea::setForceNeedsCompositedScrolling(ForceNeedsCompo
sitedScrollingMode mode) | 1542 void RenderLayerScrollableArea::setForceNeedsCompositedScrolling(ForceNeedsCompo
sitedScrollingMode mode) |
1543 { | 1543 { |
1544 if (m_forceNeedsCompositedScrolling == mode) | 1544 if (m_forceNeedsCompositedScrolling == mode) |
1545 return; | 1545 return; |
1546 | 1546 |
1547 m_forceNeedsCompositedScrolling = mode; | 1547 m_forceNeedsCompositedScrolling = mode; |
1548 layer()->didUpdateNeedsCompositedScrolling(); | 1548 layer()->didUpdateNeedsCompositedScrolling(); |
1549 } | 1549 } |
1550 | 1550 |
1551 } // Namespace WebCore | 1551 } // Namespace WebCore |
OLD | NEW |