diff options
author | matthewt <matthewt@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2007-11-15 20:26:00 +0000 |
---|---|---|
committer | matthewt <matthewt@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2007-11-15 20:26:00 +0000 |
commit | d193faa5cf46694286c7db654510240db46c9bf5 (patch) | |
tree | aac483a58fcd4e95750978c7c48ca4db02d016a7 /lib/Reaction/UI/View.pm | |
parent | d8c7a86e24da1f2d809373e8cc15984a6fc407c4 (diff) | |
download | reaction-d193faa5cf46694286c7db654510240db46c9bf5.tar.gz reaction-d193faa5cf46694286c7db654510240db46c9bf5.zip |
one rendering context per request
Diffstat (limited to 'lib/Reaction/UI/View.pm')
-rw-r--r-- | lib/Reaction/UI/View.pm | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/Reaction/UI/View.pm b/lib/Reaction/UI/View.pm index 468790b..92aa7c5 100644 --- a/lib/Reaction/UI/View.pm +++ b/lib/Reaction/UI/View.pm @@ -46,16 +46,13 @@ class View which { implements 'render_window' => as { my ($self, $window) = @_; my $root_vp = $window->focus_stack->vp_head; - $self->render_viewport(undef, $root_vp); + my $rctx = $self->create_rendering_context; + $self->render_viewport($rctx, $root_vp); }; implements 'render_viewport' => as { - my ($self, $outer_rctx, $vp) = @_; + my ($self, $rctx, $vp) = @_; my $layout_set = $self->layout_set_for($vp); - my $rctx = $self->create_rendering_context( - layouts => $layout_set, - outer => $outer_rctx, - ); my $widget = $self->widget_for($vp, $layout_set); $widget->render($rctx); }; |