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

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

Issue 23035007: Replace HTMLTextFormControlElement::fixPlaceholderRenderer with an override of RenderTextControl::a… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Just delete the test Created 7 years, 4 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) 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, 2008, 2009, 2010 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
6 * Copyright (C) 2009, 2010, 2011 Google Inc. All rights reserved. 6 * Copyright (C) 2009, 2010, 2011 Google Inc. 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 49
50 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; 50 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE;
51 51
52 // The derived class should return true if placeholder processing is needed. 52 // The derived class should return true if placeholder processing is needed.
53 virtual bool supportsPlaceholder() const = 0; 53 virtual bool supportsPlaceholder() const = 0;
54 String strippedPlaceholder() const; 54 String strippedPlaceholder() const;
55 bool placeholderShouldBeVisible() const; 55 bool placeholderShouldBeVisible() const;
56 virtual HTMLElement* placeholderElement() const = 0; 56 virtual HTMLElement* placeholderElement() const = 0;
57 void updatePlaceholderVisibility(bool); 57 void updatePlaceholderVisibility(bool);
58 static void fixPlaceholderRenderer(HTMLElement* placeholder, HTMLElement* si blingElement);
59 58
60 VisiblePosition visiblePositionForIndex(int) const; 59 VisiblePosition visiblePositionForIndex(int) const;
61 int indexForVisiblePosition(const VisiblePosition&) const; 60 int indexForVisiblePosition(const VisiblePosition&) const;
62 int selectionStart() const; 61 int selectionStart() const;
63 int selectionEnd() const; 62 int selectionEnd() const;
64 const AtomicString& selectionDirection() const; 63 const AtomicString& selectionDirection() const;
65 void setSelectionStart(int); 64 void setSelectionStart(int);
66 void setSelectionEnd(int); 65 void setSelectionEnd(int);
67 void setSelectionDirection(const String&); 66 void setSelectionDirection(const String&);
68 void select(); 67 void select();
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 { 150 {
152 ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLTextFormControlElement(node) ); 151 ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLTextFormControlElement(node) );
153 return static_cast<HTMLTextFormControlElement*>(node); 152 return static_cast<HTMLTextFormControlElement*>(node);
154 } 153 }
155 154
156 HTMLTextFormControlElement* enclosingTextFormControl(const Position&); 155 HTMLTextFormControlElement* enclosingTextFormControl(const Position&);
157 156
158 } // namespace 157 } // namespace
159 158
160 #endif 159 #endif
OLDNEW
« no previous file with comments | « Source/core/html/HTMLTextAreaElement.cpp ('k') | Source/core/html/HTMLTextFormControlElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698