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

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

Issue 23956012: Stop passing NodeRenderingContext except in textRendererIsNeeded (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
« no previous file with comments | « Source/core/html/HTMLIFrameElement.cpp ('k') | Source/core/html/HTMLInputElement.cpp » ('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) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved.
6 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 6 * Copyright (C) 2012 Samsung Electronics. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 173
174 int selectionStartForBinding(ExceptionState&) const; 174 int selectionStartForBinding(ExceptionState&) const;
175 int selectionEndForBinding(ExceptionState&) const; 175 int selectionEndForBinding(ExceptionState&) const;
176 String selectionDirectionForBinding(ExceptionState&) const; 176 String selectionDirectionForBinding(ExceptionState&) const;
177 void setSelectionStartForBinding(int, ExceptionState&); 177 void setSelectionStartForBinding(int, ExceptionState&);
178 void setSelectionEndForBinding(int, ExceptionState&); 178 void setSelectionEndForBinding(int, ExceptionState&);
179 void setSelectionDirectionForBinding(const String&, ExceptionState&); 179 void setSelectionDirectionForBinding(const String&, ExceptionState&);
180 void setSelectionRangeForBinding(int start, int end, ExceptionState&); 180 void setSelectionRangeForBinding(int start, int end, ExceptionState&);
181 void setSelectionRangeForBinding(int start, int end, const String& direction , ExceptionState&); 181 void setSelectionRangeForBinding(int start, int end, const String& direction , ExceptionState&);
182 182
183 virtual bool rendererIsNeeded(const NodeRenderingContext&); 183 virtual bool rendererIsNeeded(const RenderStyle&);
184 virtual RenderObject* createRenderer(RenderStyle*); 184 virtual RenderObject* createRenderer(RenderStyle*);
185 virtual void detach(const AttachContext& = AttachContext()) OVERRIDE; 185 virtual void detach(const AttachContext& = AttachContext()) OVERRIDE;
186 186
187 // FIXME: For isActivatedSubmit and setActivatedSubmit, we should use the NV I-idiom here by making 187 // FIXME: For isActivatedSubmit and setActivatedSubmit, we should use the NV I-idiom here by making
188 // it private virtual in all classes and expose a public method in HTMLFormC ontrolElement to call 188 // it private virtual in all classes and expose a public method in HTMLFormC ontrolElement to call
189 // the private virtual method. 189 // the private virtual method.
190 virtual bool isActivatedSubmit() const; 190 virtual bool isActivatedSubmit() const;
191 virtual void setActivatedSubmit(bool flag); 191 virtual void setActivatedSubmit(bool flag);
192 192
193 String altText() const; 193 String altText() const;
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(HTMLNames::inputT ag)); 422 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(HTMLNames::inputT ag));
423 return static_cast<const HTMLInputElement*>(node); 423 return static_cast<const HTMLInputElement*>(node);
424 } 424 }
425 425
426 // This will catch anyone doing an unnecessary cast. 426 // This will catch anyone doing an unnecessary cast.
427 void toHTMLElement(const HTMLElement*); 427 void toHTMLElement(const HTMLElement*);
428 428
429 429
430 } //namespace 430 } //namespace
431 #endif 431 #endif
OLDNEW
« no previous file with comments | « Source/core/html/HTMLIFrameElement.cpp ('k') | Source/core/html/HTMLInputElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698