WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
24315
WMLInputElement.cpp produces build-time error
https://bugs.webkit.org/show_bug.cgi?id=24315
Summary
WMLInputElement.cpp produces build-time error
journeyerhum
Reported
2009-03-02 21:32:33 PST
Writing of function below has error. void WMLInputElement::defaultEventHandler(Event* evt) { .............. RenderObject* r = renderer(); if (r /*&& r->isEdited()*//*JJH*/) { dispatchEventForType(eventNames().changeEvent, true, false); // Refetch the renderer since arbitrary JS code run during onchange can do anything, including destroying it. r = renderer(); // if (r) /*JJH*/ // r->setEdited(false); /*JJH*/ } .............. } note blockings of code above commented with JJH. Class RenderObject doesn't include function, isEdited(), setEdited() To test WML page I only had to block out errornous code above. I am testing with nightly build WebKit-
r41348
.
Attachments
Fix build errors with WMLInputElement.cpp
(835 bytes, patch)
2009-03-31 05:18 PDT
,
Sam Black
darin
: review-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Mark Rowe (bdash)
Comment 1
2009-03-02 22:40:41 PST
***
Bug 24316
has been marked as a duplicate of this bug. ***
Mark Rowe (bdash)
Comment 2
2009-03-02 22:42:20 PST
This is probably a result of <
http://trac.webkit.org/changeset/40983
>. That changeset should also make the fix for this WML failure relatively obvious if you'd care to contribute a patch.
Sam Black
Comment 3
2009-03-31 05:18:39 PDT
Created
attachment 29112
[details]
Fix build errors with WMLInputElement.cpp Fixes build errors with WMLInputElement.cpp, using commit #40983 as a basis. Tested using WebKit
r42075
on GNU/Linux (GCC 4.2.4, glibc 2.7, GTK+2 2.14.6)
Darin Adler
Comment 4
2009-03-31 10:12:05 PDT
Comment on
attachment 29112
[details]
Fix build errors with WMLInputElement.cpp Casts should use the new checked cast toRenderTextControl, not a direct static_cast. It's not clear why you're calling isTextField in one case and not the other. It's not needed in either case since this class always creates a renderer derived from RenderTextControl.
Sam Black
Comment 5
2009-04-01 05:07:25 PDT
I based the patch on the edits to trunk/WebCore/html/HTMLInputElement.cpp made in changeset #40983 as directed in
comment #2
.
George Staikos
Comment 6
2009-07-27 12:52:54 PDT
Not a valid bug anymore.
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