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

Side by Side Diff: Source/core/html/shadow/SliderThumbElement.cpp

Issue 315843004: Oilpan: Replace RefPtrs to Node and its subclasses in core/html with Oilpan transitin types. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Google Inc. All rights reserved. 3 * Copyright (C) 2010 Google Inc. All rights reserved.
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 are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * 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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 return hostInput() && hostInput()->matchesReadWritePseudoClass(); 241 return hostInput() && hostInput()->matchesReadWritePseudoClass();
242 } 242 }
243 243
244 Node* SliderThumbElement::focusDelegate() 244 Node* SliderThumbElement::focusDelegate()
245 { 245 {
246 return hostInput(); 246 return hostInput();
247 } 247 }
248 248
249 void SliderThumbElement::dragFrom(const LayoutPoint& point) 249 void SliderThumbElement::dragFrom(const LayoutPoint& point)
250 { 250 {
251 RefPtr<SliderThumbElement> protector(this); 251 RefPtrWillBeRawPtr<SliderThumbElement> protector(this);
252 startDragging(); 252 startDragging();
253 setPositionFromPoint(point); 253 setPositionFromPoint(point);
254 } 254 }
255 255
256 void SliderThumbElement::setPositionFromPoint(const LayoutPoint& point) 256 void SliderThumbElement::setPositionFromPoint(const LayoutPoint& point)
257 { 257 {
258 RefPtrWillBeRawPtr<HTMLInputElement> input(hostInput()); 258 RefPtrWillBeRawPtr<HTMLInputElement> input(hostInput());
259 Element* trackElement = input->userAgentShadowRoot()->getElementById(ShadowE lementNames::sliderTrack()); 259 Element* trackElement = input->userAgentShadowRoot()->getElementById(ShadowE lementNames::sliderTrack());
260 260
261 if (!input->renderer() || !renderBox() || !trackElement->renderBox()) 261 if (!input->renderer() || !renderBox() || !trackElement->renderBox())
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 case MediaVolumeSliderThumbPart: 470 case MediaVolumeSliderThumbPart:
471 case MediaFullScreenVolumeSliderPart: 471 case MediaFullScreenVolumeSliderPart:
472 case MediaFullScreenVolumeSliderThumbPart: 472 case MediaFullScreenVolumeSliderThumbPart:
473 return mediaSliderContainer; 473 return mediaSliderContainer;
474 default: 474 default:
475 return sliderContainer; 475 return sliderContainer;
476 } 476 }
477 } 477 }
478 478
479 } 479 }
OLDNEW
« no previous file with comments | « Source/core/html/forms/TextFieldInputType.cpp ('k') | Source/core/html/shadow/SpinButtonElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698