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

Side by Side Diff: Source/core/accessibility/AccessibilityScrollView.cpp

Issue 23464095: WTF::notFound looks too much like a local variable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/bindings/v8/V8PerIsolateData.h ('k') | Source/core/animation/AnimationStack.h » ('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) 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2011 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 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 m_verticalScrollbar = addChildScrollbar(m_scrollView->verticalScrollbar( )); 110 m_verticalScrollbar = addChildScrollbar(m_scrollView->verticalScrollbar( ));
111 else if (!m_scrollView->verticalScrollbar() && m_verticalScrollbar) { 111 else if (!m_scrollView->verticalScrollbar() && m_verticalScrollbar) {
112 removeChildScrollbar(m_verticalScrollbar.get()); 112 removeChildScrollbar(m_verticalScrollbar.get());
113 m_verticalScrollbar = 0; 113 m_verticalScrollbar = 0;
114 } 114 }
115 } 115 }
116 116
117 void AccessibilityScrollView::removeChildScrollbar(AccessibilityObject* scrollba r) 117 void AccessibilityScrollView::removeChildScrollbar(AccessibilityObject* scrollba r)
118 { 118 {
119 size_t pos = m_children.find(scrollbar); 119 size_t pos = m_children.find(scrollbar);
120 if (pos != WTF::notFound) { 120 if (pos != kNotFound) {
121 m_children[pos]->detachFromParent(); 121 m_children[pos]->detachFromParent();
122 m_children.remove(pos); 122 m_children.remove(pos);
123 } 123 }
124 } 124 }
125 125
126 AccessibilityScrollbar* AccessibilityScrollView::addChildScrollbar(Scrollbar* sc rollbar) 126 AccessibilityScrollbar* AccessibilityScrollView::addChildScrollbar(Scrollbar* sc rollbar)
127 { 127 {
128 if (!scrollbar) 128 if (!scrollbar)
129 return 0; 129 return 0;
130 130
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 return m_scrollView; 233 return m_scrollView;
234 } 234 }
235 235
236 void AccessibilityScrollView::scrollTo(const IntPoint& point) const 236 void AccessibilityScrollView::scrollTo(const IntPoint& point) const
237 { 237 {
238 if (m_scrollView) 238 if (m_scrollView)
239 m_scrollView->setScrollPosition(point); 239 m_scrollView->setScrollPosition(point);
240 } 240 }
241 241
242 } // namespace WebCore 242 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/v8/V8PerIsolateData.h ('k') | Source/core/animation/AnimationStack.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698