WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
64475
Move forwardEvent from RenderTextControl to HTMLTextFormControlElement
https://bugs.webkit.org/show_bug.cgi?id=64475
Summary
Move forwardEvent from RenderTextControl to HTMLTextFormControlElement
Ryosuke Niwa
Reported
2011-07-13 11:38:17 PDT
Render objects shouldn't be forwarding events around. Now that RenderTextControl no longer owns the shadow DOM, forwardEvent should be a member function of HTMLTextFormControlElement, not of RenderTextControl.
Attachments
cleanup
(10.71 KB, patch)
2011-07-13 11:46 PDT
,
Ryosuke Niwa
no flags
Details
Formatted Diff
Diff
Moved timer-related functions and variables to SearchInputType
(20.52 KB, patch)
2011-07-14 00:45 PDT
,
Ryosuke Niwa
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Ryosuke Niwa
Comment 1
2011-07-13 11:46:29 PDT
Created
attachment 100697
[details]
cleanup
Kent Tamura
Comment 2
2011-07-13 17:42:53 PDT
Comment on
attachment 100697
[details]
cleanup View in context:
https://bugs.webkit.org/attachment.cgi?id=100697&action=review
> Source/WebCore/html/HTMLTextFormControlElement.h:42 > public: > enum NeedsToCheckDirtyFlag {CheckDirtyFlag, IgnoreDirtyFlag}; > > virtual ~HTMLTextFormControlElement(); > + > + void forwardEvent(Event*);
protected: is enough.
Dimitri Glazkov (Google)
Comment 3
2011-07-13 19:06:42 PDT
Awesome patch! It would be great to get rid of event forwarding altogether. And this is a great first step.
Ryosuke Niwa
Comment 4
2011-07-13 22:49:51 PDT
(In reply to
comment #2
)
> (From update of
attachment 100697
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=100697&action=review
> > > Source/WebCore/html/HTMLTextFormControlElement.h:42 > > public: > > enum NeedsToCheckDirtyFlag {CheckDirtyFlag, IgnoreDirtyFlag}; > > > > virtual ~HTMLTextFormControlElement(); > > + > > + void forwardEvent(Event*); > > protected: is enough.
This turned out to be not the case because TextFieldInputType::forwardEvent calls it :(
Kent Tamura
Comment 5
2011-07-13 22:54:11 PDT
(In reply to
comment #4
)
> > protected: is enough. > > This turned out to be not the case because TextFieldInputType::forwardEvent calls it :(
Oh, I see.
Ryosuke Niwa
Comment 6
2011-07-14 00:08:48 PDT
Committed
r90983
: <
http://trac.webkit.org/changeset/90983
>
Ryosuke Niwa
Comment 7
2011-07-14 00:45:19 PDT
Created
attachment 100783
[details]
Moved timer-related functions and variables to SearchInputType
Ryosuke Niwa
Comment 8
2011-07-14 00:49:33 PDT
Comment on
attachment 100783
[details]
Moved timer-related functions and variables to SearchInputType wrong bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug