RESOLVED FIXED 102357
Remove Node::aboutToUnload and be more explicit about what it was for
https://bugs.webkit.org/show_bug.cgi?id=102357
Summary Remove Node::aboutToUnload and be more explicit about what it was for
Elliott Sprehn
Reported 2012-11-15 02:13:38 PST
Remove Node::aboutToUnload and be more explicit about what it was for
Attachments
Patch (5.66 KB, patch)
2012-11-15 02:17 PST, Elliott Sprehn
no flags
Patch (5.60 KB, patch)
2012-11-15 02:33 PST, Elliott Sprehn
no flags
Patch (5.82 KB, patch)
2012-11-15 03:10 PST, Elliott Sprehn
no flags
Patch for landing (5.87 KB, patch)
2012-11-15 09:42 PST, Elliott Sprehn
no flags
Elliott Sprehn
Comment 1 2012-11-15 02:17:10 PST
Early Warning System Bot
Comment 2 2012-11-15 02:25:37 PST
Early Warning System Bot
Comment 3 2012-11-15 02:27:05 PST
Elliott Sprehn
Comment 4 2012-11-15 02:33:38 PST
Created attachment 174382 [details] Patch Fix silly copy and paste fail
Early Warning System Bot
Comment 5 2012-11-15 02:41:50 PST
Early Warning System Bot
Comment 6 2012-11-15 02:43:18 PST
EFL EWS Bot
Comment 7 2012-11-15 02:58:33 PST
WebKit Review Bot
Comment 8 2012-11-15 03:06:08 PST
Comment on attachment 174382 [details] Patch Attachment 174382 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/14833672
Elliott Sprehn
Comment 9 2012-11-15 03:10:42 PST
Ryosuke Niwa
Comment 10 2012-11-15 03:29:37 PST
Comment on attachment 174390 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=174390&action=review > Source/WebCore/ChangeLog:14 > + No new tests, this is just a refactor. refactoring? > Source/WebCore/loader/FrameLoader.cpp:395 > + if (currentFocusedNode && currentFocusedNode->toInputElement()) It's probably better if we had a local variable to avoid calling toInputElement twice.
Elliott Sprehn
Comment 11 2012-11-15 09:41:21 PST
(In reply to comment #10) > (From update of attachment 174390 [details]) > ... > > Source/WebCore/loader/FrameLoader.cpp:395 > > + if (currentFocusedNode && currentFocusedNode->toInputElement()) > > It's probably better if we had a local variable to avoid calling toInputElement twice. There's nothing performance sensitive here that should require caching the value and that just adds more lines of code.
Elliott Sprehn
Comment 12 2012-11-15 09:42:51 PST
Created attachment 174469 [details] Patch for landing
Ryosuke Niwa
Comment 13 2012-11-15 11:31:02 PST
(In reply to comment #11) > (In reply to comment #10) > > (From update of attachment 174390 [details] [details]) > > ... > > > Source/WebCore/loader/FrameLoader.cpp:395 > > > + if (currentFocusedNode && currentFocusedNode->toInputElement()) > > > > It's probably better if we had a local variable to avoid calling toInputElement twice. > > There's nothing performance sensitive here that should require caching the value and that just adds more lines of code. Death by thousand cuts...
WebKit Review Bot
Comment 14 2012-11-15 11:40:24 PST
Comment on attachment 174469 [details] Patch for landing Clearing flags on attachment: 174469 Committed r134806: <http://trac.webkit.org/changeset/134806>
WebKit Review Bot
Comment 15 2012-11-15 11:40:29 PST
All reviewed patches have been landed. Closing bug.
Ojan Vafai
Comment 16 2012-11-15 11:40:40 PST
(In reply to comment #13) > Death by thousand cuts... Isn't that an argument for any premature optimization? There's one small cut here that occurs during an already very expensive operation. Death by a thousand cuts applies to small costs that are distributed throughout the codebase and so they wouldn't show up on a profile even though they do affect overall performance. That doesn't seem to be the case here.
Note You need to log in before you can comment on or make changes to this bug.