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

Side by Side Diff: third_party/WebKit/Source/core/html/shadow/SpinButtonElement.cpp

Issue 2327743002: Rename Node::shadowHost() to Node::ownerShadowHost() (Closed)
Patch Set: fix Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2008, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2008, 2010 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 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 if (Page* page = document().page()) 193 if (Page* page = document().page())
194 page->chromeClient().unregisterPopupOpeningObserver(this); 194 page->chromeClient().unregisterPopupOpeningObserver(this);
195 } 195 }
196 if (m_spinButtonOwner) 196 if (m_spinButtonOwner)
197 m_spinButtonOwner->spinButtonDidReleaseMouseCapture(eventDispatch); 197 m_spinButtonOwner->spinButtonDidReleaseMouseCapture(eventDispatch);
198 198
199 } 199 }
200 200
201 bool SpinButtonElement::matchesReadOnlyPseudoClass() const 201 bool SpinButtonElement::matchesReadOnlyPseudoClass() const
202 { 202 {
203 return shadowHost()->matchesReadOnlyPseudoClass(); 203 return ownerShadowHost()->matchesReadOnlyPseudoClass();
204 } 204 }
205 205
206 bool SpinButtonElement::matchesReadWritePseudoClass() const 206 bool SpinButtonElement::matchesReadWritePseudoClass() const
207 { 207 {
208 return shadowHost()->matchesReadWritePseudoClass(); 208 return ownerShadowHost()->matchesReadWritePseudoClass();
209 } 209 }
210 210
211 void SpinButtonElement::startRepeatingTimer() 211 void SpinButtonElement::startRepeatingTimer()
212 { 212 {
213 m_pressStartingState = m_upDownState; 213 m_pressStartingState = m_upDownState;
214 ScrollbarTheme& theme = ScrollbarTheme::theme(); 214 ScrollbarTheme& theme = ScrollbarTheme::theme();
215 m_repeatingTimer.start(theme.initialAutoscrollTimerDelay(), theme.autoscroll TimerDelay(), BLINK_FROM_HERE); 215 m_repeatingTimer.start(theme.initialAutoscrollTimerDelay(), theme.autoscroll TimerDelay(), BLINK_FROM_HERE);
216 } 216 }
217 217
218 void SpinButtonElement::stopRepeatingTimer() 218 void SpinButtonElement::stopRepeatingTimer()
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 return !m_spinButtonOwner || m_spinButtonOwner->shouldSpinButtonRespondToMou seEvents(); 252 return !m_spinButtonOwner || m_spinButtonOwner->shouldSpinButtonRespondToMou seEvents();
253 } 253 }
254 254
255 DEFINE_TRACE(SpinButtonElement) 255 DEFINE_TRACE(SpinButtonElement)
256 { 256 {
257 visitor->trace(m_spinButtonOwner); 257 visitor->trace(m_spinButtonOwner);
258 HTMLDivElement::trace(visitor); 258 HTMLDivElement::trace(visitor);
259 } 259 }
260 260
261 } // namespace blink 261 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698