This requires weird contortions in the DOM and Render tree and removes nice guarantees.
For example Node.h has: TreeScope* treeScope() const; Document* document() const; Node* childNode(unsigned index) const; Returning a const Document* or Node* from childNode makes the DOM API's suddenly less useful, and marking them as non-const is confusing. These methods shouldn't be making mutations and the compiler should enforce that (or at least try to), and the const is also good documentation. On Thu, Oct 25, 2012 at 1:02 PM, Peter Kasting <[email protected]> wrote: > On Thu, Oct 25, 2012 at 3:48 AM, Andreas Kling <[email protected]> wrote: >> >> So, I propose that we allow only these two signature formats for raw >> pointers: >> >> - const Foo* foo() const; >> - Foo* foo(); > _______________________________________________ webkit-dev mailing list [email protected] http://lists.webkit.org/mailman/listinfo/webkit-dev

