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

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

Issue 24430002: Rename attach and detach to createRenderTree/destroyRenderTree (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
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 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 378
379 bool SliderThumbElement::willRespondToMouseClickEvents() 379 bool SliderThumbElement::willRespondToMouseClickEvents()
380 { 380 {
381 const HTMLInputElement* input = hostInput(); 381 const HTMLInputElement* input = hostInput();
382 if (input && !input->isDisabledOrReadOnly()) 382 if (input && !input->isDisabledOrReadOnly())
383 return true; 383 return true;
384 384
385 return HTMLDivElement::willRespondToMouseClickEvents(); 385 return HTMLDivElement::willRespondToMouseClickEvents();
386 } 386 }
387 387
388 void SliderThumbElement::detach(const AttachContext& context) 388 void SliderThumbElement::destroyRenderTree(const AttachContext& context)
389 { 389 {
390 if (m_inDragMode) { 390 if (m_inDragMode) {
391 if (Frame* frame = document().frame()) 391 if (Frame* frame = document().frame())
392 frame->eventHandler()->setCapturingMouseEventsNode(0); 392 frame->eventHandler()->setCapturingMouseEventsNode(0);
393 } 393 }
394 HTMLDivElement::detach(context); 394 HTMLDivElement::destroyRenderTree(context);
395 } 395 }
396 396
397 HTMLInputElement* SliderThumbElement::hostInput() const 397 HTMLInputElement* SliderThumbElement::hostInput() const
398 { 398 {
399 // Only HTMLInputElement creates SliderThumbElement instances as its shadow nodes. 399 // Only HTMLInputElement creates SliderThumbElement instances as its shadow nodes.
400 // So, shadowHost() must be an HTMLInputElement. 400 // So, shadowHost() must be an HTMLInputElement.
401 return toHTMLInputElement(shadowHost()); 401 return toHTMLInputElement(shadowHost());
402 } 402 }
403 403
404 static const AtomicString& sliderThumbShadowPartId() 404 static const AtomicString& sliderThumbShadowPartId()
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 case MediaVolumeSliderThumbPart: 466 case MediaVolumeSliderThumbPart:
467 case MediaFullScreenVolumeSliderPart: 467 case MediaFullScreenVolumeSliderPart:
468 case MediaFullScreenVolumeSliderThumbPart: 468 case MediaFullScreenVolumeSliderThumbPart:
469 return mediaSliderContainer; 469 return mediaSliderContainer;
470 default: 470 default:
471 return sliderContainer; 471 return sliderContainer;
472 } 472 }
473 } 473 }
474 474
475 } 475 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698