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

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

Issue 324073002: Oilpan: Switch RefCountedGarbageCollected to GarbageCollectedFinalized for Node. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase and update Node base class list 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 // -------------------------------- 200 // --------------------------------
201 201
202 inline SliderThumbElement::SliderThumbElement(Document& document) 202 inline SliderThumbElement::SliderThumbElement(Document& document)
203 : HTMLDivElement(document) 203 : HTMLDivElement(document)
204 , m_inDragMode(false) 204 , m_inDragMode(false)
205 { 205 {
206 } 206 }
207 207
208 PassRefPtrWillBeRawPtr<SliderThumbElement> SliderThumbElement::create(Document& document) 208 PassRefPtrWillBeRawPtr<SliderThumbElement> SliderThumbElement::create(Document& document)
209 { 209 {
210 RefPtrWillBeRawPtr<SliderThumbElement> element = adoptRefWillBeRefCountedGar bageCollected(new SliderThumbElement(document)); 210 RefPtrWillBeRawPtr<SliderThumbElement> element = adoptRefWillBeNoop(new Slid erThumbElement(document));
211 element->setAttribute(idAttr, ShadowElementNames::sliderThumb()); 211 element->setAttribute(idAttr, ShadowElementNames::sliderThumb());
212 return element.release(); 212 return element.release();
213 } 213 }
214 214
215 void SliderThumbElement::setPositionFromValue() 215 void SliderThumbElement::setPositionFromValue()
216 { 216 {
217 // Since the code to calculate position is in the RenderSliderThumb layout 217 // Since the code to calculate position is in the RenderSliderThumb layout
218 // path, we don't actually update the value here. Instead, we poke at the 218 // path, we don't actually update the value here. Instead, we poke at the
219 // renderer directly to trigger layout. 219 // renderer directly to trigger layout.
220 if (renderer()) 220 if (renderer())
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 case MediaVolumeSliderThumbPart: 467 case MediaVolumeSliderThumbPart:
468 case MediaFullScreenVolumeSliderPart: 468 case MediaFullScreenVolumeSliderPart:
469 case MediaFullScreenVolumeSliderThumbPart: 469 case MediaFullScreenVolumeSliderThumbPart:
470 return mediaSliderContainer; 470 return mediaSliderContainer;
471 default: 471 default:
472 return sliderContainer; 472 return sliderContainer;
473 } 473 }
474 } 474 }
475 475
476 } 476 }
OLDNEW
« no previous file with comments | « Source/core/html/shadow/PickerIndicatorElement.cpp ('k') | Source/core/html/shadow/SpinButtonElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698