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

Side by Side Diff: Source/core/rendering/RenderListBox.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
« no previous file with comments | « Source/core/rendering/RenderListBox.h ('k') | Source/platform/graphics/GraphicsLayerTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2011 Apple Inc. All rights reserved.
3 * 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 3 * 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after
758 LayoutRect RenderListBox::controlClipRect(const LayoutPoint& additionalOffset) c onst 758 LayoutRect RenderListBox::controlClipRect(const LayoutPoint& additionalOffset) c onst
759 { 759 {
760 LayoutRect clipRect = contentBoxRect(); 760 LayoutRect clipRect = contentBoxRect();
761 if (style()->shouldPlaceBlockDirectionScrollbarOnLogicalLeft()) 761 if (style()->shouldPlaceBlockDirectionScrollbarOnLogicalLeft())
762 clipRect.moveBy(additionalOffset + LayoutPoint(verticalScrollbarWidth(), 0)); 762 clipRect.moveBy(additionalOffset + LayoutPoint(verticalScrollbarWidth(), 0));
763 else 763 else
764 clipRect.moveBy(additionalOffset); 764 clipRect.moveBy(additionalOffset);
765 return clipRect; 765 return clipRect;
766 } 766 }
767 767
768 bool RenderListBox::isActive() const 768 bool RenderListBox::isActiveFocus() const
769 { 769 {
770 Page* page = frame()->page(); 770 Page* page = frame()->page();
771 return page && page->focusController().isActive(); 771 return page && page->focusController().isActive();
772 } 772 }
773 773
774 void RenderListBox::invalidateScrollbarRect(Scrollbar* scrollbar, const IntRect& rect) 774 void RenderListBox::invalidateScrollbarRect(Scrollbar* scrollbar, const IntRect& rect)
775 { 775 {
776 IntRect scrollRect = rect; 776 IntRect scrollRect = rect;
777 if (style()->shouldPlaceBlockDirectionScrollbarOnLogicalLeft()) 777 if (style()->shouldPlaceBlockDirectionScrollbarOnLogicalLeft())
778 scrollRect.move(borderLeft(), borderTop()); 778 scrollRect.move(borderLeft(), borderTop());
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
1022 { 1022 {
1023 return itemBoundingBoxRectInternal(point, listIndexToRenderListBoxIndex(inde x)); 1023 return itemBoundingBoxRectInternal(point, listIndexToRenderListBoxIndex(inde x));
1024 } 1024 }
1025 1025
1026 bool RenderListBox::scrollToRevealElementAtListIndex(int index) 1026 bool RenderListBox::scrollToRevealElementAtListIndex(int index)
1027 { 1027 {
1028 return scrollToRevealElementAtListIndexInternal(listIndexToRenderListBoxInde x(index)); 1028 return scrollToRevealElementAtListIndexInternal(listIndexToRenderListBoxInde x(index));
1029 } 1029 }
1030 1030
1031 } // namespace WebCore 1031 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderListBox.h ('k') | Source/platform/graphics/GraphicsLayerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698