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

Side by Side Diff: Source/core/html/forms/BaseChooserOnlyDateAndTimeInputType.cpp

Issue 977113003: Rename renderer() to layoutObject(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google 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 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 27 matching lines...) Expand all
38 38
39 namespace blink { 39 namespace blink {
40 40
41 BaseChooserOnlyDateAndTimeInputType::~BaseChooserOnlyDateAndTimeInputType() 41 BaseChooserOnlyDateAndTimeInputType::~BaseChooserOnlyDateAndTimeInputType()
42 { 42 {
43 closeDateTimeChooser(); 43 closeDateTimeChooser();
44 } 44 }
45 45
46 void BaseChooserOnlyDateAndTimeInputType::handleDOMActivateEvent(Event*) 46 void BaseChooserOnlyDateAndTimeInputType::handleDOMActivateEvent(Event*)
47 { 47 {
48 if (element().isDisabledOrReadOnly() || !element().renderer() || !UserGestur eIndicator::processingUserGesture() || element().hasOpenShadowRoot()) 48 if (element().isDisabledOrReadOnly() || !element().layoutObject() || !UserGe stureIndicator::processingUserGesture() || element().hasOpenShadowRoot())
49 return; 49 return;
50 50
51 if (m_dateTimeChooser) 51 if (m_dateTimeChooser)
52 return; 52 return;
53 if (!element().document().isActive()) 53 if (!element().document().isActive())
54 return; 54 return;
55 DateTimeChooserParameters parameters; 55 DateTimeChooserParameters parameters;
56 if (!element().setupDateTimeChooserParameters(parameters)) 56 if (!element().setupDateTimeChooserParameters(parameters))
57 return; 57 return;
58 m_dateTimeChooser = element().document().frameHost()->chrome().openDateTimeC hooser(this, parameters); 58 m_dateTimeChooser = element().document().frameHost()->chrome().openDateTimeC hooser(this, parameters);
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 } 143 }
144 144
145 void BaseChooserOnlyDateAndTimeInputType::accessKeyAction(bool sendMouseEvents) 145 void BaseChooserOnlyDateAndTimeInputType::accessKeyAction(bool sendMouseEvents)
146 { 146 {
147 BaseDateAndTimeInputType::accessKeyAction(sendMouseEvents); 147 BaseDateAndTimeInputType::accessKeyAction(sendMouseEvents);
148 BaseClickableWithKeyInputType::accessKeyAction(element(), sendMouseEvents); 148 BaseClickableWithKeyInputType::accessKeyAction(element(), sendMouseEvents);
149 } 149 }
150 150
151 } 151 }
152 #endif 152 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698