WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
115640
Text should be constructable
https://bugs.webkit.org/show_bug.cgi?id=115640
Summary
Text should be constructable
Erik Arvidsson
Reported
2013-05-06 07:22:21 PDT
http://dom.spec.whatwg.org/#interface-text
Make Text constructable so that one can do "new Text('abc')" instead of "document.createTexte('abc')"
Attachments
Patch
(8.29 KB, patch)
2014-01-09 00:56 PST
,
László Langó
no flags
Details
Formatted Diff
Diff
Patch
(8.47 KB, patch)
2014-01-09 04:40 PST
,
László Langó
no flags
Details
Formatted Diff
Diff
Patch
(8.47 KB, patch)
2014-01-10 00:34 PST
,
László Langó
no flags
Details
Formatted Diff
Diff
patch for landing
(8.54 KB, patch)
2014-01-13 04:21 PST
,
László Langó
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
László Langó
Comment 1
2014-01-09 00:56:08 PST
Created
attachment 220701
[details]
Patch
László Langó
Comment 2
2014-01-09 04:40:14 PST
Created
attachment 220715
[details]
Patch
EFL EWS Bot
Comment 3
2014-01-09 04:59:28 PST
Comment on
attachment 220715
[details]
Patch
Attachment 220715
[details]
did not pass efl-wk2-ews (efl-wk2): Output:
http://webkit-queues.appspot.com/results/5110474479763456
László Langó
Comment 4
2014-01-10 00:34:56 PST
Created
attachment 220817
[details]
Patch
WebKit Commit Bot
Comment 5
2014-01-13 02:02:33 PST
Comment on
attachment 220817
[details]
Patch Rejecting
attachment 220817
[details]
from commit-queue. Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.appspot.com', '--bot-id=webkit-cq-03', 'land-attachment', '--force-clean', '--non-interactive', '--parent-command=commit-queue', 220817, '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit Last 500 characters of output: -> origin/master Partial-rebuilding .git/svn/refs/remotes/origin/master/.rev_map.268f45cc-cd09-0410-ab3c-d52691b4dbfc ... Currently at 161866 = 41d60a4a901854d1207540d97b72c55011be5f69
r161867
= 8c325df8e8ed83167416651d0b713fca53dfb8fe
r161868
= 89061aa53453fa276ca9953d05b40a3277a033e8 Done rebuilding .git/svn/refs/remotes/origin/master/.rev_map.268f45cc-cd09-0410-ab3c-d52691b4dbfc First, rewinding head to replay your work on top of it... Fast-forwarded master to refs/remotes/origin/master. Full output:
http://webkit-queues.appspot.com/results/6009007810543616
László Langó
Comment 6
2014-01-13 04:21:21 PST
Created
attachment 221026
[details]
patch for landing
WebKit Commit Bot
Comment 7
2014-01-13 04:48:22 PST
Comment on
attachment 221026
[details]
patch for landing Clearing flags on attachment: 221026 Committed
r161876
: <
http://trac.webkit.org/changeset/161876
>
WebKit Commit Bot
Comment 8
2014-01-13 04:48:24 PST
All reviewed patches have been landed. Closing bug.
Sam Weinig
Comment 9
2014-01-13 10:33:35 PST
Comment on
attachment 221026
[details]
patch for landing View in context:
https://bugs.webkit.org/attachment.cgi?id=221026&action=review
> Source/WebCore/dom/Text.h:39 > + static PassRefPtr<Text> create(ScriptExecutionContext&, const String&);
Why ScriptExecutionContext? This always need to be a Document.
László Langó
Comment 10
2014-01-14 00:20:32 PST
(In reply to
comment #9
)
> (From update of
attachment 221026
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=221026&action=review
> > > Source/WebCore/dom/Text.h:39 > > + static PassRefPtr<Text> create(ScriptExecutionContext&, const String&); > > Why ScriptExecutionContext? This always need to be a Document.
Basically because this is how in the Blink did it. :)
https://chromium.googlesource.com/chromium/blink/+/cdd5a914daf3862379a5ce4596149bd690d0fa08
I'm not sure I fully understand, but we have only this in bindings/scripts/IDLAttributes (ConstructorCallWith=ScriptExecutionContext). A don't think that this is a problem, because we can safely convert it into a document with the toDocument function. Do you know another equivalent way how can we do this?
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