Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(229)

Side by Side Diff: Source/core/rendering/RenderLayerScrollableArea.cpp

Issue 260353003: isActiveFocus() is a more meaningful name (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderLayerScrollableArea.h ('k') | Source/core/rendering/RenderListBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698