Changeset 71150 in webkit


Ignore:
Timestamp:
Nov 2, 2010 12:37:01 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2010-11-02 Ilya Sherman <isherman@chromium.org>

Reviewed by Simon Fraser.

Marks selectionStart() and selectionEnd() as const.
https://bugs.webkit.org/show_bug.cgi?id=48786

  • html/HTMLFormControlElement.cpp: (WebCore::HTMLTextFormControlElement::selectionStart): (WebCore::HTMLTextFormControlElement::selectionEnd):
  • html/HTMLFormControlElement.h:
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r71149 r71150  
     12010-11-02  Ilya Sherman  <isherman@chromium.org>
     2
     3        Reviewed by Simon Fraser.
     4
     5        Marks selectionStart() and selectionEnd() as const.
     6        https://bugs.webkit.org/show_bug.cgi?id=48786
     7
     8        * html/HTMLFormControlElement.cpp:
     9        (WebCore::HTMLTextFormControlElement::selectionStart):
     10        (WebCore::HTMLTextFormControlElement::selectionEnd):
     11        * html/HTMLFormControlElement.h:
     12
    1132010-11-02  Chris Rogers  <crogers@google.com>
    214
  • trunk/WebCore/html/HTMLFormControlElement.cpp

    r70945 r71150  
    569569}
    570570
    571 int HTMLTextFormControlElement::selectionStart()
     571int HTMLTextFormControlElement::selectionStart() const
    572572{
    573573    if (!isTextFormControl())
     
    580580}
    581581
    582 int HTMLTextFormControlElement::selectionEnd()
     582int HTMLTextFormControlElement::selectionEnd() const
    583583{
    584584    if (!isTextFormControl())
  • trunk/WebCore/html/HTMLFormControlElement.h

    r70511 r71150  
    183183    bool placeholderShouldBeVisible() const;
    184184
    185     int selectionStart();
    186     int selectionEnd();
     185    int selectionStart() const;
     186    int selectionEnd() const;
    187187    void setSelectionStart(int);
    188188    void setSelectionEnd(int);
Note: See TracChangeset for help on using the changeset viewer.