[webkit-dev] Webkit Design and MVC design pattern
Darin Adler
darin at apple.com
Mon Mar 16 13:32:04 PDT 2009
On Mar 16, 2009, at 1:21 PM, Meryl Silverburgh wrote:
> Does Webkit follow MVC design pattern?
Roughly. But it’s not really practical to follow the MVC pattern for a
web engine.
For example the DOM standards and de facto standards from other
browsers put quite a bit of view/controller machinery into the DOM,
even though it should theoretically be model-only.
> If DOM is the Model, and Render Tree is the View, what is the
> 'controller' in MVC?
Again roughly speaking, it’s objects like Frame, whereas FrameView and
the render tree are part of the view and Document and the DOM tree
part of the model.
-- Darin
More information about the webkit-dev
mailing list