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

Side by Side Diff: Source/core/html/HTMLInputElement.cpp

Issue 59463007: Have Element::ensureUserAgentShadowRoot() return a reference (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add extra assertion Created 7 years, 1 month 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
« no previous file with comments | « Source/core/html/HTMLInputElement.h ('k') | Source/core/html/HTMLKeygenElement.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
7 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) 7 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org)
8 * Copyright (C) 2010 Google Inc. All rights reserved. 8 * Copyright (C) 2010 Google Inc. All rights reserved.
9 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 9 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
10 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 10 * Copyright (C) 2012 Samsung Electronics. All rights reserved.
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 return inputElement.release(); 134 return inputElement.release();
135 } 135 }
136 136
137 HTMLImageLoader* HTMLInputElement::imageLoader() 137 HTMLImageLoader* HTMLInputElement::imageLoader()
138 { 138 {
139 if (!m_imageLoader) 139 if (!m_imageLoader)
140 m_imageLoader = adoptPtr(new HTMLImageLoader(this)); 140 m_imageLoader = adoptPtr(new HTMLImageLoader(this));
141 return m_imageLoader.get(); 141 return m_imageLoader.get();
142 } 142 }
143 143
144 void HTMLInputElement::didAddUserAgentShadowRoot(ShadowRoot*) 144 void HTMLInputElement::didAddUserAgentShadowRoot(ShadowRoot&)
145 { 145 {
146 m_inputType->createShadowSubtree(); 146 m_inputType->createShadowSubtree();
147 } 147 }
148 148
149 void HTMLInputElement::didAddShadowRoot(ShadowRoot& root) 149 void HTMLInputElement::didAddShadowRoot(ShadowRoot& root)
150 { 150 {
151 if (!root.isOldestAuthorShadowRoot()) 151 if (!root.isOldestAuthorShadowRoot())
152 return; 152 return;
153 m_inputTypeView = InputTypeView::create(*this); 153 m_inputTypeView = InputTypeView::create(*this);
154 } 154 }
(...skipping 1704 matching lines...) Expand 10 before | Expand all | Expand 10 after
1859 } 1859 }
1860 1860
1861 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) 1861 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI)
1862 PassRefPtr<RenderStyle> HTMLInputElement::customStyleForRenderer() 1862 PassRefPtr<RenderStyle> HTMLInputElement::customStyleForRenderer()
1863 { 1863 {
1864 return m_inputTypeView->customStyleForRenderer(originalStyleForRenderer()); 1864 return m_inputTypeView->customStyleForRenderer(originalStyleForRenderer());
1865 } 1865 }
1866 #endif 1866 #endif
1867 1867
1868 } // namespace 1868 } // namespace
OLDNEW
« no previous file with comments | « Source/core/html/HTMLInputElement.h ('k') | Source/core/html/HTMLKeygenElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698