RESOLVED FIXED 43180
Change permission to access methods in XMLDocumentParser.h
https://bugs.webkit.org/show_bug.cgi?id=43180
Summary Change permission to access methods in XMLDocumentParser.h
Gyuyoung Kim
Reported 2010-07-29 01:51:27 PDT
When WML is enabled, there are build breaks by 3 methods of XMLDocumentParser.h. The methods are wellFormed(), lineNumber() and columnNumber(). These methods is private accessibility. However, WMLErrorHandling.cpp file is using the methods. I am not sure if this accessibility change is correct or not. If we can't change the accessibility, We need to modify the WMLErrorHandling.cpp file.
Attachments
Patch (1.86 KB, patch)
2010-07-29 01:54 PDT, Gyuyoung Kim
darin: review-
darin: commit-queue-
Patch (1.85 KB, patch)
2010-08-04 17:53 PDT, Gyuyoung Kim
no flags
Patch for commit (1.85 KB, patch)
2010-08-05 18:36 PDT, Gyuyoung Kim
no flags
Gyuyoung Kim
Comment 1 2010-07-29 01:54:58 PDT
Darin Adler
Comment 2 2010-07-29 11:02:37 PDT
Comment on attachment 62928 [details] Patch This is not the right fix. If we have to make these public we will, but we should not use conditionals. Where is the code in WML that uses these? Why is it using an XMLDocumentParser* instead of a DocumentParser*?
Gyuyoung Kim
Comment 3 2010-07-30 03:22:58 PDT
(In reply to comment #2) > (From update of attachment 62928 [details]) > This is not the right fix. If we have to make these public we will, but we should not use conditionals. > > Where is the code in WML that uses these? Why is it using an XMLDocumentParser* instead of a DocumentParser*? The reportWMLError() of WMLErrorHandling.cpp is using these functions. It seems that the accessibility was changed by Bug 41114 - Start to clean up DocumentParser interface. But, there are no the reasons in the bug. Frankly, I don't know why this WMLErrorHandling.cpp uses XMLDocumentParser.cpp yet. I am trying to trace the reason via log. I suspects that WML guys uses XMLDocumentParser to handle error via these functions. In my opinion, there are two solutions. One is we change these functions's accessibility with public. As you said, other is that we don't use XMLDocumentParser in WMLErrorHandling.cpp.
Darin Adler
Comment 4 2010-07-30 12:24:14 PDT
(In reply to comment #3) > In my opinion, there are two solutions. One is we change these functions's accessibility with public. As you said, other is that we don't use XMLDocumentParser in WMLErrorHandling.cpp. I think making them public is fine.
Gyuyoung Kim
Comment 5 2010-08-04 17:53:49 PDT
Created attachment 63523 [details] Patch Sorry for my late response. I was summer vacation. Ok, I change the accessibility with public. Please review this patch. :)
Darin Adler
Comment 6 2010-08-05 07:27:10 PDT
Comment on attachment 63523 [details] Patch > + // WMLErrorHandling uses these methods. In future, please use the C++ term, functions, rather than calling these methods.
Gyuyoung Kim
Comment 7 2010-08-05 18:21:59 PDT
(In reply to comment #6) > (From update of attachment 63523 [details]) > > + // WMLErrorHandling uses these methods. > > In future, please use the C++ term, functions, rather than calling these methods. Ok, I keep in mind. Thank you.
Gyuyoung Kim
Comment 8 2010-08-05 18:26:16 PDT
Hello darin, It seems that reviewed patch doesn't pass style error for gtk. However, I don't know why this patch cannot pass the gtk style error. If there are no style errors, could you commit this patch manually ? But, if I need to modify this patch, please let me know. Thank you.
Gyuyoung Kim
Comment 9 2010-08-05 18:36:01 PDT
Created attachment 63676 [details] Patch for commit Hello Darin, I change "methods' with "functions" for commit. :)
Darin Adler
Comment 10 2010-08-05 19:35:35 PDT
(In reply to comment #8) > It seems that reviewed patch doesn't pass style error for gtk. That’s incorrect. I just reviewed the patch before the GTK EWS bot got a chance to compile it, and once reviewed the bots stop processing a path. There is nothing wrong with the patch.
Darin Adler
Comment 11 2010-08-05 19:36:07 PDT
Comment on attachment 63523 [details] Patch Clear the flags on the older patch.
WebKit Commit Bot
Comment 12 2010-08-06 09:43:57 PDT
Comment on attachment 63676 [details] Patch for commit Clearing flags on attachment: 63676 Committed r64855: <http://trac.webkit.org/changeset/64855>
WebKit Commit Bot
Comment 13 2010-08-06 09:44:02 PDT
All reviewed patches have been landed. Closing bug.
Lucas Forschler
Comment 14 2019-02-06 09:02:51 PST
Mass moving XML DOM bugs to the "DOM" Component.
Note You need to log in before you can comment on or make changes to this bug.