1 2009-12-03 Jackson Harper <jackson@ximian.com>
3 * xaml.cpp: A single namespace uri can have many prefixes. ie
4 xmlns:foo="My.Namespace" xmlns:bar="My.Namespace"
6 2009-12-03 Larry Ewing <lewing@novell.com>
8 * Makefile.am (libmoon_include_headers): add textoptions.h to the
11 2009-12-03 Alan McGovern <amcgovern@novell.com>
13 * contentcontrol.cpp: Comment out an extra check when changing
14 the content on a ContentControl which breaks some
15 silverlight toolkit tests.
17 2009-12-02 Jeffrey Stedfast <fejj@novell.com>
19 * collection.h (enum CollectionIteratorError): New enum to define
20 the possible error conditions for the CollectionIterator methods.
22 * collection.cpp (CollectionIterator::Next): Now returns bool and
23 takes an 'err' argument for error reporting rather than having the
24 return value handle everything.
25 (CollectionIterator::GetCurrent): Modified to also check index <=
26 Count and made the int error argument into a
27 CollectionIteratorError argument.
29 * resources.cpp (class ResourceDictionaryIterator): Implemented.
30 (ResourceDictionary::GetIterator): Return a new
31 ResourceDictionaryIterator.
32 (GetFromMergedDictionaries): Updated for CollectionIterator API
35 * provider.cpp (StylePropertyValueProvider::RecomputePropertyValue):
36 Updated for CollectionIterator API changes.
37 (StylePropertyValueProvider::SealStyle): Same.
39 * style.cpp (SetterBaseCollection::Seal): Updated for
40 CollectionIterator API changes.
42 2009-12-02 Jackson Harper <jackson@ximian.com>
44 * xaml.cpp: hack to allow Icon's to have a default Source
47 2009-12-02 Alan McGovern <amcgovern@novell.com>
49 * frameworkelement.cpp: Testing shows that MS emits all the
50 SizeChanged events before doing another measure pass. This
51 fixes an older version of the DataVisualisation demos in the
52 Controls Toolkit demo.
54 2009-12-01 Jeffrey Stedfast <fejj@novell.com>
56 * layout.cpp (GenerateGlyphCluster): Only apply horiBearingX if it
57 is not the first glyph in the cluster. Fixes drt 279.
59 2009-12-01 Jeffrey Stedfast <fejj@novell.com>
61 * textblock.cpp (TextBlock::Paint): Moved the "show text boxes"
62 debug rendering out of here and into layout.cpp.
63 (TextBlock::ComputeBounds): Use layout->GetRenderExtents() to get
64 the (pre-transformed) bounds rather than the complex kung-fu that
65 was there before. Fixes Vector Space Zero's side-scrolling "WAVE"
68 * layout.cpp (TextLayout::GetRenderExtents): New helper method to
69 get the render rectangle for the layout.
70 (TextLayout::Render): If the "show text boxes" debug flag is set,
71 render a green rectangle for the text region.
73 2009-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
75 * audio.cpp: Make mutex recursive.
77 2009-12-01 Alan McGovern <amcgovern@novell.com>
80 * runtime.cpp: 1) Rename GenerateFocusChangedEvents to
81 EmitFocusChangeEvents.
82 2) Replace AutoFocusAsync with EmitFocusChangedEventsAsync as
83 that's what it's used for now.
84 3) Generate and queue all the required GotFocus/LostFocus
85 events as soon as a new element is focused, don't wait til
88 2009-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
90 * dependencyobject.cpp: ~EventObject: no need to access
91 Deployment::GetCurrent, we already know the deployment.
93 2009-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
95 * pipeline.h: Fix typo in comment.
97 2009-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
99 * pipeline.h: Remove outdated comment.
101 2009-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
103 * debug.cpp: Handle aborts too to get stack traces when pulseaudio
106 2009-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
108 * mediaelement.cpp: fix printf format specifier for 64 bits.
110 2009-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
112 * pipeline-asf.cpp: Fix error message to include error code.
114 2009-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
116 * audio.cpp|h: Use our Mutex class.
118 2009-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
120 * pipeline.cpp: Make the protected FileSource ctor take an Type::Kind
121 parameter and update accordingly.
123 2009-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
125 * deployment.cpp: Make the number of objects dumped configurable by
126 environment variable.
128 2009-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
130 * debug.cpp|h: Make the number of stack frames printed configurable
131 with an env var. Remove the ifdefs for managed stack frames - always
134 2009-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
136 * mediaelement.cpp: OpenCompletedHandler: emit MediaOpened event if
137 we're detached. Fixes MS DRT #521.
139 2009-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
141 * deployment.h: Mark (only) the thread-safe GetSurface version for
144 * cbinding.cpp|h: Regenerated.
146 2009-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
148 * dependencyobject.cpp: DO::Dispose: if we have a parent at this point,
149 remove any destroyed event handlers we may have and call SetParent on it.
152 * collection.cpp: (DependencyObjectCollection and ResourceDictionary)
153 ::AddedToCollection: if we didn't end up adding the item to the
154 collection, ensure that we don't leave the item with a parent.
155 Fixes a crash in MS DRT #485.
157 2009-11-30 Jackson Harper <jackson@ximian.com>
159 * resources.h: Fix managed return type of the merged dictionaries
162 2009-11-30 Jeffrey Stedfast <fejj@novell.com>
164 * mediaelement.cpp (MediaEndedHandler): Fixed printf formatter.
166 2009-11-30 Andrés G. Aragoneses <aaragoneses@novell.com>
168 * security.c: MOON_A11Y_INTERNAL_HACK is not needed anymore
169 since the audit finished in r147098. r: spouliot
171 2009-11-30 Alan McGovern <amcgovern@novell.com>
173 * contentcontrol.cpp: Invalidate the measure whenever the
174 Content changes otherwise we may never apply the template
175 and display the content.
177 2009-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
179 * pipeline.cpp: IMediaStream::EnqueueFrame: use the same algorithm
180 as IMediaDemuxer::FillBuffers to determine if we have a frame or not,
181 this way there won't be any disagreement between those two. Fixes an
182 issue with DRT #521 where the video wouldn't resume playing after
183 the MediaElement was reattached to the tree.
185 * mediaelement.cpp|h: Save the current state when the MediaElement
186 is detached from the tree and if we're reattached, go back to the
187 original state (i.e. start playing again if we were playing). Fixes
190 2009-11-30 Alan McGovern <amcgovern@novell.com>
192 * uielement.cpp: When propagating hint flags up the visual
193 tree, we can only safely stop walking up the tree if the
194 visual parent already has the hint flag set.
196 * frameworkelement.cpp: If an element invalidates its Measure
197 or Arrange inside a LayoutUpdated handler, we should do
198 another measure/arrange pass immediately. Also add in a
199 debug sanity check to ensure that there are no dirty
200 elements left over when we've finished updating.
202 2009-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
204 * dependencyobject.cpp|h: Remove EO::GetStackTrace, never used.
206 * debug.cpp|h: Move MAX_STACK_FRAMES into debug.cpp so that a change
207 doesn't require a rebuild of *everything*.
209 2009-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
211 * dependencyobject.cpp: In the parent destroyed handler, call
212 SetParent (NULL) instead of clearing the field directly so that
213 we don't miss any other related cleanup that must be done.
215 2009-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
217 * dependencyobject.cpp|h: Add a SetParentSafe method that managed code
218 can use. This method differs from the normal SetParent method in that
219 it listens for the parent's Destroyed event and calls SetParent (NULL)
220 This is a lot easier than keeping track in managed code of objects we
221 must call SetParent (NULL) on.
224 * frameworkelement.cpp|h: Make sure we clear out the parent on objects
225 we call SetParent on whenever the object changes or when we're disposed.
227 * cbinding.cpp|h: Regenerated.
229 2009-11-30 Alan McGovern <amcgovern@novell.com>
231 * uielement.cpp: Revert 147089 as I didn't mean to commit it
234 2009-11-27 Alan McGovern <amcgovern@novell.com>
236 * uielement.cpp: Remove the fast path to avoid walking up the
237 tree if the hint flag is already set as it breaks drt 549.
239 2009-11-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
241 * uielement.cpp: SetIsAttached: check the surface for null before using
242 it, we may end up here during shutdown, in which case there is no
245 2009-11-27 Alan McGovern <amcgovern@novell.com>
247 * frameworkelement.cpp: Fix an issue where if we found no
248 dirty elements while searching the DIRTY_MEASURE_HINT path,
249 we could exit early (without doing an Arrange or Size path).
251 2009-11-27 Alan McGovern <amcgovern@novell.com>
253 * uielement.cpp: If an item which has a value set for
254 LastRenderSize is added to the tree, ensure that the dirty
255 size hint is propagated up the tree.
257 2009-11-27 Alan McGovern <amcgovern@novell.com>
259 * frameworkelement.cpp: Add a default handler to the switch to
260 silence compiler warnings.
262 2009-11-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
285 * mediaelement.cpp|h:
286 * mms-downloader.cpp:
287 * frameworkelement.cpp:
288 * dependencyobject.cpp|h: Remove the surface field and the SetSurface
289 method from EventObject. Add (Set)IsAttached, which replaces the earlier
290 "is attached" logic of having a surface set. Update all usages. When
291 we really wanted to get the surface, we now need to get it from the
294 * cbinding.cpp|h: Regenerated.
296 2009-11-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
298 * dependencyobject.h: Remove unneeded cbinding/pinvoke.
300 * deployment.cpp|h: Make Surface a normal property so that we can make
303 * runtime.cpp|h: Added GetTimeManagerReffed (thread-safe), and make
304 necessary changes to make it thread safe too.
306 * dependencyproperty.g.cpp: Regenerated.
308 2009-11-27 Alan McGovern <amcgovern@novell.com>
315 * frameworkelement.cpp: Whenever an element is invalidated,
316 propagate a hint flag up the visual tree. Use this hint flag
317 to avoid walking branches which are not dirty, thus reducing
318 the time required to walk large trees by more than a factor
321 2009-11-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
323 * pipeline.cpp|h: Media::ReportSeekCompleted: don't reset 'stopped',
324 it makes us buffer after a Stop (since we seek to 0 when stopping).
326 2009-11-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
328 * mediaelement.cpp: BufferingProgressChangedHandler: don't go to
329 buffering unless we're paused or playing.
331 2009-11-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
333 * mediaplayer.cpp: Initialize duration to zero.
335 2009-11-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
337 * pipeline.cpp: Remove a g_warning.
339 2009-11-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
341 * mediaelement.cpp: Fix bad printf.
343 2009-11-25 Jeffrey Stedfast <fejj@novell.com>
345 * fontmanager.cpp (FontFace::GetExtents): Now takes a gapless
346 argument, which, if set, subtracts the sTypoLineGap from the
347 overall LineSpacing and Descender metrics.
349 * fonts.cpp (TextFont::.ctor): Now takes a gapless bool argument
350 to specify whether or not the Height() method should ignore the
352 (TextFont::UpdateFaceExtents): Updated to pass along the gapless
354 (TextFont::LoadPortableUserInterface): Modified to tell our caller
355 whether or not the sTypoLineGap should be ignored.
356 (TextFont::Load): Pass a gapless arg to TextFont's ctor.
358 2009-11-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
360 * pipeline.cpp|h: Media::ReportSeekCompleted: add a 'pending_seeks'
361 parameter that will tell the Media if it can clear the 'stopped' state
362 (so that buffering can begin again).
364 * mediaelement.cpp: SeekCompletedHandler: don't call Play on anything
365 here, the reason we did it was to signal the pipeline that it could
366 start buffering again - however this is broken since we must always
367 start buffering after a seek (even if the previous state was Stopped).
368 Go into the buffering state when we get a buffering changed event and
369 we're not already in the buffering state. Also store the PlayRequested
370 bit in Seek if we're in a playing state.
372 2009-11-25 Larry Ewing <lewing@novell.com>
374 * textblock.cpp (ComputeBounds): compute our actual bounding rect
375 if the text alignment isn't left;
377 Fixes 279 and http://www.silverlightstopwatch.com
379 2009-11-25 Jackson Harper <jackson@ximian.com>
381 * runtime.cpp|h: Implement a flag and access method for running out
382 of browser. DESKTOP_INIT will use this flag and in the future a
383 chrome'd OOB could use this flag also.
385 2009-11-25 Alan McGovern <amcgovern@novell.com>
387 * popup.h: Add a missing @CallInitialize which resulted in 555
390 * textbox.h: Keep the usage of the Initialize method
391 consistent - add @CallInitialise to the native type if
392 Initialize is required instead of making it virtual and
395 2009-11-25 Alan McGovern <amcgovern@novell.com>
397 * runtime.cpp: Use TabNavigationWalker to perform the actual
398 focusing otherwise we will only focus properly if the root
399 element is a focusable control. If nothing in the tree is
400 focusable, the root element itself is forcibly focused.
403 2009-11-25 Alan McGovern <amcgovern@novell.com>
405 * grid.cpp: UIElements are only considered to span an auto row
406 if they do not also span a star row. Similarly for columns.
407 Add the missing check to the if statement. Fixes several
408 moon-units and also scrollbars on the silverlight toolkit.
410 2009-11-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
412 * mediaelement.cpp: SeekingHandler: only set BufferingProgress and emit
413 the event if the property actually changes.
415 2009-11-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
417 * mediaelement.cpp: Don't go to the Buffering state when Seek is called,
418 do it instead in the Seeking handler. Fixes regression of MS DRT #486.
420 2009-11-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
422 * pipeline.cpp|h: Ensure that after a seek we don't add frames to the
423 streams that we don't need (such as frames before the last keyframe
424 before the point we seeked to). Also emit Media::SeekingEvent when we
427 * mediaplayer.cpp: Remove the DEBUG_ADVANCEFRAME define: use the LOG_EX
428 logging method instead.
430 * mediaelement.cpp: When we seek, go to the Buffering state, and when
431 the pipeline starts seeking, set buffering progress to 0. This ensures
432 we emit buffering process changed events when the seek has completed.
434 * pipeline-asf.cpp: MmsPlaylistEntry: When we seek we need to clear
435 whatever we have in our queue of packets.
437 * playlist.cpp: Implement PlaylistEntry::SeekingHandler.
439 2009-11-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
444 * mediaelement.cpp: Make Media::GetDemuxer and IMediaStream::GetDemuxer
445 return a reffed demuxer (and rename methods appropiately). Also update
446 all usage of those methods.
448 2009-11-23 Alan McGovern <amcgovern@novell.com>
453 * dependencyobject.h:
454 * dependencyobject.cpp: DOs which are expanded from a
455 ControlTemplate need to keep track of the
456 'templateBindingSource' so that we can attach new
457 TemplateBindings later. This value is stored in addition to
458 'IsTemplateItem' as DOs can be expanded from templates which
459 are not ControlTemplates and only ControlTemplate passes in
460 a non-NULL value for templateBindingSource.
463 * cbinding.cpp: regen
465 2009-11-21 Larry Ewing <lewing@novell.com>
467 * frameworkelement.cpp: round the layout slot and the size
468 constraints when using layout rounding.
470 * frameworkelement.h: remove unused overload.
472 * grid.cpp (PostRender): clear any path before drawing grid lines.
474 Fix 2024 (and 2005 other than font metrics) by applying layout
475 rounding more aggressively.
477 2009-11-20 Larry Ewing <lewing@novell.com>
479 * runtime.cpp: Invalidate the window when removing a message
482 2009-11-20 Larry Ewing <lewing@novell.com>
484 * grid.cpp (PostRender): use apply the layout clip when rendering
487 2009-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
489 * managedtypeinfo.cpp: Use strcmp instead of g_strcmp0 since the latter
490 isn't available in sled10.
492 2009-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
494 * type.h.in: Generate P/Invoke for Types::RegisterType.
497 * cbinding.h: Regenerated.
499 2009-11-20 Larry Ewing <lewing@novell.com>
501 * textblock.cpp: Fix the dynamic property providers to subclass
502 from FrameworkProvider so that layout actually works with these
503 elements. Change the min size hack until Jeff fixes it properly.
505 Fixes DRT 269 (again).
507 2009-11-20 Chris Toshok <toshok@ximian.com>
509 * media.h,media.cpp (class Image): add ImageOpenedEvent.
511 * enums.h,enums.cpp (enum TextHintingMode): add SL3 enum.
513 * textoptions.h (class TextOptions): add this static SL3 class.
515 * effect.h, effect.cpp: stub ShaderEffect and PixelShader.
517 2009-11-20 Larry Ewing <lewing@novell.com>
519 * frameworkelement.cpp (Measure): don't expand templates on items
522 2009-11-20 Alan McGovern <amcgovern@novell.com>
524 * grid.cpp: Elements which span star rows and auto columns are
525 measured twice. The first time they are measured we only
526 want the desired width in order to calculate the size of the
527 Auto column, as such we need to ignore the value of the
528 desired height. This fixes the ScrollBar out of view issue
531 2009-11-19 Larry Ewing <lewing@novell.com>
533 * runtime.cpp: remove the manual fs message layout logic.
535 * runtime.h: make the messages panels.
537 * fullscreen.xaml: use grid layout rather than doing manual
540 * incomplete-support.xaml: rework the padding a little.
542 2009-11-19 Larry Ewing <lewing@novell.com>
544 * frameworkelement.cpp (Arrange): make the layout_clip less
545 restrictive as indicated by the tests.
547 2009-11-19 Jeffrey Stedfast <fejj@novell.com>
549 * uri.cpp (Parse): Lowercase the hostname and remove the port if
550 it is identical to the default port for the protocol as per the
551 documentation on the Uri class on MSDN.
553 2009-11-19 Sebastien Pouliot <sebastien@ximian.com>
555 * deployment.cpp: Update comment (it's not incomplete anymore)
557 2009-11-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
559 * mediaelement.cpp|h: Add support for getting a quality level,
560 determined by dropped frames per second. Use this quality level
561 to decide which filter algorithm we should ask cairo to use.
563 2009-11-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
565 * mediaelement.cpp|h: Remove unused field.
567 2009-11-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
569 * value.cpp: Need to create zeroed out memory for ManagedTypeInfo
570 instances, since the assignment operator on the next line will try to
571 free whatever the previous memory was pointing to.
574 * contentcontrol.cpp: Create ManagedTypeInfo instances using g_new
575 instead of new to match the way they'll be deleted (g_free). Also
576 delete them properly.
578 * type.h[.in]: Move ManagedTypeInfo to its own file to not require a
579 complete rebuild every time it changes. ManagedTypeInfo: added copy
580 constructor and destructor: these are used when g++ does it's copy
581 magick. Added [in]equality operators so that Value can compare to instances
582 correctly. Added Initialize/Free methods - to be used when an instance is
583 created with glibs g_new.
585 * value.cpp: Properly compare and free ManagedTypeInfo instances.
587 * Makefile.am: Added managedtypeinfo.h|cpp.
591 * contentcontrol.cpp:
592 * dependencyproperty.g.cpp: Include managedtypeinfo.h.
594 2009-11-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
596 * src.mdp: Updated with new files.
598 2009-11-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
600 * runtime.cpp: Set object type when calling base ctor to get correct
601 object type tracking.
605 * audio-pulse.cpp: Set the correct object type on AudioSource
608 2009-11-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
610 * type.h[.in]: No need to generate cbindings/pinvokes for ~Types
613 * cbinding.cpp|h: Regenerated.
615 2009-11-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
617 * dependencyobject.cpp: Remove debug spew.
619 2009-11-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
621 * brush.cpp: ImageBrush::SetupBrush: Fix a possible deadlock in error
624 2009-11-18 Chris Toshok <toshok@ximian.com>
626 [ fixes silverlight.net/showcase/ ]
628 * downloader.cpp (Downloader::ValidateDownloadPolicy): we need to
629 maintain the trailing separator on the source_location.
630 (Downloader::Open): same.
632 2009-11-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
634 * cbinding.h: Regenerated.
636 2009-11-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
638 * value.cpp: Don't ever use memcmp for structure comparison - it fails
639 randomly if the structures have padding. Also special case float/double
640 comparison to take epsilon into account. Fixes random failures in MS
644 * grid.h: Add [in]equality operators.
651 * propertypath.h: Make inequality operator be the exact opposite of the
652 equality operator, negating the equality operator (even if code was
653 already correct, but duplicated - this way there's a lesser chance of
654 the equality operators getting out of sync)
656 2009-11-18 Jeffrey Stedfast <fejj@novell.com>
658 * textbox.cpp (TextBoxBase::OnMouseMove): Update the primary
659 selection clipboard as the selection changes. Fixes lewing's frown
660 by turning it upside down.
662 2009-11-18 Larry Ewing <lewing@novell.com>
664 * runtime.cpp (PaintToDrawable): fix the lame expose color logic
665 so it at least works.
667 2009-11-18 Larry Ewing <lewing@novell.com>
672 * uielement.cpp: check the status of the pattern to avoid drawing
673 with it if we are in an error state. And fix a backwards condition
674 in the previous patch.
676 * uielement.cpp: initialize the transforms.
678 2009-11-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
680 * runtime.cpp: We want to parse MOONLIGHT_DEBUG if LOGGING is defined
683 2009-11-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
688 * fontmanager.cpp: Tune ifdefs to allow configuring with logging but
689 without debug support.
691 * audio.cpp: Fix uninitialized variable warning (used in logging).
693 2009-11-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
697 * eventargs.cpp|h: Rename MarkerReachedEventArgs to
698 TimelineMarkerRoutedEventArgs to better match managed code, and move
699 the class to eventargs.cpp|h together with the rest of the event args
705 * type-generated.cpp: Regenerated.
707 2009-11-17 Larry Ewing <lewing@novell.com>
710 * multiscaleimage.cpp (RenderCollection):
711 * uielement.cpp (PostRender): Check the status of the pattern
712 before trying to draw with it in case something has gone wrong.
714 Fixes DRT 1 and and a couple of sites by not putting the cairo
715 context into an invalid state.
717 2009-11-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
719 * playlist.cpp: ParseASX2: don't verify the end of the uri, there is
720 no guarantee the uri has a specific ending.
722 2009-11-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
724 * mediaplayer.cpp: Open: Call SetSelected and ref on the video stream
725 we actually select, and not all of video streams we loop over.
727 2009-11-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
729 * mediaelement.h: Added LogReady event.
731 * eventargs.cpp|h: Added a LogReadyRoutedEventArgs class.
733 * enums.cpp|h: Added LogSource enum.
739 * type-generated.cpp: Regenerated.
741 2009-11-17 Jeffrey Stedfast <fejj@novell.com>
745 * textbox.cpp (KeyPressPageUp, KeyPressPageDown): Silverlight
746 seems to set these to handled even if no cursor change took place.
748 2009-11-17 Sebastien Pouliot <sebastien@ximian.com>
750 * security.c: Do not consider System.Xml.dll and Microsoft.
751 VisualBasic.dll as platform code since, right now, they do not
752 contain any [SecurityCritical] nor [SecuritySafeCritical] code
754 2009-11-17 Alan McGovern <amcgovern@novell.com>
757 * grid.cpp: We need to store the sizes of all the grid
758 segments immediately after we finish measuring them. These
759 sizes are used as our base values when deciding if we should
760 expand star rows/cols. The rules for expanding star
761 rows/cols now make sense :)
763 2009-11-17 Jeffrey Stedfast <fejj@novell.com>
765 * uri.cpp (Combine): Use different combining rules for 1.0 apps
766 (if the relative_path starts with a '/', always replace the path
767 rather than combining).
769 2009-11-17 Alan McGovern <amcgovern@novell.com>
771 * grid.cpp: Remove a bunch of code from Grid::ArrangeOverride
772 which isn't required anymore.
774 2009-11-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
776 * mediaelement.cpp: Fix compiler warning.
778 2009-11-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
780 * pipeline-ui.cpp|h: Distinguish between user initiated download
781 requests and automatic download requests - if the user asked us to
782 download the codecs, show the ui even if the user previously selected
783 to not be asked about codec downloads again.
785 * mediaelement.cpp: When requesting a codec download, indicate that the
786 user did not initiate this request, it's an automatic request.
788 2009-11-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
790 * mms-downloader.cpp: Revert previous fix, it breaks MS DRT 938.
792 2009-11-16 Alan McGovern <amcgovern@novell.com>
798 * dependencyproperty.g.cpp: Revert r146166 as it has some
799 bizarre side effects.
801 2009-11-16 Chris Toshok <toshok@ximian.com>
803 * dependencyobject.h (class EventObject): we need to make
804 AddHandler virtual so UIElement can override it and do special
805 things when Loaded is poked.
807 * uielement.h,cpp: optimize the Loaded tree walking code, reducing
808 the number of nodes we visit by 2-3 orders of magnitude.
810 * list.h,cpp (List::Prepend): add an override that allows you to
811 prepend an entire list onto the front of another one. used in the
812 Loaded tree walking code.
814 2009-11-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
816 * mms-downloader.cpp: Play: if we're already playing, don't send
817 another play request to the server, it might confuse the server.
820 2009-11-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
822 * dependencyobject.cpp: Remove some debug spew.
824 2009-11-14 Larry Ewing <lewing@novell.com>
827 * mediaelement.cpp: fix mediaelement rendering to match image and
828 clean up the code in both a little bit.
830 2009-11-14 Larry Ewing <lewing@novell.com>
832 * shape.cpp (MeasureOverride): fix a bug that slipped in due to
833 the previous shape changes.
835 Fixes 653 and some unit tests.
837 2009-11-13 Jeffrey Stedfast <fejj@novell.com>
839 * mediaelement.cpp (Pause): Seems that playlist can actually be
840 null here when the downloader fails, so properly handle null
841 situations instead of asserting.
843 2009-11-13 Jeffrey Stedfast <fejj@novell.com>
845 * pipeline-ui.cpp (AcceptClicked): Don't need to strdup the
846 CODEC_URL string - just pass it as an argument to
848 (ToggleEula): When toggling the EULA on, make the dialog
849 resizable. Likewise, when hiding the EULA, disable resize.
850 (Show): Make the EULA scrollview expand/fill available space so
851 that when the dialog gets resized, it expands as well.
853 2009-11-13 Larry Ewing <lewing@novell.com>
855 * shape.cpp: rework rectangle and ellipse layout logic so that it
856 plays lightly nicer with other things. Fix stretch invalidation
859 Fixes MS 92 and moon 404 as well as some resizing issues visible
862 2009-11-13 Alan McGovern <amcgovern@novell.com>
864 * dependencyproperty.g.cpp: regen.
869 * template.cpp: DOs which are expanded from a ControlTemplate
870 need to keep track of the 'templateBindingSource' so that we
871 can attach new TemplateBindings later. This value is stored
872 in addition to 'IsTemplateItem' as DOs can be expanded from
873 templates which are not ControlTemplates (i.e.
876 2009-11-13 Alan McGovern <amcgovern@novell.com>
880 * type-generated.cpp:
881 * frameworkelement.h:
882 * frameworkelement.cpp: Move the invoking of OnApplyTemplate
883 from Control to FrameworkElement as ContentPresenter (a
884 FrameworkElement) needs to have its OnApplyTemplate method
887 2009-11-13 Alan McGovern <amcgovern@novell.com>
889 * contentcontrol.cpp: Call the correct base method in the
890 GetDefaultTemplate override. We should also be returning
891 NULL instead of false.
893 2009-11-13 Alan McGovern <amcgovern@novell.com>
895 * runtime.cpp: When we attach a layer we need to set
896 needs_measure and needs_arrange to true otherwise we won't
897 do a layout pass until something else invalidates... if it
900 2009-11-13 Alan McGovern <amcgovern@novell.com>
902 * dependencyobject.cpp: Fix a case where a user-registered DP
903 was (incorrectly) setting the Surface if it's type was a DO.
905 2009-11-13 Alan McGovern <amcgovern@novell.com>
907 * value.cpp: If the DO is null, don't try to clone it.
909 2009-11-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
911 * dependencyobject.cpp: Improve event handling to not create the
912 'events' field except when handlers are added. This will improve
913 memory usage slightly, and enable a few fast-paths (null checks
914 only) when there are no event handlers.
916 2009-11-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
918 * playlist.cpp: Fix compile error.
920 2009-11-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
922 * pipeline.cpp: If the PlaylistParser doesn't have enough data
923 to parse the source, retry later instead of failing.
925 * playlist.cpp|h: TryFixError: need to know the total read size
926 when we fix up characters after the first read (i.e. if the asx
927 file is bigger than the buffer size).
931 2009-11-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
933 * uielement.cpp: WalkTreeForLoadedHandlers cache application
934 and deployment for the method's duration.
936 2009-11-12 Geoff Norton <gnorton@novell.com>
938 * utils.cpp: We need to special case the case-sensitivity handling
939 of debug symbol files as well, to support the soft debugger.
941 2009-11-12 Larry Ewing <lewing@novell.com>
943 Fix image stretching and alignment so that 641, 802, 889, and 921
944 are all doing the right thing.
946 * frameworkelement.cpp (Arrange): when applying alignment rules
947 take the minimum size into account not the stretched size.
949 * media.cpp (Render): rework the rendering logic to match the DRTS.
950 (ComputeActualSize): in the canvas case we do use the constrained
951 size not the minimum size.
953 2009-11-12 Jeffrey Stedfast <fejj@novell.com>
955 * media.cpp (Image::OnPropertyChanged): Only report errors if we
956 are being parsed by the xaml parser.
958 * pipeline.cpp (Initialize): If GetResource() fails, report
961 * mediaelement.cpp (SetUriSource): Set a new bitflag,
962 Initializing, before initializing the playlist so that if it
963 errors out we can properly emit MediaFailed events. Unset the flag
965 (SetDemuxerSource): Same.
966 (SetStreamSource): Here too.
967 (SetSource): And here.
968 (OpeningHandler): Unset the Initializing flag.
969 (MediaErrorHandler): If we are initializing, emit MediaFailed even
970 if the state is Closed.
972 * glyphs.cpp (OnPropertyChanged): Only set MoonError and emit
973 ParserErrors when we are in the xaml parser.
975 * bitmapimage.cpp (UriSourceChanged): If GetResource() fails, call
976 DownloaderFailed() which will do proper cleanup and emit
978 (OnPropertyChanged): Only set MoonError for Uri source changes if
979 we are in the xaml parser.
981 * uri.h (IsInvalidPath): Fixed to also return true for "\fu".
982 (IsUncPath): Now returns true as long as the first character is
983 "\", it no lonegr requires "\\".
985 * application.cpp (GetResource): Now returns bool so that it can
986 return false if there was an error.
988 * xaml.cpp (start_element): Set IsBeingParsed() on DO's to true.
989 (end_element_handler): And set it back to false here.
991 * dependencyobject.h: Added IsBeingParsed state so that objects
992 can check it when their property values change to see if they need
993 to do special processing. Kind of a gross hack but it is needed in
994 order to avoid emitting exceptions for Uri property changes in
995 various elements when an invalid uri is set normally (whereas they
996 need to emit errors when being parsed from xaml).
998 2009-11-12 Andreia Gaita <avidigal@novell.com>
1000 * deployment.cpp: don't unref the application after creating it,
1001 it gets unreffed when SetCurrentApplication is called with a new
1002 one or when deployment shuts down.
1004 2009-11-11 Chris Toshok <toshok@ximian.com>
1006 * utils.h,cpp (managed_unzip_stream_to_stream_first_file): new
1007 method, basically the same as managed_unzip_stream_to_stream, only
1008 it always unzips the first file in the zip.
1010 * deployment.h (class ExtensionPart): superclass is ExternalPart,
1011 not DependencyObject.
1013 2009-11-11 Chris Toshok <toshok@ximian.com>
1015 * timeline.cpp (DispatcherTimer::Stop): DispatcherTimer.Stop is
1016 available in managed-land and is callable more than once
1017 apparently (silverlight.net is doing it). we need to not crash in
1018 this case, so only try to stop the clock if it's not null.
1022 2009-11-11 Larry Ewing <lewing@novell.com>
1024 Fix hit testing (via InsideLayoutClip) on layout clipped elements
1025 where the parent may not have a clip.
1027 * layoutinformation.cpp (GetClip): fix the composite offset
1030 * frameworkelement.cpp (FindElementsInHostCoordinates): use the
1031 current visibility when hittesting.
1033 * uielement.cpp (PostRender): render the layout clip when
1034 rendering clipping in debug mode.
1036 2009-11-11 Larry Ewing <lewing@novell.com>
1038 * grid.cpp (ArrangeOverride): remove the visibility checks from
1039 grid they are handled in the layout logic.
1041 2009-11-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
1043 * dependencyproperty.cpp|h: Add GetDependencyProperty overloads which
1044 take a Type instance to avoid calling Deployment::GetCurrent as much.
1045 Update according to Type/Value API changes.
1056 * contentcontrol.cpp:
1057 * dependencyobject.cpp: Update according to Type/Value API changes.
1059 * type.cpp|h|in: Remove all the static convenience methods that were
1060 accessing Deployment::GetCurrent, and add a deployment field to the
1061 Type instance so that we can keep the instance methods at least.
1063 * value.cpp|h|in: Make the Is method take a deployment parameter.
1065 * xaml.cpp|h: Store a deployment instance on the XamlParserInfo so that
1066 we don't have to use Deployment::GetCurrent that much. Updated
1067 according to Type API changes.
1069 * type-generated.cpp: Regenerated.
1071 2009-11-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
1073 * value.h: Don't include cairo.h nor string.h.
1076 * writeablebitmap.h: Include cairo.h.
1077 * file-downloader.cpp: Include string.h.
1079 2009-11-11 Larry Ewing <lewing@novell.com>
1081 * frameworkelement.cpp: In measure make sure we track the last
1082 size we were measured at even if we are collapsed.
1083 In Arrange don't descend into the tree if we are not visible but
1084 track the last slot.
1086 2009-11-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
1088 * value.h: Don't include cairo.h nor string.h.
1091 * writeablebitmap.h: Include cairo.h.
1092 * file-downloader.cpp: Include string.h.
1094 2009-11-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
1096 * dependencyobject.cpp|h: Inline GetDeployment when SANITY isn't
1099 2009-11-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
1101 * dependencyobject.cpp: DependencyObject::Dispose (): we need to clear out
1102 the parent, we might still be alive after our parent has died, so don't
1103 crash if somebody does an upward tree walk in that case.
1105 2009-11-11 Alan McGovern <amcgovern@novell.com>
1107 * frameworkelement.cpp: If a template is applied when
1108 FE::Measure is called, Surface::needs_measure will be set to
1109 true even though the FE will not have a dirty measure when
1110 the function completes. This can result in us having an
1111 empty measure_list with Surface::needs_measure still set to
1112 true, thus preventing us from arranging any elements and
1113 hitting the 250 max passes. r: lewing
1115 2009-11-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
1117 * value.h|in: Make checked_get_subclass and checked_get_exact only
1118 check in SANITY or DEBUG builds.
1120 * type.cpp|h|in: Only define IsSubclassOrSuperclassOf in SANITY or
1123 2009-11-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
1125 * type.cpp|h|in: Remove unused method.
1127 2009-11-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
1129 * layoutinformation.cpp: Fix a g++ warning.
1131 2009-11-11 Larry Ewing <lewing@novell.com>
1133 * uielement.cpp (DoArrange): if we haven't been arranged yet but
1134 we have a parent be sure to invalidate the parent before exiting.
1136 * frameworkelement.cpp: set the layout slot before calling
1143 2009-11-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
1145 * fontmanager.cpp|h: Cache system fonts.
1149 2009-11-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
1152 * list.cpp|h: Inline a few methods which are used very often.
1154 2009-11-10 Larry Ewing <lewing@novell.com>
1156 * frameworkelement.cpp:
1157 * frameworkelement.h:
1158 * uielement.cpp: Rework hit testing to use InsideObject so that we
1159 don't have to guess at fill and stroke values when doing testing.
1160 Consider the global clip on short circuiting and the layout clip
1164 * textblock.h: Implement the rules for textblock hitting.
1169 * layoutinformation.cpp:
1172 * shape.cpp: Rework to use the new clip helper methods.
1176 2009-11-10 Jackson Harper <jackson@ximian.com>
1178 * resources.cpp: Hack that allows us to add the same item to
1179 multiple resource dictionaries.
1183 2009-11-10 Larry Ewing <lewing@novell.com>
1187 * brush.cpp: Get overly aggressive about invalidations.
1191 * frameworkelement.cpp: rework the values we store for
1192 layout. Keep track of the raw results of measure and feed them
1193 back into the arrange along with the public desired size. Allow
1194 Actual* to be completely computed for elements that operate that
1195 way. Walk up the tree when rendering LayoutClip Make canvas
1196 slightly less special.
1199 * textblock.h: Make Actual* a computed value. Rework the
1213 * usercontrol.cpp: rework the layout output now that we are
1214 storing our hidden desires.
1216 * runtime.cpp: disable ftb for now. Use image surface by
1221 2009-11-10 Alan McGovern <amcgovern@novell.com>
1224 * grid.cpp: Revert the grid changes in r145839 as they
1225 interact badly with upcoming layout fixes. r: lewing
1227 2009-11-10 Alan McGovern <amcgovern@novell.com>
1230 * grid.cpp: When expanding in MeasureOverride, do not use the
1231 value of [Horizontal|Vertical]Aligment. This fixes a case
1232 where we would expand and consume too much space. r: lewing
1234 2009-11-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
1237 * window-gtk.h|cpp: Add a surface ctor parameter.
1239 * runtime.cpp: Pass the surface as a parameter to the ctor instead of
1240 setting it afterwards, since the window ctor will end up needing the
1243 * cbinding.h|cpp: Regenerated.
1247 2009-11-09 Andreia Gaita <avidigal@novell.com>
1249 * dependencyproperty.cpp: if the unresolved Target name is not found
1250 (i.e., is managed-only, like "(ButtonBase.ClickMode)"), use the type
1251 of the current object instead. Fixes bug #543072
1255 2009-11-09 Chris Toshok <toshok@ximian.com>
1257 * uielement.h (class UIElement): add CacheMode property.
1259 * Makefile.am (libmoon_la_SOURCES): add bitmapcache.cpp
1260 (libmoon_include_headers): add bitmapcache.h
1264 2009-11-09 Chris Toshok <toshok@ximian.com>
1266 * runtime.h|.cpp (Surface::Attach): add the loaded handler before
1267 calling AttachLayer, as the latter does the tree walk copying the
1268 event handlers. Fixes DRT #163.
1269 (globally): fix code/comments to not refer to the toplevel element
1270 as "canvas" anymore.
1274 2009-11-09 Chris Toshok <toshok@ximian.com>
1276 * uielement.h (class UIElement): mark the Key a MouseLeftButton
1277 events as GenerateManagedEventField=true.
1281 2009-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
1289 * frameworkelement.cpp:
1290 * deepzoomimagetilesource.cpp: Fix compiler warnings.
1294 2009-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
1296 * dependencyobject.cpp: Initialize variables to null to silence compiler
1297 warnings in release builds.
1301 2009-11-08 Chris Toshok <toshok@ximian.com>
1303 * deployment.h|cpp: stub out some OutOfBrowser classes.
1307 2009-11-08 Chris Toshok <toshok@ximian.com>
1309 * effect.h|cpp: stub out SL3 effects classes.
1313 2009-11-08 Larry Ewing <lewing@novell.com>
1315 * incomplete-support.xaml: make things a little prettier by adding
1316 margins and max width.
1318 2009-11-08 Chris Toshok <toshok@ximian.com>
1320 * Makefile.am (runtime.lo): be explicit about dependencies on
1321 fullscreen.h and incompletely-support.h so we won't get screwed by
1322 build-time dependencies.
1326 2009-11-08 Chris Toshok <toshok@ximian.com>
1328 * runtime.h|cpp (Surface::Attach): if we're running > SL2, call
1329 ShowIncompleteSilverlightSupportMessage.
1330 (Surface::ShowIncompleteSilverlightSupportMessage): show our
1331 incomplete support message. as an optimization, hook up to
1332 Completed on the storyboard to remove the layer when the
1333 storyboard is finished.
1334 (Surface::HideIncompleteSilverlightSupportMessage): detach the
1336 (Surface::ShowFullScreenMessage): use the same optimization of
1337 removing the layer when the storyboard completes.
1339 * Makefile.am (noinst_PROGRAMS): add xaml-to-header.exe here.
1340 (libmoon_include_headers): add deepzoomimagetilesource.h and
1341 multiscalesubimage.h here and remove them from EXTRA_DIST. also,
1342 remove fullscreen.h entirely since we generate it at build time.
1343 (EXTRA_DIST): add fullscreen.xaml and incomplete-support.xaml
1344 here, as well as xaml-to-header.cs.
1346 * incomplete-support.xaml: new xaml file for our incomplete
1349 * fullscreen.xaml: move fullscreen.xaml here.
1351 * xaml-to-header.cs: move fullscreen/fullscreen.cs here and
1352 massage it to make it reusable for the incomplete-support.xaml
1357 2009-11-07 Geoff Norton <gnorton@novell.com>
1359 * deployment.cpp: Support connecting to sdb when built in debug
1362 2009-11-06 Chris Toshok <toshok@ximian.com>
1364 * uielement.h|cpp (UIElement::ElementAdded): simplify this a bit
1365 using WalkTreeForLoadedHandlers.
1366 (UIElement::RemoveHandler): pass the removal on to the deployment
1368 (UIElement::WalkTreeForLoadedHandlers): here there be dragons.
1369 (UIElement::OnLoaded): this method does nothing but update the
1371 (UIElement::ClearLoaded): we also need to
1372 ClearForeachGeneration (UIElement::LoadedEvent) so they'll be
1373 copied again when we get added back to the tree.
1375 * provider.cpp (InheritedPropertyValueProvider::PropagateInheritedProperty):
1376 use Logical tree walk ordering.
1378 * tabnavigationwalker.cpp (TabNavigationWalker::Sort): same.
1380 * panel.cpp (Panel::OnPropertyChanged): we have to call
1381 SetSubtreeObject before calling ElementAdded.
1383 * frameworkelement.h|cpp (FrameworkElement::UpdateLayout): remove
1384 the block of code that emits the LoadedEvent.
1385 (FrameworkElement::RegisterManagedOverrides): add our loaded hook
1387 (FrameworkElement::OnLoaded): call our loaded hook.
1389 * deployment.h|cpp (class Deployment): a whole bunch of new code
1390 to handle management of a list of loaded handlers similar in
1391 spirit to LayoutUpdated but much more complicated. bleah.
1393 * dependencyobject.h|cpp: a whole bunch of new apis:
1394 (ForeachHandler): call a method for every handler for a given
1395 event. Optionally only iterate over handlers added since the last
1396 time ForeachHandler was called.
1397 (ClearForeachGeneration): clears the "last time ForeachHandler was
1399 (ForHandler): same as foreach, invoke the same type of handler
1400 method, but only on 1 event handler.
1401 (HasHandlers): returns true if the object has handlers for a
1403 (RemoveHandler): make these virtual because UIElement will
1404 override them to remove handlers from the Deployment's loaded
1407 * control.cpp (Control::DoApplyTemplate): since we do it after
1408 ElementAdded, calling WalkTreeForLoadedHandlers here causes
1409 another treewalk, but we need to pass different args to it than
1412 * collection.h (enum VisualTreeWalkerDirection): add
1415 * collection.h|cpp (class DeepTreeWalker): add a
1416 VisualTreeWalkerDirection to this walker as well.
1418 * border.cpp (Border::OnPropertyChanged): we have to make sure to
1419 call SetSubtreeObject before calling ElementAdded.
1421 2009-11-06 Alan McGovern <amcgovern@novell.com>
1423 * grid.cpp: There's no need to expand star rows/cols at this
1424 point as any time they would expand here, they would be
1425 expanded in ArrangeOverride anyway. r: spouliot
1427 2009-11-05 Jeffrey Stedfast <fejj@novell.com>
1429 * brush.cpp (ImageBrush::OnPropertyChanged): Check that the Source
1430 uri is valid and the download policy will allow it.
1432 * media.cpp (Image::OnPropertyChanged): Check that the Source uri
1433 is valid and the download policy will allow it.
1435 * mediaelement.cpp (OnPropertyChanged): Check that the Source uri
1436 is valid and the download policy will allow it.
1438 * glyphs.cpp (DownloadFont): Now takes a MoonError argument so
1439 that (late) download policy errors (caused by a failed
1440 Downloader::Open) can propogate up through callers like
1441 OnPropertyChanged() or SetParent().
1442 (SetParent): Moved here from from SetSurface() so that we can
1443 throw an exception when ading the glyphs to the tree if the
1445 (OnPropertyChanged): Set the MoonError if the uri is invalid.
1447 * bitmapimage.cpp (ValidateDownloadPolicy): New method to check if
1448 the uri can be downloaded.
1449 (OnPropertyChanged): Check if the Source uri is invalid. If so,
1452 * downloader.cpp (ValidateDownloadPolicy): New static method to
1453 check that the policy would allow downloading the content at the
1454 uri. Split out from Open().
1456 * uri.h (IsInvalidPath): New method to check the validity of the
1457 path component of a URI.
1458 (IsUncPath): New method that returns true if the path begins with \\
1462 2009-11-05 Alan McGovern <amcgovern@novell.com>
1469 * frameworkelement.h:
1470 * contentcontrol.cpp:
1471 * frameworkelement.cpp: Templates must be expanded as part of
1472 the first step of Measure. To support this, remove the old
1473 ApplyTemplateHook managed path and refactor the
1474 GetTemplateRoot managed path into a more generic
1475 GetDefaultTemplate method. Whenever native code needs to get
1476 a default template from managed, this is invoked to retrieve
1477 it. ApplyTemplate and OnApplyTemplate have been moved to
1478 FrameworkElement itself to simplify the code required to
1479 support templateable framework elements (ItemsPresenter for
1483 * cbinding.cpp: regen. r: toshok
1485 2009-11-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
1487 * dependencyproperty.cpp: Fix an uninitialized variable problem.
1491 2009-11-05 Jackson Harper <jackson@ximian.com>
1493 * playlist.cpp: After we successfully fixup an error we need to
1494 reset the error args otherwise the error will be raised when the
1495 parsing is all done. Fixes 96x.fm.
1499 2009-11-04 Sebastien Pouliot <sebastien@ximian.com>
1501 * list.cpp: Remove unused (even in test) code.
1502 * tabnavigationwalker.cpp: Complete int/uint fix.
1506 2009-11-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
1513 * tabnavigationwalker.cpp: Fix warnings when building release builds.
1517 2009-11-04 Alan McGovern <amcgovern@novell.com>
1522 * control.cpp: 1) Disabling the ComboBox should set
1523 IsDropDownOpen to false
1524 2) If the dropdown is opened while the ComboBox is disabled,
1525 the children of the popup are disabled.
1526 3) If the dropdown is open, re-enabling the ComboBox doesn't
1527 close the dropdown and also doesn't update the IsEnabled
1528 state on the children.
1531 2009-11-03 Jackson Harper <jackson@ximian.com>
1533 * xaml.cpp: Dont force setting a property in managed if it was
1534 registered by a base type.
1538 2009-10-29 Chris Toshok <toshok@ximian.com>
1540 * messagebox.cpp (message_box_show): don't use
1541 gtk_message_dialog_new with user strings, since they might contain
1542 reserved characters.
1546 2009-11-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
1548 * pipeline.cpp: If we can't seek, reset the 'seeking' flag to false.
1552 2009-11-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
1554 * deployment.cpp: Fix typo in return statement.
1558 2009-11-03 Alan McGovern <amcgovern@novell.com>
1561 * grid.cpp: Rewrite Grid so that it passes the correct sizes
1562 to elements spanning Star or Auto segments. Fixes
1563 tic-tac-toe. r: lewing
1565 2009-11-02 Alan McGovern <amcgovern@novell.com>
1570 * frameworkelement.h:
1571 * frameworkelement.cpp: Certain UIElements (Controls and
1572 ContentPresenters) need to apply a template before
1573 MeasureOverride is invoked. Add a callback
1574 (ApplyTemplateHook) to FrameworkElement which is non-null
1575 for Controls and ContentPresenters to that these templates
1576 can be expanded properly. r: rolf
1578 * cbinding.cpp: regen. r: rolf
1580 2009-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
1582 * pipeline.h: Remove dead code.
1586 2009-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
1588 * pipeline.cpp|h: ProgressiveSource: close the write handle in the dtor
1589 to avoid race conditions - media thread closing the handle and main
1594 2009-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
1596 * mms-downloader.cpp: When sending logs, use NoPolicy. We've already
1597 checked if we can access the server or not. Using StreamingPolicy is
1598 wrong now that we create mms downloaders for those always. Also
1603 2009-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
1606 * enums.h|cpp: Remove MediaStateError, it's not used in SL2. Whenever
1607 an error occurs we go to the Closed state.
1611 2009-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
1613 * mms-downloader.cpp: Accept rtsp[s] schemes too.
1615 * downloader.cpp: determine mms'ness by using the policy passed in
1616 instead of comparing schemes (differently in other places - the
1617 pipeline considers rtsp and rtsps schemes too as streaming).
1621 2009-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
1623 * pipeline-asf.cpp: When we got a packet from the mms downloader, ask
1624 the demuxer to fill its buffers. This fixes some cases where the mms
1625 stream never finishes buffering. Added GetDemuxerReffed.
1629 2009-10-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
1631 * pipeline.cpp: Don't completely stop working when the media is
1632 stopped, the media element needs the first frame of the media, so
1633 when stopped, buffer 1 frame instead of 0. Makes MS DRT #483 pass.
1635 2009-10-29 Alan McGovern <amcgovern@novell.com>
1637 * grid.cpp: Grid should not invalidate its measure unless
1638 either the Columns or Rows collection changes. This reverts
1639 what looks like an accidental commit by lewing in r123309.
1642 2009-10-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
1644 * mediaelement.cpp: If we Seek when Paused, we need to update
1645 paused_position. Fixes one error in MS DRT #483.
1649 2009-10-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
1651 * pipeline.cpp: Media::SelectDemuxerAsync: seek to 0 on the source
1652 before searching for a demuxer. Makes #546241 play all the audio it
1657 2009-10-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
1659 * pipeline.cpp: Include signal.h.
1663 2009-10-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
1665 * mediaelement.cpp: OpenCompletedHandler: only emit
1666 DownloadProgressChanged if MediaOpened hasn't been raised. This fixes
1667 MS DRT #25 (which checks that DownloadProgressChanged isn't raised
1668 after calling Stop and then Play on a media element).
1672 2009-10-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
1674 * pipeline.cpp: When we enter a new thread, ensure that we don't
1675 inherit blocked signals from the thread that created us. Fixes deadlock
1676 reported in #546241.
1680 2009-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
1682 * mediaplayer.cpp|h: Instead of keeping a flag telling whether we're
1683 seeking or not, keep a counter, since we may end up with multiple
1684 pending seeks, and we only want to restart playback when the last seek
1685 finishes. Also call MediaElement's seek method so that we do everything
1686 we must do when a seek happens. Fixes our media test #153.
1688 * mediaelement.cpp|h: Add a force parameter to Seek to force seeking no
1689 matter which state we're in. Used by MediaPlayer to seek when we open
1692 * pipeline.cpp|h: Don't start filling the buffers when a media is opened,
1693 the first thing we do after opening a media is seeking, which would
1694 invalidate whatever buffer we create. When the first seek has finished,
1695 it will request a buffer fill. Also remove the optimization that was
1696 joining multiple seeks into one (the last one), since there was no way
1697 MediaPlayer could know which seek finished when the SeekCompleted event
1698 was raised. We now do all seeks, in the correct order.
1700 * playlist.cpp|h: Remove the same optimization here, have a list of pending
1701 seeks and execute them in order.
1705 2009-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
1707 * pipeline.cpp: Add a workaround for having invalid codecs in the
1708 expected codec location - with this workaround the user will get
1709 a new codec download dialog.
1713 2009-10-26 Sebastien Pouliot <sebastien@ximian.com>
1715 * deployment.cpp: Match SL appdomain friendly name
1719 2009-10-23 Chris Toshok <toshok@ximian.com>
1721 * runtime.cpp (Surface::IsVersionSupported): report that we
1722 support versions 3.0.x, because the alternative is not even
1723 attempting to execute many xaps.
1727 2009-10-23 Chris Toshok <toshok@ximian.com>
1729 * frameworkelement.cpp (FrameworkElement::UpdateLayout): call
1730 Deployment::GetCurrent()->LayoutUpdated() instead of walking an
1733 * frameworkelement.h (class FrameworkElement): remove
1736 * deployment.h,cpp (Deployment::LayoutUpdated): move the
1737 FrameworkElement event here, since any layout updating causes
1738 every LayoutUpdated handler to be called, even for those elements
1741 * type-generated.cpp: regen
1745 2009-10-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
1747 * pipeline.h: IMediaDemuxer: add a GetCanSeek method specifying whether
1748 a demuxer can seek or not. ExternalDemuxer (aka MediaStreamSource) can
1749 specify false for this (which won't prevent SL from trying to seek on
1750 the MediaStreamSource though). Implement ExternalDemuxer::SetCanSeek.
1752 * mediaelement.cpp: If the demuxer can't seek, set CanSeek = false.
1756 2009-10-23 Stephane Delcroix <sdelcroix@novell.com>
1758 * uri.cpp (flatten_path): keep track of ../ parts if there's no
1759 previous part to drop, or if the previous part is ../ too.
1763 2009-10-23 Stephane Delcroix <sdelcroix@novell.com>
1765 * deepzoomimagetilesource..h|cpp: the strip_and_set hack is no longer
1766 required with jeff's latest patch
1770 2009-10-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
1772 * pipeline-ui.cpp: ShowUI: We need to set the current deployment here.
1776 2009-10-22 Jeffrey Stedfast <fejj@novell.com>
1778 * uri.cpp (flatten_path): New helper function to flatten a path
1779 (e.g. get rid of extra /'s, ./'s, and handle ../'s).
1780 (Parse): If the Uri is absolute, flatten the path.
1781 (Combine): Simplified by just concatenating the old path, the
1782 relative_path, and then calling flatten_path(). Also, thanks to
1783 Stephane's investigations, fixed the fact that a relative_path
1784 starting with '/' does not combine at the root like previously
1789 2009-10-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
1791 * dependencyobject.cpp|h: CanEmitEvents: add an event_id argument, so
1792 that we can allow DestroyedEvent during shutdown. This fixes a crash
1793 with namescopes - they rely on DestroyedEVent to properly detach from
1798 2009-10-21 Stephane Delcroix <sdelcroix@novell.com>
1800 * uri.cpp: url_encode the whitespaces too,
1804 2009-10-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
1806 * pipeline-ui.cpp: Include stdlib.h to fix release builds.
1810 2009-10-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
1812 * pipeline.cpp: GetMediaReffed might return null, add some null checks
1817 2009-10-20 Andreia Gaita <avidigal@novell.com>
1819 * timemanager.[h|cpp]: (AddDispatcherCall) used by Dispatcher to add tick
1820 calls. If it's called while we're in the emitting loop, save the new
1821 ones on another list so they'll get invoked on the next tick. All other
1822 tick calls added via AddTickCall get invoked asap.
1824 * list.[h|cpp]: change CloneAndClear to MoveTo, it now moves the queue
1825 nodes to an existing queue instead of creating a new one
1827 * cbinding.[h|cpp]: regen
1831 2009-10-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
1833 * pipeline.cpp: IMediaDemuxer::ReportGetFrameCompleted: Only clear the
1834 pending_stream field if we're stopped or if we processed the returned
1835 frame. Specifically do not clear the pending_stream field if we're
1836 not executing on a media thread (since when the method is called again on
1837 the media thread we might end up dropping the frame) - and it's a race
1838 condition that may cause crashes.
1842 2009-10-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
1844 * runtime.cpp|h: Add a DetachWindow which detaches the surface from
1845 the window and prevents the window from getting destroyed when the
1846 surface is destroyed. Also add a few protections against having a
1847 null window, which we may get when the window has been detached.
1851 2009-10-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
1855 * type.h.in: Added a LookupEvent method that takes a deployment
1856 parameter so that it doesn't try to use Deployment::GetCurrent. This
1857 is required when we need to lookup events for deployments which are
1858 not the current one (when re-creating a PluginInstance since its
1859 source has changed for instance).
1863 2009-10-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
1866 * window.cpp|h: Detach the window from the deployment by not storing it,
1867 use Surface' deployment instead. Also add a convenience SetCurrentDeployment
1879 * dependencyproperty.cpp: Include deployment.h, required now that
1880 window.h doesn't include it.
1883 * Makefile.am: Updated with window.cpp.
1887 2009-10-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
1889 * deployment.cpp|h: Moved all managed code handling from PluginInstance
1894 2009-10-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
1896 * codec-version.h.in: Bump ABI to 16.
1898 2009-10-19 Andreia Gaita <avidigal@novell.com>
1900 * list.[h|cpp]: (Queue::CloneAndClear) Added, clones the queue while
1901 clearing the original
1903 * timemanager.cpp: Make a copy of the queued tick calls and use that
1904 instead of the live queue. Callbacks may insert new calls into the
1905 queue, and those should be invoked on the next tick, not on the
1906 current one. Fixes drt #244
1910 2009-10-19 Andreia Gaita <avidigal@novell.com>
1912 * timemanager.cpp: fix START_TIMER define and add timing logs on tick calls
1916 2009-10-15 Alan McGovern <amcgovern@novell.com>
1918 * grid.cpp: Add comment explaining why the InvalidateMeasure
1921 2009-10-15 Alan McGovern <amcgovern@novell.com>
1923 * grid.cpp: Changing a Grid property (Row, RowSpan etc) on a
1924 UIElement invalidates its measure. r: lewing.
1926 2009-10-15 Stephane Delcroix <sdelcroix@novell.com>
1928 * multiscaleimage.cpp: send the RoutedException on ImageOpenFailed.
1929 Errorcode and (empty) message are matching SL behavior. Fixes drt #874.
1933 2009-10-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
1938 * type-generated.cpp: Regenerated.
1942 2009-10-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
1944 * pipeline.cpp: A printf sneaked in.
1948 2009-10-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
1966 * mms-downloader.cpp: Fix 64 bit printf format specifier on x64.
1970 2009-10-14 Andreia Gaita <avidigal@novell.com>
1972 * timeline.[h|cpp]: destroy dispatcher timer clocks immediately if
1973 they're stopped and not restarted on the same tick
1977 2009-10-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
1980 * pipeline-asf.cpp: Updated according to API changes.
1982 * pipeline.cpp|h: Media::Dispose: Check if we've been disposed and
1983 do nothing in that case. This way we don't hit the warning just below
1984 about not being in the media thread.
1986 MediaThreadPool::IsThreadPoolThread: Return the value we calculated,
1987 not a hardcoded 'true' value.
1989 Make the demuxer serialized: Don't seek if we're waiting for a frame (wait
1990 until the frame has been returned). Also don't request a frame if we're
1991 seeking (just do nothing, when the seek completes new frames will be
1994 Change seeking to store the last seeked-to pts in the demuxer
1995 when marshalling seeks from the main thread to the media thread. This
1996 ensures that if two seeks are enqueued quickly, we won't seek twice, only
1997 to the last (there is also another potential issue: if the first seek
1998 couldn't complete because we were waiting for a frame, we could end up
1999 seeking in the wrong order).
2001 * deployment.cpp: Delete the local variable, not the instance field
2006 2009-10-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
2008 * pipeline.cpp: ProgressiveSource::DataWrite: write_fd might be null
2009 if we've been disposed, don't print a warning in this case. Also don't
2010 get the media until we've passed the write_fd check - this way we don't
2011 leak refs if the check fails.
2015 2009-10-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
2017 * pipeline.cpp: Remove more output which can happen during normal
2018 executing (shutdown in particular for these cases).
2022 2009-10-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
2024 * pipeline.cpp: Media::RetryHttp: don't dispose media objects in this
2025 method directly, it's called on the main thread, instead marshal the
2026 Dispose to the media thread. Also reset error_reported, otherwise
2027 Initialize will just bail out immediately.
2031 2009-10-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
2033 * pipeline.cpp: Download progress can actually go down (if the file
2034 size goes down). So don't print a scary warning.
2038 2009-10-13 Jeffrey Stedfast <fejj@novell.com>
2040 * textbox.cpp (TextBoxView::Layout): Set dirty to false after
2041 laying out the text.
2042 (TextBoxView::Render): Don't do Layout here.
2046 2009-10-09 Chris Toshok <toshok@ximian.com>
2048 * control.cpp (Control::OnPropertyChanged): drt #438 shows that
2049 you can set Template = null to clear the template's visual tree.
2051 (Control::ClearTemplate): set template_root to NULL after we
2056 2009-10-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
2058 * mediaelement.cpp: MediaElement::SetUriSource: Remove scary warning
2059 which may happen quite often and in common code paths.
2063 2009-10-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
2065 * dependencyobject.cpp: DependencyObject::ProviderValueChanged: After
2066 invoking the property changed handler the values we have might have
2067 gotten deleted. Clone them before calling the property changed handler
2068 so that we don't access deleted values. Makes #544211 not crash.
2072 2009-10-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
2074 * dependencyobject.cpp: Emit overloads: ensure we unref the calldata
2075 when returning early.
2079 2009-10-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
2081 * mediaelement.h: Make SourceProperty nullable. Fixes #537849.
2083 * dependencyproperty.g.cpp: Regenerated.
2087 2009-10-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
2089 * pipeline-ui.cpp: Add checks against a null downloader, fixes #468491.
2093 2009-10-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
2095 * audio.cpp: AudioSource::Dispose: lock around field accesses,
2096 and move the fields into a local variables so we can clean up
2097 with the mutex unlocked.
2101 2009-10-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
2103 * audio.cpp: AudioSource::IsQueueEmpty: it's pretty common to
2104 end up with a null stream, so don't spam the console with warnings.
2108 2009-10-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
2110 * mediaplayer.cpp: Open: seek to the initial pts.
2112 * playlist.cpp: When we re-open a media after stopping it, don't do
2113 it async since we might end up doing things in the wrong order.
2119 2009-10-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
2121 * deployment.cpp|h: Make shutdown an async/iterative process to ensure
2122 we don't accidentally get deadlocked while shutting down. Change shutdown
2123 sequence to first ensure no media threads are running, then do managed
2124 shutdown unloading the appdomain, and do nothing more until the appdomain
2125 has unloaded successfully (calling mono_domain_finalize which we used to is
2126 very wrong since it assumes all managed threads have been aborted, when only
2127 mono_domain_unload actually aborts threads - we ended up executing code in
2128 other managed threads with freed objects everywhere). Added an
2129 AppDomainUnloadedEvent so that the plugin can know when the appdomain has
2130 been unloaded and free itself. Dispose the types when the deployment is
2131 disposed, and delete them types when the deployment is destroyed. This way we
2132 make sure that the types are available until all the objects have been
2133 deleted. This also fixes different code paths / deletion points
2134 depending on whether we built with object tracking or not. This also
2135 removes the need for the is_dead variable. Maintain a counter of the number of
2136 deployments alive so that we know when runtime can be shut down.
2138 * dependencyobject.cpp: Don't emit events while we're shutting down.
2139 Deployment::is_dead is dead now, remove checks, replaced with Deployment::
2140 IsShuttingDown wherever applicable. Only emit DestroyedEvent on the main
2143 * dependencyproperty.cpp|h: Add a Dispose method which clears out any
2144 refs the default value might have (but keep a default value, we depend
2145 in some places on having a default value).
2147 * type.cpp: Dispose: call Dispose on the DP.
2150 * type.h.in: Remove 'disposed' field: no longer needed.
2154 2009-10-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
2156 * pipeline.cpp|h: Media::Stop[Async]: when called clear all buffers.
2157 This ensures that we don't keep the (default) 5s buffer of media in
2158 memory while stopped. Add lots of checks for a stopped media so that
2159 we don't refill the buffer after clearing it.
2160 Makes MS DRT #238, #239 and #244 require a lot less memory.
2162 * playlist.cpp: Call Play on the media too when we start playing.
2164 2009-10-05 Jeffrey Stedfast <fejj@novell.com>
2166 * runtime.cpp (HandleUIKeyPress): Silverlight 2.0 does not
2167 silently drop repeated key-press events.
2171 2009-10-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
2173 * pipeline.cpp: MediaFrames can be deleted on any thread. Fixes an
2174 issue where we'd create more MediaFrames than the delayed unref
2175 mechanism could free, so we'd run out of memory.
2179 2009-10-05 Alan McGovern <amcgovern@novell.com>
2183 * dependencyobject.h:
2184 * dependencyobject.cpp: Store the starting_generation and
2185 only_unemitted flags on the EmitContext so that the values
2186 are used when we call DoEmitCurrentContext from managed
2189 2009-10-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
2191 * pipeline.cpp|h: IMediaDemuxer::FillBuffers, don't enqueue a request
2192 if we there is already a request pending.
2196 2009-10-01 Jeffrey Stedfast <fejj@novell.com>
2198 Gets drt #412 a bit closer to passing.
2200 * textblock.cpp (TextBlock): Initialize our own FontDescription
2201 needed so we can tell the layout engine what the base font to use
2202 for calculating BlockLineHeight proportions.
2203 (TextBlock): Delete our FontDescription.
2204 (UpdateFontDescription): New method to update our own
2205 FontDescription and notify the layout engine of any changes.
2206 (UpdateLayoutAttributes): Call UpdateFontDescription().
2207 (UpdateFontDescriptions): Same.
2209 * layout.cpp (TextLayout::SetBaseFont): Calculate the proportional
2210 distance to the baseline given the base font.
2211 (TextLayout::OverrideLineHeight): Don't check line_height against
2212 NAN, check it against 0 instead. NAN means that we use the
2213 containing TextBlock's font height as a base.
2214 (TextLayout::LineHeightOverride): New method to figure out the
2215 line height value to use when using BlockLineHeight strategy.
2216 (TextLayout::DescendOverride): Given the overridden LineHeight,
2217 calculate the baseline offset using the proportional distance
2218 calculated in SetBaseFont().
2219 (TextLayout::Layout): Instead of using 0 as the overridden line
2220 descent, use the value calculated from DescendOverride(). Also use
2221 LineHeightOverride() instead of line_height directly.
2225 2009-10-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
2227 * pipeline-asf.cpp: MmsPlaylistEntry: clear the queue when we're
2228 disposed, that ensures that the queue is cleared up even if the
2229 MmsPlaylistEntry itself leaks.
2233 2009-10-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
2235 * pipeline-asf.cpp: Fix some potential leaks.
2239 2009-10-01 Jeffrey Stedfast <fejj@novell.com>
2241 * fonts.h (class TextFont): Make some of the getters const.
2245 2009-10-01 Andreia Gaita <avidigal@novell.com>
2247 * utils.cpp: if there's no Application instance, use the root temp
2248 dir to store, and track the created path directly on deployment so
2249 it can be cleared up in the end.
2253 2009-10-01 Alan McGovern <amcgovern@novell.com>
2255 * runtime.cpp: WalkTreeForLoaded has already been called on
2256 this element as part of the previous call to AttachLayer.
2258 2009-10-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
2260 * dependencyobject.h: Make GetUnsafeDeployment available always, media
2261 code might use it to get the deployment of the object instead of the
2264 * pipeline.cpp|h: Added WaitForCompletion to MediaThreadPool: allows a
2265 deployment instance to wait until there is nothing more executing in
2266 the thread pool regarding that deployment.
2268 * deployment.cpp|h: Maintain a list of all the Media instances created
2269 and dispose them when the deployment shuts down.
2273 2009-10-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
2275 * dependencyobject.cpp|h: EventObject::CanEmitEvents: added to avoid
2276 some code duplication in all our Emit methods.
2280 2009-10-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
2282 * audio.cpp: Dispose: make sure the audio really stops.
2286 2009-10-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
2288 * pipeline.cpp|h: ExternalDemuxer: Make writes to the callbacks
2289 thread-safe, since managed code may clear them up on the finalizer
2292 * cbinding.cpp|h: Regenerated.
2296 2009-09-30 Alan McGovern <amcgovern@novell.com>
2298 * runtime.cpp: If the surface has been zombified, don't handle
2299 the plugin focus in/out event. r: toshok
2301 2009-09-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
2303 * pipeline.cpp: IMediaDecoder::ReportDecodeFrameCompleted: add some
2306 2009-09-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
2308 * pipeline.cpp: IMediaDemuxer::ReportGetFrameCompleted: always do the
2309 decoding async. This ensures we don't reenter managed code when the
2310 frame comes from MediaStreamSource.
2314 2009-09-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
2316 * pipeline.cpp|h: MediaThreadPool: Don't use a globally allocated list
2317 for the queue, it may blow up when the process shuts down because the
2318 media thread might still be running when the list is destroyed causing
2323 2009-09-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
2325 * pipeline.cpp|h: MediaThreadPool: Add a max_threads const variable
2326 specifying the max number of threads, and use static memory for all of
2331 2009-09-30 Andreia Gaita <avidigal@novell.com>
2333 * deployment.[h|cpp]: Added TrackPath/UntrackPath to track temporary
2334 paths that get created in applications, so they can be released even
2335 if the Application instance leaks.
2337 * application.[h|cpp]: Added GetResourceRoot, returns resource_root,
2338 which keeps the base temp path of all files and resources for an
2341 * utils.cpp: use the Application GetResourceRoot as a base path for
2342 all temporary files.
2346 2009-09-30 Alan McGovern <amcgovern@novell.com>
2348 * runtime.cpp: When the plugin gets focus or loses focus, we
2349 have to emit the corresponding event on the currently
2350 focused element - not on the TopLevel. Note that if we focus
2351 out of the plugin, we emit LostFocus on the currently
2352 focused element but do *not* set the current focused element
2353 to null. Lastly when handling the mouse down event, we
2354 should not try to focus elements in the hitlist from the
2355 mouse click. This mostly fixes DRT 745. r: rolf
2357 2009-09-30 Alan McGovern <amcgovern@novell.com>
2361 * validators.cpp: IsInputMethodEnabled defaults to true and
2362 also needs a validator to ensure that it's only set on
2364 * dependencyproperty.g.cpp: IsInputMethodEnabled defaults to
2365 true and also needs a validator to ensure that it's only set
2368 2009-09-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
2370 * pipeline.cpp: Reset more state when a seek completes.
2374 2009-09-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
2376 * pipeline.cpp: Media::EnqueueWork: we need to lock around the entire
2377 call to MediaThreadPool::AddWork, since otherwise we have a race
2378 condition between setting the is_disposed variable to true and adding
2383 2009-09-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
2385 * mediaelement.cpp: Stop immediately when the we're deattached from the
2390 2009-09-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
2392 * deployment.h: Fix typo in comment.
2394 2009-09-29 Chris Toshok <toshok@ximian.com>
2396 * dependencyobject.cpp (EventObject::StartEmit): when we copy the
2397 list of closures to invoke, don't copy ones that are
2398 pending_removal. This fixes the crash due to re-entering in drt
2399 502 in a way that doesn't break the existing plugin behavior.
2400 (EventObject::DoEmitCurrentContext): revert the
2401 !closure->pending_removal change that caused plugin event listener
2402 breakage in the xaml tests.
2406 2009-09-29 Larry Ewing <lewing@novell.com>
2408 * border.cpp (InsideObject): improve Border::InsideObject to
2409 handle the actual drawn bounds.
2415 2009-09-29 Jeffrey Stedfast <fejj@novell.com>
2417 * textbox.cpp (PostOnKeyDown): Renamed from OnCharacterKeyDown()
2418 to be more consistent with the managed method names. Don't set
2419 Handled to true, since anything that makes it this far should also
2424 2009-09-28 Andreia Gaita <avidigal@novell.com>
2426 * application.cpp, bitmapimage.cpp,
2427 file-downloader.cpp, fontmanager.cpp,
2428 pipeline-ui.cpp, pipeline.cpp,
2429 utils.cpp: uniform usage of glib io calls
2433 2009-09-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
2435 * window-gtk.cpp: gtk_window_destroy can cause reentry, so ensure we leave
2436 the current deployment as it was when returning from it.
2440 2009-09-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
2442 * mediaelement.cpp|h: When receiving markers from the pipeline, store them
2443 in a general list and only move them into a TimelineCollection just before
2444 checking if they are to be emitted. This avoids locking a mutex during a
2445 potentially large time, as well as trying to emit an event on the pipeline
2446 thread (collection changed event when adding markers to the
2447 TimelineCollection).
2451 2009-09-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
2453 * audio.cpp: Follow refcounting rules with the AlsaPlayer.
2457 2009-09-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
2459 * audio.cpp: AudioPlayer::Shutdown: no need to unref with the mutex
2460 locked. CreateInstance: Add a couple of comments.
2464 2009-09-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
2466 * deployment.cpp|h: No need for the downloaders field to be a pointer
2467 when it'll always exist. Move the downloader abort code to the node's
2468 destructor, this way we ensure that the downloader is always aborted.
2469 Reinitialize: clear the downloaders list instead of creating a new one
2470 (and leaking the previous one).
2474 2009-09-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
2476 * audio.cpp|h: AudioPlayer can't derive from EventObject, since
2477 EventObject is tied to a particular deployment, while AudioPlayer is
2478 process-wide. Implement simple refcounting in AudioPlayer to work
2479 around this and keep the old behaviour.
2484 * type-generated.cpp: Regenerated.
2488 2009-09-28 Chris Toshok <toshok@ximian.com>
2490 * frameworkelement.h|cpp (class FrameworkElement): remove the
2491 empty SetValueWithErrorImpl implementation.
2495 2009-09-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
2497 * pipeline.cpp: Make Media::OpenAsync really async. Fixes issues with
2498 MS DRT #244 (and possibly others) where we'd end up raising the
2499 MediaOpened event while still parsing xaml (the test didn't have time
2500 to attach an handler to the event before it was raised).
2504 2009-09-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
2506 * mediaelement.cpp: Stop when we're detached. This helps with a
2507 resource "leak": if the user code just removes the mediaelement from
2508 the visual tree and forgets about it, we'd continue playing until the
2509 gc kicks in and finds out it should free the mediaelement.
2513 2009-09-28 Chris Toshok <toshok@ximian.com>
2515 * dependencyobject.cpp (EventObject::DoEmitCurrentContext): don't
2516 call closure functions when the closure is pending removal. if
2517 it's a managed delegate it will likely have already been
2518 collected. This fixes the regression of drt #502.
2522 2009-09-24 Stephen Shaw <sshaw@decriptor.com>
2524 * multiscaleimage.cpp (MultiScaleImage::GetZoomAnimationEndPoint):
2525 Method now returns a value
2529 2009-09-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
2531 * mediaelement.cpp|h: Remove unused methods.
2535 2009-09-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
2537 * pipeline.cpp: Remove an unused variable (fixing a compiler warning).
2541 2009-09-23 Chris Toshok <toshok@ximian.com>
2543 * uielement.cpp (UIElement::EmitGotFocus): this event passes
2544 RoutedEventArgs, not EventArgs.
2545 (UIElement::EmitLostFocus): same.
2547 * eventargs.h|cpp (class MouseButtonEventArgs): add this type, and
2548 make both MouseButtonEventArgs and MouseWheelEventArgs subclass
2549 from MouseEventArgs. Move MouseEventArgs::GetButton and
2550 ::GetClickCount to MouseButtonEventArgs.
2552 * runtime.cpp (Surface::CreateArgsForEvent): for the button
2553 events, create a MouseButtonEventArgs.
2555 * textbox.h|cpp: MouseEventArgs -> MouseButtonEventArgs for all
2556 button handling methods.
2558 * value.h, type.h, type-generate.cpp, cbinding.h|cpp: regen.
2562 2009-09-23 Chris Toshok <toshok@ximian.com>
2564 * uielement.h (class UIElement): add event metadata.
2566 * uielement.cpp (UIElement::OnLoaded): pass RoutedEventArgs to the
2568 (UIElement::ClearLoaded): same with Unloaded.
2570 * type-generated.cpp, type.h, value.h: regen.
2572 * transform.h (class Matrix): add event metadata.
2574 * timeline.h (class TimelineGroup): add event metadata.
2576 * textbox.h (class TextBox): add event metadata.
2577 (class PasswordBox): add event metadata.
2579 * stylus.h (class StylusPoint): add event metadata.
2581 * runtime.cpp (Surface::PerformReleaseCapture): we need to clear
2582 captured/pendingReleaseCapture before emitting the event,
2583 otherwise we could get into an infinite loop between handler and
2584 ReleaseMouseCapture.
2585 (Surface::EmitEventOnList): remove the ctx arg to DoEmit.
2587 * namescope.h (class NameScope): add event metadata.
2589 * multiscaleimage.h (class MultiScaleImage): add event metadata.
2591 * mediaelement.h (class MediaElement): add event metadata.
2593 * media.h (class MediaBase): add event metadata.
2595 * frameworkelement.h (class FrameworkElement): add event metadata.
2597 * deployment.h (class Deployment): add event metadata.
2599 * dependencyproperty.h: remove PropertyChangedEventArgs from here.
2601 * eventargs.h: and put it here.
2603 * dependencyproperty.h|cpp: replace the emitting count with a
2604 stack of EmitContexts. This is since the managed layer calls a
2605 function to actually perform the emit, and the managed code
2606 doesn't have access to the context.
2607 (AddOnEventHandler,RemoveOnEventHandler): new methods so that we
2608 can replace the normal emit machinery with a delegate into managed
2609 that calls the OnEvent method.
2610 (StartEmit): push the new context onto the stack
2611 (DoEmit): if there's an on_event handler, call that and let it do
2612 the work. otherwise call DoEmitCurrentContext.
2613 (DoEmitCurrentContext): move the actual invoking of event closures
2615 (FinishEmit): pop the context off the stack.
2616 (DependencyObject::ProviderValueChanged): we have to allocate
2617 PropertyChangedEventArgs on the heap now that it's refcounted.
2618 (DependencyObject::NotifyListenersOfPropertyChange): same.
2619 (DependencyObject::collection_item_changed): same.
2621 * control.h (class Control): add event metadata.
2623 * control.cpp (Control::OnPropertyChanged): when emitting
2624 IsEnabledChangedEvent, and pass the PropertyChangedEventArgs.
2626 * collection.h (class Collection): add event metadata.
2628 * brush.h (class ImageBrush): add event metadata.
2630 * bitmapsource.h (class BitmapSource): add event metadata.
2632 * bitmapimage.h (class BitmapImage): add event metadata.
2634 * application.h (class Application): add event metadata.
2636 * cbinding.h|cpp: regen.
2638 r: spouliot, andriea
2640 2009-09-23 Stephane Delcroix <sdelcroix@novell.com>
2642 * multiscaleimage.cpp: fix the vp_h computation. vp_h is
2643 vp_w *msi_h/msi_w, NOT vp_w*msi_w/msi_h !
2645 2009-09-21 Stephane Delcroix <sdelcroix@novell.com>
2647 * multiscaleimage.h|cpp: stop the animations when setting
2648 UseSprings to false. Set the values to the target values
2649 of the animations too.
2653 2009-09-18 Jackson Harper <jackson@ximian.com>
2655 * xaml.cpp|h: Use flags passed to createfromstring now for
2656 validating templates and importing the default namespace.
2658 * collection.cpp|h: Implement a resource dictionary collection,
2659 this is a collection of dictionaries used for the
2660 MergedDictionaries property of ResourceDictionaries
2661 * resources.cpp|h: Implement the merged dictionaries property and
2662 check them when looking up items in a dictionary.
2663 * dependencyproperty.g.cpp:
2664 * types-generated.cpp:
2665 * cbinding.c|h: regen
2667 2009-09-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
2669 * pipeline-asf.cpp: MmsPlaylistEntry::WritePacket: actually fetch the
2670 media before asserting that it isn't null.
2674 2009-09-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
2676 * pipeline.cpp: When filling buffers, treat a buffering_time of 0 as a
2677 buffering_time of 1 ms, otherwise we'll do nothing at all since we have
2678 the requested amount of buffer (nothing at all), but buffering progress
2679 is is still at 0% (since we didn't buffer anything). Don't change the
2680 buffering progress calculation, since playback would fail (there would
2681 be nothing to play).
2685 2009-09-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
2687 * mms-downloader.cpp: Remove old debugging code that was stripping out
2688 everything after a ? in a url.
2692 2009-09-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
2694 * xaml.cpp: Honor the debug configuration option instead of enabling it
2697 * glyphs.cpp: Move debug code into conditional expression.
2699 * debug.h: DEBUG is resolved to nothing at all in release builds, so
2700 when checking if debug is defined in complex expressions we need to
2701 use 'defined (DEBUG)', since otherwise the expression becomes bogus.
2702 Also Move #include "runtime.h" outside of the conditional code, this
2703 way we don't have different include requirements in other headers
2704 depending on debug/release configuration.
2708 2009-09-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
2710 * dependencyobject.cpp|h: SetCurrentDeployment: add a parameter
2711 specifying whether the current thread should be registered with the
2714 This fixes a minor catch with the media threads: they need to register
2715 the current thread with the deployment before calling
2716 SetCurrentDeployment, but they can't call GetDeployment to get the
2717 deployment to register the thread with before calling
2718 SetCurrentDeployment since it would trigger a deployment mis-matched
2721 * pipeline.cpp|h: Add a thread pool to manage media threads instead of
2722 creating one thread per Media instance.
2724 * pipeline-asf.cpp: Updated according to Media API changes.
2728 2009-09-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
2730 * mediaplayer.cpp: GetVolume: Get the AudioSource instance before using
2735 2009-09-16 Larry Ewing <lewing@novell.com>
2737 * multiscaleimage.cpp (OnPropertyChanged): chain up to MediaBase
2738 not DependencyObject so that property changes actually work.
2742 2009-09-14 Jeffrey Stedfast <fejj@novell.com>
2744 * deployment.cpp (Initialize): Disable MONO_IOMAP=case.
2746 * application.cpp (GetResourceAsPath): ExtractAll using
2747 CanonModeResource (everything gets lowercased).
2749 * xap.cpp (Unpack): ExtractAll using CanonModeXap (everything but
2750 .dll's get lowercased).
2751 (xap_create_from_file): Canonicalize the AppManifest.xaml file
2754 * utils.cpp (CanonicalizeFilename): Now takes a tri-state mode
2755 argument to specify whether it is canonicalizing a Xap file, a
2756 resource name, or just fixing path separators. When in Xap mode,
2757 don't downcase Dll base names.
2758 (ExtractAll): When extracting a Xap, symlink a fully lowercased
2759 filename to the unmodified .dll name.
2763 2009-09-16 Larry Ewing <lewing@novell.com>
2765 * tilesource.h: make tileblendtime unamanaged so we can use it
2766 when creating the fade animation.
2768 * multiscaleimage.cpp (Render): use the duration from the
2769 tilesource for the fade animation. This probably needs to listen
2770 to change events but more testing is required.
2774 2009-09-16 Larry Ewing <lewing@novell.com>
2776 * style.h: make IsSealed field internal.
2778 2009-09-16 Sebastien Pouliot <sebastien@ximian.com>
2780 * messagebox.h: Remove tab to please the generator
2784 2009-09-16 Sebastien Pouliot <sebastien@ximian.com>
2786 * deepzoomimagetilesource.cpp: don't leak get_resource_aborter
2791 2009-09-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
2793 * pipeline.cpp|h: ProgressiveSource::Dispose: we can only abort the
2794 resource loader from the main thread.
2798 2009-09-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
2801 * bitmapimage.cpp: don't leak get_res_aborter.
2805 2009-09-16 Stephane Delcroix <sdelcroix@novell.com>
2807 * multiscaleimage.h|cpp: StopDownloading () abort and clean the
2808 downloaders. Call it from the dtor, InvalidateTileLayer and
2809 OnSourcePropertyChanged. Should prevent drt874 from randomly failing.
2813 2009-09-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
2815 * pipeline.cpp: MediaClosure: remove the 'finished' field (never used)
2816 and add a 'description' field to ease understanding of what is going
2821 2009-09-15 Sebastien Pouliot <sebastien@ximian.com>
2823 * messagebox.h: Workaround old gtk+ lacking GTK_MESSAGE_OTHER
2827 2009-09-15 Larry Ewing <lewing@novell.com>
2829 * control.h: Mark IsTemplateItem as internal.
2831 * mediaelement.h: mark DownloadProgress as readonly.
2833 * multiscaleimage.h: make AspectRatio, IsDownloading and IsIdle
2836 2009-09-15 Sebastien Pouliot <sebastien@ximian.com>
2838 * messagebox.cpp|h: New. MessageBox implementation
2839 * Makefile.am: Add new files to the build
2843 2009-09-15 Stephane Delcroix <sdelcroix@novell.com>
2845 * multiscaleimage.cpp: set the surface pointer to NULL after
2850 2009-09-16 Chris Toshok <toshok@ximian.com>
2852 * dependencyobject.cpp (EventObject::Emit): don't return early
2853 when we have a pre-emit handler, even if the list is empty. Also,
2854 don't do the pre-emit handler here.
2855 (EventObject::DoEmit): instead do it here.
2857 2009-09-14 Chris Toshok <toshok@ximian.com>
2859 * xaml.cpp (XamlLoader::CreateFromFileWithError): use the new
2860 ParserErrorEventArgs overload to MoonError::FillIn to simplify
2862 (XamlLoader::CreateFromStringWithError): same.
2863 (XamlLoader::HydrateFromStringWithError): same.
2865 * pipeline-asf.cpp (MmsSource::DownloadFailedHandler): pass a
2866 MoonError to the ErrorEventArgs, instead of the multiple args.
2868 * playlist.cpp: same.
2870 * asf/asf.cpp: same.
2872 * downloader.cpp (Downloader::SendInternal): pass a MoonError to
2873 the ErrorEventArgs, instead of the multiple args.
2874 (Downloader::NotifyFailed): same.
2876 * runtime.cpp (Surface::EmitError): same.
2878 * mediaelement.cpp (MediaElement::ReportErrorOccurred): same.
2880 * pipeline.cpp: same.
2882 * dependencyobject.cpp (DependencyObject::SetValueWithErrorImpl):
2883 we need to free the string we pass to MoonError::FillIn now that
2885 (DependencyObject::IsValueValid): same.
2886 (DependencyObject::RegisterAllNamesRootedAt): same.
2887 (DependencyObject::ReadLocalValueWithError): same.
2888 (DependencyObject::GetValueWithError): same.
2889 (DependencyObject::GetValueNoDefaultWithError): same.
2890 (DependencyObject::SetParent): same.
2892 * brush.h|cpp (ImageBrush::image_failed): pass in the calldata to
2894 (ImageBrush::ImageFailed): pass the ImageErrorEventArgs on to our
2895 ImageFailedEvent, after reffing them.
2897 * bitmapimage.cpp (BitmapImage::DownloaderComplete): if there was
2898 an error, we need to fill in the moon error with the appropriate
2899 exception, code, and msg. the calldata to the Emit call is now an
2900 ImageErrorEventArgs again, which we construct using the
2902 (BitmapImage::DownloaderFailed): same sort of change.
2903 (BitmapImage::CreateLoader): same.
2905 * bitmapimage.h (class BitmapImage): rename "error" field to
2906 "gerror" to make it clearer what it is in the code.
2908 * enums.h (enum ErrorEventArgsType): rename ErrorType to this so
2909 we get a little more indication of where it comes from. this enum
2910 is not long for this world, if I can help it.
2912 * media.h|cpp (Image::image_failed): pass in the calldata to
2914 (Image::ImageFailed): pass the ImageErrorEventArgs on to our
2915 ImageFailedEvent, after reffing them.
2917 * error.h|cpp: move all the eventargs subclasses from here
2919 (class MoonError): add a non-empty ctor, copy ctor and operator=.
2920 Also, remove the char* vs. const char* apis. make them all const
2921 char*, and dup the passed in string. Lastly, add a FillIn
2922 overload that takes a ParserErrorEventArgs.
2924 * eventargs.h|cpp: the ErrorEventArgs subclasses now keep some
2925 info in an embedded MoonError.
2926 (ExceptionRoutedEventArgs): remove this class. Nothing in
2927 unmanaged code uses it.
2929 2009-09-14 Sebastien Pouliot <sebastien@ximian.com>
2931 * xaml.cpp: remove dead code
2935 2009-09-14 Chris Toshok <toshok@ximian.com>
2937 * xaml.cpp (XamlLoader::CreateFromFileWithError): use the new
2938 ParserErrorEventArgs overload to MoonError::FillIn to simplify
2940 (XamlLoader::CreateFromStringWithError): same.
2941 (XamlLoader::HydrateFromStringWithError): same.
2943 * pipeline-asf.cpp (MmsSource::DownloadFailedHandler): pass a
2944 MoonError to the ErrorEventArgs, instead of the multiple args.
2946 * playlist.cpp: same.
2948 * asf/asf.cpp: same.
2950 * downloader.cpp (Downloader::SendInternal): pass a MoonError to
2951 the ErrorEventArgs, instead of the multiple args.
2952 (Downloader::NotifyFailed): same.
2954 * runtime.cpp (Surface::EmitError): same.
2956 * mediaelement.cpp (MediaElement::ReportErrorOccurred): same.
2958 * pipeline.cpp: same.
2960 * dependencyobject.cpp (DependencyObject::SetValueWithErrorImpl):
2961 we need to free the string we pass to MoonError::FillIn now that
2963 (DependencyObject::IsValueValid): same.
2964 (DependencyObject::RegisterAllNamesRootedAt): same.
2965 (DependencyObject::ReadLocalValueWithError): same.
2966 (DependencyObject::GetValueWithError): same.
2967 (DependencyObject::GetValueNoDefaultWithError): same.
2968 (DependencyObject::SetParent): same.
2970 * brush.h|cpp (ImageBrush::image_failed): pass in the calldata to
2972 (ImageBrush::ImageFailed): pass the ImageErrorEventArgs on to our
2973 ImageFailedEvent, after reffing them.
2975 * bitmapimage.cpp (BitmapImage::DownloaderComplete): if there was
2976 an error, we need to fill in the moon error with the appropriate
2977 exception, code, and msg. the calldata to the Emit call is now an
2978 ImageErrorEventArgs again, which we construct using the
2980 (BitmapImage::DownloaderFailed): same sort of change.
2981 (BitmapImage::CreateLoader): same.
2983 * bitmapimage.h (class BitmapImage): rename "error" field to
2984 "gerror" to make it clearer what it is in the code.
2986 * enums.h (enum ErrorEventArgsType): rename ErrorType to this so
2987 we get a little more indication of where it comes from. this enum
2988 is not long for this world, if I can help it.
2990 * media.h|cpp (Image::image_failed): pass in the calldata to
2992 (Image::ImageFailed): pass the ImageErrorEventArgs on to our
2993 ImageFailedEvent, after reffing them.
2995 * error.h|cpp: move all the eventargs subclasses from here
2997 (class MoonError): add a non-empty ctor, copy ctor and operator=.
2998 Also, remove the char* vs. const char* apis. make them all const
2999 char*, and dup the passed in string. Lastly, add a FillIn
3000 overload that takes a ParserErrorEventArgs.
3002 * eventargs.h|cpp: the ErrorEventArgs subclasses now keep some
3003 info in an embedded MoonError.
3004 (ExceptionRoutedEventArgs): remove this class. Nothing in
3005 unmanaged code uses it.
3007 2009-09-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
3010 * audio-pulse.cpp|h: Delay pulse/alsa initialization until we actually
3011 need to play something, and clean up when we stop playing audio.
3013 * mutex.h: Add support for recursive mutexes.
3017 2009-09-14 Stephane Delcroix <sdelcroix@novell.com>
3019 * deepzoomimagetilesource.h:
3020 * multiscaleimage.h|cpp:
3022 * uielement.h: drop some manually written cbindings in favor of
3025 * cbinding.h|cpp: regen
3029 2009-09-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
3031 * audio.cpp: It should be safe to delete audio sources on any
3036 2009-09-11 Larry Ewing <lewing@novell.com>
3038 * deployment.cpp, deployment.h: add OutOfBrowserSettings,
3039 ExternalPartCollection, ExternalPart and ExtensionPart to allow
3044 2009-09-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
3046 * audio.cpp|h: Add AudioSource::GetMediaPlayerReffed and use it
3047 wherever we used to access the field directly. Fixes a very rare
3052 2009-09-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
3054 * pipeline-asf.cpp: Add a null check.
3058 2009-09-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
3060 * runtime.h: Fix typo in sanity message.
3062 2009-09-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
3064 * audio.cpp: WriteFull: have a local copy of the stream pointer,
3065 it may get changed on the main thread.
3069 2009-09-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
3071 * audio-alsa.cpp: AlsaSource::InitializeInternal: make sure we unref
3072 the audio stream in all code paths.
3076 2009-09-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
3078 * mediaelement.cpp: Dont ref/unref around the MarkerTimeout tick call,
3079 it should be safe since the tick call is removed upon destruction.
3083 2009-09-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
3085 * audio.cpp|h: Make AudioPlayer refcounted, and shutdown when the
3086 AudioPlayer is disposed due to refcounting reaching 0. This way
3087 we can keep the instance lock for as little time as possible
3088 (to do the ref), instead of during the entire Add/Remove calls,
3089 which may end up deadlocking deep inside pulse in rare circumstances
3090 (we try to add an audio source on one thread(requires a global pa lock)
3091 when removing another audio source on another thread as a response to
3092 an event from pa which may already have the global pa lock).
3097 * type-generated.cpp: Regenerated
3101 2009-09-11 Stephane Delcroix <sdelcroix@novell.com>
3103 * multiscaleimage.h|.cpp: DownloadTile () now takes a user_data
3104 pointer instead of subcache, layer, x and y. Avoids some tree waliking
3109 2009-09-11 Stephane Delcroix <sdelcroix@novell.com>
3111 * multiscaleimage.cpp: QTree: remove the QTreeNode alias, fix
3112 qtree_remove to take guint64 indices, qtree_next_sibling for
3117 2009-09-10 Jackson Harper <jackson@ximian.com>
3119 * namescope.h: Add an accessor for the names hashtable so we can
3120 use them in plugin-debug.
3124 2009-09-10 Jackson Harper <jackson@ximian.com>
3126 * xaml.cpp|h: Add flags to the callback data
3127 - Add a pinvoke function that allows propertys to be delayed in
3128 their set call until after the element is fully parsed. This
3129 allows things like adding elements to a Selector and setting its
3134 2009-09-10 Larry Ewing <lewing@novell.com>
3136 * multiscaleimage.cpp (RenderSingle): work around the cairo
3137 limitations by doing the viewport/msi intersection and clipping in
3142 2009-09-10 Stephane Delcroix <sdelcroix@novell.com>
3144 * multiscaleimage.cpp: drop 3 useless lines (the cairocontext we
3145 receive on Render is already clipped to the control size.
3146 Wrap the clipping to image size in a conditional to avoid clipping
3147 with really huge rectangles. That it a bug in cairo, as shown in
3148 drt 2013, 2014. In those cases, the rendering will (visually) leak
3149 for the low order layers.
3153 2009-09-09 Jackson Harper <jackson@ximian.com>
3155 * xaml.cpp: When we are setting attributes we want to set
3156 everything with a backing dependency property before we set things
3157 that require managed. We also delay the setting of attributes with
3158 an explicit managed namespace reference. NOTE: We dont delay
3159 setting attributes that have a DP but are forced into managed
3160 because of their type.
3161 - We can share SetUnknownAttribute functions because the default
3162 xmlns is inited to NULL.
3166 2009-09-09 Stephane Delcroix <sdelcroix@novell.com>
3168 * multiscaleimage.cpp: Clear () the SubImagesCollection on
3169 source changed. Speed things up when reusing the same MSI
3170 over and over with different sources. drt #2004 is now passing
3175 2009-09-08 Sebastien Pouliot <sebastien@ximian.com>
3177 * downloader.h, layout.h, list.h: Add missing virtual destructors
3181 2009-09-08 Chris Toshok <toshok@ximian.com>
3183 * provider.cpp (StylePropertyValueProvider::SealStyle): pass true
3184 for ProviderValueChanged's @set_parent.
3185 (InheritedPropertyValueProvider::PropagateInheritedProperty): pass
3186 true in the visual walking case, and false in the
3187 textblock->inline case.
3188 (PROP_ADD): pass true.
3189 (AutoCreatePropertyValueProvider::GetPropertyValue): pass true.
3190 (InheritedPropertyValueProvider::PropagateInheritedProperty):
3191 do a deep traversal of the tree, looking for children who have a
3192 mapped property from the changed one (MapPropertyToDescendant
3193 returns NULL if there's no mapping). Once we find a suitable
3194 descendant, call ProviderValueChanged on it with "true" for
3195 notify_listeners. This will take care of notifying further down
3196 the tree if need be, and we can skip that branch. For textblocks
3197 we also have to iterate over the inlines to propagate the property
3198 change notification.
3199 (InheritedPropertyValueProvider::PropagateInheritedPropertiesOnAddingToTree):
3200 traverse the entire subtree looking for classes which can inherit
3201 properties from above them. when we find one, get the inherited
3202 value. if it's non-null, notify that the property has changed,
3203 and keep trace of this property (we only notify once for a given
3204 subtree, since the normal ProviderValueChanged notifications will
3205 handle the rest for that property.)
3206 (walk_tree): this recursive function does the bulk of the work for
3207 ::PropagateInheritedPropertiesOnAddingToTree
3209 * dependencyobject.h|cpp (DependencyObject::ProviderValueChanged):
3210 add an additional argument (set_parent), which is true for every
3211 instant except when TextBox is propagating inherited brushes to
3212 its constituent inlines. In this case, the textbox is still the
3213 parent of the brush. At least for the time being. In a perfect
3214 world all the changed handling would live in the leaf
3215 nodes (i.e. in the Inlines themselves)
3216 (DependencyObject::ClearValue): track api change
3217 (DependencyObject::SetValueWithErrorImpl): same.
3218 (DependencyObject::GetValue): add an overload for allowing both
3219 starting and ending precedences, and implement the other two
3220 overloads in terms of it.
3221 (DependencyObject::GetValueSkippingPrecedence): remove, no longer
3224 * uielement.cpp (UIElement::ElementAdded): propagate all
3225 inheritable properties into the subtree we're adding, before
3230 2009-09-08 Stephane Delcroix <sdelcroix@novell.com>
3232 * downloader.h|.cpp: new MsiPolicy, like MediaPolicy but doesn't allow
3233 redirections (drt 874)
3235 * bitmapimage.h|bitmapimage.cpp: new SetDownloadPolicy () to override the
3238 * multiscaleimage.cpp: use MsiPolicy, fixes drt 874.
3242 2009-09-08 Sebastien Pouliot <sebastien@ximian.com>
3244 * downloader.cpp: Skip redirection check if the source url is a
3249 2009-09-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
3251 * bitmapimage.cpp: CreateLoader: we were relying on an DownloadFailed
3252 event from the downloader after cancelling a resource request, this
3253 is no longer true, so emit ImageFailed manually after calling Abort.
3257 2009-09-08 Stephane Delcroix <sdelcroix@novell.com>
3259 * deepzoomimagetilesource.cpp: don't render if any MSI extends
3260 is 0. avoid rendering an extra layer in some cases.
3264 2009-09-08 Stephane Delcroix <sdelcroix@novell.com>
3266 * deepzoomimagetilesource.h|cpp: replace downloader usage by
3267 Application::GetResource (). Parses the xml stream as it comes,
3268 instead of all at once.
3272 2009-09-07 Chris Toshok <toshok@ximian.com>
3274 * dependencyobject.cpp (DependencyObject::ProviderValueChanged):
3275 don't bail out early if both values are null, as the property
3276 might be AlwaysChange.
3277 (DependencyObject::ClearValue): same.
3281 2009-09-07 Stephane Delcroix <sdelcroix@novell.com>
3283 * multiscaleimage.cpp: the tileLayer parameter is not the number
3284 of layers to invalidate.
3288 2009-09-07 Stephane Delcroix <sdelcroix@novell.com>
3290 * multiscaleimage.cpp: InvalidateTileLayer no longer invalidate the
3291 full cache, but only the requested tiles.
3295 2009-09-05 Stephane Delcroix <sdelcroix@novell.com>
3297 * multiscaleimage.cpp:
3298 * deepzoomimagetilesource.h|cpp: do the same cleaning suffs (clearing
3299 the cache, aborting the downloaders, invalidating, etc...) on dzits
3300 urisource changed that is done on msi sourcechanged.
3304 2009-09-05 Stephane Delcroix <sdelcroix@novell.com>
3306 * multiscaleimage.h|cpp: code reshuffling and refactoring. Move
3307 the OnSourcePropertyChanged handling outside of OnPropertyChanged.
3308 No longer keep a source instance variable, as we can get it with
3313 2009-09-04 Larry Ewing <lewing@novell.com>
3315 * multiscaleimage.cpp (RenderSingle): clip our rendering to the
3316 image bounds so that when we are scaling up we don't end up with
3321 2009-09-04 Stephane Delcroix <sdelcroix@novell.com>
3323 * utils.h|cpp: add a void* arg to the Cancellable api
3325 * application.cpp: remove the downloader notifications on
3328 2009-09-04 Stephane Delcroix <sdelcroix@novell.com>
3330 * multiscaleimage.cpp: on source change, don't only Abort() the
3331 dlders, but also reset the internal state of the dlders to Free
3335 2009-09-03 Stephane Delcroix <sdelcroix@novell.com>
3337 * multiscaleimage.cpp: reset the Viewport to its default values
3338 on source change. Eventually fixes drt#511.
3342 2009-09-03 Jeffrey Stedfast <fejj@novell.com>
3344 * textbox.h: Nuke the CallInitialize metadata from TextBox.
3346 2009-09-03 Stephane Delcroix <sdelcroix@novell.com>
3348 * deepzoomimagetilesource.h: add Generate* attributes
3350 2009-09-03 Stephane Delcroix <sdelcroix@novell.com>
3352 * multiscaleimage.h: drop the GenrateJSBinding attributes
3354 2009-09-03 Stephane Delcroix <sdelcroix@novell.com>
3357 * deepzoomimagetilesource.h|cpp: remove a hack in the parser, and
3358 move it to the DZITS ctor. DRTs (509 and 511) and some sites shows
3359 that we have to strip an eventual leading / on ctor but not on
3362 2009-09-02 Andreia Gaita <avidigal@novell.com>
3364 * dependencyobject.cpp: move the storage cleanup to Dispose, they
3365 will need to invoke handlers and other things that require the
3366 object to still be alive. fixes crash on drt 109
3370 2009-09-02 Jackson Harper <jackson@ximian.com>
3372 * dependencyproperty.cpp: If the explicitly mentioned type does
3373 not contain the property, try looking for the property on the
3374 current lookup obejct. Allows things like (UIElement.Height) on a
3379 2009-09-02 Jeffrey Stedfast <fejj@novell.com>
3381 * textblock.cpp (TextBlock::OnCollectionChanged): Explicitly call
3382 UpdateLayoutAttributes(). We can't rely on it being called as a
3383 result of setting the Text property since the overall Text
3384 property value might not have changed.
3385 (TextBlock::OnCollectionItemChanged): Same here.
3386 (TextBlock::OnPropertyChanged): Same for when the Inlines property
3387 changes. In the FontSource case, don't set invalidate to
3388 false. Also set dirty to true.
3389 (SetTextInternal): Changed to return void, no need to return bool
3394 2009-09-01 Jeffrey Stedfast <fejj@novell.com>
3396 * layout.cpp (TextLayoutGlyphCluster::Render): If the background
3397 brush is null, don't bother drawing a background.
3401 2009-09-01 Jeffrey Stedfast <fejj@novell.com>
3403 * layout.cpp (TextLayoutGlyphCluster::Render): If the Foreground
3404 brush is null, don't render the text.
3408 2009-09-01 Sebastien Pouliot <sebastien@ximian.com>
3410 * utils.cpp (CopyFileTo): Close the destination file handle if
3411 the source (filename) cannot be opened.
3415 2009-09-01 Sebastien Pouliot <sebastien@ximian.com>
3417 * uielement.cpp (UIElement::Paint): Don't leak a copy of the
3418 region when *not* using FTB rendering.
3422 2009-09-01 Larry Ewing <lewing@novell.com>
3424 * frameworkelement.cpp: clear LastRenderSize before we emit so
3425 that we don't end up in a possible recursion.
3427 Fixes http://www.worldwidetelescope.org/webclient/
3431 2009-09-01 Sebastien Pouliot <sebastien@ximian.com>
3433 * xaml.cpp: Fix DRT355 (broken at r140756) to report the "right"
3434 error code when an invalid xap file is encoutered.
3438 2009-08-31 Sebastien Pouliot <sebastien@ximian.com>
3440 * debug.cpp: Delete frame if we're not using it in the loop
3441 * resources.cpp: Don't leak Value instance on error
3445 2009-08-30 Andreia Gaita <avidigal@novell.com>
3449 * animation.[h|cpp]: rename TeardownClockGroup to TeardownClock and
3450 move it to the Timeline class so all timelines can clear their clocks.
3451 Removed private root_clock, all timelines should use the timeline
3454 * timeline.[h|cpp]: TeardownClock removes the clock from the parent
3455 ClockGroup and clears the ref on the clock so it can be destroyed
3456 (which in turn will release the ref on the timeline so it too gets
3458 DispatcherTimer doesn't have to destroy it's clock, the timeline
3459 dispose takes care of that. Added TeardownClock for DispatcherTimer
3460 so it stops the clock before disposing.
3461 Removed private root_clock, all timelines should use the timeline
3464 * clock.[h|cpp]: Added Dispose to Clock and ClockGroup. The
3465 group Dispose goes down the hierarchy of clocks and starts clearing
3466 clocks (via timeline TeardownClock) from bottom to top, so
3467 everything is guaranteed to die before the root clock gets
3470 * timemanager.cpp: Dispose root clock before releasing it
3474 2009-08-30 Andreia Gaita <avidigal@novell.com>
3476 * textblock.cpp: drop the run reference, it's already reffed on the
3481 2009-08-28 Alan McGovern <amcgovern@novell.com>
3485 * contentcontrol.cpp: ContentControl is not in charge of
3486 expanding its content template, the users of ContentControl
3487 have to do that. When applying a ControlTemplate, if it
3488 expands to an empty element or one which is not a UIElement,
3489 we ignore the template and instead apply the default
3492 2009-08-27 Jeffrey Stedfast <fejj@novell.com>
3494 * textbox.cpp (TextBoxBase::Initialize): Don't listen for Focus or
3495 Mouse events anymore (except the special internal MultiClick
3496 event). Managed code will now call our public On$Event() methods
3498 (TextBoxBase::OnKeyUp): Don't ever set args.Handled to
3499 true. Doesn't seem like SL ever does.
3503 2009-08-27 Stephane Delcroix <sdelcroix@novell.com>
3505 * tilesource.h: rely on the generator for internal properties.
3508 * deepzoomimagetilesource.cpp: use the accesors instead of the
3511 2009-08-27 Andreia Gaita <avidigal@novell.com>
3513 * dependencyobject.cpp: list should only be cleared, not destroyed,
3514 storage_hash still needs it
3518 2009-08-26 Chris Toshok <toshok@ximian.com>
3520 * xaml.cpp (XamlParserInfo::ClearBuffer): set buffer to NULL after
3525 2009-08-16 Chris Toshok <toshok@ximian.com>
3527 * value.h.in, value.cpp: remove Value::Set. it's unnecessary.
3529 * validators.cpp (Validators::BalanceValidator): use the
3530 assignment operator instead of ::Set, which no longer exists.
3531 (Validators::VolumeValidator): same.
3532 (Validators::CursorValidator): don't assign the pointer, assign
3533 the value. This should have caused bugs...
3537 2009-08-26 Jeffrey Stedfast <fejj@novell.com>
3539 * validators.cpp (FloatValidator): New validator to make sure a
3540 value is within range for a float.
3542 * glyphs.cpp: Get rid of origin_y_specified, origin_x, and
3543 origin_y state variables. We can just query these on demand.
3544 (Render): Simplified slightly.
3545 (GetTransformOrigin): Get rid of unused variable.
3546 (GetOriginPoint): Just use the ascender rather than the height and
3547 the descender. Simpler that way.
3549 * glyphs.h: Changed default OriginX and OriginY values to what
3550 they should be according to the moon-unit tests (also makes drt
3555 2009-08-26 Alan McGovern <amcgovern@novell.com>
3560 * template.cpp: Allow FrameworkTemplates to be expanded in
3561 managed code. Using that, expand the ItemsPanelTemplate in
3562 ItemsControl when it is available. r: toshok
3564 2009-08-26 Andrés G. Aragoneses <aaragoneses@novell.com>
3566 * security.c: Fixed typos in last "a11y" commit.
3568 2009-08-26 Chris Toshok <toshok@ximian.com>
3570 * textbox.cpp (TextBoxBase::SetSurface): only call
3571 gtk_im_context_set_client_window if @surface is non-null. this
3572 quiets down some of the gtk warnings on shutdown.
3576 2009-08-26 Alan McGovern <amcgovern@novell.com>
3581 * type-generated.cpp: regen r: shana
3583 2009-08-26 Andreia Gaita <avidigal@novell.com>
3585 * animation.[h|cpp]: Redesign AnimationStorages. There's now 4
3586 public methods that DOs and Clocks use to control an animation:
3587 - when a new storage is attached and there is already one on
3588 the property, Disable removes the handlers from the previous
3590 - when a storage is detached, the previous one is enabled via
3591 Enable, which attaches the handlers;
3592 - when a clock is stopped, it calls Stop, which detaches
3593 everything and resets the property;
3594 - when cloning, SwitchTarget is used to replace the DO and its
3595 handlers on the storage, to avoid having to clone all the
3596 storages every time.
3598 Storages are now only deleted when the clock stops, is destroyed
3599 or when the DO they're attached to is destroyed. IsLonely was
3600 removed (meaningless now), as well as the resettable flag (only
3601 enabled animations reset)
3603 * dependencyobject.[h|cpp]: a DO can have more than one animation
3604 running on the same DP, and they need to be stored so that when a
3605 DO is cloned, all running animations are updated to the new DO -
3606 - this way, when they stop they update the current DO and not the
3607 one they were originally attached to. This fixes the animation
3608 problems on togglebuttons and other objects that have several
3609 animations overlapping each other. The storage_hash now stores a
3610 List* of AnimationStorage::Node objects with all existing animations
3611 for every DP, and the animation storage cloning process doesn't clone
3612 the storages, it merely creates a new List* with the existing storages
3613 and updates them to the newly cloned DO.
3617 2009-08-26 Alan McGovern <amcgovern@novell.com>
3619 * template.cpp: NNull check 'result' before using it. r:shana
3621 2009-08-26 Andrés G. Aragoneses <aaragoneses@novell.com>
3623 * security.c: Mark MoonAtkBridge.dll as platform assembly.
3625 2009-08-25 Chris Toshok <toshok@ximian.com>
3627 * control.cpp (Control::OnPropertyChanged): emit IsEnabledChanged
3628 when IsEnabledProperty has changed. we need to do it after the
3629 focus handling has happened, though, as
3630 FocusManager.GetFocusedElement() returns the currently focused
3631 thing in handlers for IsEnabledChanged. Fixes the rendering of
3632 disabled elements in drt #432.
3636 2009-08-26 Jackson Harper <jackson@ximian.com>
3638 * dependencyproperty.cpp: Allow setting properties that are
3639 attached on their owner type without parens. r: toshok
3641 2009-08-26 Jackson Harper <jackson@ximian.com>
3643 * xaml.cpp|h: Expose a function for parsing bools so the plugin
3644 code can use our bool parsing code. (Handle ints).
3646 r: shana && kangaroo
3648 2009-08-25 Jeffrey Stedfast <fejj@novell.com>
3650 * textblock.cpp (TextBlock::UpdateFontDescriptions): Don't
3651 invalidate unless one of the fonts has actually changed.
3655 2009-08-25 Jackson Harper <jackson@ximian.com>
3657 * type.cpp: Function was still in the header but somehow lost its
3658 implementation. We dont use it anywhere but its useful for
3659 debugging. r: kangaroo
3661 2009-08-25 Alan McGovern <amcgovern@novell.com>
3667 * contentcontrol.cpp: Add support for using
3668 ContentControl.ContentTemplate when it is available. If
3669 there is no Control.Template, ContentControl.ControlTemplate
3670 is used. If that isn't available, we call into managed code
3671 and get the fallback root. r: toshok
3673 2009-08-24 Jackson Harper <jackson@ximian.com>
3675 * dependencyobject.cpp: Hydrated objects are registered in their
3676 parent namescope so we need to unregister them there also. r: toshok
3678 2009-08-21 Jeffrey Stedfast <fejj@novell.com>
3680 * fontmanager.cpp (AddResource): Need to free the path string
3681 before returning on success.
3683 * frameworkelement.cpp (UpdateLayout): Modified outer-loop to not
3684 leak the various lists.
3688 2009-08-21 Jeffrey Stedfast <fejj@novell.com>
3690 * grid.cpp (DestroyMatrices): Need to use delete[] to free the
3695 2009-08-21 Alan McGovern <amcgovern@novell.com>
3698 * template.cpp: Whenever any template is expanded, the
3699 template namescope should be locked. r: jackson
3701 2009-08-21 Alan McGovern <amcgovern@novell.com>
3703 * grid.cpp: When assigning sizes to grid segments, if the
3704 current UIElement spans across star segments, then extra
3705 height will only be assigned to those star segments.
3706 Otherwise extra height will be assigned to Auto and Pixel
3709 2009-08-20 Jeffrey Stedfast <fejj@novell.com>
3711 * textbox.cpp (TextBoxBase::Emit*Async): Removed.
3712 (TextBox::EmitSelectionChanged): Updated to use EmitAsync().
3713 (TextBox::EmitTextChanged): Same.
3714 (PasswordBox::EmitTextChanged): Same.
3716 * popup.cpp (OnPropertyChanged): Use the new EmitAsync() method.
3718 * dependencyobject.cpp (EventObject::EmitAsync): New method to
3719 emit an event asynchronously.
3723 2009-08-20 Jeffrey Stedfast <fejj@novell.com>
3725 * textbox.cpp (emit_selection_changed): Pass along the generation
3726 to the virtual EmitSelectionChanged() method.
3727 (emit_text_changed): Same.
3728 (EmitSelectionChangedAsync): Use a custom closure so that we can
3729 capture the current event generation to use when we actuall emit
3731 (EmitTextChangedAsync): Same.
3735 2009-08-20 Jackson Harper <jackson@ximian.com>
3737 * xaml.cpp: Setting OBJECT properties allows objects to be parsed
3738 from strings that shouldn't normally be. Such as SolidColorBrush
3739 and PointCollection.
3741 2009-08-19 Jeffrey Stedfast <fejj@novell.com>
3743 * fontmanager.cpp (FontFace::GetExtents): Updated to implement the
3744 same algorithm used by Silverlight.
3748 2009-08-19 Jackson Harper <jackson@ximian.com>
3750 * playlist.cpp: Its possible to queue an async operation and then
3751 call Dispose before that operation has taken place. This patch
3752 makes Playlist delay its unref and adds guards in its async
3753 callback functions to avoid this. Fixes http://www.nederland24.nl/
3756 2009-08-18 Jackson Harper <jackson@ximian.com>
3758 * template.cpp: Remove not very helpful and somewhat scary looking
3759 debug spew. r:toshok
3761 2009-08-18 Jeffrey Stedfast <fejj@novell.com>
3763 * layout.cpp (word_type_changed): Partial revert for previous
3764 commit as it broke drt #208.
3768 2009-08-17 Jeffrey Stedfast <fejj@novell.com>
3772 * layout.cpp (SetMaxWidth): If setting MaxWidth to 0, treat it as
3774 (word_type_changed): Allow alphabetic characters inside
3776 (layout_word_wrap): Allow line advance to equal max width.
3780 2009-08-18 Alan McGovern <amcgovern@novell.com>
3783 * grid.cpp: Remove the 'magic' size as size allocations are
3784 read from row_matrix/col_matrix now. r: kangaroo
3786 2009-08-18 Alan McGovern <amcgovern@novell.com>
3789 * grid.cpp: Allocate sizes of the grid segments in the correct
3792 2009-08-17 Alan McGovern <amcgovern@novell.com>
3795 * grid.cpp: When allocating sizes for rows/columns, clamp the
3796 sizes between the Min and Max values in a consistent manner.
3799 2009-08-17 Alan McGovern <amcgovern@novell.com>
3802 * grid.cpp: Change the parameter order in the Segment
3803 constructors to be "value, min, max" to be consistent with
3804 how 'CLAMP' is usually defined. r: jackson
3806 2009-08-16 Chris Toshok <toshok@ximian.com>
3808 * xaml.cpp (value_from_str_with_parser): fix the abundant memory
3809 leaks in this method.
3811 * propertypath.h (struct PropertyPath): add a copy constructor
3812 here so the xaml.cpp changes work without crashing.
3816 2009-08-16 Chris Toshok <toshok@ximian.com>
3818 * xaml.cpp (value_from_str_with_parser): we were using the return
3819 value from this method to be "v has been set to a value", but this
3820 isn't enough state. We also need to know if the
3821 caller (dependency_object_set_attributes, specifically) should
3822 continue on or skip the attribute after it's called us. So, we
3823 add a "bool *v_set" parameter, and change the return value to
3824 "false = skip, true = continue processing." We return false in
3825 only 1 case right now, if a double-typed value is to be parsed
3826 from an empty string. This fixes the Klotski demo, which has
3827 <TranslateTransform X=""> in its xaml. Also, fix the g_strstrip
3828 usage to also deal properly with leading spaces, and stop
3829 duplicating "g_free (s); return true;" - just break there, and let
3830 the blanket free/return at the end of the method handle it.
3831 (dependency_object_set_attributes): simplify the {} handling, and
3832 stop leaking the string value of the attribute when we pass it to
3837 2009-08-15 Larry Ewing <lewing@novell.com>
3839 * mediaelement.cpp (Render): use the same logic we used in image
3840 here to always adjust the paint rect when stretch != StretchNone.
3844 2009-08-15 Larry Ewing <lewing@novell.com>
3846 * shape.cpp (MeasureOverride): Stretch to the proper width when
3847 available size in not infinite. Avoid using infinite dimesions as
3848 constraints for Uniform stretches.
3850 Fixes Header stretching in playboy an improves DRT #210.
3854 2009-08-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
3856 * pipeline.cpp: Quiet some debug spew.
3860 2009-08-14 Larry Ewing <lewing@novell.com>
3862 * grid.cpp (MeasureOverride): properly use min and max.
3864 Fixes regression in DRT #319 from new table code
3868 2009-08-14 Larry Ewing <lewing@novell.com>
3870 * media.cpp: always adjust our paint rectangle when Stretch !=
3873 Fixes DRT #516 and the regression in #422
3877 2009-08-14 Larry Ewing <lewing@novell.com>
3879 * frameworkelement.cpp (Arrange): apply the size constraints after
3880 we the the actualsize back from the element.
3882 * layoutinformation.cpp (GetClip): now that other things are
3883 improved only traverse up one level.
3885 Fixes clipping on the smooth streaming size and DRT #210
3889 2009-08-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
3891 * pipeline.cpp: IMediaDecoder::Dispose: clear the list of pending
3896 2009-08-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
3898 * pipeline.cpp: IMediaDecoder::Dispose: store a copy of our instance
3899 variables in local variables and clear out the instance variables
3900 before unreffing them - prevents certain rare cases of infinite loops.
3904 2009-08-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
3906 * pipeline.cpp: IMediaDecoder::DecodeFrameAsync: don't do anything if
3907 we've been disposed.
3911 2009-08-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
3913 * pipeline.cpp: IMediaObject::EmitSafe: unref the args in all code
3918 2009-08-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
3920 * pipeline.cpp: IMediaObject::AddSafeHandler: don't add any handlers
3921 if we've been disposed.
3925 2009-08-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
3927 * pipeline.cpp: IMediaObject::Dispose: clear the list of events
3928 we were supposed to emit on the main thread.
3932 2009-08-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
3934 * pipeline.cpp: IMediaDemuxer::Dispose: add a missing unref.
3938 2009-08-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
3940 * pipeline.cpp: IMediaDemuxer::Dispose: store a copy of our instance
3941 variables in local varaibles and clear out the instance variables
3942 before unreffing them - prevents certain rare cases of infinite loops.
3946 2009-08-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
3948 * pipeline.cpp: IMediaStream::Dispose: store a copy of our instance
3949 variables in local variables and clear out the instance variables
3950 before unreffing them - prevents certain rare cases of infinite loops.
3954 2009-08-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
3956 * pipeline.cpp: Media::RetryHttp: we need to Dispose the previous
3961 2009-08-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
3963 * pipeline-asf.cpp: MmsPlaylistEntry::Dispose: break a circular
3964 dependency between MmsPlaylistEntry and Media.
3968 2009-08-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
3970 * pipeline.cpp: Media::Dispose: store a copy of our instance variables
3971 in local variables and clear out the instance variables before
3972 unreffing them - prevents certain rare cases of infinite loops.
3976 2009-08-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
3978 * pipeline.cpp: MarkerStream::Dispose: call base class' Dispose.
3982 2009-08-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
3984 * pipeline-asf.cpp: Add a few missing unrefs.
3988 2009-08-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
3990 * pipeline.cpp|h: Add a MediaDisposObjectClosure that ensures that
3991 the closure is called.
3995 2009-08-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
3997 * pipeline.cpp: Add an invalid MediaResult value, so that MediaClosure
3998 can detect if the callback has been called or not.
4002 2009-08-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
4004 * pipeline.cpp: Media::DisposeObject: if we couldn't enqueue the
4005 dispose on the media thread, call dispose directly.
4009 2009-08-14 Alan McGovern <amcgovern@novell.com>
4012 * grid.cpp: Rewrite the size allocation code in grid to better
4013 match the microsoft implementation. It works much better for
4014 the pixel and auto cases, but still has some issues with
4015 star columns. r: lewing
4017 2009-08-14 Jeffrey Stedfast <fejj@novell.com>
4019 * application.cpp (GetResource): Close the stream when we're
4020 done. Also changed to check write_cb exists before reading from
4021 the stream - if the callback is NULL, don't even bother.
4022 (GetResourceAsBuffer): Removed.
4023 (GetResourceAsPath): Instead of calling GetResourceAsBuffer(), do
4024 the streaming ourselves. Also return NULL if writing the stream to
4027 * utils.cpp (managed_stream_open/read/write/etc): Changed to be
4028 internal. These symbols don't need to be publicly exported.
4030 * utils.h: Added a Stream_Close function signature to
4031 ManagedStreamCallbacks.
4033 * bitmapimage.cpp (resource_notify): Make static/internal - does
4034 not need to be publicly exported.
4038 2009-08-14 Stephane Delcroix <sdelcroix@novell.com>
4040 * multiscaleimage.cpp: retry downloading up to 5 times.
4042 2009-08-14 Stephane Delcroix <sdelcroix@novell.com>
4044 * bitmapimage.h|cpp, multiscaliemage.cpp: abort downaloaders on
4049 2009-08-13 Larry Ewing <lewing@novell.com>
4051 * usercontrol.cpp (MeasureOverride): don't constrain the results.
4057 2009-08-13 Larry Ewing <lewing@novell.com>
4059 * textblock.cpp (MeasureOverride):
4060 * textbox.cpp (MeasureOverride): ceil our measurement request when
4061 layout rounding is being done so that we don't get rounded down
4062 and forced to wrap. More testing is in order but failure mode for
4065 Fixes wrapping in Playboy and the chess final screen.
4069 2009-08-13 Larry Ewing <lewing@novell.com>
4071 * timesource.h (MOON_PRIORITY_DEFAULT): lower our default priority
4072 to idle so that firefox and gtk can process events without getting
4073 starved. Improved Quakelight and StrangeAttractor experience.
4077 2009-08-13 Larry Ewing <lewing@novell.com>
4079 * src/brush.cpp: replace all cairo_matrix_invert calls with a
4080 version that warns if it fails.
4084 2009-08-13 Jeffrey Stedfast <fejj@novell.com>
4086 * layout.cpp (TextLayoutGlyphCluster::Render): No-op if the
4087 advance width is 0. Fixes test-videobrush-text.xaml to render all
4092 2009-08-13 Chris Toshok <toshok@novell.com>
4094 * xaml.cpp (start_element): If the element is a TextBox.Text
4095 CDATA, treat it as verbatim. Partial fix for drt 2003.
4099 2009-08-13 Jeffrey Stedfast <fejj@novell.com>
4101 * layout.cpp (Layout): Make sure all attributes were able to load
4102 their fonts. If not, we can't proceed. Fixes the NULL TextFont
4105 * textblock.cpp (OnPropertyChanged): Instead of using
4106 UpdateLayoutAttributes(), all we really need to do is call
4107 UpdateFontDescriptions() when the FontSource changes.
4111 2009-08-13 Jeffrey Stedfast <fejj@novell.com>
4113 * fonts.cpp (TextFont::Load): When loading a font face from a
4114 source w/o any families specified, make sure to set master=0 so
4115 that we don't try to get extents from faces[-1].
4119 2009-08-13 Larry Ewing <lewing@novell.com>
4123 * writeablebitmap.cpp (InitializeFromBitmapSource): always use
4124 rgba pixelformat like sl3 does now.
4126 2009-08-12 Chris Toshok <toshok@ximian.com>
4128 * bitmapsource.h|cpp (SetBitmapData): add an extra parameter
4129 "own" (default: true) which, if true, causes the bitmap source to
4130 free the bitmapdata when it's destroyed.
4132 * cbinding.h|cpp: regen
4134 2009-08-12 Alan McGovern <amcgovern@novell.com>
4137 * cbinding.cpp: regen r: toshok
4143 * contentcontrol.cpp:
4144 * frameworkelement.cpp: A ContentControl which has no Template
4145 needs to call into managed land to create a 'default
4146 template'. When the Content is a UIElement, the UIElement is
4147 used as the template root, otherwise a Grid + TextBlock
4148 (with Binding) is used. This is the same as what
4149 ContentPresenter does to its Content property. r: toshok
4151 2009-08-12 Alan McGovern <amcgovern@novell.com>
4153 * uielement.cpp: VisualParent should be set to null before
4154 invalidating the cache otherwise the element might be added
4155 to the dirty lists. This causes issues if the element is
4156 added back into the visual tree at a different level. r:
4159 2009-08-12 Stephane Delcroix <sdelcroix@novell.com>
4161 * multiscaleimage.cpp: clear the cache on source change, cache a NULL
4162 tile on downloader failure (fix drt 2014 for good).
4164 2009-08-12 Stephane Delcroix <sdelcroix@novell.com>
4166 * multiscaleimage.cpp: restore the initial number of concurrent
4167 downloaders, drt 2014 will require a proper fix.
4169 2009-08-12 Chris Toshok <toshok@ximian.com>
4171 * media.h|cpp (class Image): if our source is a BitmapSource,
4172 handle the PixelDataChangedEvent and Invalidate ourselves if it's
4175 * brush.h|cpp (class ImageBrush): if our source is a BitmapSource,
4176 handle the PixelDataChangedEvent and notify our listeners to
4177 redraw if it's emitted.
4179 * bitmapsource.h|cpp (class BitmapSource): add an event so classes
4180 using BitmapSources can be notified when the pixel data
4181 changes (primarily for use with WriteableBitmap). Emit it from
4182 BitmapSource::Invalidate.
4184 * type-generated.cpp, cbinding.h|cpp: regen
4186 2009-08-11 Chris Toshok <toshok@ximian.com>
4188 [ each of these changes fixes a line of text in drt 444 ]
4189 * fontmanager.cpp (FontManager::AddResource): seek the stream to 0
4192 * textblock.cpp (TextBlock::OnPropertyChanged): we need to call
4193 UpdateLayoutAttributes if FontSource is changed, so that the
4194 change propagates down to the inlines.
4198 2009-08-11 Larry Ewing <lewing@novell.com>
4200 * grid.cpp (MeasureOverride): adjust row definition values by
4201 max/min values when building up the Actual sizes
4207 2009-08-11 Jeffrey Stedfast <fejj@novell.com>
4209 * textbox.cpp (TextBox::OnPropertyChanged): Set the font_source on
4210 the TextFontDescription as well as emitting an event so the view
4211 knows it has to re-render. Improves drt 480.
4212 (PasswordBox::OnPropertyChanged): Same.
4213 (TextBox::ClearFontSource): Removed, not used.
4214 (PasswordBox::ClearFontSource): Same.
4218 2009-08-11 Andreia Gaita <avidigal@novell.com>
4220 * runtime.cpp: TimeManager should be the last thing destroyed, other
4221 objects might need to access it while disposing. r: alan
4223 2009-08-11 Stephane Delcroix <sdelcroix@novell.com>
4225 * multiscaleimage.cpp: cast so the modulo operation opers on int,
4226 not guint64. Fix sharedtiles usage. r:shana, lewing
4228 2009-08-11 Jeffrey Stedfast <fejj@novell.com>
4230 * textbox.cpp (TextBoxBase::Paste): Change the multiline
4231 truncation test to explicitly check for \r, \n and 0x2028 instead
4232 of using g_unichar_type() which didn't return the expected values
4233 for these characters. Partial fix for drt 2003.
4234 (*Box::OnPropertyChanged): Updated for AddResource() API change.
4236 * textblock.cpp (TextBlock::OnPropertyChanged): Updated for
4237 AddResource() API change.
4239 * fontmanager.cpp (AddResource): Instead of having our callers
4240 generate a unique resource name, let us do it for them. Don't
4241 bother using mkstemp()/mkdtemp() since our root dir is already
4242 unique. Also fixed to reset the stream resource after consuming it
4243 so that if multiple textblocks/boxes/etc reuse the FontSource,
4244 things work properly. Partial fix for drt 444.
4248 2009-08-11 Alan McGovern <amcgovern@novell.com>
4250 * runtime.cpp: Controls aren't really auto-focused. What
4251 happens is that when a focused control is removed from the
4252 live tree SL does not emit a LostFocus event and so when the
4253 control is added back into the tree it still thinks it has
4254 focus. This call is still needed as there can be pending
4255 GotFocus/LostFocus events waiting to be emitted. r: toshok.
4257 2009-08-11 Alan McGovern <amcgovern@novell.com>
4259 * runtime.cpp: Make HandleUIKeyPress do the same thing as
4260 HandleUIKeyRelease when there is no toplevel so it doesn't
4263 2009-08-10 Larry Ewing <lewing@novell.com>
4265 * bitmapimage.cpp (CreateLoader): if the image isn't a png or a
4266 jpg abort the getresource call.
4268 2009-08-07 Larry Ewing <lewing@novell.com>
4270 * dirty.cpp (UpdateLayout): don't use the toplevel hack on
4273 Gets DRT #516 very close to passing slight layout problems left.
4275 2009-08-10 Andreia Gaita <avidigal@novell.com>
4277 * ptr.h: Change the base class to not allow direct casts to Value
4278 objects. Add cast operator to cast between DO classes directly
4280 2009-08-10 Andreia Gaita <avidigal@novell.com>
4282 * animation.[h|cpp]: Check for valid applier before trying to use it,
4283 it could be disposing, same for targetprop.
4284 * timemanager.cpp: clear applier when disposing
4286 2009-08-10 Andreia Gaita <avidigal@novell.com>
4288 * ptr.h: Rename OwnerPtr to DOPtr to make it clear it's a smart
4289 pointer for DependencyObject.
4290 * shape.cpp, timeline.cpp: Rename OwnerPtr to DOPtr
4291 * multiscaleimage.[h|cpp]: Use DOPtr to store DOs and auto-release
4292 them when destroying
4294 2009-08-10 Alan McGovern <amcgovern@novell.com>
4296 * frameworkelement.cpp: A new measure pass should be made if
4297 either the available width *or* available height has changed
4298 since the last measure pass.
4300 2009-08-10 Andreia Gaita <avidigal@novell.com>
4302 * ptr.h: fix assignment operators, the copy by reference ones were
4303 causing the pointer to be destroyed prematurely when assigning via
4306 2009-08-08 Chris Toshok <toshok@ximian.com>
4308 * fontmanager.cpp (FontManager::AddResource): pass stream->handle
4309 as the first arg to stream->Read, not stream itself. Also, get
4310 rid of "total" and just pass a 0 offset for each read, since we're
4311 writing the full buffer's contents up to nread each time anyway.
4313 2009-08-07 Andreia Gaita <avidigal@novell.com>
4317 * multiscaleimage.cpp: Fix the type of the left shit operations to
4318 avoid overflows. Make it an inline function for easier maintenance.
4319 * tilesource.[h|cpp]: Fix the type of the image width and height,
4320 should be bigger than int.
4322 2009-08-07 Jeffrey Stedfast <fejj@novell.com>
4326 * textbox.cpp (TextBox::OnPropertyChanged): If setting
4327 SelectedText to "", don't emit TextChanged events if there was no
4329 (PasswordBox::OnPropertyChanged): Same.
4331 2009-08-06 Chris Toshok <toshok@ximian.com>
4333 * runtime.cpp (Surface::tick_after_attach_reached): the ordering
4334 of code between this method and Surface::ToplevelLoaded is likely
4335 still somewhat wrong, but moving the Emit here fixes drt #21.
4337 2009-08-06 Chris Toshok <toshok@ximian.com>
4339 * window-gtk.cpp: move the InvokeTickCalls from here...
4341 * runtime.cpp: to the HandleUI* methods here, so they will be used
4342 in both windowed and windowless codepaths.
4344 2009-08-06 Chris Toshok <toshok@ximian.com>
4346 * timemanager.h|cpp (TimeManager::RemoveTickCall): this takes
4347 another argument now (the data object passed to AddTickCall) so we
4348 can differentiate callbacks properly.
4350 * runtime.h|cpp (Surface::Attach): we don't return true from
4351 IsLoaded until after the first tick, so that our measure pass has
4352 been run (and contentpresenters are created for all content
4353 controls.) register the tick call here (after removing any that
4354 may have already been added).
4355 (Surface::tick_after_attach_reached): set ticked_after_attach to
4357 (Surface::IsLoaded): we require ticked_after_attach to be true
4360 * cbinding.h|cpp: regen.
4362 2009-08-06 Jeffrey Stedfast <fejj@novell.com>
4364 * textbox.cpp (TextBoxBase::OnFocusOut): Instead of clearing the
4365 selection, just set the selection to the cursor position. This
4366 way, if the control gets programatically Focus()'d again, then the
4367 cursor will be where it was just before the control lost
4368 focus. Partial fix for drt 2003.
4370 2009-08-06 Jackson Harper <jackson@ximian.com>
4372 * xaml.cpp|xaml.h: Add bindings for checking/setting whether a
4373 property has already been set.
4375 2009-08-06 Jackson Harper <jackson@ximian.com>
4377 * xaml.cpp: Its possible that a buffered element can add a new
4378 namespace that start_element_handler will not know about, just
4379 ignore this error and the namespace will be added when the buffer
4382 2009-08-06 Jackson Harper <jackson@ximian.com>
4384 * xaml.cpp: Handle null in the print_tree debug code. (This can
4385 occur when loading a null template)
4387 2009-08-05 Larry Ewing <lewing@novell.com>
4389 * frameworkelement.cpp (UpdateLayout): revert an accidental
4392 2009-08-05 Jeffrey Stedfast <fejj@novell.com>
4394 * textbox.cpp (TextBoxBase::OnKeyDown): Cut and Copy operations
4395 should not copy the text buffer to the clipboard if the contents
4398 2009-08-05 Larry Ewing <lewing@novell.com>
4400 * uielement.cpp (ElementRemoved): clear the desired size when
4401 removing the element.
4403 * layoutinformation.cpp: partially revert one of the workarounds.
4405 * frameworkelement.cpp (Arrange): get the old_size from the
4406 RenderSize not the ActualWidth.
4408 2009-08-05 Chris Toshok <toshok@ximian.com>
4410 * popup.cpp (class GenerationClosure): new closure for emiting the
4411 Opened and Closed events.
4412 (Popup::emit_opened, Popup::emit_closed): pass the generation from
4413 the closure to ->Emit.
4414 (Popup::OnPropertyChanged): for the tick call, pass a closure that
4415 contains the current event generation.
4417 * timemanager.h, timemanager.cpp (TimeManager::InvokeTickCalls):
4418 factor out the loop for invoking tick calls here and call it from
4419 the source tick method.
4421 * window-gtk.cpp (MoonWindowGtk::button_press)
4422 (MoonWindowGtk::button_release, MoonWindowGtk::scroll)
4423 (MoonWindowGtk::motion_notify, MoonWindowGtk::crossing_notify)
4424 (MoonWindowGtk::focus_in, MoonWindowGtk::focus_out)
4425 (MoonWindowGtk::key_press, MoonWindowGtk::key_release): call
4426 TimeManager::InvokeTickCalls from each of these methods before we
4427 call the Surface::HandleUI* method.
4429 * dependencyobject.h (class EventObject): make a couple of api
4431 (AddTickCall*): add an "EventObject* data" parameter. if it's
4432 NULL, pass "this", so we have the current behavior.
4433 (DoEmit/Emit): add a "starting_generation" optional argument. if
4434 it's supplied, we invoke only those handlers with tokens less than
4435 the starting_generation (i.e. those handlers that were registered
4436 before the event was generated.)
4438 2009-08-05 Jeffrey Stedfast <fejj@novell.com>
4440 * textbox.cpp (TextBoxBase::OnPropertyChanged): Don't clear the
4441 FontSource property when the FontFamily property changes.
4442 (TextBox::OnPropertyChanged): Handle FontSource property changes.
4443 (PasswordBox::OnPropertyChanged): Same.
4445 * textblock.cpp (CleanupDownloaders): Free the font_source string
4447 (SetFontSource): Update the font_source string based on the
4449 (UpdateLayoutAttributes): No longer need to get the font_source
4450 string, we already have it.
4451 (UpdateFontDescriptions): Same.
4452 (OnCollectionItemChanged): Here too.
4453 (OnPropertyChanged): Update the font_source string when the
4454 FontSource property changes.
4456 2009-08-05 Jeffrey Stedfast <fejj@novell.com>
4458 * textbox.cpp (OnMouseLeftButtonMultiClick): Don't poke at the raw
4459 GdkEventButton structure, use the new MouseEventArgs accessors
4462 * eventargs.cpp (GetButton): Get the id of the button pressed.
4463 (GetClickCount): Get the number of clicks on the button.
4465 2009-08-05 Alan McGovern <amcgovern@novell.com>
4467 * panel.cpp: The LogicalParent needs to be set before the
4468 element is added, otherwise the Loaded event can be fired
4469 before LogicalParent is set.
4471 2009-08-04 Larry Ewing <lewing@novell.com>
4473 * uielement.cpp (DoMeasure): invalidate up the tree more
4474 agressively. Fixes DRT #190 regression.
4476 2009-08-04 Jeffrey Stedfast <fejj@novell.com>
4478 * textbox.cpp (TextBoxBase::OnMouseLeftButtonMultiClick): New
4479 callback for the MultiClick event.
4480 (TextBoxBase::OnMouseLeftButtonDown): No longer needs to handle
4481 double and triple mouse clicks.
4483 * uielement.h: Added a MosueLeftButtonMultiClickEvent.
4485 * runtime.cpp (CreateArgsForEvent): Handle MultiClickEvent.
4486 (HandleUIButtonPress): Handle 2 and 3 button mouse clicks.
4488 * pipeline.h (IMediaObject): FrameNode's dtor needs to be virtual.
4490 2009-08-04 Jeffrey Stedfast <fejj@novell.com>
4492 * utils.cpp (write_all): Changed to just return int (-1 for fail,
4494 (ExtractFile): Don't fsync(). Saves us a lot of time.
4496 2009-08-03 Larry Ewing <lewing@novell.com>
4498 * shape.cpp (ArrangeOverride): clear the current path.
4500 2009-08-03 Larry Ewing <lewing@novell.com>
4502 * textbox.cpp (OnModelChanged): InvalidateMeasure when things
4505 2009-08-03 Jeffrey Stedfast <fejj@novell.com>
4507 * fontmanager.cpp (AddResource): Implemented a version of this
4508 interface that can take a ManagedStreamCallbacks argument.
4510 * application.cpp (GetResourceAsPath): If we are adding the X's
4511 ourselves, use MakeTempDir() instead of CreateTempDir().
4513 2009-07-31 Larry Ewing <lewing@novell.com>
4515 * layoutinformation.cpp (GetClip): add another hack for layoutclip
4516 on Controls while things are in flux.
4518 2009-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
4520 * pipeline.cpp: Media::EnqueueWork: return a bool indicating whether
4521 the work was enqueued or not.
4523 2009-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
4525 * pipeline.cpp: Media: use the new ClearQueue overload instead of
4526 spreading the logic all over the place.
4528 2009-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
4530 * pipeline.cpp: Media: add a ClearQueue overload which optionally
4533 2009-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
4535 * playlist.cpp: Don't g_warn something which can happen in normal
4538 2009-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
4540 * mediaplayer.cpp: Plug a leak in one rare code-path.
4542 2009-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
4544 * mediaplayer.cpp: Close: dispose the AudioSource, it won't be used again.
4546 2009-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
4548 * mediaplayer.cpp: Dispose: call base class Dispose after we've finished.
4550 2009-07-31 Jeffrey Stedfast <fejj@novell.com>
4552 * fonts.cpp (LoadPortableUserInterface): Always load the en-US
4553 font(s) first, and then load the preferred CJK font, followed by
4554 the rest. This improves drt 414.
4556 * fontmanager.cpp (GetExtents): Improved baseline alignment by
4557 adjusting Descent if Height is larger than Ascent +
4558 Descent. Especially visible with drt 107's Deobfuscated Brauhaus
4561 2009-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
4563 * deployment.cpp: Dispose: we need to unref and null out the application.
4565 2009-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
4569 * eventargs.cpp|h: Set the object's type upon construction instead
4570 of using SetObjectType right after. This is useful when tracking
4571 objects by type - the ctor also shows up.
4573 * dependencyobject.cpp|h: Add a DependencyObject ctor that takes
4574 a Type::Kind argument.
4576 2009-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
4578 * debug.cpp: Make the stacktrace pipes thread-local. This way
4579 printing stacktraces from several threads at the same time doesn't
4580 result in a big mess.
4582 2009-07-30 Larry Ewing <lewing@novell.com>
4584 * layoutinformation.cpp (GetClip): add a workaround for the panel
4585 case while layoutinformation is refactored.
4587 2009-07-30 Larry Ewing <lewing@novell.com>
4589 * layoutinformation.cpp: repair a merge bug.
4591 2009-07-30 Larry Ewing <lewing@novell.com>
4593 * layoutinformation.cpp, layoutinformation.h: move layoutinformation
4594 out of uielement.h. Compute the layout clip on the fly.
4597 * dependencyproperty.g.cpp:
4598 * frameworkelement.cpp:
4599 * frameworkelement.h:
4610 * uielement.h: start reworking layout logic at we refactor
4611 layoutinformation. Use RenderLayoutClip where appropriate.
4613 2009-07-30 Jeffrey Stedfast <fejj@novell.com>
4615 * fontmanager.cpp (GetExtents): Much better fix than the
4616 string-comparison hack. Poke at the TrueType/OpenType OS/2 table
4617 and use the usWinAscent/usWinDescent values since this is what
4618 most Windows applications (brokenly) use according to some info I
4619 found on the web. Low and behold, this also makes the Adobe Caslon
4620 Pro metrics work out exactly like they do in Silverlight, so I'm
4621 guessing that the info I found is accurate :-)
4623 2009-07-30 Larry Ewing <lewing@novell.com>
4625 * uielement.cpp (DoArrange): revert the parent invalidation change as it
4628 2009-07-30 Larry Ewing <lewing@novell.com>
4630 * control.cpp (OnPropertyChanged): update the layout if the
4633 2009-07-30 Larry Ewing <lewing@novell.com>
4635 * uielement.cpp (DoArrange): remove the parent invalidation call
4636 it shouldn't be required now and is contraindicated by DRT #501.
4638 * runtime.cpp: InvalidateMeasure on resize.
4640 2009-07-30 Alan McGovern <amcgovern@novell.com>
4643 * textbox.cpp: TextBox and Popup should use AddAsyncEventCall
4646 * dependencyobject.h:
4647 * dependencyobject.cpp: Implement a new method for adding
4648 callbacks to invoke asynchronous events. They can't be
4649 invoked using the regular AddTickCall as that causes the
4650 ordering of mouse events and asynchronous events to be
4651 incorrect preventing drt 333, 476 and some others from
4654 2009-07-30 Jeffrey Stedfast <fejj@novell.com>
4656 * fontmanager.cpp (GetExtents): Now uses the alternative method of
4657 getting font metrics. Also, when dealing with Adobe fonts, use the
4658 bbox to get metrics rather than using the normal
4659 ascender/descender/height values.
4661 2009-07-30 Jackson Harper <jackson@ximian.com>
4663 * xaml.cpp: Swallow white space before linebreaks.
4665 2009-07-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
4667 * src.mdp: Connect the Build command in
4668 MonoDevelop with 'make install'.
4670 2009-07-30 Andreia Gaita <avidigal@novell.com>
4672 * multiscaleimage.cpp: leak and initialization fixes
4674 2009-07-30 Andreia Gaita <avidigal@novell.com>
4676 * shape.cpp: use smart pointer to avoid unreffing by hand
4678 2009-07-30 Andreia Gaita <avidigal@novell.com>
4680 * timeline.cpp: leak fix
4682 2009-07-30 Andreia Gaita <avidigal@novell.com>
4684 * ptr.h: added RefPtr and OwnerPtr, smart refcounting pointer classes
4685 * Makefile.am: updated
4687 2009-07-29 Larry Ewing <lewing@novell.com>
4689 * border.cpp (ArrangeOverride): return the input now that it is
4692 * frameworkelement.cpp: short circuit Measure and Arrange if the
4693 element is collapsed.
4695 2009-07-29 Jeffrey Stedfast <fejj@novell.com>
4697 * textbox.cpp (TextBoxBase::OnKeyDown): Only reset the IM context
4698 of the keyboard event was handled (meaning the state has changed).
4699 (TextBoxBase::OnCharacterKeyDown): Don't reset the IM context
4702 2009-07-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
4704 * shape.cpp: Plug a leak.
4706 2009-07-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
4708 * pipeline.cpp: IMediaObject::EmitSafe (): use same refcounting
4709 semantics as EventObject::Emit: unref the event args at the end of
4712 2009-07-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
4714 * pipeline.cpp: IMediaDemuxer::SeekAsync (): don't return before
4715 unreffing the reffed media we've got.
4717 2009-07-29 Sebastien Pouliot <sebastien@ximian.com>
4719 * pipeline-ui.cpp: Delegate the codec integrity validation to Mono.
4720 Helper.CheckIntegrity (System.Windows.dll)
4722 2009-07-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
4724 * pipeline.cpp (Media::SelectDemuxerAsync): minor performance
4725 improvement: return true immediately if we've actually managed to
4726 open a demuxer instead of enqueuing another call to
4729 2009-07-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
4733 * pipeline-asf.cpp (MmsPlaylistEntry::AddEntry): add the entry
4734 to the playlist before initializing it, since initializing it may
4735 end up opening it right away and then it must be present in the
4738 2009-07-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
4740 * pipeline-asf.cpp (ASFDemuxer::Open): unref the streams we've
4741 created when done with them.
4743 2009-07-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
4745 * pipeline.cpp: printf -> LOG_PIPELINE.
4747 2009-07-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
4749 * mp3.cpp (Mp3Demuxer::ReadHeader): unref the stream we've created
4750 when we're done with it.
4752 2009-07-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
4754 * audio.cpp IMediaStream::PopFrame() gives us a reffed object,
4755 unref it when done with it.
4757 2009-07-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
4759 * dependencyobject.h: Make EventObject::GetObjectType
4760 non-virtual. No need for a virtual method anymore, since we store
4761 the type on the object itself.
4763 2009-07-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
4765 * application.cpp: unref the downloader when it has finished.
4767 2009-07-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
4769 * utils.cpp|h: Cancellable: use strong typing to store the
4770 downloader and ref it. This way the cancel callback can use the
4773 2009-07-29 Alan McGovern <amcgovern@novell.com>
4778 * cbinding.cpp: 1) TextBox cannot hook into Key press events
4779 in unmanaged code otherwise they never propagate to managed
4780 and the user cannot intercept them. Instead of hooking to
4781 the event in native code, just call native
4782 TextBox::OnKeyDown in the managed override.
4783 2) Key press events are actually handled in two different
4784 places. 'Navigation' keypresses like Left/Right/PgUp are
4785 handled when the textbox OnKeyDown virtual method is
4786 invoked. 'Character' keypresses like 'a', 'b', 'c' are
4787 handled after the KeyDown event is emitted
4788 3) If a key press does not affect the textbox state (i.e.
4789 pressing 'left' when the caret is already at the very left),
4790 then the keypress is not handled.
4791 4) The KeyDown event is emitted even if OnKeyDown is overriden
4792 and the base method is not invoked.
4793 5) The tab key should be interpreted as 'Focus next control'
4794 only after the KeyDown event handlers have run and the key
4795 press is not handled.
4797 2009-07-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
4799 * pipeline.cpp: NullDecoder: add wmav3 to the list of codecs we
4800 know we can't decode. This means that if the user does not have
4801 MS codecs (or any other codecs) installed, he'll get the download
4802 codecs dialog for wmav3 media too.
4804 2009-07-28 Sebastien Pouliot <sebastien@ximian.com>
4806 * mediaelement.cpp: Add a check if the codecs have already been
4807 downloaded/installed without refreshing the browser. This will
4808 stop additional dialogs showing up and fix a crash (x86_64) if
4809 the codecs are downloaded/installed a second time in the same
4812 2009-07-27 Larry Ewing <lewing@novell.com>
4815 * src/frameworkelement.cpp:
4818 * src/textblock.cpp:
4819 * src/usercontrol.cpp: Move the alignment logic out of the
4820 controls and into the Arrange call now.
4822 Fixes DRT #335 improves several others.
4824 2009-07-28 Jackson Harper <jackson@ximian.com>
4826 * xaml.cpp: Handle UNMANAGEDMATRIX, it's just a matrix with
4828 - Don't create a Matrix for TRANSFORM properties if "Identity" was
4829 used as the string. (kinda seems like an SL bug to me).
4831 2009-07-28 Jeffrey Stedfast <fejj@novell.com>
4833 * multiscaleimage.cpp: Fixed a bunch of compiler warnings.
4835 * window-gtk.cpp (button_press): Revert change to drop
4836 2BUTTON_PRESS and 3BUTTON_PRESS events. TextBox needs these until
4837 we find a better way (also, 234 is still broken even with this
4838 change, which breaks 337 and possibly makes other
4839 TextBox/PasswordBox drts unfixable).
4841 2009-07-27 Larry Ewing <lewing@novell.com>
4843 * glyphs.cpp, glyphs.h: Start implmenting glyph layout. Fixes DRT #442.
4845 2009-07-27 Larry Ewing <lewing@novell.com>
4847 * frameworkelement.cpp: Always round down when doing layout
4850 * uielement.cpp (OnPropertyChanged): Invalidate layout on
4855 2009-07-27 Chris Toshok <toshok@ximian.com>
4857 * dependencyobject.cpp (EventObject::DoEmit): we emit the XAML
4858 handler *after* all registered handlers. part of the fix for drt
4861 * window-gtk.cpp (MoonWindowGtk::button_press): ignore
4862 double-click and triple click gdk events here. part of the fix
4865 2009-07-27 Jackson Harper <jackson@ximian.com>
4867 * xaml.cpp|h: Hydrate needs to accept Value* instead of a DOB. It
4868 is legal to hydrate a top level managed non DOB class.
4869 * cbinding.cpp|h: regen
4871 2009-07-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
4873 * mp3.cpp: When seeking and we don't have enough data to seek to
4874 the desired pts, try again a bit later. Fixes MS DRT #59.
4876 2009-07-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
4878 * src.mdp: Use Makefile integration.
4880 2009-07-27 Alan McGovern <amcgovern@novell.com>
4882 * uielement.cpp: Default styles are applied even if the user
4883 applies a style. Fixes some visual glitches in the controls
4886 2009-07-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
4888 * pipeline.cpp|h: Use Application::GetResource instead of creating
4889 downloaders to get data.
4891 2009-07-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
4893 * pipeline.cpp: ReportErrorOccurred: don't propagate more than one
4896 2009-07-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
4898 * application.cpp: GetResource: set the notify_size callback
4899 on the downloader too. Media must known the size whenever possible.
4901 2009-07-27 Larry Ewing <lewing@novell.com>
4903 * uielement.cpp (GetTransformToUIElementWithError): signal and
4904 error in the to_element doesn't have a Surface case.
4906 2009-07-26 Larry Ewing <lewing@novell.com>
4908 * rect.h: make PointInside inclusive on the top/left.
4910 2009-07-24 Larry Ewing <lewing@novell.com>
4912 * textblock.cpp: Rework the bounds computation to be the max of
4913 the actual and the framework element settings. Fixes DRT #245.
4915 2009-07-24 Larry Ewing <lewing@novell.com>
4917 * border.cpp: Apply the default constraints more carefully.
4919 * src/frameworkelement.cpp, src/frameworkelement.h: add
4920 ApplySizeContraints method, use it.
4924 * src/textblock.cpp:
4925 * src/usercontrol.cpp: use ApplySizeContraints method.
4927 2009-07-24 Larry Ewing <lewing@novell.com>
4929 Rename some of the layout information based on some
4932 2009-07-24 Jeffrey Stedfast <fejj@novell.com>
4934 * textbox.cpp (TextBoxBase::OnPropertyChanged): When our
4935 width/height properties change, pass those values along to our
4936 TextBoxView as well.
4938 2009-07-24 Jackson Harper <jackson@ximian.com>
4940 * xaml.cpp: Instead of cloning the element set it's namescope
4941 explicitly so it doesn't get registered in another namescope when
4942 it is used as a property of an element in another namescope.
4944 2009-07-23 Jeffrey Stedfast <fejj@novell.com>
4946 * downloader.cpp (same_domain): Fixed to be safe if/when a uri
4949 2009-07-23 Alan McGovern <amcgovern@novell.com>
4951 * animation.cpp: If the initial value is null, create a Value
4952 with the correct type with IsNull set to true.
4954 2009-07-23 Jackson Harper <jackson@ximian.com>
4956 * xaml.cpp: If we are getting a named item from the app resources
4957 we should clone it since it comes from a different namescope. This
4958 allows you to have named items in app.resources be referenced in
4959 control code as a static resource even if it has the same name as
4960 an object in the control code.
4962 2009-07-23 Jeffrey Stedfast <fejj@novell.com>
4964 * fonts.cpp (LoadPortableUserInterface): Even if we are a
4965 Silverlight 2.0 app, we still need to load Lucida Sans for the
4966 font face extents (Lucida extents seem to be very close to what
4967 Microsoft Silverlight is using).
4969 2009-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
4971 * runtime.cpp: HandleUIKeyRelease: add a null check before
4972 accessing toplevel. Apparently toplevel can be null when the
4973 site fails to load completely (mstv.cz / bug #506306).
4975 2009-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
4977 * media.h: MarkerReachedEventArgs: make Markers accessible to
4981 * cbinding.cpp: Regenerated.
4983 2009-07-22 Chris Toshok <toshok@ximian.com>
4985 * animation.h|cpp: add some more accessors for AnimationStorages
4986 so we can clone them.
4988 * dependencyproperty.h|cpp: remove all the AnimationStorage stuff
4989 from here, and put it in DependencyObject where (imo) it belonged
4992 * dependencyobject.h|cpp: move the AnimationStorage stuff here,
4993 and also add support for cloning the storage while we're cloning
4994 the object. This means that new animations started against
4995 existing objects (with animations) will inherit the right reset
4996 value. This fixes the button animation regression.
4998 2009-07-22 Jeffrey Stedfast <fejj@novell.com>
5000 * fonts.cpp (LoadPortableUserInterface): If the application is a
5001 Silverlight 2.0 app, default to Verdana instead of Lucida Sans
5004 * textbox.cpp (TextBoxBase::OnKeyDown): The clipboard Cut action
5005 is a no-op for ReadOnly TextBox controls.
5007 2009-07-22 Sebastien Pouliot <sebastien@ximian.com>
5009 * runtime.cpp: Call GetMaximumRefreshRate before unreferencing
5010 the current timemanager.
5012 2009-07-21 Jeffrey Stedfast <fejj@novell.com>
5014 * textbox.cpp (TextBoxBase::CursorPrevWord): Fixed the logic a
5016 (TextBoxBase::OnKeyDown): Implemented alternate keybindings for
5018 (TextBoxBase::OnKeyDown): If there is no selection and the user
5019 invokes the Cut or Copy commands, do not overwrite the clipboard
5020 buffer with an empty string.
5022 2009-07-21 Jackson Harper <jackson@ximian.com>
5024 * xaml.cpp: Raise errors from managed SetProperty.
5026 2009-07-21 Jackson Harper <jackson@ximian.com>
5028 * xaml.cpp: Don't raise errors if we are a managed element, let
5029 the managed SetProperty handle that stuff.
5031 2009-07-21 Alan McGovern <amcgovern@novell.com>
5034 * dependencyproperty.g.cpp: The issue with auto creating
5035 PathGeometry.Figures appears to be fixed so add
5036 AutoCreateValue to FiguresProperty and see how the bots
5039 2009-07-20 Chris Toshok <toshok@ximian.com>
5041 * application.h|cpp: add a ResourceBase parameter to all the
5042 GetResource calls and to the GetResourceCallback delegate type.
5044 * dependencyobject.h (DependencyObject::SetResourceBase,
5045 DependencyObject::GetResourceBase): new methods.
5047 * dependencyobject.cpp (DependencyObject::ProviderValueChanged):
5048 "inherit" resource base from our parent (this might be very, very
5050 (DependencyObject::Initialize): init resource_base to null.
5051 (DependencyObject::~DependencyObject): free resource_base.
5053 * bitmapimage.cpp (BitmapImage::UriSourceChanged): locate the
5054 resource using our resource base.
5056 * template.cpp (FrameworkTemplate::GetVisualTree): use the same
5057 resource base when expanding the template.
5059 * textblock.cpp (Inline::AddFontResource): locate the font using
5061 (TextBlock::AddFontResource): same.
5063 * textbox.cpp (TextBoxBase::AddFontResource): same.
5064 using our resource base.
5066 * glyphs.cpp (Glyphs::SetFontResource): same.
5068 * xaml.cpp (XamlParserInfo::AddCreatedElement): factor out all
5069 those SetSurface calls, and put it here. Also, set the resource
5070 base at the same time.
5071 (XamlLoader::Initialize): store off the resource_base.
5072 (XamlLoader::~XamlLoader): and free it.
5073 (xaml_loader_new): take a resourceBase, and pass it along.
5074 (XamlLoader::HydrateFromString): set the ResourceBase on the
5076 (create_element_info_from_imported_managed_type): remove the
5077 SetSurface call, just call XamlParserInfo::AddCreatedElement.
5078 (XamlElementInstanceNative::CreateItem): same.
5079 (XamlElementInfoManaged::CreateElementInstance): same.
5080 (XamlElementInfoManaged::CreateWrappedElementInstance): same.
5082 * xaml.h (class XamlLoader): add a common Initialize method, and a
5083 ctor overload that takes a "resource base", which is the uri which
5084 we're loading from. Also add a GetResourceBase() accessor.
5088 2009-07-20 Larry Ewing <lewing@novell.com>
5090 * uielement.cpp (ComputeTransform): add a hack for placing popup
5093 * popup.cpp: call updatetransform on our child whenever the offset
5094 values change. Fixes DRTs #325 #503
5096 2009-07-18 Jackson Harper <jackson@ximian.com>
5098 * xaml.h|cpp: New flag on the loader for determining whether or
5099 not to auto import the default SL namespace.
5100 - Throw the proper error if the default namespace isn't available.
5101 * template.cpp: Templates get the default namespace auto
5104 2009-07-17 Larry Ewing <lewing@novell.com>
5106 * runtime.cpp (Attach): copy the current framerate to the new
5109 2009-07-17 Jeffrey Stedfast <fejj@novell.com>
5111 * textbox.cpp (TextBoxBase::Commit): Respect MaxLength and
5113 (TextBoxBase::Paste): Consider the SelectionLength in our
5114 MaxLength overflow calculation.
5115 (TextBuffer::ctor): Instead of taking ownership of a string
5116 buffer, just copy it instead. This keeps memory management more
5118 (TextBoxUndoActionInsert::ctor): No longer takes ownership of the
5120 (TextBoxUndoActionReplace::ctor): Same, so copy it.
5121 (*Box::OnPropertyChanged): Fixed to g_free(text) after creating
5122 the undo action. I think some of these situations leaked before.
5124 2009-07-17 Stephane Delcroix <sdelcroix@novell.com>
5126 * bitmapimage.h: tag UriSourceProperty with AlwaysChange. fix #2014
5128 2009-07-17 Stephane Delcroix <sdelcroix@novell.com>
5130 * multiscaleimage.cpp: more protections against crash with 31 layers
5132 2009-07-17 Stephane Delcroix <sdelcroix@novell.com>
5134 * multiscaleimage.cpp: allow up to 31 layers.
5136 2009-07-17 Stephane Delcroix <sdelcroix@novell.com>
5138 * multiscaleimage.cpp: emit OpenImageSucceed for non DZ tile sources
5140 2009-07-17 Alan McGovern <amcgovern@novell.com>
5142 * runtime.cpp: Correctly set 'emittingMouseEvent' to
5143 true/false when we receive a mouse event. Fixes some mouse
5144 capture issues in drt 535
5146 2009-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
5148 * playlist.cpp|h: Make the *Async methods really async, and add corresponding
5151 * mediaplayer.cpp: Don't allow Play while we're seeking.
5153 * mediaelement.cpp: When calling any of the async methods on the playlist,
5154 set the expected state immediately, since CurrentState is not async. Also
5155 allow Play/Pause/Stop if we're already in the desired state, since there might
5156 be another state changed pending.
5158 2009-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
5160 * mediaplayer.cpp|h: Emit BufferUnderflowEvent when the buffer underflows.
5162 2009-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
5164 * pipeline.cpp|h: Notify the decoder when a seek has completed so
5165 that it can clean its state properly. FillBuffers: the final buffer size
5166 is equal to the smallest buffer size of all the streams, not the buffer
5167 size of the last stream.
5169 2009-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
5171 * mediaplayer.cpp: Video/AudioFinished: don't do anything if the video/audio
5172 has already finished.
5174 2009-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
5176 * playlist.cpp|h: Fix IsSingleFile implementation.
5178 * mediaelement.cpp|h: Don't emit MediaOpened after reloading a media after
5179 a Stop for non-playlist media.
5181 2009-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
5183 * mediaplayer.cpp|h: Add a StopAudio method which stops the audio, and use
5184 it whenever we stop the audio. AdvanceFrame: For media with a specified
5185 duration stop the audio when we've reached the desired duration.
5187 2009-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
5189 * mediaelement.cpp: OpenCompletedHander: Before emitting
5190 DownloadProgressChangedEvent get the highest DownloadProgress value
5191 from either our own dependency property or the media. For mms streams
5192 download progress needs to be 1.0 when emitting MediaOpenedEvent,
5193 the mms code sets media's DownloadProgress to 1.0 after parsing the
5194 asf header correctly, but since the media emits the DownloadProgressChanged
5195 event async, the dependency property in MediaElement hasn't been updated
5196 yet in OpenCompletedHandler.
5198 2009-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
5200 * pipeline.cpp: Allow buffering progress to go down, not only up.
5201 Also fix progress events to only emit if delta > 0.5% or if equal
5202 to lower/upper limits.
5204 2009-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
5206 * pipeline.cpp|h: When we get a decode frame request from another
5207 thread, store the request on the demuxer in a list, instead of on the
5208 media thread's stack. This ensures that decode frame requests are
5209 decoded in the same order they're requested.
5214 * type-generated.cpp: Regenerated.
5216 2009-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
5218 * playlist.cpp|h: Added and Emit EntryChangedEvent.
5220 * type-generated.cpp: Regenerated.
5222 2009-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
5224 * playlist.cpp: PlaylistList::Dispose: set current_node to null, since we'll delete
5227 2009-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
5229 * mediaelement.cpp: Only emit BufferingProgressChanged if it has gone up. The real
5230 buffer level will fluctuate as we play.
5232 2009-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
5234 * mediaelement.cpp|h: When we pause, store the current position, which we must return
5235 while paused. It may differ from the actual position when we pause, since the actual
5236 pause is done async.
5238 2009-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
5240 * mediaplayer.cpp|h:
5241 * mediaelement.cpp|h: Use a property value provider for
5242 Render/DroppedFramesPerSecond.
5244 2009-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
5246 * mediaelement.cpp|h: Make ReportErrorOccurred thread-safe. Managed code might
5247 call us from a worker thread.
5249 2009-07-16 Jackson Harper <jackson@ximian.com>
5251 * xaml.cpp: When creating user controls make sure that we are
5252 hydrating if an x:Class type name is used.
5254 2009-07-16 Jeffrey Stedfast <fejj@novell.com>
5256 * textbox.cpp (TextBoxUndoActionInsert::.ctor): Now takes an
5257 'atomic' argument. If atomic is true, then the buffer is not
5258 growable. This is the behavior we want for TextBoxBase::Paste(),
5259 but not TextBoxBase::Commit() (which needs to allow growable
5260 insert actions so that Undo removes the string of text the user
5261 just typed as opposed to just the most recent character).
5262 (TextBoxBase::Paste): Pass 'true' as the 'atomic' argument to
5263 TextBoxUndoActionInsert::.ctor().
5265 2009-07-16 Alan McGovern <amcgovern@novell.com>
5270 * uielement.cpp: 1) If the Control is not attached to a
5271 subtree which has been loaded, don't propagate IsEnabled to
5273 2) Whenever a Control is loaded we traverse it's visual
5274 parents until we find another control and propagate the
5277 2009-07-16 Stephane Delcroix <sdelcroix@novell.com>
5279 * multiscaleimage.h: mark the ViewportOrigin and ViewportWidth
5280 properties as AlwaysChange. fix drt #291.
5282 2009-07-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
5284 * dependencyobject.cpp: Retrieve all instance variables we need
5285 into local variables before decreasing the refcount. If the
5286 refcount is > 0 after decreasing it, we can't access instance
5287 variables anymore, since another thread might have unreffed which
5288 would cause the object to be deleted already.
5290 2009-07-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
5292 * dependencyobject.cpp: #if DEBUG -> #if SANITY and fix a typo in
5295 2009-07-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
5297 * dependencyobject.cpp: Add sanity check for refcount < 0.
5299 2009-07-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
5301 * dependencyobject.cpp: Move sanity verification into #if SANITY.
5303 2009-07-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
5305 * dependencyobject.h: Is, GetType, GetTypeName: use the Type
5306 overloads which takes a Deployment and provide our deployment
5309 2009-07-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
5311 * type.cpp|h.in: Add Find, IsAssignable and IsSubclassOf methods
5312 which takes a Deployment argument for when we already have the
5313 Deployment handy. This way we can avoid hitting
5314 Deployment::GetCurrent on some frequently used methods.
5316 * type.h: Regenerated.
5318 2009-07-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
5320 * runtime.h: Add stack trace to warning.
5322 2009-07-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
5324 * audio.cpp: Underflowed: if we haven't ended and don't have any
5325 more frames, we need to set the Waiting bit so that we start
5326 playing again when we get more frames.
5328 2009-07-16 Stephane Delcroix <sdelcroix@novell.com>
5330 * multiscaleimage.cpp: reset the bitmapimage uri for the next time,
5331 avoid issues while reusing dlders for the same images, like in drt2013
5333 2009-07-16 Stephane Delcroix <sdelcroix@novell.com>
5335 * tilesource.h|cpp, multiscleimage.h|cpp: invalidate the full msi cache
5336 on tilesource InvalidateTileLayer ().
5338 2009-07-16 Jackson Harper <jackson@ximian.com>
5340 * xaml.cpp: Remove some dead code.
5342 2009-07-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
5344 * deployment.h: DeploymentStack: Added to ease push/pop current
5345 deployment when calling into a browser.
5347 2009-07-15 Chris Toshok <toshok@ximian.com>
5349 * clock.h|cpp (Clock::CalculateFillTime): split this out from
5350 Clock::Begin since we can seek on a clock that hasn't actually hit
5352 (Clock::Begin): call CalculateFillTime.
5353 (Clock::UpdateFromParentTime): change our calculations slightly
5354 for what localTime is in the face of a seek, and update
5355 progress/localtime even when stopped. Also, call
5356 CalculateFillTime if we're seeking on a clock that hasn't started,
5357 to make sure we get the proper progress.
5358 (Clock::Seek): don't apply the SpeedRatio here, we do it in
5359 UpdateFromParentTime.
5361 * animation.h|cpp (AnimationStorage::GetStopValue): remove, it's
5363 (AnimationStorage::UpdatePropertyValue): pass the stopValue or
5364 baseValue as the defaultDestinationValue to
5365 AnimationClock::GetCurrentValue.
5366 (AnimationStorage::ResetPropertyValue): use ?: instead of if+else.
5367 (DoubleAnimation::GetCurrentValue): if there's a correctly typed
5368 defaultDestinationValue, use that before the base case of end =
5370 (ColorAnimation::GetCurrentValue): same.
5371 (PointAnimation::GetCurrentValue): same.
5373 2009-07-15 Jackson Harper <jackson@ximian.com>
5375 * xaml.cpp|h: Consolidate some of the data passed to
5376 every callback and not used much into a struct.
5378 2009-07-15 Jeffrey Stedfast <fejj@novell.com>
5380 * fontmanager.cpp (IndexFontSubdirectory): font_stream_new() can
5381 return NULL, so properly handle this error condition.
5382 (IndexFontFile): Same.
5383 (FontManager::OpenFontFace): Here too.
5384 (OpenSystemFont): Don't destroy the FcPattern until after opening
5385 the font (otherwise the filename will be free'd memory).
5387 * textbox.cpp (TextBoxView::Paint): Use the CaretBrush property to
5388 get the brush used for rendering the blinking caret. This is a 3.0
5391 2009-07-15 Alan McGovern <amcgovern@novell.com>
5394 * control.cpp: Remove the Control::SetVisualParent override
5395 which ensures Control::IsEnabled is propagated correctly as
5396 this needs to be performed in UIElement::SetVisualParent.
5397 Set the subtreeobject before calling
5398 FrameworkElement::ElementAdded otherwise Control::IsEnabled
5399 cannot be propagated.
5402 * uielement.cpp: Whenever the visual parent is changed on a
5403 UIElement we need to propagate Control::IsEnabled changes
5404 down the tree. Allows drt 557 to get a lot further.
5406 2009-07-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
5408 * mediaelement.cpp: SetProperties: set last seeked-to pts to 0.
5410 2009-07-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
5412 * pipeline.cpp: When seeking, reset buffering progress to 0.
5414 2009-07-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
5416 * mediaelement.cpp: SetDemuxerSource: no downloading goes on here
5417 (that we know of), so initialize DownloadProgress to 1.0.
5419 2009-07-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
5421 * mediaelement.cpp: Don't emit CurrentStateChanged after calling
5422 SetState, since SetState will also emit the event.
5424 2009-07-15 Alan McGovern <amcgovern@novell.com>
5426 * tabnavigationwalker.cpp: If a child node is disabled, there
5427 is no point in walking its children or attempting to tab to
5430 2009-07-15 Jackson Harper <jackson@ximian.com>
5432 * xaml.cpp: We don't want to auto import the SL namespaces when
5435 2009-07-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
5437 * pipeline.cpp|h: AudioStream: add a keyframe flag to the ctor.
5439 * cbinding.cpp|h: Regenerated.
5441 2009-07-15 Stephane Delcroix <sdelcroix@novell.com>
5443 * bitmapimage.h|cpp: drop the downloader references, rely on
5444 Application::GetResource () for getting from resource AND downloading. The
5445 old downloader mechanism for v1 js callbacks.
5447 2009-07-14 Stephane Delcroix <sdelcroix@novell.com>
5449 * application.h|cpp: Application.GetResource () now try to get the resource
5450 from the managed callback, then fallback to downloading.
5452 2009-07-14 Stephane Delcroix <sdelcroix@novell.com>
5454 * utils.h|cpp: Cancellable class, passed as method argument, allows
5455 to abort an async action.
5457 2009-07-15 Stephane Delcroix <sdelcroix@novell.com>
5459 * tilesource.h|cpp: add an invalidate_tile_layer_func so MSI can
5460 hook itself in and invalidate the cache
5462 2009-07-15 Stephane Delcroix <sdelcroix@novell.com>
5464 * tilesource.h|cpp: stub InvalidateTileLayer
5466 2009-07-15 Alan McGovern <amcgovern@novell.com>
5468 * control.cpp: Ensure that the control loses focus when it is
5469 disabled even if there are no other focusable controls. Also
5470 ensure the surface is not null before using it, fixes a
5473 2009-07-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
5475 * error.h: ErrorEventArg: Add accessors that can be pinvoked.
5477 * cbinding.cpp|h: Regenerated.
5479 2009-07-15 Alan McGovern <amcgovern@novell.com>
5481 * control.cpp: When the focused control is disabled, tab to
5482 the next suitable control.
5484 2009-07-15 Alan McGovern <amcgovern@novell.com>
5487 * runtime.cpp: Implement the default autofocusing behaviour
5488 which silverlight exhibits. Apparently if the root control
5489 is focused, silverlight will keep attempting to focus a
5490 child of that control until it succeeds. Once a child
5491 control is focused, the focus changed events are emitted
5492 immediately, ignoring the usual focusing rules. Fixes DRT
5495 2009-07-15 Alan McGovern <amcgovern@novell.com>
5497 * uielement.cpp: When clearing the Loaded flag on a UIElement,
5498 we should clear the flag on all visual children too.
5500 2009-07-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
5502 * audio.cpp: Ref when we're supposed to ref. Fixes a crash.
5504 2009-07-14 Larry Ewing <lewing@novell.com>
5506 * panel.cpp (OnPropertyChanged): make sure we invalidate the panel
5507 bounds when the bg changes. Fixes 641
5509 2009-07-14 Larry Ewing <lewing@novell.com>
5511 * border.cpp (OnSubPropertyChanged): elements must listen to
5512 subproperty changes for brushes. Fixes 2020
5514 2009-07-14 Alan McGovern <amcgovern@novell.com>
5516 * tabnavigationwalker.cpp: If TabNavagationWalker::Focus () is
5517 called on a Control with the 'Cycle' navigation mode and
5518 none of the children of that node can be tabbed to, then
5519 focus remains on that control.
5521 2009-07-13 Jeffrey Stedfast <fejj@novell.com>
5523 * fonts.cpp (TextFont::Load): Don't g_strfreev() the families
5524 string array until after we've finished using the hash
5525 table. Prevents FMRs.
5527 2009-07-13 Jackson Harper <jackson@ximian.com>
5529 * xaml.cpp: Don't allow setting x:Name and Name on the same
5531 - Raise an error if we try to set a property to an incompatible
5534 2009-07-13 Alan McGovern <amcgovern@novell.com>
5537 * uielement.cpp: If the focused element is removed from the
5538 visual tree, it should lose focus.
5540 2009-07-13 Jackson Harper <jackson@ximian.com>
5542 * xaml.cpp: Oops, trying to get the element name from the wrong
5545 2009-07-13 Jackson Harper <jackson@ximian.com>
5547 * xaml.cpp: Handle MoonErrors for AddChild.
5549 2009-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
5556 * mms-downloader.cpp: IMediaObject: make the media field
5557 private, and add thread-safe property accessors (using a
5558 mutex and always returning a reffed object). Update all code
5559 which accessed the old accessor to use the new accessor and
5560 unref the media when done.
5562 2009-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
5564 * pipeline.cpp|h: Deleted MemoryNestedSource, not used anymore.
5568 * type-generated.cpp: Regenerated.
5570 2009-07-13 Alan McGovern <amcgovern@novell.com>
5572 * control.cpp: A control does not have to be loaded to be
5573 focusable, the visual tree it's attached to has to be
5576 2009-07-13 Alan McGovern <amcgovern@novell.com>
5580 * tabnavigationwalker.h: TabNavigation should activate if the
5581 control does not handle the Tab key
5583 2009-07-13 Alan McGovern <amcgovern@novell.com>
5590 * tabnavigationwalker.h:
5591 * tabnavigationwalker.cpp: Commit the initial implementation
5592 of the TabNavigationWalker. Supports the three tabbing modes
5593 and also forward/backward tabbing. Passes drt 323 except for
5594 a default focusing issue.
5596 2009-07-13 Alan McGovern <amcgovern@novell.com>
5598 * keyboard.cpp: Handle shift + tab (GDK_ISO_Left_Tab) as a
5601 2009-07-13 Jérémie Laval <jeremie.laval@gmail.com>
5603 * src/dependencyproperty.cpp: Added const modifier to local variables.
5604 Fix the build with recent gcc.
5606 2009-07-10 Chris Toshok <toshok@ximian.com>
5608 * value.h.in|cpp (Value::Clone): new method, clone the DO if the
5609 value contains one, and otherwise just copy the contents.
5611 * namescope.cpp (NameScope::CloneCore): clone the mapping (hm,
5612 this is probably wrong, as the mapping needs to reference cloned
5613 objects, not the same objects that existed in the original
5616 * collection.h|cpp (Collection::CloneCore): clone the collection
5619 * dependencyproperty.h|cpp (resolve_property_path): add a
5620 promoted_values hashtable argument. if the value has already been
5621 promoted, don't do it again. promote the first value we can while
5622 resolving the property path. Don't promote UIElement subclasses
5625 * dependencyobject.h|cpp: add api for cloning (deep copying) for
5626 DependencyObjects. DependencyObject::Clone is the public
5627 interface, with subclasses overriding ::CloneCore if they need to.
5629 * color.cpp (color_to_string): multiply by 255, not 256.
5631 * animation.h|cpp (Storyboard::HookupAnimationsRecurse): this
5632 takes a hashtable now so we don't promote values more than
5633 once (doing so causes previous animations to target objects that
5634 are no longer attached anywhere).
5636 * cbinding.h, cbinding.cpp, value.h, type-generated.cpp: regen.
5638 2009-07-10 Larry Ewing <lewing@novell.com>
5640 * shape.cpp (MeasureOverride): start working towards fixing
5641 LayoutShapes with some tweaking here.
5642 (Clip): apply the framework clip to elements in the flow too.
5644 2009-07-10 Jeffrey Stedfast <fejj@novell.com>
5646 * textbox.cpp (TextBoxBase::CursorNextWord): Emulate Windows
5648 (TextBoxBase::CursorPrevWord): Same.
5649 (TextBoxBase::KeyPressRight): If there is currently a selection
5650 and the user presses ArrowRight by itself, set the anchor and
5651 cursor at the end of the selection.
5652 (TextBoxBase::KeyPressLeft): Same idea, but set them at the start
5655 2009-07-10 Jeffrey Stedfast <fejj@novell.com>
5657 * textbox.cpp: Always set SelectionStart before
5658 SelectionLength. Fixes a bug when selecting backwards from the end
5661 2009-07-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
5663 * mediaelement.cpp|h: Store the last seeked-to position so that we never
5664 return a value before that as the current Position. MS DRT #486 uses
5665 a MediaStreamSource which returns frames before the seeked to position
5666 after seeking, and the test checks that MediaElement's Position property
5667 never returns a value before the seeked to position.
5669 2009-07-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
5671 * audio.cpp: When we stop, we need to discard any audio data we might
5674 2009-07-10 Sebastien Pouliot <sebastien at ximian.com>
5676 * runtime.cpp|h, type-generated.cpp: Rename
5677 SourceDownloadCompletedEvent to SourceDownloadCompleteEvent
5679 2009-07-09 Jeffrey Stedfast <fejj@novell.com>
5683 * uri.cpp: Don't use a GData for params, instead use a custom
5684 linked-list. This makes it easier to compare param lists.
5685 (operator==): Compare params.
5687 * textbox.cpp (TextBoxBase::OnFocusOut): When we focus out, clear
5690 2009-07-09 Jackson Harper <jackson@ximian.com>
5692 * dependencyobject.cpp|h: Add a little more logic for setting
5693 things to NULL and consolidate in it's own function (STRING can
5694 now be set to NULL).
5696 2009-07-09 Sebastien Pouliot <sebastien at ximian.com>
5698 * downloader.cpp|h: Don't check redirection AFTER downloading the
5699 data. Expose CheckRedirectionPolicy so the plugin can check for
5700 the redirection policy when creating a new stream.
5701 * uri.cpp|h: Add IsAbsolute method and make the return value of
5704 2009-07-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
5706 * playlist.cpp: StopAsync: (PlaylistEntry): don't stop the MediaPlayer,
5707 the root takes care of that. (Playlist): loop over all children and
5708 call StopAsync on them, this way all nested playlists are reset properly
5709 (PlaylistRoot): when done stopping, reopen us.
5711 2009-07-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
5713 * playlist.cpp: Skip UTF8 boms when checking if a file is a playlist.
5715 2009-07-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
5717 * mediaelement.cpp: If we don't AutoPlay, we end up Paused, not Stopped.
5719 2009-07-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
5721 * mediaelement.cpp: Don't go directly into a Buffering state, when
5722 MediaOpened is emitted we must be either in Paused or Playing state.
5724 2009-07-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
5726 * mediaelement.cpp: Seek: if CanSeek is false, don't seek.
5728 2009-07-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
5730 * mediaelement.cpp|h: Emit CurrentState events asynchronously.
5732 2009-07-08 Larry Ewing <lewing@novell.com>
5734 * frameworkelement.cpp (Arrange): apply min/max values to the
5737 2009-07-08 Jeffrey Stedfast <fejj@novell.com>
5739 * fontmanager.cpp (FontManager::OpenSystemFont): Make 2 attempts
5740 at opening the requested system font. First, try using the font
5741 name exactly as the user gave it to us. If that fails, fallback to
5742 canonicalizing it and the style values.
5743 (style_diff): Modify the algorithm used to compare the style
5744 difference between 2 fonts.
5746 2009-07-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
5749 * mediaelement.h: Add validators for Balance and Volume.
5750 This fixes MS DRT #960.
5752 * value.cpp|in: Add support for changing a value.
5755 * dependencyproperty.g.cpp: Regenerated.
5757 2009-07-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
5759 * playlist.h|cpp: Add support for PARAMS elements in ASX files. Fix
5760 some casing changes with media attributes. PlayNext: fix logic, after
5761 finishing a nested playlist we must play the next entry in our playlist,
5762 not finish right away. If the pipeline raises a MediaError event due to
5763 missing a codec (which is most likely due to an unsupported media file),
5764 don't propagate the error, just play the next entry. Fix a lot of error
5765 code/message changes from 1.0 to 2.0. MS DRT #78 now passes, as well
5766 as 99.6% of our playlist tests.
5768 2009-07-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
5771 * playlist.h|cpp: Unify playlist detection into one place and add
5772 support for skipping initial whitespace in the file.
5774 2009-07-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
5776 * playlist.cpp|h: String setters: be consistent: take a const string
5777 and dup inside the setter if required, instead of always when calling
5778 the setter, which may leak.
5780 2009-07-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
5782 * playlist.cpp: OnASXStartElement: null initialize to avoid reading
5785 2009-07-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
5787 * playlist.cpp: Cleanup: cleanup properly since we may continue to live
5788 after this method has been called.
5790 2009-07-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
5792 * playlist.cpp: PlaylistEntry: needs to ref/unref the source.
5794 2009-07-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
5797 * playlist.cpp|h: Store any ErrorEventArgs in the PlaylistParser, and if
5798 the parsing fails, propagate the args up in the pipeline.
5800 2009-07-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
5802 * mediaelement.cpp: We need to populate media attributes before raising
5805 2009-07-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
5807 * mediaelement.cpp: When emitting MediaOpened, ensure that DownloadProgress
5808 has changed at least a tiny bit.
5810 2009-07-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
5812 * mediaelement.cpp: MediaOpened event comes with an empty RoutedEventArgs.
5814 2009-07-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
5816 * mediaelement.cpp: Properly set CanPause and CanSeek, and always use
5817 mediaplayer's duration as NaturalDuration.
5819 2009-07-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
5821 * mediaplayer.cpp: All starting points seem to be allowed now, so don't
5822 throw an error event for starting point > duration anymore. Also duration
5823 is always the entire length of the media, regardless of when we start and
5824 how long we're supposed to play.
5826 2009-07-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
5828 * error.cpp|h: Add custom information to ErrorEventArgs, to provide
5829 better Moonlight debugging and in some cases we need more information
5830 than what MS reports.
5832 2009-07-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
5834 * media.cpp: MediaAttributes are case-insensitive.
5836 2009-07-07 Jeffrey Stedfast <fejj@novell.com>
5838 * fontmanager.cpp (canon_font_family_and_style): New convenience
5839 function to canonicalize font family & style info, split out of
5841 (IndexMatchFace): Use the new function.
5843 2009-07-07 Jackson Harper <jackson@ximian.com>
5845 * style.h: Need an internal setter for IsSealed so we can do the
5846 parser seal/unseal hack.
5848 2009-07-07 Sebastien Pouliot <sebastien@ximian.com>
5850 * downloader.cpp|h: Add a new FontPolicy since it differs from
5851 XamlPolicy (which is otherwise *unused*) and fix policies wrt
5852 http://msdn.microsoft.com/en-us/library/cc189008(VS.95).aspx
5853 * glyphs.cpp, textblock.cpp, textbox.cpp: Use the new FontPolicy
5856 2009-07-07 Alan McGovern <amcgovern@novell.com>
5858 * namescope.cpp: Once a namescope is locked, don't allow names
5859 to be registered or unregistered. Fixes the case where the
5860 name is changed on a template item.
5862 2009-07-07 Alan McGovern <amcgovern@novell.com>
5866 * template.cpp: When expanding a template, mark all the
5867 children as TemplateItems so they will be able to look up
5868 the correct namescope.
5872 * dependencyproperty.g.cpp: Add an "IsTemplateItem" attached
5875 * dependencyobject.h:
5876 * dependencyobject.cpp: Add extra overloads to FindName and
5877 FindNameScope so that we can tell whether we are looking up
5878 a template name or regular name.
5881 * namescope.cpp: Add the ability to lock a namescope so it
5882 can be recognised as a template namescope.
5884 2009-07-07 Jackson Harper <jackson@ximian.com>
5886 * xaml.cpp: Lookup properties on the owner type so attached
5887 properties get looked up properly when setting them via text ie
5888 <Canvas.Left>5</Canvas.Left>
5890 2009-07-06 Jackson Harper <jackson@ximian.com>
5892 * xaml.cpp: Ignored elements should buffer their contents
5893 - Add in Ignored attributes
5895 2009-07-06 Jackson Harper <jackson@ximian.com>
5897 * xaml.cpp: Implement ignorable namespaces.
5899 2009-07-06 Larry Ewing <lewing@novell.com>
5901 * multiscaleimage.cpp (ZoomAboutLogicalPoint): make this compile.
5903 2009-07-06 Stephane Delcroix <sdelcroix@novell.com>
5905 * multiscaleimage.cpp, multiscaleimage.h: keep the zoom and pan targets
5906 so ZoomAbout *= the target's value for zoom, not the current one.
5908 2009-07-06 Jeffrey Stedfast <fejj@novell.com>
5912 * fonts.cpp (LoadPortableUserInterface): Return the index of the
5914 (TextFont::Load): If PUI is our first family, keep track of which
5915 face the Lucida face is and use that as our master. Otherwise use
5917 (TextFont::UpdateFaceExtents): Use the 'master' face to get the
5918 extents from, rather than the first face.
5920 2009-07-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
5922 * playlist.cpp: PlayNext: play even if previous entry didn't fail.
5923 Fixes our test #136.
5925 2009-07-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
5927 * playlist.cpp|h: Remove wsx/smil parsing, it's a server side
5928 playlist format so we'll never get it, it'll be parsed on the
5931 2009-07-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
5933 * mediaelement.cpp: Fix warning.
5935 2009-07-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
5939 2009-07-03 Larry Ewing <lewing@novell.com>
5941 * textblock.cpp (ArrangeOverride): try to get textblock height
5942 stretching closer. See 295 and 2020 for examples.
5944 2009-07-03 Alan McGovern <amcgovern@novell.com>
5946 * runtime.cpp: We don't need to change these actually.
5948 2009-07-03 Alan McGovern <amcgovern@novell.com>
5950 * runtime.cpp: When inside the if statement, we know that
5951 toplevel and element are the same, so use 'element' instead
5952 of 'toplevel' in case the toplevel is removed during the
5953 loaded/resized event. Fixes memorabilia.
5955 2009-07-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
5957 * mms-downloader.cpp: ProcessResponseHeaderCallback:
5958 set current deployment.
5960 2009-07-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
5962 * pipeline-asf.cpp|h:
5963 * mms-downloader.cpp|h: If downloading the mms url
5964 doesn't succeed, raise an error. Fixes MS DRT #222
5967 2009-07-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
5970 * mediaelement.cpp: When playing an mms stream, SL sets
5971 DownloadProgress to 1.0 after downloading the header.
5972 Makes MS DRT #222 reach a bit further.
5974 2009-07-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
5976 * pipeline.cpp: Fix printf.
5978 2009-07-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
5980 * mediaelement.cpp: Handle DownloadProgressChanged events
5983 2009-07-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
5985 * downloader.cpp|h: Add another downloader API
5986 method, this time to get the DownloaderResponse.
5988 * cbinding.cpp|h: Regenerated.
5990 2009-07-02 Stephane Delcroix <sdelcroix@novell.com>
5992 * multiscaleimage.h: instruct the generator to do more for us.
5994 2009-07-02 Chris Toshok <toshok@ximian.com>
5996 * propertypath.h: fix operator== and add operator!=.
5998 * validators.h|cpp: add StoryboardTargetPropertyValidator.
6000 * dependencyproperty.g.cpp: regen.
6002 * animation.h (class Storyboard): use a special validator for
6003 TargetPropertyProperty such that it follows the semantics laid out
6004 in StoryboardTest.SetTargetPropertyTwice*.
6006 2009-07-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
6008 * mediaelement.cpp: Protect against emitting BufferingProgressChanged
6009 when the actual value hasn't changed.
6011 * pipeline.cpp: FillBuffers: don't report any buffering progress
6012 if we don't have any media streams.
6014 2009-07-02 Jeffrey Stedfast <fejj@novell.com>
6016 * fonts.cpp (LoadPortableUserInterface): Now takes a 'lang'
6017 argument which is used for loading the preferred default font (by
6018 language) first, before the other fallback fonts.
6019 (TextFont::Load): Pass in the 'lang' argument.
6020 (TextFontDescription): Added methods to get/set a Language
6023 * textblock.cpp (Inline::UpdateFontDescription): Set the language
6024 on the TextFontDescription.
6025 (TextBlock::OnPropertyChanged): If the
6026 FrameworkElement::LanguageProperty changes, reload the fonts and
6029 2009-07-02 Jackson Harper <jackson@ximian.com>
6031 * xaml.cpp: Fix error code so it gets propogated up when
6032 validating templates.
6034 2009-07-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
6036 * runtime.cpp: Fix printf.
6038 2009-07-02 Stephane Delcroix <sdelcroix@novell.com>
6040 * multiscaleimage.h|cpp: handle the various motion finished separately
6041 and only emit th eMotionFinished event if all the 3 (zoom, pan, fade)
6042 animations are completed.
6044 2009-07-02 Stephane Delcroix <sdelcroix@novell.com>
6046 * multiscaleimage.h|cpp: use 2 internals dp for animating pan & zoom.
6047 use a custom property provider so getting vp origin or width returns
6048 the current value, while setting them sets the animation's targets.
6050 2009-07-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
6052 * pipeline.cpp: FillBuffers: Only take into
6053 account media streams when trying to determine
6054 if all streams have reached its end. Fixes our test
6057 2009-07-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
6059 * mediaelement.cpp: Reinvalidate everything when
6060 clearing a source. Fixes MS DRT #45 (after setting
6061 the source to an empty string, the media element
6062 shouldn't render anything anymore).
6064 2009-07-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
6066 * pipeline.cpp: FillBuffers: Take into account that
6067 decoders may call SetOutputEnded once SetInputEnded
6068 is called, and update the number of ended streams
6069 immediately. Fixes our test #111.
6071 2009-07-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
6074 * playlist.cpp: Make debug output more descriptive.
6076 2009-07-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
6078 * pipeline-asf.cpp|h: Reimplement support for mms seeking.
6080 2009-07-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
6082 * mp3.cpp: GetFrameAsyncInternal: if we don't have enough data,
6085 2009-07-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
6087 * mp3.cpp: Fix parsing of xing vbr headers causing wrong
6088 duration to get calculated of the file.
6090 2009-07-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
6092 * mp3.cpp: FindMpegHeader: fix return value: the offset of
6093 the header goes into the result output variable and we return
6094 success instead of returning a bogus error value.
6096 2009-07-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
6098 * pipeline.cpp: If we couldn't select a demuxer because of
6099 not having enough data yet, try again later.
6101 2009-07-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
6103 * mediaelement.cpp: If Source (or UriSource) is either null
6104 or an empty string, we're only supposed to clean up, not
6105 trying to play the null/empty string.
6107 2009-07-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
6109 * pipeline.cpp: Use ProgressEventArgs to pass buffering progress
6110 to MediaElement. Clamp BufferingProgress to 0.0 <=> 1.0, and if
6111 all streams have finished their output, set buffering progress
6114 * playlist.cpp: Properly forward progress event args.
6116 * mediaelement.cpp: Set buffering progress when it changes,
6117 and raise BufferingProgressChanged. Don't try to autoplay
6118 when buffering progress is < 1.0, wait until it reaches 1.0.
6120 2009-07-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
6122 * audio-pulse.cpp: Fix warning.
6124 2009-07-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
6126 * audio-alsa.cpp: WriteMmap: If we try to write with an audio
6127 source which has ended, call Underflowed, since that's what's
6130 2009-07-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
6132 * audio-alsa.cpp: If hw setup failed, dump current hw parameters
6133 to stdout (if debug mode is enabled).
6135 2009-07-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
6137 * mms-downloader.cpp: Do better initialization and cleanup of
6138 downloader and state variables to prevent issues when seeking.
6140 2009-07-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
6142 * mms-downloader.cpp: Write: Don't use math when not necessary to
6143 avoid overflows, and if we end up freeing the buffer set the size
6146 2009-07-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
6148 * mms-downloader.cpp: Use thread-safe tick call from media thread.
6150 2009-07-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
6152 * mms-downloader.cpp: Don't leak the uri.
6154 2009-07-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
6156 * downloader.h: Make OpenInitialize public so that the
6157 MmsDownloader can reinitialize it when sending new requests.
6159 2009-06-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
6161 * audio.cpp: Play 24 bit audio unconditionally.
6163 2009-07-01 Chris Toshok <toshok@ximian.com>
6165 * Makefile.am (INCLUDES): turns out we need to include ../plugin
6166 here to deal with type-generated/type.h/etc.
6168 * type.h.in: fix annoying indent problem.
6170 * cbinding.h, dependencyproperty.g.cpp, type-generated.cpp,
6171 value.h, type.h: regen
6173 2009-07-01 Larry Ewing <lewing@novell.com>
6175 * textblock.cpp (ArrangeOverride): take alignment into account
6176 when computing our size.
6178 2009-07-01 Jeffrey Stedfast <fejj@novell.com>
6180 * textblock.cpp (ArrangeOverride): Set the available width on the
6181 layout so that it can properly align the text for center/right
6184 2009-07-01 Jackson Harper <jackson@ximian.com>
6186 * xaml.cpp: Need to set the binding source when we are validating
6189 2009-07-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
6191 * mediaelement.cpp: SetMarkerTimeout: when unreffing self
6192 use a delayed timeout, since we can be the last ref, this
6193 ensures the stack is unwound first.
6195 2009-06-30 Larry Ewing <lewing@novell.com>
6197 * border.cpp (Render): get CornerRound rendering closer to the sl
6200 2009-06-30 Chris Toshok <toshok@ximian.com>
6202 * clock.h|cpp: Seeking doesn't start the clock. And we have to
6203 support UpdateFromParentTime even while paused, since we can seek
6204 while paused. Fixes 392 (along with actually fixing the test..)
6206 2009-06-30 Chris Toshok <toshok@ximian.com>
6208 * clock.h|cpp: fix Seek and SeekAlignedToLastTick. fixed DRT
6211 2009-06-30 Jeffrey Stedfast <fejj@novell.com>
6213 * fontmanager.cpp (style_diff): Improved a bit so that we never
6214 return G_MAXINT if any font by the same name is found, no matter
6215 what style differences there are.
6217 2009-06-30 Jackson Harper <jackson@ximian.com>
6219 * deepzoomimagetilesource.cpp: Parsers need to be freed.
6221 2009-06-30 Alan McGovern <amcgovern@novell.com>
6223 * popup.cpp: According to the docs, a popup which is GC'ed
6224 should be closed. Ensure that this happens.
6226 2009-06-30 Alan McGovern <amcgovern@novell.com>
6228 * popup.cpp: If the child is set after the popup is opened,
6229 make sure it is shown. Ensure that we now only emit the
6230 Opened/Closed events when the popup IsOpen state changes.
6231 Allows 503 to progress further.
6233 2009-06-30 Jackson Harper <jackson@ximian.com>
6235 * xaml.cpp|h: Add a flag for template validation
6236 - Implement template validation and propogate errors up
6237 * cbinding.cpp: regen
6239 2009-06-30 Stephane Delcroix <sdelcroix@novell.com>
6241 * multiscaleimage.cpp: drop a debug block that was misinterpreted by
6242 the preprocessor. fir x drt 265.
6244 2009-06-30 Stephane Delcroix <sdelcroix@novell.com>
6246 * multiscaleimage.cpp: download the first num_dl (6) levels while the
6249 2009-06-29 Alan McGovern <amcgovern@novell.com>
6251 * control.cpp: Unregress drt 911, EnabledChanged events fire
6252 at the correct time again.
6254 2009-06-29 Jeffrey Stedfast <fejj@novell.com>
6256 * fontmanager.cpp (LoadGlyph): Save some memory by dropping some
6257 of the GlyphMetrics fields.
6259 * layout.cpp: Updated to keep track of the previous GlyphInfo
6260 rather than the previous GlyphInfo's index.
6262 * fonts.cpp (TextFont::GetGlyphInfo): Set the GlyphInfo face.
6263 (TextFont::Kerning): Modified to take GlyphInfo arguments rather
6264 than face indexes since they are worthless w/o knowing which font
6265 face the indexes of each are for.
6267 2009-06-29 Alan McGovern <amcgovern@novell.com>
6269 * control.cpp: Propagate the IsEnabled changes down the visual
6270 tree in OnPropertyChanged, not in SetValue.
6272 2009-06-29 Jackson Harper <jackson@ximian.com>
6274 * xaml.cpp: Store enums as INTs.
6276 2009-06-28 Chris Toshok <toshok@ximian.com>
6278 * clock.h|cpp (Clock::RaiseAccumulatedEvents): switch (state ==
6279 Clock::Active) to (state != Clock::Stopped) to tell whether or not
6280 we've started (since we can start directly in the filling state.)
6282 Also remove all the idle_hint stuff, since it's no longer used.
6284 * timemanager.cpp (RootClockGroup::UpdateFromParentTime): not sure
6285 why this method is needed at all, but at the very lease we need to
6286 stop calling ClockGroup::UpdateFromParentTime, since this method
6287 very nearly duplicates that one (and we're therefore looping over
6288 the child clocks twice).
6290 2009-06-28 Chris Toshok <toshok@ximian.com>
6292 * color.cpp (named_colors): update these so that text-colors.xaml
6295 2009-06-28 Larry Ewing <lewing@novell.com>
6297 * xaml.cpp (value_from_str_with_parser): allow NAN to be NAN too.
6299 2009-06-27 Jeffrey Stedfast <fejj@novell.com>
6301 * glyphs.cpp (OnPropertyChanged): When the FontUriProperty
6302 changes, the layout *always* gets dirty. We also always need to
6305 * fonts.cpp (TextFont::UpdateFaceExtents): New helper method to
6306 calculate/update the font extents. Only use the extents of the
6307 first face - this fixes a bunch of MS DRTs.
6308 (TextFont::.ctor): Call UpdateFaceExtents().
6309 (TextFont::SetSize): Need to call UpdateFaceExtents() here. Fixes
6310 a number of regressions (like MS DRT #43).
6312 2009-06-27 Chris Toshok <toshok@ximian.com>
6314 * grid.cpp (Grid::OnCollectionItemChanged): don't
6315 InvalidateMeasure() when the grid's actualwidth or row's
6316 actualheight is set. this gets us into an infinite loop.
6318 2009-06-26 Chris Toshok <toshok@ximian.com>
6320 * enums.cpp (grid_unit_type_map): add a mapping for GridUnitType.
6321 (initialize_enums): and add it to the hashtable.
6323 * grid.h|cpp: make ColumnDefinition.ActualWidth and
6324 RowDefinition.ActualHeight dependencyproperties to make the plugin
6325 binding easier. get rid of each class's "actual" field.
6327 2009-06-25 Chris Toshok <toshok@ximian.com>
6329 * xaml.h|cpp (xaml_is_valid_event_name): pass in the type of the
6330 object we're looking the event up on, and a flag as to whether or
6331 not to allow desktop-specific events. and just look up the event
6332 from the type system instead of having the hardcoded list.
6334 2009-06-25 Chris Toshok <toshok@ximian.com>
6336 * xaml.h|cpp (xaml_is_valid_event_name): pass in the type of the
6337 object we're looking the event up on, and a flag as to whether or
6338 not to allow desktop-specific events. and just look up the event
6339 from the type system instead of having the hardcoded list.
6341 2009-06-26 Jeffrey Stedfast <fejj@novell.com>
6343 * fonts.cpp (LoadPortableUserInterface): Only set that we've
6344 loaded PUI, not each individual fallback face. The other faces may
6345 match user-specified faces, but there may also be a font source
6346 that it is loading them from (which may differ from the locally
6349 2009-06-26 Jeffrey Stedfast <fejj@novell.com>
6351 * runtime.cpp: Don't need to call font_init() or font_shutdown()
6354 * deployment.cpp: Create a new FontManager per Deployment and
6355 provide an access method to get at it.
6357 * textblock.cpp, glyphs.cpp, textbox.cpp: Updated for the font
6360 * provider.cpp: Removed FontFilenameProperty and FontGUIDProperty
6361 inheritance, these no longer exist.
6363 * fonts.cpp|h: New source files with the higher-level abstraction
6364 for font loading, glyph manipulation, etc.
6366 * fontmanager.cpp|h: New source files containing a FontManager
6367 class which handles caching of font faces and indexing of font
6368 resources. Serves as platform-dependent font loading layer.
6370 * font.cpp|h: Removed.
6372 2009-06-26 Jeffrey Stedfast <fejj@novell.com>
6374 * uri.cpp (ToString): Respct the UriHideQuery flag.
6376 2009-06-26 Larry Ewing <lewing@novell.com>
6378 * border.h: change the default value.
6380 * cornerradius.h: reorder the bottom* arguments.
6382 2009-06-26 Alan McGovern <amcgovern@novell.com>
6385 * popup.cpp: Handle popup hittesting when its closed in a way
6388 2009-06-26 Alan McGovern <amcgovern@novell.com>
6390 * popup.cpp: Keep the RENDER_VISIBLE flag in sync with the
6391 IsOpen state so that hittesting works correctly.
6393 2009-06-25 Chris Toshok <toshok@ximian.com>
6395 * xaml.h|cpp (xaml_is_valid_event_name): pass in the type of the
6396 object we're looking the event up on, and a flag as to whether or
6397 not to allow desktop-specific events. and just look up the event
6398 from the type system instead of having the hardcoded list.
6400 2009-06-25 Larry Ewing <lewing@novell.com>
6402 * grid.cpp, grid.h (PostRender): move the grid lines from Render to
6403 PostRender so that the lines are on top of the children (which
6404 appears to be the sl behavior). Fixes at least 317 and 446.
6406 2009-06-25 Sebastien Pouliot <sebastien@ximian.com>
6408 * downloader.cpp: Fix MediaElement policy wrt cross-domain access.
6409 Fix two unnumbered DRT tests.
6411 2009-06-25 Chris Toshok <toshok@ximian.com>
6413 * textbox.h|cpp (TextBoxBase::SelectWithError): we need to
6414 generate ArgumentExceptions here if start/length are out of range.
6415 This could, in the future, be entirely handled by the setter
6416 methods but for now we don't pass a MoonError to them.
6418 * xaml.h|cpp (xaml_set_property_from_str): this method takes an
6419 additional MoonError parameter so we can communicate back if there
6420 was a problem. Also, call SetValueWithError.
6422 * cbinding.h|cpp: regen.
6424 2009-06-25 Chris Toshok <toshok@ximian.com>
6426 * resources.h|cpp: add a "from_resource_dictionary_api" bool so we
6427 can tell in AddedToCollection and RemovedFromCollection if we got
6428 there from using ResourceDictionary's string-based api or
6429 Collection's object-based api. Take care of adding/removing the
6430 key for the object in those methods if we didn't come from the RD
6433 * type.cpp (Type): quiet valgrind down by using "delete []"
6434 instead of "delete" to free up the interfaces array.
6436 2009-06-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
6438 * mediaplayer.cpp: Improve debug output.
6440 2009-06-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
6442 * pipeline.h: Added a ProgressEventArgs class.
6446 * type-generated.cpp: Regenerated.
6448 2009-06-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
6450 * audio.cpp|h: Add support for having different input (from the
6451 codec) and output (to the device) formats. This is required for
6452 pulseaudio 0.10 which doesn't support 24 bit audio, only 16 and 32
6453 bit. Also add support for multi channel audio.
6456 * audio-pulse.cpp: Add support for multi channel and 24 bit audio
6457 and update according to audio API changes.
6459 2009-06-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
6461 * audio-alsa.cpp: Fix debug output by not duplicating declarations.
6463 2009-06-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
6465 * audio.cpp|h: Add support for dumping raw audio data to a file.
6467 2009-06-25 Alan McGovern <amcgovern@novell.com>
6469 * dependencyproperty.g.cpp: Regen
6471 2009-06-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
6475 * file-downloader.h:
6476 * internal-downloader.h: Add a SetFilename abstract method to
6477 InternalDownloader, provide implementations in FileDownloader
6478 and MmsDownloader and call the abstract method in the downloader
6479 instead of blindly casting an InternalDownloader to a FileDownloader
6480 when it might be an MmsDownloader.
6482 2009-06-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
6484 * pipeline.cpp|h: AudioStream: add possibility of having different
6485 input and output formats.
6487 * cbinding.cpp|h: Regenerated.
6489 2009-06-24 Chris Toshok <toshok@ximian.com>
6491 * xaml.cpp (matrix_from_str): handle "Identity" here.
6492 (value_from_str_with_parser): you can also create TransformGroups
6493 directly using the matrix syntax. Also, add support for parsing
6494 FontWeight/FontStyle/FontWeight structs here since we can't just
6495 rely on the enum_* stuff alone to do it.
6497 * value.h.in, value.cpp: add support for
6498 FontWeight/FontStyle/FontWeight structs.
6500 * textblock.cpp (Inline::UpdateFontDescription): track the
6502 (TextBlock::Layout): same.
6504 * textbox.cpp (TextBoxBase::Initialize): same.
6505 (TextBoxBase::OnPropertyChanged): same.
6507 * fontweight.h, fontstyle.h, fontstretch.h: new files, we're using
6508 structs now for these.
6510 * textblock.h, control.h: use the FontWeight/FontStyle/FontWeight
6511 struct types for properties instead of our internal enums.
6513 * Makefile.am (libmoon_include_headers): add fontstretch.h
6514 fontstyle.h, and fontweight.h
6516 * type-generated.cpp: regen.
6518 * cbinding.h|cppp: regen.
6520 * dependencyproperty.g.cpp: regen.
6524 2009-06-24 Larry Ewing <lewing@novell.com>
6526 * panel.cpp (Render): add layout clipping to panel rendering.
6528 2009-06-24 Larry Ewing <lewing@novell.com>
6530 * grid.h: stop drawing the gridlines by default. See comment for
6533 2009-06-24 Alan McGovern <amcgovern@novell.com>
6536 * runtime.cpp: Focus changed events should be emitted at the
6537 start and end of any user initiated event.
6538 can_raise_focus_changed is no longer necessary.
6540 2009-06-23 Larry Ewing <lewing@novell.com>
6542 * frameworkelement.cpp (UpdateLayout): reorder the way we process
6543 the lyout queues. Fixes ms 409.
6545 2009-06-23 Jackson Harper <jackson@ximian.com>
6547 * xaml.cpp: Handle empty buffers
6549 2009-06-23 Jackson Harper <jackson@ximian.com>
6551 * xaml.cpp: ContentControl can not have string content set this
6552 way, if the content object is a string it needs to be set with
6555 2009-06-23 Jackson Harper <jackson@ximian.com>
6557 * xaml.cpp: Another stab at not skipping empty attributes. Fixed
6558 all the unit test regression this caused last night.
6560 2009-06-23 Alan McGovern <amcgovern@novell.com>
6562 * grid.cpp: A dash length of 4 seems to be more correct.
6564 2009-06-23 Alan McGovern <amcgovern@novell.com>
6567 * grid.cpp: Implement Grid.ShowGridlines
6569 2009-06-22 Jackson Harper <jackson@ximian.com>
6571 * xaml.cpp: Pass the full prop name to managed
6572 - If managed fails to set the property, delete it so unmanaged can
6575 2009-06-22 Larry Ewing <lewing@novell.com>
6577 * provider.cpp: make UIElement::UseLayoutRounding inherited, this
6578 doesn't make it pass 2019 but it does a lot more.
6580 * shape.cpp: mirror the silverlight logic for canvas children with
6581 only one of w/h set. Fixes ms test 23.
6583 2009-06-18 Larry Ewing <lewing@novell.com>
6585 * shape.cpp: try to get the shape flags right once again trap
6586 explicit small values properly. Add Clipping logic to clip shapes
6587 to the fe values when explicitly set.
6589 * frameworkelement.cpp: look at stretch even when we have no
6592 2009-06-19 Jackson Harper <jackson@ximian.com>
6594 * xaml.cpp|h: We now have a managed version of AddChild so remove
6595 all the AddToContainer junk and use the managed AddChild instead.
6596 - Add MoonError to all the callbacks. Not handling the errors yet,
6597 but at least they are there now.
6599 2009-06-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
6601 * xaml.cpp: Add comment about absolute/relative paths
6604 2009-06-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
6606 * multiscaleimage.cpp: When an image has been opened,
6607 invalidate everything.
6609 2009-06-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
6611 * multiscaleimage.cpp|h: Emit MotionFinished after
6612 SetViewportWidth/SetViewportOrigin has been called.
6614 2009-06-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
6616 * multiscaleimage.cpp|h:
6617 * deepzoomimagetilesource.cpp|h: Raise error events.
6619 2009-06-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
6621 * multiscaleimage.cpp|h: Add support for methods exposed to JS.
6623 * cbinding.h: Regenerated.
6625 2009-06-18 Sebastien Pouliot <sebastien@ximian.com>
6627 * textblock.cpp: Avoid crash when using FontSource
6629 2009-06-18 Alan McGovern <amcgovern@novell.com>
6633 * control.cpp: When the visual parent changes on a Control, it
6634 needs to search up the visual tree to find out the Enabled
6635 state of the first Control it finds. When raising the
6636 IsEnabledChanged events, the control must emit its event
6637 before controls in its subtree emit their events. Fixes drt
6640 2009-06-17 Jeffrey Stedfast <fejj@novell.com>
6642 * textbox.cpp (Paste): Don't allow pastes to exceed MaxLength and
6643 for single-line entry controls (e.g. PasswordBox), don't allow
6646 2009-06-17 Alan McGovern <amcgovern@novell.com>
6648 * uielement.cpp: Changing UIElement::Visibility should also
6649 invalidate the parents measure. This allows DRT 2050 to
6650 complete without timing out.
6652 2009-06-17 Alan McGovern <amcgovern@novell.com>
6654 * uielement.cpp: Changing UIElement.Visibility should result
6655 in the measure being invalidated.
6657 2009-06-17 Alan McGovern <amcgovern@novell.com>
6659 * font.cpp: When the font cache is destroyed, set it to NULL
6660 so that if a Font is destroyed later it does not try to
6662 Null check the the FontFace cache before using it.
6663 If the FT_Face stream is null already, don't try to destroy
6666 2009-06-17 Alan McGovern <amcgovern@novell.com>
6668 * runtime.cpp: A subset of keypresses are allowed to bubble up
6669 when in fullscreen mode. Fixes drt 175.
6671 2009-06-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
6673 * uri.cpp: Add a null check to prevent a crash.
6675 2009-06-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
6677 * uri.cpp: Flag a lot more characters as url unsafe, and
6678 fix printf specifiers for url encoded characters to not
6679 include extra 'ff' sequences for every encoded character.
6681 This fixes parts of MS DRT #641.
6683 2009-06-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
6685 * downloader.cpp|h: Add an Open overload which takes an Uri
6686 instead of a string.
6688 * deepzoomimagetilesource.cpp:
6689 * bitmapimage.cpp: Use the Uri overload of Downloader::Open.
6691 2009-06-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
6693 * playlist.cpp: When we stop, emit the StopEvent.
6695 * mediaelement.cpp: Don't return a CurrentPosition > NaturalDuration.
6697 2009-06-16 Chris Toshok <toshok@ximian.com>
6699 * xaml.cpp (XamlElementInfoStaticResource,
6700 XamlElementInstanceStaticResource): remove these classes.
6701 (begin_buffering_element_names): remove this unused variable.
6702 (XamlParserInfo::LookupNamedResource): remove.
6703 (DefaultNamespace::FindElement): remove the
6704 XamlElementInfoStaticResource case, and just let the managed
6705 loader create the StaticResource element itself.
6706 (is_static_resource_element): remove.
6707 (XamlElementInstanceNative::SetProperty): defer to the loader if
6708 either the property or the value RequiresManagedSet.
6709 (dependency_object_set_property): defer to the loader if the value
6711 (dependency_object_set_attributes): remove all processing of
6712 markup extensions from unmanaged code.
6713 (xaml_markup_parse_argument): remove.
6714 (xaml_markup_extension_type): remove.
6715 (handle_markup_in_managed): remove.
6716 (handle_xaml_markup_extension): remove.
6718 * panel.h|cpp (Panel::Panel): just set our subtree object here.
6719 (Panel::GetSubtreeObject): remove.
6721 * provider.cpp (AutoCreatePropertyValueProvider::GetPropertyValue):
6722 don't notify listeners when creating an auto-created value.
6724 * dependencyobject.cpp (DependencyObject::ProviderValueChanged):
6725 only call the property's change callback if we're notifying
6728 2009-06-17 Andreia Gaita <avidigal@novell.com>
6730 * dependencyobject.cpp: (Emit) if types have been destroyed, bail out
6732 2009-06-17 Andreia Gaita <avidigal@novell.com>
6734 * xaml.cpp: fix typo
6736 2009-06-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
6738 * pipeline.cpp: Remove spurious printfs.
6740 2009-06-16 Andreia Gaita <avidigal@novell.com>
6742 * deployment.[h|cpp]: Try to dispose types only if there are no
6743 objects pending destruction. If there are, dispose only after
6744 they are all cleared (on DrainUnrefs). This makes sure no properties
6745 are destroyed while objects are still pending.
6746 Added isDead flag, used when doing object tracking to protect against
6747 trying to access type fields when the types have been destroyed
6748 already (when doing ref logging and the final leak report).
6749 Type destruction is slightly delayed when doing object tracking
6750 to allow for the report (otherwise we wouldn't have any type names
6751 on it, and that would be sad)
6753 * type.cpp: fake-clear the properties list by setting it's count to 0
6754 so access by id fails (in case someone wants to access the property
6755 while we're disposing everything).
6756 Delete all the registered types and kill the properties list when
6757 destroying. By this point all properties and objects should be
6759 * type.h.in: added dispose flag.
6760 * type.h: regenerated
6762 2009-06-16 Andreia Gaita <avidigal@novell.com>
6764 * uielement.cpp: release all refs on dispose
6766 2009-06-16 Andreia Gaita <avidigal@novell.com>
6768 * control.[h|cpp]: Dispose() added. Don't be clingy, unref things
6770 2009-06-16 Jeffrey Stedfast <fejj@novell.com>
6772 * xaml.cpp (value_from_str_with_parser): Handle Type::CHAR
6774 2009-06-16 Larry Ewing <lewing@novell.com>
6776 * shape.cpp: try to be more careful about clearing SHAPE_EMPTY
6777 when properties change in preparation for fixing the autocreated
6778 property notification stuff
6780 2009-06-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
6782 * multiscaleimage.cpp: Add a call to print_stack_trace, looks
6783 like abort () doesn't cause a stack trace.
6785 2009-06-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
6787 * mediaplayer.cpp: Remove circular dependency between MediaPlayer
6788 and MediaElement, clear out the element in Dispose and add a null
6789 check before accessing the element. Fixes crash in MS DRT #238.
6791 2009-06-15 Andreia Gaita <avidigal@novell.com>
6793 * frameworkelement.cpp: delete UIElement nodes when we're done
6796 2009-06-15 Jeffrey Stedfast <fejj@novell.com>
6798 * textblock.cpp (SetTextInternal): Get rid of some duplicated
6801 2009-06-15 Alan McGovern <amcgovern@novell.com>
6804 * frameworkelement.h:
6805 * frameworkelement.cpp: Give an initial implementation of
6806 FindElementInHostCoordinates (UIElement, Rect) which treats
6807 the rect as a series of points and checks each one until a
6808 hit is found. Allows drt 280 to
6810 2009-06-15 Jeffrey Stedfast <fejj@novell.com>
6812 * dependencyobject.cpp (Initialize): Initialize is_hydrated to
6815 2009-06-15 Andreia Gaita <avidigal@novell.com>
6817 * type.[h|cpp]: Dispose method added, to help separate between clearing
6818 all the DPs and actually deleting the types. For now, just clears the
6819 DPs and doesn't touch the type list.
6820 * deployment.cpp: (Dispose) types are disposed here, for now.
6822 2009-06-15 Andreia Gaita <avidigal@novell.com>
6824 * dependencyproperty.g.cpp: regenerated
6826 2009-06-15 Jackson Harper <jackson@ximian.com>
6828 * xaml.cpp: Reorder errors.
6830 2009-06-15 Andreia Gaita <avidigal@novell.com>
6832 * deployment.cpp: (Reinitialize) AssemblyPartsCollection is reffed
6833 inside SetParts, and since we don't store it anywhere else, drop a
6836 2009-06-15 Andreia Gaita <avidigal@novell.com>
6838 * dependencyproperty.cpp, animation.[h|cpp]: Fix animation storage so
6839 it removes itself from the property list and gets deleted as soon as
6840 possible, otherwise it will not only leak, but blow up once we start
6842 Floating status is gone.
6844 2009-06-15 Andreia Gaita <avidigal@novell.com>
6846 * value.[h.in|cpp], debug.h, runtime.[h|cpp]: LOG_VALUE macro added,
6847 and some extra debugging output for refcounting.
6850 2009-06-15 Alan McGovern <amcgovern@novell.com>
6852 * frameworkelement.cpp: Objects can be hit as long as their
6853 height as greater than zero and the point is in the fill or
6856 2009-06-15 Alan McGovern <amcgovern@novell.com>
6858 * frameworkelement.cpp: Back that change out as it causes some
6859 regressions in the moon-unit tests.
6861 2009-06-15 Alan McGovern <amcgovern@novell.com>
6863 * frameworkelement.cpp: We can hit an element in both stroke
6866 2009-06-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
6868 * playlist.cpp|h: When a media reports that it has been opened
6869 successfully, check if we're the current element, and if not,
6870 don't to anything more until we are the current element. This
6871 fixes an issue with server side playlists where they would
6872 only play the first entry.
6874 * pipeline.cpp|h: Move code out of header.
6876 * pipeline-asf.cpp|h: Inform the MmsPlaylistEntry whenever an
6879 2009-06-15 Alan McGovern <amcgovern@novell.com>
6881 * frameworkelement.cpp: We're hittesting the clip, we use
6882 user-space coordinates, so apply the identity matrix to get
6885 2009-06-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
6887 * pipeline.h: Expose MediaFrame::IsKeyFrame to C.
6889 * cbinding.cpp|h: Regenerated.
6891 2009-06-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
6893 * enums.cpp: Rename MediaElementState -> MediaState. Add 'Paused'
6894 to the enum->str conversion table.
6896 2009-06-15 Alan McGovern <amcgovern@novell.com>
6898 * mediaplayer.cpp: The MediaPlayer should ref the MediaElement
6899 it's attached to otherwise it can access the element after
6900 the element has been destroyed. Stops 238 crashing.
6902 2009-06-14 Andreia Gaita <avidigal@novell.com>
6904 * value.[h.in|cpp]: (CreateUnref*) Accept EventObject instead of DPs, since
6905 there are certain refcounted objects that aren't child classes of
6907 Wrap null objects but don't try to unref them.
6910 2009-06-14 Andreia Gaita <avidigal@novell.com>
6912 * debug.[h|cpp]: add max frame arg for finer control when getting
6915 2009-06-12 Jackson Harper <jackson@ximian.com>
6917 * xaml.cpp|h: import_xmlns now validates the namespace so we can
6918 raise an error if it is invalid.
6920 2009-06-12 Jackson Harper <jackson@ximian.com>
6922 * xaml.cpp: Don't allow dtds.
6924 2009-06-12 Jackson Harper <jackson@ximian.com>
6926 * xaml.cpp: SL doesn't handle NaN the same way that strtod does.
6928 2009-06-12 Jackson Harper <jackson@ximian.com>
6930 * xaml.cpp: Use the value attribute parsing for enum types, this
6931 allows them to have x:Key and x:Name attributes.
6933 2009-06-12 Sebastien Pouliot <sebastien@ximian.com>
6935 * dependencyproperty.g.cpp: Regenerated
6936 * deployment.h: Update ExternalCallersFromCrossDomainProperty
6937 generator-related properties and add unmanaged accessors
6938 * enumscpp|h: Remove CrossDomainAccessFullAccess value which was
6939 dropped after SL2 beta2
6940 * uri.cpp|h: Add new Uri::SameSiteOfOrigin method
6941 * validators.cpp|h: Add new CrossDomainValidator that ensure we
6942 can set only once Deployment::ExternalCallersFromCrossDomainProperty
6944 2009-06-11 Jackson Harper <jackson@ximian.com>
6946 * xaml.cpp: Re-enable the force USERCONTROL to be managed thingy.
6947 - Don't try to set managed properties in
6948 dependency_object_add_child.
6949 - Make sure we only create managed property elements for managed
6950 items, even if they are DOBs, otherwise UserControl.Resources gets
6951 a native property info.
6953 2009-06-11 Alan McGovern <amcgovern@novell.com>
6956 * runtime.cpp: The uielements involved in GotFocus/LostFocus
6957 events need to be stored in a queue so that focusing
6958 multiple elements in one tick works correctly.
6960 2009-06-11 Alan McGovern <amcgovern@novell.com>
6964 * type-generated.cpp: Make Popup.[Opened|Closed] asynchronous.
6966 2009-06-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
6968 * src.mdp: Define HAVE_CONFIG_H to fix build in MD.
6970 * security.c: Fix signed/unsigned mismatch warning.
6972 * error.cpp: Fix warning about not initialize in correct order.
6974 2009-06-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
6976 * pipeline.cpp: Fix warning/typo in printf.
6978 2009-06-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
6980 * pipeline.cpp: MarkerStream: if there is no callback, store
6981 the markers in a list instead of just dropping them. Fixes an
6982 issue with our #150 where we'd lose markers since the stream
6983 had processed them before getting a callback.
6985 * mediaelement.cpp: Check if a marker stream has stored markers
6986 (which would have been added before the calback was set).
6988 2009-06-10 Larry Ewing <lewing@novell.com>
6990 * frameworkelement.cpp (Arrange): measure containers if they
6991 haven't been at least for now.
6993 2009-06-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
6995 * mediaelement.cpp: When we get a stream as the source, set download
6996 progress immediately to 1.0. Also emit DownloadProgressChanged just
6997 after opening the file (to ensure that we emit DownloadProgressChanged
6998 at least once). This makes MS DRT #420 not time out.
7000 2009-06-10 Larry Ewing <lewing@novell.com>
7002 * frameworkelement.cpp (UpdateLayout): if we find a unloaded
7003 element while walking the tree emit loaded on it now.
7005 2009-06-10 Larry Ewing <lewing@novell.com>
7007 * frameworkelement.cpp (UpdateLayout): emit SizeChanged in the
7008 place it was supposed to be emitted.
7010 2009-06-10 Jeffrey Stedfast <fejj@novell.com>
7012 * layout.cpp (Layout): Don't apply font height to the line unless
7013 text has been rendered on that line using that font.
7015 2009-06-10 Jackson Harper <jackson@ximian.com>
7017 * xaml.cpp|h: Add another param to LookupObject to specify whether
7018 we are looking up a property. We can't rely on the '.' being in
7019 the name because x:Class names can have namespaces.
7020 - Force USERCONTROL to be looked up in managed so we can
7023 2009-06-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
7025 * playlist.cpp|h: PlaylistEntry: Add support for getting duration for
7026 parent entries/playlists too. Also propagate the BufferUnderflow
7029 * pipeline.cpp: Change logic when filling the buffer to request
7030 a frame from the least-buffered stream. This solves an issue with
7031 live streams, we might end up playing audio only when the video
7032 buffer was empty and the audio buffer never full.
7034 * mediaplayer.cpp|h: When determining duration of an entry, check
7035 the entry's parents too for duration. We also need to set
7036 first_live_pts when rendering. This makes MS DRT #129
7037 not time out. Add a BufferUnderflow to inform listeners of any
7040 * mediaelement.cpp|h: Handle the BufferUnderflow event, pause
7041 playback and update states accordingly. Remove UpdateProgress,
7044 * type-generated.cpp: Regenerated.
7046 2009-06-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
7048 * mediaplayer.cpp: use the correct max value for guint64.
7050 2009-06-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
7052 * mediaplayer.cpp|h: Make flags a thread-safe variable, since
7053 we might write to it from an audio thread.
7055 2009-06-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
7057 * playlist.cpp: When checking if an entry has duration, check
7058 the right entry. Fixes a possible crash.
7060 2009-06-10 Alan McGovern <amcgovern@novell.com>
7062 * multiscaleimage.cpp: The FadeIn storyboard should emit a MotionFinished
7063 event too. Allows drt 293 to complete.
7065 2009-06-10 Alan McGovern <amcgovern@novell.com>
7067 * uri.cpp: Uris starting with "\\" need to be recognised as
7070 2009-06-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
7072 * pipeline-asf.cpp: Remove dead code.
7074 2009-06-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
7076 * runtime.cpp: g_warning -> printf to ease breaking on
7079 2009-06-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
7081 * dependencyobject.h: Fix IdMask.
7083 2009-06-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
7085 * pipeline.h|cpp: Rework some of the buffer filling algorithm:
7086 we now never have more than one frame pending (to know which
7087 stream a response comes from - if frame parameter to
7088 ReportGetFrameCompleted is null, we need to mark the corresponding
7089 stream as ended. Also split the 'stream ended' concept in two:
7090 input ended (the demuxer won't give us more data) and output
7091 ended (the decoder won't give us more data). This fixed
7095 * pipeline-asf.h|cpp: GetFrameAsync: For some error codes we
7096 need to try again later.
7098 * mediaelement.cpp: CheckMarkers: subtract one to not include
7099 both ends of the range, if the marker matches exactly the end
7100 of a range it will get emitted twice otherwise.
7103 * audio.cpp: Updated according to IMediaStream changes.
7105 2009-06-09 Jeffrey Stedfast <fejj@novell.com>
7107 * value.cpp (operator==): Fix a crash if comparing a null
7110 * textbox.cpp (EmitSelectionChangedAsync): Only emit the event if
7111 the control is loaded.
7112 (EmitTextChangedAsync): Same.
7114 2009-06-09 Alan McGovern <amcgovern@novell.com>
7116 * runtime.cpp: The first mouse click will always Focus on the
7117 'default' control. After that we follow the normal focusing
7118 rules and focus on the first eligible control which the
7119 mouse has clicked on.
7121 2009-06-08 Jackson Harper <jackson@ximian.com>
7123 * xaml.cpp: Add TimeSpan to the primitive types.
7125 2009-06-08 Chris Toshok <toshok@ximian.com>
7127 * runtime.h (class Surface): add IsZombie.
7129 2009-06-08 Jackson Harper <jackson@ximian.com>
7131 * error.cpp|h: Add method and fields for line/char positions.
7132 * xaml.cpp: Fill in line/char positions on MoonErrors, this allows
7133 them to get propogated to managed and fixes some of the unit tests.
7135 2009-06-08 Jackson Harper <jackson@ximian.com>
7137 * xaml.cpp|h: Pass the property xmlns and the element xmlns into
7138 managed when setting properties.
7140 2009-06-08 Alan McGovern <amcgovern@novell.com>
7142 * runtime.cpp: Un-regress drt 783. We need to raise our cached
7143 focus changed event, then process the focus change itself,
7144 then raise the events for the new change.
7146 2009-06-08 Alan McGovern <amcgovern@novell.com>
7149 * runtime.cpp: If Control.Focus is called from inside a
7150 GotFocus handler, the focus change occurs immediately and
7151 the new GotFocus event is raised as soon as the current
7152 handler is finished.
7154 2009-06-08 Jackson Harper <jackson@ximian.com>
7156 * xaml.cpp: Bail out after we hit the first attribute parsing
7159 2009-06-08 Jackson Harper <jackson@ximian.com>
7161 * xaml.cpp: We need to convert path geometry strings from managed.
7163 2009-06-08 Jackson Harper <jackson@ximian.com>
7165 * xaml.cpp: Little more cleanup now that we don't have to reparse
7166 attributes for x:Class.
7168 2009-06-05 Chris Toshok <toshok@ximian.com>
7170 * xaml.cpp (XNamespace::SetAttribute): setting x:Class on an
7171 element when we aren't hydrating is illegal. this has the
7172 pleasant side effect of removing the need to reparse attributes,
7173 so axe that code as well.
7175 2009-06-05 Chris Toshok <toshok@ximian.com>
7177 * textbox.cpp (TextBoxView::Blink): don't set deployments using
7178 the pattern Deployment::SetCurrent (GetDeployment()), as
7179 GetDeployment() issues a warning if the object's deployment
7180 doesn't match the current one. use
7181 DependencyObject::SetCurrentDeployment(true) instead.
7183 2009-06-04 Chris Toshok <toshok@ximian.com>
7185 * runtime.cpp (Surface::EmitError): stop unreffing the args after
7186 the Emit call. Emit unrefs them for us.
7188 2009-06-05 Jeffrey Stedfast <fejj@novell.com>
7190 * layout.cpp (layout_word_wrap): Stop processing when we come to
7191 open-punctuation if it isn't the first char in the word as this is
7192 a good break opportunity. Fixes the last remaining issue in
7195 2009-06-04 Jackson Harper <jackson@ximian.com>
7197 * xaml.cpp: Track the owner type of properties so we know whether
7198 or not to go into managed when we are dealing with an attached
7201 2009-06-04 Jeffrey Stedfast <fejj@novell.com>
7203 * font.cpp (OpenFaceByIndex): If lang is non-null, then accept any
7204 font face that fontconfig can find for the requested language.
7205 (FontFace::LoadFontFace): Get the lang string and pass it along.
7206 (FontFace::Init): initialize a default font hash table for
7207 non-latin languages.
7208 (FontFace::Shutdown): destroy aformentioned table.
7209 (FontFace::LoadDefaultFaceForLang): New helper method to load the
7210 default font face for a given language code.
7211 (FontFace::GetDefault): If the language in the Fc pattern is
7212 'special', use LoadDefaultFaceForLang().
7213 (TextFontDescription::.ctor): Initialize language.
7214 (TextFontDescription::.dtor): Free language.
7215 (TextFontDescription::CreatePattern): Add the FC_LANG attribute if
7217 (TextFontDescription::UnsetFields): Unset the language field.
7218 (TextFontDescription::Merge): Merge the language field.
7219 (TextFontDescription::GetLanguage): New method to get the language.
7220 (TextFontDescription::SetLanguage): New method to set the language.
7221 (TextFontDescription::ToString): Modified a bit.
7223 * textblock.cpp (Inline::Equals): Compare XmlLanguage attributes
7225 (Inline::UpdateFontDescription): Pass the XmlLanguage along to the
7226 TextFontDescription.
7228 2009-06-04 Jackson Harper <jackson@ximian.com>
7230 * xaml.cpp: The managed property could be either the property or
7233 2009-06-04 Larry Ewing <lewing@novell.com>
7235 * canvas.cpp (OnCollectionItemChanged): call
7236 InvalidateSubtreePaint on items when their position in the canvas
7237 changes to make sure we clear the old region. Fixes a couple of
7238 the inkpresenter tests.
7240 2009-06-04 Larry Ewing <lewing@novell.com>
7242 * shape.cpp (ComputeStretchBounds): reject negative width/height
7243 settings. Fixes test-shape-negative.xaml
7245 2009-06-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
7247 * multiscaleimage.cpp: Add a debugging abort to try to find the
7250 2009-06-04 Alan McGovern <amcgovern@novell.com>
7253 * type-generated.cpp: Actually add IsEnabledChangedEvent
7255 2009-06-04 Alan McGovern <amcgovern@novell.com>
7257 * control.h: Add IsEnabledChangedEvent to native
7259 * type-generated.cpp: regen
7261 2009-06-04 Stephane Delcroix <sdelcroix@novell.com>
7263 * multiscaleimage.cpp: qtree_insert () takes no value. returns
7264 the newly created QTreeNode. qtree_insert_at () renamed to
7265 qtree_insert_with_value ().
7267 2009-06-03 Alan McGovern <amcgovern@novell.com>
7272 * uielement.cpp|h: Calling Control.Focus () results in a recursive
7273 check to find a focusable element. A mouse click does a non-recursive
7274 check on the elements which were 'hit'. Fixes two DRTs.
7276 2009-06-03 Jackson Harper <jackson@ximian.com>
7278 * xaml.cpp: Update some error messages.
7279 - Pass the current namespace in when creating property infos in
7281 * frameworkelement.h: ActualWidth and ActualHeight are readonly
7283 * dependencyproperty.g.cpp: regen
7285 2009-06-03 Jeffrey Stedfast <fejj@novell.com>
7287 * font.cpp (GetCharIndex): Use FcFreeTypeCharIndex() which does a
7288 bit more than FT_Get_Char_index().
7290 * layout.cpp (TextLayout::Layout): Silverlight 2.0 /never/ counts
7291 trailing lwsp towards line width, even if underlined.
7292 (TextLayoutGlyphCluster::Render): Don't underline trailing lwsp if
7293 we are the last glyph cluster on a line.
7294 (GenerateGlyphCluster): Keep track of underline width (calculated
7295 using width up to/including last non-lwsp char).
7296 (word_type_changed): Consider numerics as part of the containing
7299 2009-06-03 Jackson Harper <jackson@ximian.com>
7301 * xaml.cpp|h: We need to look for managed properties on native
7303 - Set the element info for properties to the type of the property.
7304 - Add the ability for properties to force their set to be in
7305 managed even if they come from a native type.
7307 2009-06-03 Alan McGovern <amcgovern@novell.com>
7309 * uielement.cpp: Calculate the Transform between two UIElements
7312 2009-06-03 Alan McGovern <amcgovern@novell.com>
7314 * transform.cpp: When instantiating a Matrix from a cairo_matrix_t
7315 we need to populate M11/M12/M21 etc with the correct values.
7317 2009-06-02 Chris Toshok <toshok@ximian.com>
7319 * xaml.cpp (dependency_object_add_child): XamlElementInfoEnum has
7320 Type::INVALID as its Kind. This is another facet to the "we need
7321 to register enum types" work that will need to be done. The
7322 GetKind() method needs to eventually return a property Kind, but
7323 until then we'll just check for Type::INVALID.
7325 2009-06-02 Sebastien Pouliot <sebastien@ximian.com>
7327 * security.c: Use the PREVIEW_VERSION for the environment variable
7328 used to turn off security (coreclr and verifier)
7330 2009-06-02 Jeffrey Stedfast <fejj@novell.com>
7332 * textblock.cpp (SetTextInternal): Oops, I must have somehow nuked
7333 the run->SetAutogenerated() logic a while back which is causing
7336 * layout.cpp (layout_word_overflow): Removed, Silverlight 2.0 no
7337 longer supports this wrapping model.
7339 2009-06-02 Larry Ewing <lewing@novell.com>
7341 * uielement.cpp (DoArrange): don't poke at unset values. Fixes
7344 2009-06-02 Jeffrey Stedfast <fejj@novell.com>
7346 * runtime.cpp (HandleMouseEvent): Fixed compile warning about 'if
7349 2009-06-02 Alan McGovern <amcgovern@novell.com>
7351 * collection.cpp: Fix DeepTreeWalker.Step (). It used to step in
7352 reverse logical order.
7355 * uielement.cpp|h: Make Focus a virtual method on UIElement.
7357 * src/runtime.cpp: When the surface receives a mouse down we need to
7358 focus the first control added to the root element if the user has not
7359 clicked on a control or focused one using Control.Focus (). Then any
7360 pending Focus events are raised before the mouse event is processed.
7362 * src/window-gtk.cpp: Always pass a right mouse button event into the
7363 Surface so that we can fire any pending Focus events to match the
7364 behaviour of Silverlight.
7366 2009-06-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
7368 * mms-downloader.cpp: Use strtoull instead of g_ascii_strtoull
7369 since g_ascii_strtoull isn't available in sled.
7371 2009-06-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
7373 * mms-downloader.cpp: Use strtoull instead of g_ascii_strtoull
7374 since g_ascii_strtoull isn't available in sled.
7376 2009-06-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
7381 * type-generated.cpp: Regenerated.
7383 * downloader.h: Removed streaming_features, not used here anymore.
7389 * pipeline-asf.cpp|h:
7390 * mms-downloader.cpp|h: Implement support for server side playlists.
7392 2009-06-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
7394 * pipeline.cpp: Check queued_requests for null after locking too.
7396 2009-06-02 Alan McGovern <amcgovern@novell.com>
7398 * runtime.cpp|h: Focus changed events are emitted synchronously right
7399 before a MouseLeftButtonDown or MouseRightButtonDown event.
7401 2009-06-01 Chris Toshok <toshok@ximian.com>
7403 * type.h.in|cpp (Types::RegisterType): permit a ctor_visible flag
7404 here too so xaml.cpp knows if the type is creatable.
7406 * type.h, cbinding.cpp|h: regen
7408 2009-06-01 Chris Toshok <toshok@ximian.com>
7410 * xaml.cpp (dependency_object_add_child): only do this check for
7411 non-Type::MANAGED children.
7413 2009-06-01 Chris Toshok <toshok@ximian.com>
7415 * grid.cpp|h: the row/columndefinitioncollections do not permit
7416 definitions to be inserted more than once.
7418 * type.h.in (class Type): add IsCtorVisible method and ctor arg.
7420 * type.h, type-generated.cpp: regen.
7422 * xaml.cpp (XamlElementInstanceNative::CreateItem): only create
7423 the instance if the ctor is visible.
7424 (dependency_object_add_child): if the ctor for the child isn't
7425 visible, error out even if it's the same type/kind as the
7428 2009-06-01 Jeffrey Stedfast <fejj@novell.com>
7430 * deployment.cpp (Dispose): Properly chain up to
7431 DependencyObject::Dispose().
7433 * bitmapimage.cpp (Dispose): Fixed Dispose chaining.
7435 * brush.cpp (ImageBrush::Dispose): Chain up to
7436 TileBrush::Dispose() instead of EventObject::Dispose(). Fixes a
7437 crash in GlyphsManagedDRT
7439 * dependencyobject.cpp (WildcardListener): Uh, this needs to
7440 subclass Listener or we can't go around casting it to a Listener.
7441 (CallbackListener): Same.
7443 2009-06-01 Chris Toshok <toshok@ximian.com>
7445 * runtime.cpp (Surface::EmitEventOnList): if the list is empty (or
7446 end_idx == 0) return early.
7448 * xaml.cpp (XamlLoader::HydrateFromString): turns out we only mark
7449 the toplevel object as hydrated if parser_info->hydrating == true.
7450 this fixes some managed parsing stuff since XamlReader.Load was
7451 using the same codepath (just passing NULL into
7452 XamlReader::HydrateFromString.)
7454 2009-05-29 Jeffrey Stedfast <fejj@novell.com>
7456 * application.cpp (GetResourceAsPath): Fixed extra
7457 XXXXXX'age. CreateTempDir() already handles appending the XXXXXX's
7460 2009-05-29 Alan McGovern <amcgovern@novell.com>
7462 * control.cpp: When Control.Focus () is called, if the control itself
7463 is not focusable, we need to check it's visual children. The call will
7464 complete successfully if any of the children are focusable, and that
7465 child will become the focused element.
7467 2009-05-29 Alan McGovern <amcgovern@novell.com>
7469 * control.cpp|h: If a control becomes disabled, it loses mouse capture
7470 and cannot regain it later. If CaptureMouse is called on a disabled
7471 control, the mouse is successfully captured and then immediately
7472 released which fires the LostMouseCapture event.
7474 * runtime.cpp|h: If control A captures the mouse, control B can't steal
7475 the capture or release the capture. Add an explicit ReleaseMouseCapture
7476 function to accomodate this behaviour.
7478 * uielement.cpp|h: Add an EmitLostMouseCapture event and a CanCaptureMouse
7479 function which signifies whether or not the current UIElement can keep the
7482 2009-05-28 Jeffrey Stedfast <fejj@novell.com>
7484 * textbox.h (class PasswordBox): Marked PasswordProperty as
7485 AlwaysChange so that setting this property (even to the same
7486 value) will force a PasswordChanged event to be emitted.
7487 (class TextBox): Marked SelectedTextProperty as AlwaysChange to
7488 fix moon-unit test: SetIdenticalSelectedText()
7490 * textbox.cpp (PasswordBox::OnPropertyChanged): Removed debugging
7491 printfs for utf8->ucs4 conversion errors.
7493 2009-05-28 Jeffrey Stedfast <fejj@novell.com>
7495 * textbox.h (class TextBox): Added the AlwaysChange metadata to
7496 SelectionStart/Length properties.
7498 * textbox.cpp (TextBoxBase::EmitSelectionChangedAsync): New method
7499 to asynchronously emit SelectionChanged events.
7500 (TextBoxBase::EmitTextChangedAsync): Same for TextChanged events.
7501 (TextBoxBase::SyncAndEmit): Asynchronously emit the events.
7502 (TextBox::EmitSelectionChanged): Simply emit the event now, don't
7503 bother updating state which is now handled elsewhere.
7504 (TextBox::EmitTextChanged): Same.
7505 (TextBox::OnPropertyChanged): When clamping the SelectionLength
7506 value due to a SelectionState property change, block events - we
7507 should only emit a single SelectionChanged event. Also modified to
7508 avoid emitting a TextBoxModelChanged event if the values didn't
7509 actually change. Same for SelectionLength changes.
7511 2009-05-28 Chris Toshok <toshok@ximian.com>
7513 * value.h.in, value.cpp: add a copy assignment operator.
7517 2009-05-28 Alan McGovern <amcgovern@novell.com>
7519 * control.cpp: When changing Control.IsEnabled, create the
7522 2009-05-28 Alan McGovern <amcgovern@novell.com>
7524 * animation.cpp: Fix a double free caused by the line
7525 converted = Value (*value);
7527 2009-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
7529 * pipeline-ui.cpp: Protect against a null surface.
7531 * mediaelement.cpp: Get the surface from the deployment (which should
7532 always have a surface) instead of the media element's surface
7533 (which is not guaranteed to be set always).
7535 2009-05-28 Alan McGovern <amcgovern@novell.com>
7537 * control.cpp|h: Control.IsEnabled propagates to its children
7538 when the control is Loaded.
7540 2009-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
7544 2009-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
7546 * mms-downloader.cpp: Custom headers must be requested before
7547 opening the downloader.
7549 2009-05-28 Stephane Delcroix <sdelcroix@novell.com>
7551 * multiscaleimage.h|cpp: replace the hash cache on uri by
7552 a set of qtree, one per subimage. This should speed stuffs
7553 a lot, as uri crating/parsing/hashing was taking up to 20%
7556 2009-05-28 Stephane Delcroix <sdelcroix@novell.com>
7558 * multiscalesubimage.h: GetId (). Get subimage id, used as
7561 2009-05-28 Stephane Delcroix <sdelcroix@novell.com>
7563 * multiscaleimage.cpp: qtree_new, qtree_lookup, qtree_destroy,
7564 qtree_insert, etc. The Q(uad)Tree data structure is a tree with
7565 4 child nodes, matching the tree-ish pyramid of MSI tiles.
7567 2009-05-28 Andreia Gaita <avidigal@novel.com>
7569 * timeline.cpp: Stop the clock when you call Stop.
7571 2009-05-27 Jeffrey Stedfast <fejj@novell.com>
7573 * textbox.cpp (TextBoxBase::SyncAndEmit): Now takes a sync_text
7574 argument which defaults to true. If not set, we avoid calling
7575 SyncText() even if emit has the TEXT_CHANGED bit set.
7576 (TextBox::OnPropertyChanged): Call SyncAndEmit() with sync_text =
7577 false if the value was just set to null.
7579 2009-05-27 Alan McGovern <amcgovern@novell.com>
7582 * control.cpp: Implement correct propagation of
7583 Control.IsEnabled. Children of disabled controls are
7584 disabled. When their parent is re-enabled, they go back to
7585 their previous state.
7587 2009-05-27 Jeffrey Stedfast <fejj@novell.com>
7589 Fixes to make sure that an TextChanged and SelectionChanged events
7590 are emitted after each and every change to the Text/Selection
7593 * textbox.cpp (TextBoxBase::BatchPush): Call at the start of each
7594 batch operation. Prevents SyncAndEmit() from doing anything until
7595 all nested batch operations are completed.
7596 (TextBoxBase::BatchPop): Call at the end of each
7598 (TextBoxBase::*): Instead of using inkeypress, use the more
7599 generic BatchPush()/Pop().
7600 (TextBox::OnPropertyChanged): Call SyncAndEmit() after
7601 Text/Selection changes.
7602 (PasswordBox::OnPropertyChanged): Same.
7604 2009-05-27 Geoff Norton <gnorton@novell.com>
7606 * runtime.cpp|h: Support the splash progress/completed events.
7608 * type-generated.h: Regen
7610 2009-05-27 Jeffrey Stedfast <fejj@novell.com>
7612 * textbox.cpp (TextBox::EmitSelectionChanged): Only emit the event
7613 if the TextBox is loaded and unset the emit state.
7614 (TextBox::EmitTextChanged): Same.
7616 2009-05-27 Geoff Norton <gnorton@novell.com>
7618 * deployment.cpp|h: Allow reinitializing the appdomain if our
7619 Source has changed, or we're switching from the splash screen to
7622 2009-05-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
7625 * textblock.cpp: Fix warnings.
7627 2009-05-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
7630 * runtime.h|cpp: Add LOG_PIPELINE_EX and parse LOG_ASF correctly.
7632 2009-05-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
7638 * mms-downloader.cpp:
7639 * internal-downloader.h:
7640 * file-downloader.h:
7641 * file-downloader.cpp:
7642 * pipeline-asf.cpp: Updated according to downloader API changes.
7645 * downloader.cpp: Add support for retrieving response headers
7646 and disable caching. Initialize the downloader interface methods
7647 to their default/dummy methods statically.
7651 * type-generated.cpp:
7653 * cbinding.cpp: Regenerated.
7655 2009-05-27 Alan McGovern <amcgovern@novell.com>
7657 * resources.cpp: Wait til AddedToCollection returns success
7658 before adding the item to the hashtable.
7660 2009-05-27 Alan McGovern <amcgovern@novell.com>
7662 * resources.cpp: Propagate the error (if there is one) from
7663 Collection::AddWithError. If there is an error, clear the item
7664 from the hashtable before returning.
7666 2009-05-27 Alan McGovern <amcgovern@novell.com>
7670 * dependencyproperty.g.cpp: Control.Enabled needs to be
7671 created in native code as it's required for hittesting. A
7672 disabled control and its visual children do not receive
7673 mouse events and are not visible to
7674 VisualTreeHelper.FindElementInHostCoordinates.
7676 2009-05-26 Jeffrey Stedfast <fejj@novell.com>
7678 * glyphs.cpp (OnPropertyChanged): Set the font weight/slant based
7679 on the StyleSimulations value.
7680 (Layout): No longer need to pass along StyleSimulations to
7683 * font.cpp (style_weights): Added more style weight name mappings.
7684 (style_slants): Same.
7685 (FontFace::IsItalic): New method to query the font face to see if
7686 it is italic or not.
7687 (FontFace::IsBold): Same idea.
7688 (TextFont::TextFont): Now takes a TextFontDescription so that we
7689 can initialize the new 'simulate' member variable which tells us
7690 if we have to simulate bold or italics due to not finding a
7692 (TextFont::GetGlyphInfo): No longer takes a StyleSimulations
7693 argument. Instead, it now uses the 'simulate' member variable to
7694 pass to FontFace::LoadGlyph().
7695 (TextFontDescription::CreatePattern): Always add Weight and Slant
7696 to the pattern now, even if it is the default font
7697 family. Silverlight 2.0 no longer restricts bold/italics to
7700 2009-05-26 Chris Toshok <toshok@ximian.com>
7702 * xaml.cpp (XamlElementInstance::SetName): if it's a
7703 dependencyobject, add it to the container here.
7704 (XamlElementInstance::SetKey): same.
7705 (end_element_handler): only do the AddToParentContainer call here
7706 if the element is not a dependencyobject.
7708 2009-05-25 Jeffrey Stedfast <fejj@novell.com>
7710 * glyphs.cpp: Changed 'style' to be unsigned.
7712 2009-05-25 Andreia Gaita <avidigal@novel.com>
7714 * timeline.h|cpp (DispatcherTimer): reset the clock properly when
7715 restarting a dispatcher timer. also, rename Run to Restart.
7716 note: if a timer is not stopped or started during it's tick event,
7717 the time spent on the tick is counted for the next tick on the
7720 2009-05-25 Chris Toshok <toshok@ximian.com>
7722 * runtime.h|cpp (Surface::EmitError): add an overload so
7723 Application.cs can cause an error to be emitted on the surface.
7725 * cbinding.h|cpp: regen.
7727 2009-05-25 Andreia Gaita <avidigal@novel.com>
7729 * border.cpp (OnPropertyChanged): Invalidate when background is
7732 2009-05-25 Chris Toshok <toshok@ximian.com>
7734 * uielement.cpp (UIElement::GetTransformToUIElementWithError):
7735 this method fails incorrectly when you call it on the toplevel
7736 element of a surface.
7738 2009-05-25 Chris Toshok <toshok@ximian.com>
7740 * xaml.cpp (class XNamespace): name conflicts are pseudo-allowed
7741 for separate resource dictionary name registration. this isn't
7742 exactly right, since the name *should* be unregistered.
7744 2009-05-25 Chris Toshok <toshok@ximian.com>
7746 * validators.cpp (Validators::TemplateValidator): this is causing
7747 DRT 438 to throw an exception and subsequently timeout. its
7748 removal doesn't seem to break anything else, so ifdef it out with
7751 2009-05-25 Alan McGovern <amcgovern@novell.com>
7756 * dependencyobject.cpp
7757 * dependencyproperty.cpp
7758 * dependencyproperty.g.cpp
7759 * dependencyproperty.h
7760 * uielement.h: There are two types of DependencyProperty.
7761 Core properties and custom properties. Custom properties
7762 do not set the parent on a DO. This makes the old
7763 'SetsParent' property redundant, so remove it.
7765 2009-05-22 Chris Toshok <toshok@ximian.com>
7767 * xaml.cpp (XamlElementInstance::SetName): don't call
7768 AddToContainer here. in case the element is a value type, and
7769 we're adding it to a RD on a managed type (like StackPanel), the
7770 managed xaml loader will marshal the value type to C# and we'll
7771 lose any further updates to the value typed object by the parser.
7772 That is, if we parse <Color x:Key="foo">#ffffff00</Color>, the
7773 ManagedXamlLoader will see a color with #00000000 as its value, as
7774 the content hasn't been parsed by the time we create the managed
7776 (XamlElementInstance::SetKey): same.
7777 (end_element_handler): call AddToParentContainer here instead.
7779 2009-05-22 Chris Toshok <toshok@ximian.com>
7781 * dependencyobject.cpp (DependencyObject::OnPropertyChanged): we
7782 were missing the case where HydratedFromXaml elements weren't
7783 updating their parent namescope on name changes, only their
7784 private ones. Adding the parent namescope fix fixes FaceMonkey's
7787 2009-05-22 Jackson Harper <jackson@ximian.com>
7789 * xaml.h|cpp: New callback for registering elements in
7790 containers, we need to do this earlier on in the parse than
7791 setproperty because other elements could reference these elements
7792 before they've been set.
7794 2009-05-21 Alan McGovern <amcgovern@novell.com>
7797 * src/cbinding.h: regen
7799 * dependencyproperty.c:
7800 * dependencyproperty.h: We can either register a 'core' property or a
7801 'custom' property from managed code. Core properties are part of the
7802 framework itself, custom properties are user-created. Custom properties
7803 don't set the parent or register names in namescopes.
7805 2009-05-21 Stephane Delcroix <sdelcroix@novell.com>
7807 * deepzoomimagetilesource.h:
7808 * deepzoomimagetilesource.cpp: IsParsed () function, so we know,
7809 without listening to the event, if a tilesource is ready to be
7811 * multiscaleimage.cpp: check dzits.IsParsed() before getting the tile
7812 size from a subimage source.
7814 2009-05-21 Larry Ewing <lewing@novell.com>
7816 * multiscaleimage.cpp (RenderCollection): reoorder the max level
7817 test so that we only call get_tile_func once in that case. Speeds
7818 up hardrock and the moment.
7820 2009-05-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
7822 * debug.h: Added LOG_ASF.
7824 2009-05-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
7826 * runtime.h: Don't use 64 bit constants for the runtime debug enum.
7828 2009-05-21 Alan McGovern <amcgovern@novell.com>
7832 * src/dependencyproperty.g.cpp: regen
7834 * dependencyobject.cpp:
7835 * dependencyproperty.cpp:
7836 * dependencyproperty.h:
7837 * uielement.h: Add the ability to set a DP as non-parenting and
7838 apply it to FrameworkElement::TagProperty
7840 2009-05-20 Larry Ewing <lewing@novell.com>
7842 * multiscaleimage.cpp (RenderCollection): fix bug introduced in
7843 earlier tile size fix. Fixes covertocover.
7845 2009-05-20 Larry Ewing <lewing@novell.com>
7848 * bitmapsource.cpp: when creating a cached surface use the group
7849 target type not the overall target.
7851 2009-05-20 Larry Ewing <lewing@novell.com>
7853 * frameworkelement.cpp (ComputeActualSize): avoid making a
7854 IsLayoutContainer call here.
7856 2009-05-20 Stephane Delcroix <sdelcroix@novell.com>
7858 * multiscaleimage.cpp: support different tile sizes for the collection
7859 and the individual images. Fixes "the moment" 2D.
7861 2009-05-20 Larry Ewing <lewing@novell.com>
7863 * xaml.cpp: update the parser error numbers and strings to match 2.0.
7865 2009-05-20 Larry Ewing <lewing@novell.com>
7867 * multiscaleimage.cpp: small change to avoid getting the property
7870 2009-05-20 Alan McGovern <amcgovern@novell.com>
7875 * type-generated.cpp: Register 'float' as a known type
7877 2009-05-20 Chris Toshok <toshok@ximian.com>
7879 * type.h.in: a few changes. We no longer pass the kind name to
7880 the ctor, since nothing ever uses it, and the type name is enough.
7881 add both an interface array and array count to the Type ctor, as
7882 well as a is_interface bool. Lastly, add IsAssignableFrom
7885 * dependencyobject.cpp (DependencyObject::IsValueValid): switch
7886 from using a direct comparison on Kinds to using
7887 Type::IsAssignableFrom. this makes interfaces work.
7889 * cbinding.h, cbinding.cpp, type-generated.cpp, type.h: regen.
7891 * animation.cpp (AnimationClock::HookupStorage): instead of
7892 comparing kinds, use Type::IsAssignableFrom to see if we can
7893 animate the property using a particular timeline type.
7894 (DoubleAnimation::GetCurrentValue,
7895 DoubleAnimation::GetTargetValue, ColorAnimation::GetCurrentValue,
7896 ColorAnimation::GetTargetValue, PointAnimation::GetCurrentValue,
7897 PointAnimation::GetTargetValue): add code to deal with the start
7898 value not being the same type as the animation uses (this can
7899 happen if we're animating an interface property like
7900 IComparable.) The start values in that case are 0.0, Point(0.0),
7901 and Color(0,0,0,0), respectively.
7903 2009-05-19 Larry Ewing <lewing@novell.com>
7905 * collection.cpp: avoid some GetDeployment calls in looping cases.
7907 2009-05-19 Larry Ewing <lewing@novell.com>
7909 * frameworkelement.cpp (UpdateLayout): clear the needs flags when
7910 we restart in case they we're properly cleared before.
7912 2009-05-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
7914 * pipeline.cpp|h: Add an ExternalDecoder which takes a list of
7915 function pointers to call whenever the corresponding virtual method
7918 * enums.h: Move enums from the pipeline here (makes it easier to
7919 create c bindings for methods taking enums)
7923 * pipeline-ffmpeg.cpp: Update accccording to enum changes.
7925 * codec-version.h.in: Bump ABI version.
7929 * type-generated.cpp: Regenerated.
7931 2009-05-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
7937 * pipeline-ffmpeg.cpp:
7938 * pipeline.cpp|h: Add accessors for fields in VideoStream,
7939 AudioStream and MediaFrame.
7940 * cbinding.cpp|h: Regenerated.
7942 2009-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
7944 * cbinding.cpp|h: Regenerated.
7946 2009-05-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
7948 * security.h: Include <mono/metadata/assembly.h>.
7949 Fixes a warning (and the build with MD).
7951 2009-05-19 Alan McGovern <amcgovern@novell.com>
7953 * animation.cpp: Add some optimisations to ObjectKeyFrames.
7954 Don't call back into managed when the value is null or when
7955 the the value is already of the exact right kind. This will
7956 need to be reviewed once unmanaged code understands
7957 interfaces so we can fastpath interfaces too.
7959 2009-05-18 Larry Ewing <lewing@novell.com>
7963 * frameworkelement.cpp: for the time being use the needs* flags on
7964 surface to skip the UpdateLayout logic when the tree is clean.
7965 Optimize a couple of the property reads inside the deep walk.
7967 * provider.cpp (GetPropertyValue): rework some more of the checks
7968 to remove some other remaining unneeded checks.
7970 2009-05-18 Chris Toshok <toshok@ximian.com>
7972 * dependencyproperty.g.cpp (Types::RegisterNativeProperties):
7975 2009-05-18 Larry Ewing <lewing@novell.com>
7977 * bitmapsource.cpp (GetSurface): use the content type of the image
7978 when creating the native surface.
7980 2009-05-18 Larry Ewing <lewing@novell.com>
7982 * provider.cpp (GetPropertyValue): reorder the framework element
7983 property lookup to avoid an extra type inquiry in a potentially
7986 2009-05-18 Larry Ewing <lewing@novell.com>
7988 * xaml.cpp (dependency_object_set_attributes): move the types
7989 lookup outside the loop.
7991 2009-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
7994 * type.h: Regenerated.
7997 * dependencyobject.h:
7998 * dependencyproperty.h:
8001 * frameworkelement.h:
8004 * type.h: Sprinkle CBindingPrequisite around. Also use ints
8005 instead of Type::Kind values in function pointers.
8007 2009-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
8009 * window-gtk.h: Add a GetNativeWidget which returns a void
8010 pointer instead of GtkWidget* so that we don't need to include
8011 gtk for the c bindings.
8013 2009-05-18 Alan McGovern <amcgovern@novell.com>
8015 * contentcontrol.cpp: For contentcontrols, the applied
8016 template is only cleared if the old or new content is a
8017 UIElement (frameworkelement?). The fallback 'template' of a
8018 Grid + TextBlock is also reused every time.
8020 2009-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
8022 * utils.h: Use c++-style structs to please the generator.
8024 2009-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
8026 * window-gtk.h: Add a GetNativeWidget which returns a void
8027 pointer instead of GtkWidget* so that we don't need to include
8028 gtk for the c bindings.
8029 * cbinding.h|cpp: Updated.
8031 2009-05-16 Chris Toshok <toshok@ximian.com>
8033 * xaml.cpp (flush_char_data): verbatim mode cdata still needs to
8034 be g_strstrip'ed, but we can't do it until right before we use it,
8037 2009-05-16 Chris Toshok <toshok@ximian.com>
8039 * xaml.cpp (XamlElementInfo::SetIsCDataVerbatim,
8040 XamlElementInfo::IsCDataVerbatim): new methods to set and get a
8041 flag telling the cdata_handler to not collapse/remove
8042 whitespace. <clr:String> requires this.
8043 (PrimitiveNamespace::FindElement): for the "String" case, call
8044 XamlElementInfo::SetIsCDataVerbatim(true).
8045 (char_data_handler): if the current element IsCDataVerbatim, just
8046 append the input string and return.
8048 2009-05-16 Alan McGovern <amcgovern@novell.com>
8050 * security.c: Bump the security env var to _04
8052 2009-05-16 Alan McGovern <amcgovern@novell.com>
8060 * dependencyproperty.g.cpp: Add type converting to
8061 ObjectKeyFrame. The conversion is done during the Resolve
8062 phase. If the type conversion can't be completed an
8063 exception is thrown.
8065 2009-05-15 Chris Toshok <toshok@ximian.com>
8067 * dependencyobject.cpp (DependencyObject::RegisterAllNamesRootedAt):
8068 in the hydrated case we still need to register our name.
8069 (DependencyObject::ProviderValueChanged): don't swallow the error
8070 when we SetParent on the new_as_dep.
8071 (DependencyObject::SetParent): if we're adding a Hydrated
8072 element (i.e. one that was loaded using LoadComponent), we need to
8073 register its name into the parent namescope. Also, move the
8074 quickest check to the top so we don't do the family check on every
8075 SetParent call if the before/after parent are the same. Lastly,
8076 we only register names if the current parent is NULL. That is, if
8077 a named brush is a property on an element already, and its name is
8078 registered, we don't register it in the new namescope when it's
8079 set as a property on a second element. Odd but it matches SL
8081 (DependencyObject::FindName): no longer walk up the namescope
8082 hierarchy, and don't look up things in the toplevel's namescope
8085 * dependencyobject.h (class DependencyObject): add
8086 SetIsHydratedFromXaml/IsHydratedFromXaml, used by the parser.
8088 * xaml.cpp (XamlLoader::HydrateFromString): flag the resulting
8089 object as being hydrated.
8090 (everywhere): we don't need GetParentNamescope for anything. we
8091 always use the toplevel namescope of the subtree the parser is
8094 * provider.cpp (AutoCreatePropertyValueProvider::GetPropertyValue):
8095 don't pass a null error to ProviderValueChanged.
8097 2009-05-15 Larry Ewing <lewing@novell.com>
8099 * frameworkelement.cpp (UpdateLayout): just warn if the element is
8100 loaded don't skip it for now since it causes regressions in the
8103 2009-05-15 Chris Toshok <toshok@ximian.com>
8105 * timeline.cpp (ParallelTimeline::GetNaturalDurationCore): tiny
8106 change that gets automatic storyboards with zero length children
8107 to have a zero length themselves.
8109 2009-05-15 Larry Ewing <lewing@novell.com>
8111 * grid.cpp (OnCollectionItemChanged): invalidate on column
8114 2009-05-15 Larry Ewing <lewing@novell.com>
8116 * debug.h (LOG_LAYOUT): use printf.
8118 * mediaelement.cpp (ArrangeOverride): remove layout debug spew.
8120 * frameworkelement.cpp: reorder the updated_list and clean up some
8123 * uielement.cpp (PostSubtreeLoad): we can't guard against emitting
8124 loaded here since it will break delayed queuing of loaded events
8125 when the tree is modified inside the event handler. Improves
8127 2009-05-15 Jackson Harper <jackson@ximian.com>
8129 * xaml.cpp: Use the property element's type instead of parsing out
8130 the name, this fixes setting propertys of imported managed types.
8132 2009-05-15 Alan McGovern <amcgovern@novell.com>
8135 * dependencyproperty.g.cpp: The Keyframes property of
8136 ObjectAnimationUsingKeyframes needs to be autogenerated.
8138 2009-05-15 Alan McGovern <amcgovern@novell.com>
8140 * type-generated.cpp:
8141 * frameworkelement.h: Properly handle exceptions when updating
8142 the source in a 2 way binding. Raise the
8143 BindingValidationError event in the right place.
8145 2009-05-14 Jackson Harper <jackson@ximian.com>
8147 * xaml.cpp: Pass the item's xmlns when setting unknown attributes.
8149 2009-05-14 Larry Ewing <lewing@novell.com>
8151 * xaml.cpp (lookup_named_item): make this nonrecursive.
8153 2009-05-14 Jeffrey Stedfast <fejj@novell.com>
8155 * frameworkelement.cpp (OnPropertyChanged): Do a
8156 FullInvalidate(true) when the Horizontal or Vertical Alignment
8159 2009-05-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
8161 * dependencyobject.cpp: unref: only try to delete
8162 us if we had a 0 refcount after decrementing refcount.
8163 Also use an atomic fetch when checking if the object
8166 2009-05-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
8168 * dependencyobject.cpp: when printing stack traces
8169 first get all the lines to print, then print them.
8170 This way it's a lot less probable to get other lines
8171 in between when printing stacktraces from multiple threads.
8173 2009-05-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
8175 * dependencyobject.cpp: Print typename for object creation
8176 too, now that we don't have to call a virtual method to
8179 2009-05-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
8181 * timesource.h: G_PRIORITY_IDLE doesn't exist, use
8182 G_PRIORITY_HIGH_IDLE.
8184 2009-05-13 Chris Toshok <toshok@ximian.com>
8186 * xaml.cpp (class XamlContextInternal): allow for a parent context
8187 so that we can track context's (and resources) across multiple
8188 template instantiations.
8189 (create_resource_list): just stuff the FrameworkElement on the
8190 list and leave the GetValue(UIElement::Resources) for when we look
8191 up the actual resource.
8192 (end_element_handler): when creating a new XamlContext pass in our
8193 current XamlContext.
8194 (XamlContextInternal::LookupNamedItem): handle both changes (FWE
8195 in our resources list, and parent context chaining.)
8197 2009-05-13 Jackson Harper <jackson@ximian.com>
8199 * xaml.cpp: We need to dup the top_element since this can be
8202 2009-05-13 Chris Toshok <toshok@ximian.com>
8204 * clock.cpp (Clock::UpdateFromParentTime): for instantaneous
8205 clocks (those with Duration=00:00:00) we weren't emitting
8206 completed (or switching to Fill/Stop).
8208 2009-05-13 Jackson Harper <jackson@ximian.com>
8210 * xaml.h|cpp: use a Value* for top level objects, this lets us get
8211 rid of the gchandle hack in the managed xaml loader for non DOB
8214 2009-05-13 Larry Ewing <lewing@novell.com>
8216 * canvas.cpp: make IsLayoutContainer nonrecursive using
8219 * frameworkelement.cpp:
8220 * uielement.cpp, uielement.h:
8222 * shape.cpp: start reworking the container layout logic to avoid
8225 * collection.cpp: don't ref elements inside DeepTreeWalker use
8226 UnsafeUIElementNode instead.
8228 * dirty.cpp (UpdateLayout): remove some dead code.
8230 2009-05-13 Alan McGovern <amcgovern@novell.com>
8232 * value.cpp: Ensure we don't explode when checking null uris
8234 2009-05-13 Alan McGovern <amcgovern@novell.com>
8236 * validators.cpp: If StyleProperty has a value and it is
8237 'null', that is allowed to be replaced.
8239 2009-05-12 Chris Toshok <toshok@ximian.com>
8241 * timeline.cpp (DispatcherTimer::Start): when resetting the clock
8242 we need to make sure to reset the root parent time, or else the
8243 timer will tick immediately when started (if it's previously hit
8246 2009-05-12 Larry Ewing <lewing@novell.com>
8248 * collection.cpp, collection.h: Add a SkipBranch method to avoid
8249 computing walking into the tree when we can.
8251 * frameworkelement.cpp (UpdateLayout): Use the new skip branch
8252 logic in deeptreewalker to avoid invisible elements.
8254 2009-05-12 Larry Ewing <lewing@novell.com>
8256 * frameworkelement.cpp (UpdateLayout): revert the visibility change
8259 2009-05-12 Larry Ewing <lewing@novell.com>
8261 * frameworkelement.cpp (ComputeBounds): make sure the bounds are
8262 the size of the full element, and skip elements based on the
8263 actual visibility setting not the computed one.
8265 2009-05-12 Jeffrey Stedfast <fejj@novell.com>
8267 * textbox.cpp (InvalidateCursor): New helper method which applies
8268 the absolute transform to the cursor before invalidating the
8270 (ShowCursor): Use InvalidateCursor().
8272 (UpdateCursor): Here too.
8274 2009-05-12 Jeffrey Stedfast <fejj@novell.com>
8276 * textbox.cpp (OnKeyDown): Need to set the handled flag on the
8277 routed event args in the case where the key event is handled by
8279 (OnKeyUp): Set the handled flag in both cases here.
8281 2009-05-11 Alan McGovern <amcgovern@novell.com>
8285 * contentcontrol.cpp: Recommit r133738 as it's not causing the
8288 2009-05-09 Andreia Gaita <avidigal@novell.com>
8290 * uielement.h: Add GenerateJSBinding annotation to
8291 CaptureMouse, ReleaseMouseCapture and
8292 GetTransformToUIElementWithError (TransformToVisual)
8294 2009-05-09 Chris Toshok <toshok@ximian.com>
8296 * eventargs.cpp (KeyEventArgs::IsModifier): reverse the sense of
8297 this check so we're buildable on SLED10.
8299 2009-05-08 Jeffrey Stedfast <fejj@novell.com>
8301 * layout.cpp (layout_word_wrap): If we can't find a suitable place
8302 to wrap in the first time through the loop, make sure to respect
8303 the 'force' state the second time through.
8305 * application.cpp (GetResourceAsPath): Updated.
8307 * utils.cpp (CanonicalizeFilename): Now takes a 'lower' argument
8308 to specify whether the filename should be lowercased as it is
8310 (ExtractAll): The 'canon' argument has been renamed to 'lower'
8311 which more accurately reflects its purpose. Pass this on to
8312 CanonicalizeFilename().
8314 2009-05-08 Alan McGovern <amcgovern@novell.com>
8318 * contentcontrol.cpp: Revert the changes in r133738 until I
8319 can figure out why the x86 bot doesn't like them. It's
8320 causing the extended controls tests to time out.
8322 2009-05-07 Alan McGovern <amcgovern@novell.com>
8326 * contentcontrol.cpp: If the content property changes, the
8327 Template is cleared if it has already been applied.
8329 2009-05-07 Andreia Gaita <avidigal@novell.com>
8331 * src/uielement.cpp (GetTransformToUIElementWithError): Don't fail if
8332 the to_element is the top level element.
8334 2009-05-06 Chris Toshok <toshok@ximian.com>
8336 * xaml.cpp (dependency_object_set_attributes): we can't assume
8337 that a NULL value for @v means it hasn't been set, since {x:Null}
8338 could have been specified. we need another flag to make it work.
8340 2009-05-06 Jeffrey Stedfast <fejj@novell.com>
8342 * textbox.cpp (OnPropertyChanged): Guard against calling
8343 ResetIMContext in the middle of some keyboard input.
8345 2009-05-05 Chris Toshok <toshok@ximian.com>
8347 * collection.cpp (Collection::InsertWithError): we need to make a
8348 further copy because the caller could remove the element in a
8349 handler, which causes us to delete the value (values aren't ref
8352 2009-05-05 Jeffrey Stedfast <fejj@novell.com>
8354 * textbox.cpp (TextBoxBase::Initialize): Set use_preedit() to
8355 false since we're not rendering the preedit strings ourselves.
8356 (TextBoxBase::SetSurface): Update the GtkIMContext's client
8358 (TextBoxView::UpdateCursor): Update the GtkIMContext's idea of
8359 where the cursor is at.
8361 2009-05-05 Alan McGovern <amcgovern@novell.com>
8363 * xaml.cpp: If 'Key' hasn't been set, use 'Name'. Allows
8364 elements to be added to ResourceDictionarys in managed land.
8366 2009-05-05 Jeffrey Stedfast <fejj@novell.com>
8368 * layout.cpp (Select): Fixed some selection logic.
8370 * textbox.cpp (TextBoxBase::Initialize): Create a new GtkIMContext
8371 and hook up some callbacks. Also init need_im_reset to false.
8372 (TextBoxBase::~TextBoxBase): Kill the IMContext.
8373 (TextBoxBase::OnKeyDown): Filter the event key through the
8374 IMContext. If it handles the key, don't do anything more.
8375 (TextBoxBase::DeleteSurrounding): New callback method for
8377 (TextBoxBase::RetrieveSurrounding): Same.
8378 (TextBoxBase::Commit): New IMContext callback method to commit the
8379 input-method chars into the TextBox.
8380 (TextBoxBase::ResetIMContext): New helper method to reset the
8382 (TextBoxBase::OnFocusOut): Update GtkIMContext focus state.
8383 (TextBoxBase::OnFocusIn): Same.
8384 (TextBoxBase::OnPropertyChanged): If the IsReadOnly property state
8385 changes, update the GtkIMContext state accordingly. Same with the
8386 various Selection states and Text property.
8388 * eventargs.cpp (GetEvent): New method to get access to the
8389 original GdkEventKey event for use with GtkIMContext.
8391 2009-05-05 Alan McGovern <amcgovern@novell.com>
8395 * dependencyproperty.g.cpp: Back out the default value fix
8396 until the parser can be updated to handle this.
8398 2009-05-05 Alan McGovern <amcgovern@novell.com>
8402 * dependencyproperty.g.cpp: PathGeometry.Figures and
8403 ObjectAnimationUsingKeyframes.KeyFrames both need to be
8404 autogenerated. This allows them to pass their respective
8405 DefaultValues tests (when those tests are run).
8407 2009-05-05 Alan McGovern <amcgovern@novell.com>
8409 * template.h: Remove the forward decls for TemplateBinding and
8410 XamlTemplateBinding as they don't exist in unmanaged anymore
8412 2009-05-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
8414 * pipeline-ffmpeg.cpp: FfmpegDecoder: Chain Dispose.
8416 2009-05-04 Geoff Norton <gnorton@novell.com>
8418 * codec-version.h.in: Bump
8419 * pipeline-ui.cpp: Bump because we no longer link libmoon in the codecs
8421 2009-05-04 Jeffrey Stedfast <fejj@novell.com>
8423 * debug.cpp (Frame::ToString): fixed compile warning.
8425 * uielement.cpp (UpdateLayout): Need to return a bool here, we
8428 * textbox.cpp (Blink): Set the deployment.
8430 2009-05-03 Chris Toshok <toshok@ximian.com>
8432 * everywhere (NotifyListenersOfPropertyChange): add a MoonError
8435 * xaml.h|.cpp (class XamlContext): add GetTemplateBindingSource so we
8436 can hook up TemplateBindings in managed code. Also, change all
8437 the loader callback types to take a loader pointer so we can get
8440 * template.h|.cpp: remove all the lists of bindings, the
8441 two different template binding types (XamlTemplateBinding and
8442 TemplateBinding) and their respective List::Node containers. all
8443 this is handled in managed land now, where it belongs.
8445 * dependencyproperty.h|.cpp: move
8446 PropertyChangedEventArgs to dependencyproperty.h, and unify the
8447 two types for property change handlers into simply
8448 PropertyChangeHandler.
8450 * dependencyobject.h: remove the PropertyChangedEventArgs struct
8451 from here, it now lives in dependencyproperty.h
8453 * dependencyobject.cpp (class CallbackListener): pass a MoonError
8455 (DependencyObject::ProviderValueChanged): reuse the
8456 PropertyChangedEventArgs since property change callbacks take them
8457 now instead of splitting up the old_value/new_value/property.
8459 * control.cpp (Control::Control, Control::~Control,
8460 Control::ApplyTemplate): remove all reference to the list of
8463 * control.h (class Control): remove the list of bindings.
8465 * cbinding.h|.cpp, type-generated.cpp, type.h, value.h:
8468 2009-05-03 Jeffrey Stedfast <fejj@novell.com>
8470 * runtime.h (InMainThread): check main_thread_inited.
8472 * runtime.cpp: All flags variables are now 32bit. Split _EX flags
8473 into a second debug_flags_ex. Also added a new bool var to keep
8474 track of whether or not main_thread has been initialized since we
8475 can't necessary compare against NULL.
8479 2009-05-03 Jeffrey Stedfast <fejj@novell.com>
8481 * debug.cpp: #include <unistd.h>
8483 * *.h: Don't #include stdint.h or unistd.h (only cpp files should
8486 2009-05-02 Jeffrey Stedfast <fejj@novell.com>
8493 * value.h[.in]: Don't include stdint.h
8495 2009-05-01 Jackson Harper <jackson@ximian.com>
8497 * xaml.cpp: Handle the {} escape sequence. (Managed code will have to
8500 2009-05-01 Larry Ewing <lewing@novell.com>
8502 * collection.cpp: rework the sorting invalidation logic so that we
8503 don't do it quite as often.
8505 2009-05-01 Larry Ewing <lewing@novell.com>
8508 * collection.cpp: cache the deployment more and add a
8509 VisualTreeWalker interface to help with that.
8511 2009-05-01 Larry Ewing <lewing@novell.com>
8515 * type.cpp: Move the IsSubclassOrSuperclassOf logic into types and
8516 add a static version that handles looking up the deploy for us.
8520 * value.cpp: Make it possible to use a cached deployment when
8521 retriving values using the ::As* methods and calling
8522 Types::IsSubclassOrSuperclassOf.
8524 * style.cpp: when sealing the style use the cached deployment logic.
8526 2009-05-01 Larry Ewing <lewing@novell.com>
8528 * dependencyobject.h:
8529 * xaml.cpp: use types more directly in a few more places to reduce
8530 calls to Deployment::GetCurrent even more.
8532 2009-05-01 Jackson Harper <jackson@ximian.com>
8535 * dependencyobject.cpp|h: Move the name validation check to a
8536 validator (phase one of moving NameProperty to frameworkelement).
8537 * dependencyproperty.g.cpp: regen
8539 2009-05-01 Jackson Harper <jackson@ximian.com>
8542 * value.h.in: Sync with their .h's
8544 2009-04-30 Jackson Harper <jackson@ximian.com>
8546 * xaml.cpp: Use the type system for detecting if we should be in
8547 buffering mode, anything that is a FrameworkTemplate
8548 should be buffered. This fixes custom types that inherit from
8549 DataTemplate not getting buffered properly.
8551 2009-04-30 Jackson Harper <jackson@ximian.com>
8553 * xaml.cpp: We need to pass the object to GetPropertyName because
8554 non DOB objects can have content properties now.
8556 2009-04-30 Jackson Harper <jackson@ximian.com>
8558 * xaml.cpp: Don't require a content property name when we are
8559 trying to set a managed content property. This could be the
8560 content of a managed collection.
8562 2009-04-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
8564 * bitmapimage.cpp: Make sure we clean up any previous
8565 downloaders when we create new ones.
8567 2009-04-29 Larry Ewing <lewing@novell.com>
8569 * frameworkelement.cpp:
8570 * uielement.cpp (DoMeasure): reorder some calls to improve speed
8571 until the new logic lands.
8573 2009-04-29 Larry Ewing <lewing@novell.com>
8575 * value.h (checked_get_subclass): use IsSubclassOrSuperclassOf to
8576 reduce Deployment::GetCurrent calls.
8579 * type.cpp: add IsSubclassOrSuperclassOf so that we can use it it
8582 2009-04-29 Larry Ewing <lewing@novell.com>
8585 * dependencyobject.cpp: reuse types to reduce calls to
8586 Deployment::GetCurrent ().
8588 2009-04-29 Alan McGovern <alan.mcgovern@gmail.com>
8590 * popup.cpp: Forgot to call the base Dispose method.
8592 2009-04-29 Geoff Norton <gnorton@novell.com>
8594 * debug.cpp: Not everyone in the world is 32-bit intel.
8596 2009-04-29 Jeffrey Stedfast <fejj@novell.com>
8598 * textblock.cpp (SetTextInternal): Protect everything from
8599 reentrancy and never replace the autocreated InlineCollection with
8600 a newly allocated one. Instead, Clear() the old one and add the
8602 (OnCollectionChanged): If !setvalue, then it means we are updating
8603 stuff elsewhere. Avoid causing reentrancy. Also simplified a bit.
8605 2009-04-29 Andreia Gaita <avidigal@novell.com>
8607 * dependencyobject.cpp: Add MOONLIGHT_OBJECT_TRACK_VISI for outputting
8608 parseable stacktraces for later visualization
8610 2009-04-29 Andreia Gaita <avidigal@novell.com>
8612 * debug.[cpp|h]: Add libunwind-backed output for tracing ref/unref
8613 calls in a nice way, for later parsing and visualization.
8615 2009-04-29 Geoff Norton <gnorton@novell.com>
8617 * pipeline-ui.cpp|h: If the codec download ends prematurely, dlopen
8618 nicely crashes on a incomplete .so (thanks). As such we're going to
8619 sha1 the expected binary before blindly installing it to gatekeep
8622 2009-04-29 Jeffrey Stedfast <fejj@novell.com>
8624 Fixes some cursor position/selection bugs
8626 * layout.cpp (TextLayoutLine): Initialize a new member variable
8628 (Layout): Update line->count (needed for the reworking of
8629 GetCursor) and line->length (which was the case of the bugs)
8630 variables as we go. Switch to doing this for run->length too.
8631 (GetCursor): Reworked a bit to use character indexes to help us
8632 find the correct cursor position rather than using byte offsets
8633 which were more awkward.
8635 2009-04-29 Alan McGovern <amcgovern@novell.com>
8638 * popup.cpp: Remove the attached layer correctly when the
8639 surface is being nulled on a Popup.
8641 2009-04-29 Geoff Norton <gnorton@novell.com>
8644 * provider.cpp: GetIterator returns a ref'd iter, we need to delete
8645 it when we're done to clean it up.
8646 * dependencyproperty.g.cpp: You raise me up.
8647 * deployment.cpp|h: Deployment has a cyclic reference to things
8648 stored in it (AssemblyParts, NameScope), we need to break this cycle
8649 in our disposer so they can be properly cleand up.
8650 * xaml.cpp: If we create a new collection, and set the collection as
8651 some objects value, it will have a refcount of 2. We need to unref
8652 the collection once we've handed it off.
8654 2009-04-28 Geoff Norton <gnorton@novell.com>
8656 * popup.cpp: We cannot access this local value here since its been
8657 cleared in our dispose call.
8659 2009-04-28 Geoff Norton <gnorton@novell.com>
8661 * deployment.cpp: Now that we properly shut down the clocks and
8662 media threads, we can finalize the domain here instead of pumping
8665 2009-04-28 Chris Toshok <toshok@ximian.com>
8667 * dirty.cpp (Surface::UpdateLayout): quiet g++ about taking the
8668 address of a temporary.
8670 2009-04-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
8673 * audio.cpp: When looping over playing nodes, don't include
8674 nodes in the Waiting state.
8676 * audio-alsa.cpp: when Played, update the poll list. The state
8677 might not actually have changed if only the Waiting flag was
8680 2009-04-28 Larry Ewing <lewing@novell.com>
8687 * frameworkelement.h:
8688 * frameworkelement.cpp: add FrameworkProvider for actual*
8689 values. Rework layout using the actual* values and add a first
8690 pass at looping layout.
8693 * collection.h: Add a deep tree walker that allows you to walk the
8694 entire tree without recursing.
8701 * canvas.cpp: rework layout logic for the new providers and handle
8702 more of the corner cases.
8705 * textblock.cpp: Remove the old Actual* provider since we use the
8706 generic one now. Go a bit crazy with Invalidations until they can
8709 * eventargs.cpp: stop using IsAnythingDirty.
8711 2009-04-28 Larry Ewing <lewing@novell.com>
8713 * dependencyobject.cpp:
8718 * timesource.h: rework the priority of our event queue so that
8719 we end up being more responsive to input and give the browser a
8720 chance to do things like repaint.
8722 2009-04-28 Jackson Harper <jackson@ximian.com>
8724 * xaml.cpp: Don't allow x:Class on non top level elements.
8726 2009-04-28 Jackson Harper <jackson@ximian.com>
8728 * dependencyproperty.cpp: When resolving property paths if we
8729 don't have enough info to lookup the correct managed type we just
8730 verify that the current lookup object has the correct type name,
8731 excluding namespace.
8733 2009-04-28 Alan McGovern <amcgovern@novell.com>
8738 * contentcontrol.cpp: Add the ability to stop ContentControl
8739 from automatically setting the LogicalParent when a
8740 FrameworkElement is added as the Content.
8742 2009-04-27 Jackson Harper <jackson@ximian.com>
8744 * value.cpp: property path's have expanded paths that need to be
8745 copied, freed, ect now.
8746 * propertypath.h: Add an expanded path to the property path, this
8747 is a path with managed types marked with namespaces expanded into
8748 full names. So 'moon:MyType' becomes something like
8749 'MoonNamespace.MyType'.
8750 * dependencyproperty.cpp: If an expanded path is available use
8751 that for property path parsing. Also added support for the ' mark
8752 for escaping full type names (otherwise full names could not have
8753 '.'s). The ' can only be used in expanded paths.
8754 * xaml.cpp: When parsing property paths expand out managed
8755 namespaces if possible.
8757 2009-04-27 Geoff Norton <gnorton@novell.com>
8759 * value.cpp: Its possible for these pointers to be 0x0 here, so
8760 we need to guard against a invalid dereference causing a SIGSEGV
8761 fixes moon-unit with toggleref on.
8763 2009-04-27 Geoff Norton <gnorton@novell.com>
8765 * codec-url.h, pipeline-ui.cpp: Update for 1.9p1
8767 2009-04-24 Chris Toshok <toshok@ximian.com>
8769 It turns out the granularity of overriding in styles is at the
8770 setter level, not the style level. so if you have a local style
8771 with a setter for Background, it doesn't overwrite the default
8772 style setters for, say, Foreground. We handle this by having two
8773 style providers, with the local style provider overriding the
8774 default style provider.
8776 * frameworkelement.cpp (FrameworkElement::FrameworkElement):
8777 initialize both of the style providers (at both LocalStyle and
8778 DefaultStyle levels.)
8779 (FrameworkElement::OnPropertyChanged): call ApplyStyle on the new
8780 style (so that values are converted in managed-land), and seal it
8781 at the local style level.
8782 (FrameworkElement::SetDefaultStyle): same blob here, but seal it
8783 at the default style level.
8785 * dependencyobject.cpp (DependencyObject::Initialize): pass
8786 precedences to the providers in their ctors, and also don't
8787 initialize a style provider here. This saves us from having a
8788 style provider on anything except frameworkelement subclasses.
8790 * mediaelement.h|.cpp, textbox.cpp, textblock.cpp: add the
8791 precedence ctor arg to property value providers.
8793 * provider.h: provider ctors now take both an object and a
8794 precedence level. that way they know what precedence level to
8795 notify changes on (this is mostly for the style provider, but it
8796 moves all the precedence level logic to the spot where we create
8797 the provider, not in the provider code itself.)
8799 * provider.cpp: add all the precedence ctor args.
8800 (StylePropertyValueProvider::SealStyle): call ProviderValueChanged
8801 with the precedence we were initialized with.
8802 (AutoCreatePropertyValueProvider::GetPropertyValue): same.
8804 2009-04-24 Alan McGovern <amcgovern@novell.com>
8806 * runtime.cpp: When a layer is being detached, don't try to
8807 invalidate its bounds if the active window has already been
8808 torn down. Fixes the case where a popup is open while the
8809 window is being torn down.
8811 2009-04-24 Alan McGovern <amcgovern@novell.com>
8814 * popup.cpp: When the popup is detached from the surface, it
8815 should automatically close if it is open.
8817 2009-04-23 Jeffrey Stedfast <fejj@novell.com>
8819 * layout.cpp (Layout): Silverlight 2.0 no longer starts plotting
8820 lwsp after going beyond the width constraint. Fixes the
8821 tests in the far right in MS DRT 206.
8823 2009-04-23 Jeffrey Stedfast <fejj@novell.com>
8825 * font.cpp (GetGlyphInfo): Don't special-case
8826 ZeroWidthNonBreakingSpace anymore. Rely on the font for this
8827 glyph. That seems to be what SL2 does now...
8829 * layout.cpp (layout_word_wrap): Fixed logic for word-joiners and
8830 implemenetd a forced-wrap if we can't find a suitable place to
8833 2009-04-23 Jeffrey Stedfast <fejj@novell.com>
8835 * layout.cpp (layout_word_wrap): Don't treat special numeric
8836 punctuation as the start of a numeric word until we see what lays
8839 2009-04-23 Jeffrey Stedfast <fejj@novell.com>
8841 * layout.cpp (layout_word_wrap): Don't ignore Zero-Width spaces
8842 anymore, that was a 1.0-thing and can no longer be used. Also
8843 added support for non-breaking-glue classes as well as rules for
8844 breaking on combining-marks, open-punctuation, contingents,
8845 quotations, prefixes, and words starting with an infix.
8847 2009-04-23 Chris Toshok <toshok@ximian.com>
8849 * animation.cpp|.h, clock.cpp|.h: remove
8850 OnSurfaceAttach/OnSurfaceDetach. They're no longer used.
8852 2009-04-23 Chris Toshok <toshok@ximian.com>
8854 * clock.cpp (ClockGroup::UpdateFromParentTime): cache the current
8855 clock state and use that to tell whether to update the child
8856 clocks on this tick. Clock::UpdateFromParentTime will change it
8857 out from under us, and child clocks won't get updated the last
8858 time when we switch to Filling or Stopped.
8860 2009-04-23 Chris Toshok <toshok@ximian.com>
8862 * animation.cpp (Animation::AllocateClock): remove the name
8863 setting from here, since it only works here if the target/property
8864 were set on the animation itself.
8865 (AnimationClock::HookupStorage): and move it here, when we know
8866 both the target and property.
8868 * multiscaleimage.cpp (MultiScaleImage::SetViewportWidth): use
8869 Class::Event instead of instance->Event. also set the name of the
8870 storyboard in debug mode.
8871 (MultiScaleImage::SetViewportOrigin): same.
8872 (motion_finished): make static.
8874 2009-04-23 Chris Toshok <toshok@ximian.com>
8876 * clock.cpp (ClockGroup::UpdateFromParentTime): only tick child
8877 clocks (not clockgroups, mind you) if we're active and not paused.
8878 Fixes animations reverting in lutz's deep zoom demo.
8880 2009-04-23 Jeffrey Stedfast <fejj@novell.com>
8882 Lots of fixage for MS DRT #209
8884 * layout.cpp (layout_word_wrap): Fixed for inseparables,
8885 exclamations, ambiguous, and postfix. Also removed the
8886 glyph->index == 0 hack that was there for Silverlight 1.0
8888 2009-04-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
8890 * dependencyobject.h:
8891 * dependencyobject.cpp: Add a way to mark allow objects to be
8892 deleted on any thread, not just the main thread.
8894 * pipeline.cpp: MediaClosures can be deleted on any thread.
8896 2009-04-22 Jeffrey Stedfast <fejj@novell.com>
8898 * layout.cpp (layout_word_wrap): Add a bit more logic for infix
8899 separators. Finishes off MSDRT 208.
8901 2009-04-22 Chris Toshok <toshok@ximian.com>
8903 * xaml.cpp (value_from_str): permit empty int32's (they're 0).
8904 add comment about empty doubles.
8906 2009-04-22 Chris Toshok <toshok@ximian.com>
8908 * xaml.cpp (dependency_object_add_child): guard against adding an
8909 empty Value to a resource dictionary. this happen when you have
8910 no content on a primitive type (<sys:Bool></sys:Bool>) and
8911 value_from_str can't deal with parsing an empty string.
8912 (value_from_str): for non-object/non-string types, we need to
8913 strip leading/trailing whitespace before attempting to parse. this
8914 allows things like: <sys:Bool> true </sys:Bool>
8915 (class XamlElementInstanceValueType): for empty elements the value
8916 will have never been set. try to set it here using an empty
8919 2009-04-22 Jeffrey Stedfast <fejj@novell.com>
8921 * textbox.cpp (OnPropertyChanged): Clamp our SelectionStart and
8922 SelectionLength values as they come in. Apparently this is what
8923 Silverlight does too.
8925 2009-04-22 Chris Toshok <toshok@ximian.com>
8927 * clock.h|cpp (Clock::UpdateFromParentTime): returns a bool now,
8928 with true meaning "i need another tick."
8929 (ClockGroup::UpdateFromParentTime): same.
8931 * timeline.cpp (DispatcherTimer::Start): use the timemanager to
8933 (DispatcherTimer::Run): use the root_clock's parent clock here to
8934 simplify the code a bit.
8935 (DispatcherTimer::~DispatcherTimer): same.
8937 * animation.cpp (Storyboard::BeginWithError): simplify this a bit.
8938 we don't care about groups, just add it to the deployment's
8941 * timemanager.h|cpp (class RootClockGroup): new class to represent
8942 the root clock group created by a time manager to house all other
8943 clocks in a surface. It has slightly different behavior from a
8944 noprmal clock group, particularly wrt putting the timemanager to
8946 (TimeManager::TimeManager): create a RootClockGroup.
8947 (TimeManager::RemoveTickCall): if we're putting the time manager
8948 to sleep, check to see if this was the last tick call, and clear
8949 the flag (and stop the source if the flags are now empty).
8950 (TimeManager::NeedRedraw): now that clock smoothing isn't used,
8951 source->SetTimerFrequency() can't be called with whatever timeout
8952 we like and have it migrrate back to the user-specified time. so
8953 change 0 to current_time.
8954 (TimeManager::NeedClockTick): same.
8955 (TimeManager::AddTickCall): same.
8956 (TimeManager::SourceTick): remove the #if'ed out version with
8957 clock smoothing, and add back in the stuff to put the time manager
8958 to sleep (currently ifdef'ed out still)
8959 (TimeManager::AddClock): move the logic to delay the root clock
8960 group here out of Storyboard::Begin. This is because we also want
8961 to do this with DispatcherTimers as well. Given that there is no
8962 TimeManager::GetRootClock anymore, this is the only api to add
8965 2009-04-22 Jeffrey Stedfast <fejj@novell.com>
8967 * layout.cpp (utf8_getc): When inptr goes beyond bounds, update
8968 the 'in' ptr to inend.
8970 * utils.cpp (CanonicalizeFilename): Fixed some undefined behavior.
8972 2009-04-22 Rusty Howell <rhowell@novell.com>
8974 * building libmoonxpi for the FF plugin
8976 2009-04-21 Chris Toshok <toshok@ximian.com>
8979 (InheritedPropertyValueProvider::GetPropertyValue): gross changes,
8980 but hopefully worth the hotspot reduction. do fast checks to see
8981 if we're even dealing with a property that's inheritable first.
8982 cache the Types* pointer instead of indirectly fetching it
8983 repeatedly (thanks to calling EO::Is - call Types::IsSubclassOf
8986 2009-04-21 Jeffrey Stedfast <fejj@novell.com>
8988 * glyphs.cpp (Layout): Fixed scaling calculation.
8990 * layout.cpp (Layout): Merged LayoutWrapWithOverflow, LayoutNoWrap
8991 and LayoutWrap. The different word-wrapping behaviors are, as
8992 before, handled in different subroutines but the outer loops are
8995 2009-04-20 Jeffrey Stedfast <fejj@novell.com>
8997 * textblock.cpp (SetTextInternal): Don't break the string into
8998 multiple inlines, Silverlight shoves the entire string into a
8999 single Run no matter what.
9000 (GetTextInternal): Map LineBreaks to the Unicode LineSeparator
9001 character instead of \n to match Silverlight behavior.
9003 * layout.cpp: Fixed various loops and checks to properly handle
9004 any type of unicode line-breaking character.
9006 2009-04-21 Alan McGovern <amcgovern@novell.com>
9008 * collection.h: HitTestCollection should override
9009 RemovedFromCollection the same way it overrides
9010 AddedToCollection so that items added/removed from the
9011 collection are not reparented.
9013 2009-04-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
9015 * deepzoomimagetilesource.cpp: Fix a crash in MS DRT #545.
9017 2009-04-20 Chris Toshok <toshok@ximian.com>
9019 * clock.cpp (Clock::UpdateFromParentTime): comment the hell out of
9020 this method. Also, don't multiply to compute localTime only to
9021 turn around and divide to compute normalizedTime. normalizedTime
9022 is always the factor we multiply natural_duration_timespan by.
9024 2009-04-20 Chris Toshok <toshok@ximian.com>
9026 * provider.h|cpp (AutoCreators::CreateDefaultFontSize): move the
9027 textblock autocreator here, and stop using TextBlock vs. Control
9028 for the font size names, as both textblock and controls have the
9029 varying font size. There's also no reason to make them public
9030 anymore. if you want the font size, just call GetFontSize().
9032 * control.h: FontSize uses an autocreator now, and remove the
9035 * textbox.cpp (TextBoxBase::Initialize): use GetFontSize() instead
9036 of the #define, and while we're at it just replace the other
9037 defines with calls to the getters too.
9039 * textblock.h|.cpp: remove the autocreator (it's in provider.cpp
9040 now), and the #define for font_size.
9042 * dependencyproperty.g.cpp: regen.
9044 2009-04-20 Chris Toshok <toshok@ximian.com>
9046 * security.c (security_enable_coreclr): version the
9047 MOON_DISABLE_SECURITY variable.
9049 2009-04-20 Jeffrey Stedfast <fejj@novell.com>
9051 * textblock.cpp (TextBlock): Removed cached TextFontDescription
9052 since it's only ever used in 1 place and even then it's a corner
9055 2009-04-20 Chris Toshok <toshok@ximian.com>
9057 * timeline.cpp: fix up DispatcherTimers after I broke them by
9058 removing the clock event.
9060 2009-04-19 Chris Toshok <toshok@ximian.com>
9062 * eventargs.h|.cpp: add RenderingEventArgs type.
9064 * timemanager.cpp (TimeManager::SourceTick): the render event
9065 takes a RenderEventArgs, even though the type of the event is
9066 EventHandler. Goes a long way toward fixing DRT #394 and fixes
9069 * type.h, type-generated.cpp, value.h, cbinding.h, cbinding.cpp:
9072 2009-04-19 Chris Toshok <toshok@ximian.com>
9074 * shape.cpp|.h (Shape::CreateDefaultStretch): create the proper
9075 default for the various shapes (Fill if a rectangle or ellipse,
9076 None for all other types). Fixes part of DRT #508.
9077 (Rectangle::Rectangle): don't set the default value as a local
9079 (Ellipse::Ellipse): same.
9081 2009-04-19 Jeffrey Stedfast <fejj@novell.com>
9083 * textblock.cpp (DefaultFontSize): New function to get the default
9084 font size for a TextBlock (or Inline) based on the Silverlight
9085 context (XAP vs XAML).
9087 2009-04-19 Chris Toshok <toshok@ximian.com>
9089 * provider.cpp (InheritedPropertyValueProvider::GetPropertyValue):
9090 inlines inherit their Language from the textblock, and textblocks
9091 inherit it from frameworkelements. part of fix for drt #952.
9093 2009-04-18 Chris Toshok <toshok@ximian.com>
9095 * clock.h|.cpp: move to the holy grail of a functional clock
9096 setup. this removes Clock::Tick and related additive machinery
9097 that introduces errors into various calculations. instead we use
9098 the fact that a child's time can be expressed as a function of its
9099 parent's time. more calculation per-frame, perhaps, but less
9100 problems wrt inflection points like autoreverse/repeat points.
9101 This removes *tons* of difficult to read and impossible to
9102 understand code, and brings clocks and clockgroups a lot closer.
9103 Docs coming soon to a source file near you.
9105 * timeline.h|.cpp: various clock-related changes. 2 notables are
9106 the fact that all Timelines have a completed event now instead of
9107 just storyboards (because Clocks are also emitting completed now,
9108 not just ClockGroups), and DispatcherTimers now subclass from
9109 Timeline instead of TimelineGroup. We also use a virtual method
9110 instead of an event handler for ticking DispatcherTimers.
9112 * animation.h|.cpp: more clock fallout. Also, rewrite
9113 HookupAnimationsRecurse so that we propagate the current
9114 target/property as parameters instead of requiring a search back
9115 up the tree at ever level.
9117 * timemanager.cpp: more clock rewrite stuff. Set the surface
9118 clockgroup's duration to forever instead of automatic, and switch
9119 from ->Tick to ->UpdateFromParentTime.
9121 * multiscaleimage.cpp: track changes to storyboard api (basically
9122 i removed the non-WithError methods.. maybe i should put them
9125 * cbinding.h|.cpp, type-generated.cpp: regen.
9127 2009-04-17 Jeffrey Stedfast <fejj@novell.com>
9129 * glyphs.cpp (Layout): Pass our StyleSimulations along to
9130 GetGlyphInfo() so that we can simulate Bold or Italics as the user
9133 * font.cpp (FontFace::LoadGlyph): Now takes a StyleSimulations
9134 argument (which defaults to None). Adjust the glyph for Bold
9135 and/or Italics if requested.
9136 (TextFont::GetGlyphInfo): Now takes a StyleSimulations
9137 argument (which defaults to None). When looking up the glyph in
9138 the cache, make sure that the simulations also match. When loading
9139 a new glyph, pass along the StyleSimulations.
9141 2009-04-17 Larry Ewing <lewing@novell.com>
9143 * runtime.cpp (Surface): remove references to removed variable.
9145 2009-04-17 Chris Toshok <toshok@ximian.com>
9147 * deployment.h|.cpp (class Deployment): add IsLoadedFromXap
9148 getter/setter here, and move XapLocation from surface to here.
9150 * runtime.h|.cpp: remove SetXapLocation/GetXapLocation.
9152 * downloader.cpp: use Deployment::GetXapLocation
9154 * cbinding.h|chinding.cpp: regen.
9156 2009-04-17 Jeffrey Stedfast <fejj@novell.com>
9158 * font.h: Changed the glyph cache size to be #defined rather than
9159 hard-coded everywhere.
9161 2009-04-17 Jackson Harper <jackson@ximian.com>
9163 * xaml.cpp: When we are setting the Name property use the same
9164 trick we are using for setting the x:Name property. Grabbing the
9165 parent element and making sure we get registered in that
9166 namescope. This isn't perfect, but should fix 95% of the managed
9169 2009-04-17 Alan McGovern <amcgovern@novell.com>
9172 * type-generated.cpp: Correctly mark Popup.Child as its
9175 2009-04-17 Geoff Norton <gnorton@novell.com>
9177 * media.cpp: Ensure that we invalidate the image if the
9178 BitmapImage has already been parsed (like from a SetSource call)
9180 2009-04-17 Geoff Norton <gnorton@novell.com>
9182 * error.cpp: Image errors use the code 4001, fixes #97
9184 2009-04-16 Jeffrey Stedfast <fejj@novell.com>
9186 * glyphs.cpp (Layout): Don't bail if we have something other than
9187 StyleSimulationsNone.
9189 * enums.h (enum StyleSimulations): Added Bold, Italic, and
9192 2009-04-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
9194 * pipeline.cpp: IMediaDemuxer::SetStreams: ref the streams. We
9195 already unref them upon destruction.
9197 2009-04-16 Jeffrey Stedfast <fejj@novell.com>
9199 * textblock.cpp (DownloaderComplete): Only invalidate/etc if any
9200 of our inlines' fonts have changed - if they all override the font
9201 family, then there's no need to redraw.
9203 2009-04-16 Jackson Harper <jackson@ximian.com>
9205 * dependencyobject.cpp: Unregister the old name when we set an
9208 2009-04-16 Sebastien Pouliot <sebastien@ximian.com>
9210 * openfile.cpp|h: Add a dialog requester to increase isolated
9211 storage quota. Add function to recursively compute the total size
9212 of a directory, which is used to check quota in IS.
9214 2009-04-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
9216 * deployment.cpp: mono_gc_invoke_finalizers may cause the
9217 current appdomain to change, so restore it afterwards. Fixes
9218 a rare, random crash upon shutdown.
9220 2009-04-15 Jeffrey Stedfast <fejj@novell.com>
9222 * textbox.cpp (TextBoxBase::DownloaderComplete): Instead of
9223 invalidating the TextBoxBase, we need to emit an event to let the
9224 TextBoxView know our font has changed.
9225 (TextBoxView::OnModelChanged): Reset state on the layout when the
9226 font changes (since it has no way of knowing that the font has
9229 * textblock.cpp (Inline::UpdateFontDescription): Return true if
9230 the font has changed or false otherwise.
9231 (TextBlock::UpdateFontDescriptions): If any of the fonts changed,
9232 return true and reset the state on the TextLayout.
9234 * font.cpp (TextFontDescription::Set*): Return true if the font
9235 has changed or false otherwise.
9237 * layout.cpp (TextLayout::ResetState): New method to reset the
9238 state of a TextLayout. Normally the state only gets reset if a
9239 layout property chanegs, but sometimes it is necessary to notify
9240 the TextLayout engine of a state change in one of the
9241 TextLayoutAttributes.
9243 2009-04-15 Jeffrey Stedfast <fejj@novell.com>
9245 * textbox.cpp (TextBoxBase::SetFontResource): If the font isn't a
9246 xap resource, download it from the web.
9248 * textblock.cpp (Inline::SetFontResource): If the font isn't a xap
9249 resource, download it from the web.
9251 2009-04-15 Larry Ewing <lewing@novell.com>
9253 * dirty.cpp (UpdateLayout): a quick hack to get popups sizing
9256 2009-04-15 Jeffrey Stedfast <fejj@novell.com>
9258 * layout.cpp (layout_word_wrap): The HANGUL enums weren't added to
9259 glib until 2.10, so so guard to allow building on systems with
9260 older versions of glib. Also merged BREAK_NEXT_LINE and
9261 BREAK_UNKNOWN into the BREAK_AFTER group.
9263 2009-04-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
9265 * runtime.cpp: Don't support versions of the type "1.0..0".
9266 Fixes a test case in MS DRT #21.
9268 2009-04-15 Stephane Delcroix <sdelcroix@novell.com>
9270 * downloader.cpp (Downloader::Open): fix the argument passed to
9273 2009-04-15 Alan McGovern <amcgovern@novell.com>
9275 * utils.cpp: We need to increment the pointer otherwise we
9278 2009-04-15 Stephane Delcroix <sdelcroix@novell.com>
9280 * downloader.cpp (Downloader::Open): make the relative uris relative to
9282 (check_redirection_policy, Downloader::Write): don't use
9283 uri->originalString, but uri->ToString ()
9285 2009-04-15 Stephane Delcroix <sdelcroix@novell.com>
9287 * runtime.h|cpp (Surface): xap_location, Get() and Set()
9289 2009-04-14 Jeffrey Stedfast <fejj@novell.com>
9291 * layout.cpp (layout_word_wrap): Fixed word-break logic for
9292 ambiguous break-types. Fixes second column of text in test #208.
9294 2009-04-14 Jeffrey Stedfast <fejj@novell.com>
9296 * layout.cpp (layout_word_wrap): Fixed word-breaking around a
9297 BREAK_BEFORE_AND_AFTER. Fixes one of the test cases in test #209.
9299 2009-04-14 Stephane Delcroix <sdelcroix@novell.com>
9301 * deepzoomimagetilesource.h: expose IsDownloaded()
9302 * multiscaleimage.cpp: download the tile source for the subimage before
9303 downloading the un-shared tiles.
9305 2009-04-14 Andreia Gaita <avidigal@novell.com>
9307 * pipeline-ffmpeg.cpp: check avcodec_decode_audio2 return value: 0
9308 indicates frame could not be decoded. fixes uninitialized buffer
9309 size leading to huge memory allocation and abort. kudos to
9310 Alp Toker for spotting this.
9312 2009-04-14 Jeffrey Stedfast <fejj@novell.com>
9314 * layout.cpp (layout_word_wrap): Added support for Hangul and
9315 ideographic word breaking. Improves test #208 quite a bit.
9317 2009-04-14 Larry Ewing <lewing@novell.com>
9320 * control.cpp (InsideObject): always return fals controls don't
9321 handle the testing. Fixes MSI navigation in
9322 http://playboy.covertocover.com/
9325 * panel.cpp: remove HitTest stubs.
9327 2009-04-14 Jeffrey Stedfast <fejj@novell.com>
9329 * layout.cpp (layout_word_wrap): Added logic to for breaking after
9330 more break-types including BREAK_AFTER, BREAK_HYPHEN, and
9331 BREAK_IDEOGRAPHIC in an effort to closer match Silverlight 2.0's
9332 behavior on test #206.
9334 2009-04-14 Jeffrey Stedfast <fejj@novell.com>
9336 * layout.cpp (utf8_strlen): Removed, this has never been sued.
9337 (utf8_find_last_word): Removed. No longer needed - Silverlight 2.0
9338 no longer has this wrapping bug.
9339 (layout_word_wrap): Don't need to check if we're at the last word
9340 in the textblock because Silverlight 2.0 fixed this bug.
9341 (FindLastWord): Removed, no longer needed.
9343 2009-04-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
9346 * playlist.cpp: Don't try to open the media if an error has
9349 2009-04-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
9353 * mediaelement.cpp: Check for markers with a timeout instead
9354 of after rendering a frame, this way markers also work with
9357 2009-04-14 Jackson Harper <jackson@ximian.com>
9359 * dependencyobject.cpp|h: Add a return value for SetName with
9360 namescope, returns false if there is an error.
9361 * xaml.cpp: Check the return value of SetName
9363 2009-04-14 Stephane Delcroix <sdelcroix@novell.com>
9365 * uri.cpp (Combine): strip leading ../ as we're already cutting the
9366 filename off the base uri
9368 2009-04-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
9386 * timemanager.cpp: Added @GeneratePInvoke to all methods used
9387 in managed code. For C++ methods also generate the
9388 corresponding C method.
9391 * cbinding.cpp: Regenerated.
9393 2009-04-13 Jeffrey Stedfast <fejj@novell.com>
9395 * textblock.cpp (SetFontResource): If we cannot get the resource
9396 from within the xap, then we need to spawn a downloader to fetch
9399 2009-04-13 Geoff Norton <gnorton@novell.com>
9401 * deployment.cpp: Turn on MONO_IOMAP=case until we fix the iomapping
9404 2009-04-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
9408 2009-04-12 Jeffrey Stedfast <fejj@novell.com>
9410 * debug.cpp (hexdump_addr): New function to help toshok print a
9411 hexdump of memory from gdb.
9413 * textbox.cpp (TextBoxBase::SetFontResource): Set the font
9414 filename/guid based on the resource provided.
9415 (TextBoxBase::OnPropertyChanged): If a font resource is named in
9416 the FontFamily property, then call SetFontResource() with the
9417 provided resource name.
9418 (TextBox::ClearFontSource): Clear the FontSourceProperty.
9419 (PasswordBox::ClearFontSource): Same.
9421 2009-04-11 Chris Toshok <toshok@ximian.com>
9423 * provider.h|.cpp, dependencyobject.cpp: get rid of
9424 PropertyPrecedence_Animation and the associated provider. in SL,
9425 animations are considered local values (and a choir of angels was
9426 heard moaning as they fell on their swords).
9428 2009-04-11 Jeffrey Stedfast <fejj@novell.com>
9430 * font.cpp: Don't reuse FT_Open_Args. Changed things to pass
9431 FT_Streams and setup their own FT_Open_Args instead. This solves
9432 the crasher problems in the silverlight2 test harness.
9434 * textblock.cpp (Inline::SetFontResource): New method to update
9435 our FontFilenameProperty and FontGUIDProperties.
9436 (Inline::OnPropertyChanged): Handle FontFamilyProperty changes
9437 that reference a resource.
9438 (Inline::UpdateFontDescription): Parse out the family name from
9439 the FontFamily::Source.
9441 2009-04-11 Jeffrey Stedfast <fejj@novell.com>
9443 * textblock.cpp (TextBlock::SetFontResource): Renamed from
9444 SetFontSource() to be more accurate.
9446 * font.cpp (OpenFaceByIndex): Don't leave any FT_Faces open on
9447 fail. This is probably what was causing the crash on
9450 * glyphs.cpp (SetFontResource): Now takes a Uri argument rather
9451 than a string and returns a bool argument hinting at whether we
9453 (OnPropertyChanged): Only fall back on creating a downloader for
9454 the font if the uri is not a resource.
9456 2009-04-11 Jackson Harper <jackson@ximian.com>
9458 * xaml.cpp: If we are hydrating we don't need the extra ref.
9460 2009-04-10 Jeffrey Stedfast <fejj@novell.com>
9462 * uri.cpp (ToString): Made to accept const Uri*
9464 * textblock.cpp (SetFontSource): Parse the resource string into a
9465 Uri and pass that along to GetResourceAsPath().
9467 * glyphs.cpp (SetFontResource): Parse the resource string into a
9468 Uri and pass that along to GetResourceAsPath().
9470 * bitmapimage.cpp (UriSourceChanged): Back to passing a Uri for
9473 * application.cpp (GetResource): Oops, this really does need a Uri
9475 (GetResourceAsPath): Use a Uri here too, and convert any ';' into
9478 2009-04-10 Jackson Harper <jackson@ximian.com>
9480 * xaml.cpp: Let the XamlElementInstances cleanup their Values.
9482 2009-04-10 Chris Toshok <toshok@ximian.com>
9484 * timemanager.cpp (TimeManager::SourceTick): just for kicks
9485 completely rip out the clock smoothing code, and also emit all
9486 tick calls (don't worry about how much time we're taking in them).
9487 Lastly, emit tick calls *before* rendering. we need to do this or
9488 else the Loaded event won't be posted before we draw (when we
9489 delay the loaded event, that is.) which leads to a great many
9490 VisualTreeWalker warnings, since Panel::OnLoaded adds the dirty
9491 flag for the initial children z-sorting.
9493 * collection.cpp (VisualTreeWalker::Step): add a special case for
9494 collection::count == index == 1, which is what we end up with on
9495 uielement's with a subobject. it won't be a collection child of a
9496 panel, so it'll never be z-sorted, but since it's only 1 element
9497 it doesn't need to be anyway.
9499 * canvas.h|.cpp: move OnLoaded, ElementAdded, and ElementRemoved
9500 to Panel. Also, move the ZIndex OnCollectionItemChanged code into
9503 * panel.h|.cpp: remove a couple of unused
9504 decls (ChildAdded/ChildRemoved) and add the stuff we moved out of
9507 2009-04-10 Jeffrey Stedfast <fejj@novell.com>
9509 * font.cpp (OpenFaceByIndex): New helper function split out from
9510 FontFace::LoadFontFace() which performs the FT_Open_Face() and
9511 family name matching.
9512 (OpenFaceByFamily): If we don't have an index, this function opens
9513 all faces in the file and finds a matching font face based on
9515 (LoadFontFace): Use our new helper functions.
9517 * textblock.cpp (SetFontSource): On fail, set the font filename to
9518 NULL and call UpdateFontDescriptions() no matter what.
9520 * font.cpp (UnsetFields): Allow unsetting of the font index.
9521 (Merge): Merge the index separately.
9522 (SetIndex): Set/unset the FontMaskIndex bit.
9524 * glyphs.cpp (SetFontResource): New internal method to set a font
9526 (OnPropertyChanged): Handle non-absolute Uris as resource streams.
9528 2009-04-10 Larry Ewing <lewing@novell.com>
9530 * multiscaleimage.cpp: add a translucency check before calling
9531 cairo_paint_with_alpha.
9533 2009-04-10 Jeffrey Stedfast <fejj@novell.com>a
9535 * textblock.cpp (SetFontSource): New method for setting a font
9536 source via a resource name.
9537 (OnPropertyChanged): When the FontFamily changes, parse out the
9538 resource name (if it exists) and set that as our font source.
9540 * bitmapimage.cpp (UriSourceChanged): Updated.
9542 * xap.cpp (Unpack): Use the new ExtractAll() convenience function.
9544 * application.cpp (GetResourceAsPath): New helper method to get a
9545 specified resource as a filesystem path.
9546 (GetResource): Now takes a resource name rather than a Uri.
9548 * utils.cpp (CanonicalizeFilename): New function to canonicalize a
9550 (ExtractAll): New helper function to extract all files from a zip
9551 archive into a specified directory.
9553 2009-04-10 Jeffrey Stedfast <fejj@novell.com>
9555 * textblock.cpp (CleanupDownloader): New helper method.
9556 (SetFontSource): Use CleanupDownloader() and also clear the
9557 FontSourceProperty since this will override that source.
9558 (OnPropertyChanged): Parse the FontFamily name.
9559 (DownloaderComplete): Use SetValue() correctly.
9561 * glyphs.cpp (CleanupDownloader): Remove the CompletedEvent
9564 2009-04-10 Sebastien Pouliot <sebastien@ximian.com>
9566 * security.c: Move #if MONO_ENABLE_CORECLR_SECURITY to remove
9567 all coreclr-related code from being compiled.
9569 2009-04-09 Chris Toshok <toshok@ximian.com>
9571 * uielement.cpp (UIElement::WalkTreeForLoaded): be more
9572 descriptive with the "attempting to use a null application" thing.
9574 * xaml.cpp (xaml_is_valid_event_name): sort these, and add a bunch
9575 that were missing. we need to make this less fragile, and have it
9576 use the event strings in type-generated.cpp.
9577 (end_element_handler): add more text to the line about attempting
9578 to use a null application, so we can differentiate it from the
9581 * timeline.h (class Timeline): BeginTime has, in fact, a default
9584 * dependencyproperty.g.cpp: regen.
9586 2009-04-09 Jeffrey Stedfast <fejj@novell.com>
9588 * textblock.h, textbox.h: Added FontSourceProperty.
9590 * value.cpp|h: Added FontSource support.
9592 * fontsource.h: Added.
9594 2009-04-09 Sebastien Pouliot <sebastien@ximian.com>
9596 * cbinding.cpp|h: regenerated
9597 * openfile.cpp|h: Add save_file_dialog_show to implement
9598 SaveFileDialog (SL3) and refactor the filter code to be shared.
9599 * runtime.cpp|h: Rename can_full_screen to user_initiated_event
9600 since we need it for SaveFileDialog (and elsewhere too). Rename
9601 setter and add a getter with a c binding.
9603 2009-04-09 Jackson Harper <jackson@ximian.com>
9605 * xaml.cpp|h: We need to create Value*'s from strings/files now
9606 instead of just creating dependencyobjects, it's legal to create a
9607 managed object from xaml that isn't a DOB.
9608 - Add a couple utility methods for creating just DOBs from
9610 * cbinding.cpp: regen
9613 * runtime.cpp: Updated method names
9615 2009-04-08 Geoff Norton <gnorton@novell.com>
9617 * downloader.cpp: Ensure that when someone subscribes to NotifySize
9618 they actually will get notified of the size.
9620 2009-04-08 Geoff Norton <gnorton@novell.com>
9622 * glyphs.cpp: Ensure we dont pass an unitialized pointer to
9623 TextFontDescription::SetFilename
9625 2009-04-08 Andreia Gaita <avidigal@novell.com>
9627 * dependencyobject.cpp: enable toggleref
9628 conditionally (MOONLIGHT_ENABLE_TOGGLEREF)
9630 2009-04-08 Jeffrey Stedfast <fejj@novell.com>
9632 * font.cpp (IndexFontSubdirectory): Don't try deobfuscating if it
9633 isn't a .odttf file.
9635 2009-04-08 Geoff Norton <gnorton@novell.com>
9637 * pipeline.cpp: Ensure we dont try to decode if our stream has been
9640 2009-04-08 Jeffrey Stedfast <fejj@novell.com>
9642 * downloader.cpp (validate_policy): Don't delete source here, we
9645 * glyphs.cpp (DownloaderComplete): Only bother setting a guid if
9646 the file extension is .odttf. Also no need to stat() anymore.
9648 * textblock.cpp (DownloaderComplete): Same.
9650 2009-04-08 Jeffrey Stedfast <fejj@novell.com>
9652 * provider.cpp (InheritedPropertyValueProvider): We need to
9653 inherit FontGUIDProperty for Inlines as well.
9655 * file-downloader.cpp|h: Cleaned up a bit, no longer needs font
9656 deobfuscation features.
9658 * glyphs.cpp (DownloaderCompleted): Don't need to call
9659 downloader_deobfuscate_font() anymore. We only need to get the
9660 GUID to set on the FontDescription.
9662 * textblock.cpp (DownloaderCompleted): Same.
9664 * font.cpp: Implemented our own FT_Stream that can handle reading
9665 obfuscated fonts directly without the need to rewrite the file
9667 (TextFontDescription): Now has a GUID property for Glyphs and
9670 * downloader.cpp: Fixed to autogenerate the accessors and changed
9671 the UriProperty type to a Uri to be consistent with other classes.
9672 (GetDownloadedFilename): Work around the Mozilla 64k bug here too.
9674 2009-04-08 Geoff Norton <gnorton@novell.com>
9676 * deployment.cpp: Ensure that we restore to the current MonoDomain
9677 after creating a new deployment.
9679 2009-04-08 Stephane Delcroix <sdelcroix@novell.com>
9681 * multiscaleimage.h|cpp: Set IsDownloading property according to the
9682 status of the downloaders
9684 2009-04-08 Stephane Delcroix <sdelcroix@novell.com>
9686 * multiscaleimage.cpp (MultiScaleImage::RenderSingle,
9687 MultiScaleImage::RenderCollection): do not start any new download if
9688 AllowDownlodingProperty is false.
9690 2009-04-08 Stephane Delcroix <sdelcroix@novell.com>
9692 * multiscaleimage.h|cpp: impplement missing LogicalToElementPoint
9694 2009-04-08 Stephane Delcroix <sdelcroix@novell.com>
9696 * multiscaleimage.cpp: if downloading a tile fail, cache a NULL surface
9699 2009-04-08 Stephane Delcroix <sdelcroix@novell.com>
9701 * multiscaleimage.cpp: some additional debug info printing the state of
9704 2009-04-07 Chris Toshok <toshok@ximian.com>
9706 * provider.cpp (InheritedPropertyValueProvider::GetPropertyValue):
9707 almost had it that last time. In the case where the parent has
9708 that property, use GetValue on it instead of ReadLocalValue, which
9709 won't pick up styles.
9711 2009-04-07 Chris Toshok <toshok@ximian.com>
9713 * provider.cpp (InheritedPropertyValueProvider::GetPropertyValue):
9714 rewrite this substantially to make it work correctly and be more
9715 efficient. we no longer look up the hierarchy for properties
9716 which aren't inheritable, and we only loop up the visual tree, not
9717 the logical one (since that has issues when it comes to
9719 (get_parent): nuke, it was a broken way to deal with parents.
9721 2009-04-07 Chris Toshok <toshok@ximian.com>
9723 * uielement.h|.cpp (class UIElement): scrap that ill-advised
9724 AutoCreator crap. it's much simpler. the default is actually
9725 NULL, and the managed layer does the stupid mapping from NULL to
9726 new MatrixTransform.
9728 2009-04-07 Chris Toshok <toshok@ximian.com>
9730 * uielement.h|.cpp (class UIElement): use an AutoCreator for
9731 RenderTransformProperty.
9733 * dependencyproperty.g.cpp: regen.
9735 2009-04-07 Larry Ewing <lewing@novell.com>
9737 * grid.cpp (MeasureOverride): use the star fraction of the
9738 available size when measuring.
9740 * border.cpp: restrict the return value to available size.
9742 2009-04-07 Geoff Norton <gnorton@novell.com>
9744 * pipeline.cpp|h: Ensure that we can post ReportSeekCompleted back
9745 to the media thread from any thread. Fixes seeking on SmoothHD
9748 2009-04-07 Geoff Norton <gnorton@novell.com>
9750 * bitmapimage.cpp|h: Ensure we stop getting events from any
9751 active downloaders once we're disposed.
9752 * brush.cpp|h: Ensure we stop getting events from any
9753 active BitmapImages once we're disposed.
9755 2009-04-07 Jeffrey Stedfast <fejj@novell.com>
9757 * glyphs.cpp (CleanupDownloader): New helper method.
9758 (DownloadFont): Don't delete the uri after we're done, we do not
9760 (OnPropertyChanged): Use Uri::IsNullOrEmpty().
9762 2009-04-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
9764 * runtime.cpp: layers is an EventObject, unref instead of
9767 * collection.h: Have a protected dtor so that nobody can
9768 delete this class directly ever again.
9770 2009-04-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
9772 * runtime.cpp: Add a few null checks.
9774 2009-04-07 Stephane Delcroix <sdelcroix@novell.com>
9776 * application.cpp: uri->ToString() allocates memory, free it after
9779 2009-04-06 Chris Toshok <toshok@ximian.com>
9781 * runtime.cpp|.h (Surface::Attach): split this method effectively
9782 in half: stuff we do before the loaded events are fired, and stuff
9783 we do after. The second half is in Surface::ToplevelLoaded. This
9784 fixes playboy.covertocover.com coming up, as the alert that
9785 vertigo pops up via Surface::LoadEvent was causing a sub-mainloop
9786 to screw with our async events.
9788 2009-04-06 Chris Toshok <toshok@ximian.com>
9790 * uielement.cpp|.h (UIElement::GetTransformToUIElementWithError):
9791 flesh this method out some. I don't like the walks we have to do
9792 here. Also, rename this to *WithError so we can report the error
9793 back to managed land from here instead of doing it in C#.
9795 * cbinding.cpp|.h: regen.
9797 2009-04-06 Chris Toshok <toshok@ximian.com>
9799 * dependencyobject.cpp (DependencyObject::ProviderValueChanged):
9800 in case we didn't notify listeners, output the moon error if there
9803 2009-04-06 Chris Toshok <toshok@ximian.com>
9805 * xaml.cpp (value_from_str): quiet spew (which in this case
9806 indicates an error when there isn't one.)
9808 2009-04-06 Chris Toshok <toshok@ximian.com>
9810 * brush.h: include imagesource.h, not bitmapimage.h
9812 * brush.cpp: include bitmapimage.h here.
9814 2009-04-06 Geoff Norton <gnorton@novell.com>
9816 * bitmapimage.cpp: Stop leaking the resource here.
9818 2009-04-06 Geoff Norton <gnorton@novell.com>
9820 * codec-version.h.in: Bump
9822 2009-04-06 Geoff Norton <gnorton@novell.com>
9824 * application.cpp: We want ToString here, not just the path of the
9826 * bitmapimage.cpp|h: We need to do this async, since the events
9827 might be registered in managed code before a yield.
9829 2009-04-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
9831 * security.c: Add jtr.dll to the list of platform assemblies,
9832 it's an assembly used by managed tests which contains unsafe
9833 code and pinvoke methods.
9835 2009-04-06 Stephane Delcroix <sdelcroix@novell.com>
9837 * multiscaleimage.h: ad the 3.0 DPs and property accessors
9839 2009-04-05 Chris Toshok <toshok@ximian.com>
9841 * easing.cpp|.h: add EasingFunctionBase::SetEasingFunction so that
9842 managed subclasses can register a delegate.
9844 * cbinding.cpp|.h: regen.
9846 2009-04-04 Geoff Norton <gnorton@novell.com>
9848 * mediaplayer.cpp: Ensure that we invalidate for planar data as well.
9850 2009-04-04 Geoff Norton <gnorton@novell.com>
9852 * pipeline.cpp|h: Support YV12 from MediaStreamSource as well
9854 2009-04-04 Geoff Norton <gnorton@novell.com>
9856 * media.h: Removed unused define
9857 * mediaplayer.cpp|h: We need to support RGBA video formats now, so
9858 lets track what the decoder is giving us (pass-thru is the only decoder
9859 which will provide RGBA from MSS, we still pass around yuv and rgb
9860 internally). If the format is RGBA we have to incur a one-frame penalty
9861 to recreate our cairo surfaces.
9862 * pipeline.cpp|h: Support RGBA pixel formats. Don't support RGB from
9863 MediaStreamSource. Mark the pass-thru frames as decoded.
9865 2009-04-04 Chris Toshok <toshok@ximian.com>
9867 * animation.h|.cpp: add Easing{Color,Double,Point}KeyFrame types.
9869 * type.h, type-generated.cpp, dependencyproperty.g.cpp, value.h,
9870 cbinding.h|.cpp: regen.
9872 2009-04-03 Chris Toshok <toshok@ximian.com>
9874 * animation.h: add EasingFunctionProperty to
9875 Color/Double/PointAnimation.
9877 * animation.cpp (DoubleAnimation::GetCurrentValue): if there's an
9878 easing function, apply it to progress.
9879 (ColorAnimation::GetCurrentValue): if there's an easing function,
9880 apply it to progress.
9881 (PointAnimation::GetCurrentValue): if there's an easing function,
9882 apply it to progress.
9884 * easing.h, easing.cpp: implementations of all the easing
9885 functions. still missing are BounceEase and ElasticEase.
9887 * enums.h, enums.cpp (enum EasingMode): new enum.
9889 * Makefile.am: add easing.h/easing.cpp
9891 * type.h, type-generated.cpp, cbinding.h|.cpp,
9892 dependencyproperty.g.cpp, value.h: regen.
9894 2009-04-03 Geoff Norton <gnorton@novell.com>
9896 * multiscaleimage.cpp: Guard against 0x0 MSI's to prevent a cairo bug
9897 which renders garbage on the screen on amd64.
9899 2009-04-03 Aaron Bockover <abockover@novell.com>
9903 * dependencyproperty.g.cpp:
9904 * cbinding.cpp: Add generated binding for Surface::GetToplevel, needed
9905 by Moonlight.Gtk.XamlHost
9907 2009-04-03 Larry Ewing <lewing@novell.com>
9910 * popup.cpp: Make sure that we hide any active layers when Child
9911 changes and that we show any new ones. Fixes part of
9912 PopupExample2. Give IsOpen a default value.
9916 2009-04-03 Chris Toshok <toshok@ximian.com>
9918 * animation.h: remove a couple of ancient (and unused) method and
9919 function declarations, and re-order
9920 public/private/protected (seriously, this makes my eyes bleed.)
9921 Also move the "internal classes" to the end.
9923 2009-04-03 Chris Toshok <toshok@ximian.com>
9925 * clock.cpp (Clock::Begin): remove the COMPATABILITY_BUGS stuff,
9926 since that's for compatability with 1.0, which we no longer are.
9928 2009-04-03 Alan McGovern <amcgovern@novell.com>
9930 * textbox.h: TextBox does validation in both the getter and
9931 setter of its TextProperty, so we have to manually implement
9934 2009-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
9936 * security.c: Include "config.h" to get
9937 MONO_ENABLE_CORECLR_SECURITY.
9939 2009-04-02 Aaron Bockover <abockover@novell.com>
9941 Do not build code that requires Mono 2.5 or better in the case where
9942 we want Moonlight to run only in an embedded desktop app scenario; in
9943 this case, CoreCLR security and non-default app domains are not needed
9945 * security.c (security_enable_coreclr): If MONO_ENABLE_CORECLR_SECURITY
9946 is not defined, this function is now a noop
9948 * deployment.cpp: If MONO_ENABLE_APP_DOMAIN_CONTROL is not defined, do
9949 not implement app domain loading/unloading; factor out all common init
9950 code that was duplicated in both ctors into InnerConstructor
9952 * deployment.h: Define InnerConstructor
9954 2009-04-02 Larry Ewing <lewing@novell.com>
9957 * uielement.cpp: move the bulk of the paint ftb logic from surface
9958 to here since we will be using this in more places. Make some of
9959 the ftb logic protected now.
9962 * writeablebitmap.h:
9963 * writeablebitmap.cpp: Land Geoff's initial Render implementation
9968 2009-04-02 Larry Ewing <lewing@novell.com>
9972 * runtime.cpp: Treat full_screen_message as another layer. Make
9973 sure that we mark layers as loaded. Popups should render now.
9975 2009-04-02 Alan McGovern <amcgovern@novell.com>
9977 * runtime.cpp: the real toplevel element must always be at
9978 position 0 in the layers list. Fixes the situation where we
9979 open a popup before setting attaching the surface.
9981 2009-04-02 Stephane Delcroix <sdelcroix@novell.com>
9983 * multiscaleimage.h|cpp: use *AnimationUsingKeyFrames instead of
9984 linear animation, animate for 4 secs instead of .4, use steep spline
9985 to start fast finish smoothly. For botn panning and zooming.
9987 2009-04-02 Alan McGovern <amcgovern@novell.com>
9991 * dependencyproperty.g.cpp: The Child property has similar
9992 validation to a ContentControl. Fixes three tests.
9994 2009-04-02 Alan McGovern <amcgovern@novell.com>
10003 * dependencyproperty.g.cpp: Popups are treated as top level
10004 elements which are rendered on top of all other elements. To
10005 handle this a list of all toplevel elements (layers) is kept
10006 in the surface. Mouse events are captured within a toplevel
10007 element and not visible to other toplevel elements.
10009 2009-04-01 Stephane Delcroix <sdelcroix@novell.com>
10011 * multiscaleimage.cpp (ZoomAboutLogicalPoint): zoom around the point,
10012 not to the center of the control
10014 2009-04-01 Andreia Gaita <avidigal@novell.com>
10016 * window-gtk.cpp: Only connect the scroll-event signal if we're
10017 not running on the desktop (otherwise, gecko won't get the
10020 2009-04-01 Stephane Delcroix <sdelcroix@novell.com>
10022 * uri.h: no longer expose GetOriginalString(), it leads to buggy
10025 2009-04-01 Stephane Delcroix <sdelcroix@novell.com>
10027 * mediaelement.cpp:
10029 * deepzoomimagetilesource.cpp: g_free the memory allocated by
10032 2009-04-01 Chris Toshok <toshok@ximian.com>
10034 * window-gtk.cpp (MoonWindowGtk::button_press): reinstate
10035 the (desktop extension -ized) button check here. this wouldn't be
10036 necessary if the plugin could insert its signal handler before the
10037 window's, but alas, gtk...
10039 2009-04-01 Stephane Delcroix <sdelcroix@novell.com>
10041 * application.cpp (GetResource): use the uri path, not
10044 2009-04-01 Jeffrey Stedfast <fejj@novell.com>
10046 * expression.cpp|h: Removed from the build.
10047 not running on the desktop (otherwise, gecko won't get the
10050 2009-04-01 Chris Toshok <toshok@ximian.com>
10052 * runtime.cpp (Surface::HandleUIButtonRelease): if desktop
10053 extensions are turned on, allow button 3 (right mouse).
10054 (Surface::HandleUIButtonPress): same.
10056 * window-gtk.cpp (MoonWindowGtk::button_release): don't suppress
10057 non-button 1 presses here.
10059 2009-04-01 Chris Toshok <toshok@ximian.com>
10061 * eventargs.cpp (MouseWheelEventArgs::GetWheelDelta): flip the
10062 sign here so we have the same behavior that lutz's demo expects
10065 2009-04-01 Geoff Norton <gnorton@novell.com>
10067 * uri.cpp|h: Add IsNullOrEmpty
10068 * bitmapimage.cpp: Clean up this call to use Uri::IsNullOrEmpty
10070 2009-04-01 Geoff Norton <gnorton@novell.com>
10072 * bitmapimage.cpp: Ensure we deregister the events too.
10074 2009-04-01 Geoff Norton <gnorton@novell.com>
10076 * bitmapimage.cpp: If the UriSource is changed, then we should abort
10077 and clean up any existing downloaders.
10079 2009-04-01 Geoff Norton <gnorton@novell.com>
10081 * brush.cpp: ImageSource is a nullable property so we need to new
10082 one up here if we dont have one already.
10084 2009-04-01 Stephane Delcroix <sdelcroix@novell.com>
10086 * multiscaleimage.h|.cpp: reuse BitmapImage for tile downloading
10087 and creating cairo surfaces.
10089 2009-04-01 Stephane Delcroix <sdelcroix@novell.com>
10091 * bitmapimage.cpp: compare uri against its DefaultValue on UriSource
10094 2009-04-01 Chris Toshok <toshok@ximian.com>
10096 * uielement.h (class UIElement): add
10097 MouseRightButton{Down,Up}Event and MouseWheelEvent.
10099 * runtime.cpp|.h (RUNTIME_INIT_DESKTOP): enable desktop
10101 (Surface::HandleUIScroll): new method, emit a MouseWheelEvent.
10103 * eventargs.cpp|.h (class MouseWheelEventArgs): new class.
10105 * window-gtk.cpp|.h (MoonWindowGtk::scroll): new method for mouse
10107 (MoonWindowGtk::EnableEvents): connect the scroll-event.
10108 (MoonWindowGtk::InitializeCommon): if desktop extensions are
10109 enabled, add GDK_SCROLL_MASK.
10111 * xaml.cpp (xaml_is_valid_event_name): if we're running with
10112 desktop extensions, expose the right button events and mouse
10115 * value.h, cbinding.h, cbinding.cpp, type-generated.cpp: regen.
10117 2009-03-31 Jeffrey Stedfast <fejj@novell.com>
10119 * enums.h: Well what do ya know... TextWrapping enum wasn't the
10120 same as the TextWrapping.cs enum, this is likely the case of some
10121 text layout wonkyness.
10123 * textblock.cpp (TextBlock::MeasureOverride): Set the
10124 ActualWidth/Height DP values here after calling Layout(), this
10125 seems to be what Silverlight does (can't be set in FWE::Measure()
10126 because it doesn't have the actual extents, it just has the
10127 desiredSize). Also don't reset dirty back to true after laying out
10129 (TextBlock::Layout): Restructured slightly.
10131 2009-03-31 Stephane Delcroix <sdelcroix@novell.com>
10133 * bitmapimage.cpp: use Uri::ToString () instead of OriginalString, as
10134 originalstrings aren't updated on Uri::Combine ().
10136 2009-03-31 Stephane Delcroix <sdelcroix@novell.com>
10138 * bitmapimage.h: Set a DefaultValue for ProgressProperty
10140 2009-03-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
10142 * src.mdp: Updated some project files.
10144 2009-03-31 Stephane Delcroix <sdelcroix@novell.com>
10146 * multiscaleimage.cpp: Invalidate on ZIndex change, or on subimages
10149 2009-03-31 Stephane Delcroix <sdelcroix@novell.com>
10151 * multiscaleimage.h|.cpp: remove the AddTickCall workaround for
10152 the race while emitting ImageOpenSucceded. Test if the source is
10153 a deepzoom before casting (avoid g_warnings on the console). Change a
10156 2009-03-30 Chris Toshok <toshok@ximian.com>
10158 * timemanager.cpp|.h: split this out from clock.cpp|.h
10160 * animation.cpp, clock.cpp, clock.h, dependencyobject.cpp,
10161 libmoon.h, mediaplayer.cpp, runtime.cpp, textbox.cpp,
10162 timeline.cpp, uielement.cpp: track the above change.
10164 * Makefile.am: add timemanager.cpp|.h
10166 * cbinding.h, type-generated.cpp: regen
10168 2009-03-30 Geoff Norton <gnorton@novell.com>
10170 * bitmapsource.cpp: When caching a native surface ensure we dont
10171 destroy it on every GetSurface pass, but we do clean it up in
10174 2009-03-30 Chris Toshok <toshok@ximian.com>
10176 * application.h, border.h, contentcontrol.h, control.h,
10177 cornerradius.h, deployment.h, expression.h, frameworkelement.h,
10178 grid.h, multiscaleimage.h, size.h, style.h, template.h, textbox.h,
10179 transform.h, type.h, usercontrol.h: remove @SilverlightVersion
10180 metadata attributes.
10183 2009-03-30 Chris Toshok <toshok@ximian.com>
10185 * downloader.h: add pinvokes for a few of the downloader_* C
10188 * clock.h|.cpp (class TimeManager): add a CBinding/PInvoke for
10189 AddTickCall, and remove the manual implementation.
10191 * dependencyobject.h (class EventObject): add a PInvoke for
10192 event_object_get_surface.
10194 * cbinding.h, cbinding.cpp: regen
10196 2009-03-30 Sebastien Pouliot <sebastien@ximian.com>
10198 * security.c: Ensure mono_assembly_setrootdir is always called
10199 while enabled coreclr is dependent on the MOON_DISABLE_SECURITY
10200 variable and the availability of a platform directory.
10202 2009-03-30 Geoff Norton <gnorton@novell.com>
10204 * brush.h: Brush.ImageSource is stupid, and of course not consistent
10206 * bitmapimage.cpp: Nuke some debug spew.
10207 * dependencyproperty.g.cpp: Funky cold medina.
10209 2009-03-30 Larry Ewing <lewing@novell.com>
10211 * brush.cpp (OnPropertyChanged): check for the right property and
10212 fixup a harmless typo.
10214 * media.cpp (OnPropertyChanged): fixup a (harmless) logic typo
10216 2009-03-30 Jeffrey Stedfast <fejj@novell.com>
10218 * font.cpp (FontFace::GetExtents): Instead of calculating our
10219 ascent/descent and height values from 2 different ways, calculate
10220 ascent/descent the same way we calculated height. This seems to
10221 give slightly more accurate results (previous logic rounded up to
10222 the nearest whole pixel for ascent/descent).
10224 2009-03-30 Geoff Norton <gnorton@novell.com>
10226 * media.h: Hide some API that never should have been public.
10227 * media.cpp: ImageBrush no longer uses a image internally.
10228 * bitmapimage.cpp|h: Part name is a const char * since we dup
10230 * brush.cpp|h: Migrate away from using a Image internally
10231 and consume the new BitmapImage API.
10233 2009-03-30 Geoff Norton <gnorton@novell.com>
10235 * bitmapimage.cpp: Ensure we fall back to downloading if we
10236 cannot find the image as a resource.
10238 2009-03-30 Chris Toshok <toshok@ximian.com>
10240 * deployment.h|.cpp: combing the desktop and browser cases (the
10241 desktop case coming from jeff's patch) into one method, where the
10242 different root_domain behavior is determined by the boolean
10245 * runtime.cpp (runtime_init): pass an initial boolean to
10246 Deployment::Initialize to tell whether or not we should create the
10247 root domain (i.e. whether or not we should initialize mono.)
10248 (RUNTIME_INIT_BROWSER): add RUNTIME_INIT_CREATE_ROOT_DOMAIN.
10250 2009-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
10252 * security.c: Revert latest fix, the buildbots aren't ready
10255 2009-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
10257 * security.c: Always call mono_assembly_setrootdir, even if
10258 CoreCLR is disabled. This should fix buildbots where
10259 mono/mcs and moonlight are installed into different
10262 2009-03-30 Geoff Norton <gnorton@novell.com>
10264 * media.cpp: Stop leaking a cairo pattern in Image::Render
10266 2009-03-30 Stephane Delcroix <sdelcroix@novell.com>
10268 * deepzoomimagetilesource.cpp: revert latest change, don't advance
10269 twice. Fixes collections.
10271 2009-03-29 Chris Toshok <toshok@ximian.com>
10273 * provider.cpp (AutoCreatePropertyValueProvider::GetPropertyValue):
10274 add a sanity check here to make sure the autocreated value is of a
10277 * animation.h|.cpp: remove the /*Timeline*/ comments from
10278 everywhere -- stop pretending the type names are the same as WPF.
10280 2009-03-29 Geoff Norton <gnorton@novell.com>
10282 * media.cpp: Ensure that the ImageSource we get is a BitmapImage
10283 before treating it as such.
10285 2009-03-29 Geoff Norton <gnorton@novell.com>
10287 * Makefile.am, bitmapimage.cpp|h, bitmapsource.cpp|h,
10288 writeablebitmap.cpp|h, brush.cpp, enums.h, eventargs.cpp|h,
10289 imagesource.cpp|h, media.cpp|h, mediaplayer.h, pipeline.cpp:
10290 Update the image based source to have a properly implemented
10291 BitmapImage. I've also moved all this code to the SL3 API which
10292 injects a BitmapSource in between ImageSource and BitmapImage,
10293 and adds support for WriteableBitmap.
10295 Basically now all the cairo logic lives in ImageSource and
10296 BitmapSource. All the pixbuf loader logics and downloader logic
10297 is isolated in BitmapImage.
10299 * cbinding.cpp|h, dependencyproperty.g.cpp, type-generated.cpp,
10300 type.h, value.h: Regenerate
10302 2009-03-29 Chris Toshok <toshok@ximian.com>
10304 * provider.h, provider.cpp, dependencyproperty.h: change
10305 AutoCreator signature to take the DependencyObject as the first
10308 2009-03-29 Chris Toshok <toshok@ximian.com>
10310 * dependencyproperty.h|.cpp: rework the autocreate functionality.
10311 instead of a boolean flag, we pass a function pointer. We keep
10312 IsAutoCreated() around (just func != NULL) and add
10313 GetAutoCreator() so the AutoCreateProvider can call the method
10314 when it needs a value.
10316 Also, remove the empty ctor since it doesn't initialize any
10317 fields (and it also isn't called.)
10319 * provider.h (class AutoCreators): new class, containing the
10320 default autocreator which just calls type->CreateInstance().
10322 * provider.cpp (AutoCreatePropertyValueProvider::GetPropertyValue):
10323 call the property's AutoCreator function if there is one.
10324 (AutoCreators::default_autocreator): new function for the default
10325 case. basically some code that was ripped out of
10328 * dependencyproperty.g.cpp: regen.
10330 2009-03-29 Chris Toshok <toshok@ximian.com>
10332 * uielement.cpp (UIElement::OnLoaded): now that we don't walk the
10333 tree in OnLoaded, don't do anything at all if we're already
10336 2009-03-29 Chris Toshok <toshok@ximian.com>
10338 * eventargs.h: consistenfy everything, and make
10339 CollectionChangedEventArgs fields private, not public. add
10342 * dependencyobject.h (PropertyChangedEventArgs): make
10343 old_value/new_value private and add accessors.
10345 * *.cpp|.h: track the above changes.
10347 2009-03-29 Chris Toshok <toshok@ximian.com>
10349 * dependencyproperty.h|.cpp: rename AutoCreate to IsAutoCreated.
10351 * dependencyobject.cpp:, provider.cpp: track above change.
10353 2009-03-28 Sebastien Pouliot <sebastien@ximian.com>
10355 * deployment.cpp|h (Initialize): If a platform directory is
10356 specified then we initialize the CoreCLR security model.
10357 * runtime.cpp|h: Initialize the runtime using the plugin
10358 directory (when applicable, i.e. browser mode).
10359 * security.c|h: New. Handle the CoreCLR security model
10360 initialization and platform code detection.
10361 * Makefile.am: Add security.[c|h] to the build
10363 2009-03-28 Jeffrey Stedfast <fejj@novell.com>
10365 * frameworkelement.cpp (OnPropertyChanged): Instead of setting
10366 ActualWidth/Height to 0 in the non-LayoutContainer case, use
10367 ClearValue() those properties instead. Fixes some TextBlock cases.
10369 * textblock.cpp (GetSize): Check isnan() rather than 0.
10370 (Render): The dirty flag should never be set at this point, so
10371 don't bother with it. Set TextLayout's AvailableWidth to our
10373 (ArrangeOverride): Don't set dirty back to true after we've
10374 arranged, this is why dirty was true in ::Render()
10376 2009-03-27 Jeffrey Stedfast <fejj@novell.com>
10378 * textblock.cpp (Layout): Fixed the special-case logic. If no text
10379 has ever been set, then the extents should be 0,0. However, if
10380 they have ever been set but the text is currently empty, then use
10381 the font height as the ActualHeight value. Use a state variable to
10382 check if the text has ever been set rather than trying to check
10383 other things which are not reliable.
10385 2009-03-27 Jeffrey Stedfast <fejj@novell.com>
10387 * size.h (Size::GrowBy): If the width or height are infinite going
10388 in, then leave them infinite going out.
10390 * textblock.cpp (TextBlock::GetSize): New method to get the
10392 (TextBlock::Render): Use GetSize() instead of GetRenderSize().
10393 (class TextBlockDynamicPropertyValueProvider): Same.
10395 2009-03-27 Chris Toshok <toshok@ximian.com>
10397 * uielement.h (class UIElement): add LostMouseCaptureEvent.
10399 * type-generated.cpp: regen.
10401 2009-03-27 Stephane Delcroix <sdelcroix@novell.com>
10403 * multiscaleimage.h|.cpp: sort the subimages by ZIndex, Invalidate on
10404 subimage collection items changed.
10406 2009-03-27 Stephane Delcroix <sdelcroix@novell.com>
10408 * multiscalesubimage.h|.cpp:
10409 * multiscaleimage.cpp: remove the link to msi parents and don't try to
10410 Invalidate from subimage.
10412 2009-03-27 Stephane Delcroix <sdelcroix@novell.com>
10414 * collection.cpp: do not use generated cbinding in
10415 MultiScaleSubImageZIndexComparer.
10417 2009-03-27 Stephane Delcroix <sdelcroix@novell.com>
10419 * multiscalesubimage.h: set a default ZIndex value
10421 2009-03-27 Jeffrey Stedfast <fejj@novell.com>
10423 * textblock.cpp (TextBlock::UpdateLayoutAttributes): New method to
10424 update the TextLayout's text and attributes.
10425 (TextBlock::OnPropertyChanged): If the Text or Inlines properties
10426 change, immediately call UpdateLayoutAttributes().
10427 (TextBlock::Layout): No longer sets up the TextLayout's attributes
10428 as this is already done. Also no longer takes a cairo_t argument
10429 since it's never used, instead it now takes a Size constraint
10431 (TextBlock::CalcActualWidthHeight): Removed, no longer needed.
10432 (TextBlock::MeasureOverride): Rewritten / simplified.
10433 (TextBlock::ArrangeOverride): Same.
10434 (class TextBlockDynamicPropertyValueProvider): Updated.
10435 (TextBlock::OnCollectionItemChanged): Call UpdateFontDescription
10436 on the Inline that changed.
10437 (TextBlock::UpdateFontDescriptions): New method to update the font
10438 descriptions on all inlines.
10439 (TextBlock::OnPropertyChanged): Update the font descriptions on
10440 all inlines whenever a font property changes.
10441 (TextBlock::SetFontSource): Call UpdateFontDescriptions().
10442 (TextBlock::DownloaderComplete): Same.
10444 * textbox.cpp (TextBoxView::Render): Set the layout's
10445 AvailableWidth to the render size width.
10446 (TextBoxView::Layout): Don't worry about constraint.width being
10447 INFINITY anymore, TextLayout() now handles INFINITY.
10449 * layout.cpp: Instead of using -1.0 to mean 'unset' for extents
10450 and max width/height constraints, use NAN and
10451 INFINITY (respectively). This will prevent TextBox/Block from
10452 having to use hacks if their width/height constraints are
10454 (TextLayout::HorizontalAlignment): Since MaxWidth might be
10455 INFINITY, we need to base this on a new property called
10456 AvailableWidth, which is the width available for rendering (where
10457 MaxWidth is only used for wrapping).
10459 2009-03-27 Jeffrey Stedfast <fejj@novell.com>
10461 * deepzoomimagetilesource.cpp (DeepZoomImageTileSource::GetTileLayer):
10462 After finding the baseUri's filename, advance beyond the / before
10463 passing it to uri->Combine().
10465 * uri.cpp (Uri::Combine): If the uri has no path and the
10466 relative_path does not begin with a /, don't prepend one.
10468 2009-03-27 Jeffrey Stedfast <fejj@novell.com>
10470 General cleanup of the TextBoxBase abstraction.
10472 * textbox.cpp (TextBoxView::UpdateText): Get rid of special-casing
10474 (PasswordBox::SyncDisplayText): Generate a masked password string
10475 using the specified PasswordChar.
10476 (PasswordBox::SyncText): Call SyncDisplayText ().
10477 (PasswordBox::OnPropertyChanged): When the PasswordProperty
10478 changes, call SyncDisplayText().
10479 (PasswordBox::GetDisplayText): Override TextBoxBase's to return
10480 our masked password string.
10481 (PasswordBox::ctor): Initialize display text
10482 (PasswordBox::dtor): Delete display text.
10483 (TextBox::GetDisplayText): Simply return GetText ()
10485 2009-03-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
10487 * playlist.cpp: MergeWith: need to clone uris, otherwise it'll
10490 2009-03-27 Jackson Harper <jackson@ximian.com>
10492 * xaml.cpp: Despite the docs saying differently
10493 (http://msdn.microsoft.com/en-us/library/cc917841(VS.95).aspx)
10494 sys:Boolean is also legal. (I wonder what else is).
10496 2009-03-27 Jackson Harper <jackson@ximian.com>
10498 * xaml.cpp: Fix typo in LookupNamedItem so exists returns the
10500 - When we are populating the context resource dictionaries we need
10501 to include elements that are resource dictionaries not just
10502 elements have have dictionaries. This fixes elements looking up
10503 items in their top level RD (like in generic xaml).
10505 2009-03-27 Stephane Delcroix <sdelcroix@novell.com>
10507 * xaml.cpp: Source attribute of MultiScaleImage, even while starting with a
10508 '/', are relative uris.
10510 2009-03-27 Stephane Delcroix <sdelcroix@novell.com>
10512 * multiscaleimage.cpp: if a tile is already being downloaded, don't
10513 start a 2nd downloader for the same uri.
10515 2009-03-27 Stephane Delcroix <sdelcroix@novell.com>
10517 * deepzoomimagetilesource.cpp: Uris composed of a single file name
10518 are fine too. don't discriminate !
10520 2009-03-27 Stephane Delcroix <sdelcroix@novell.com>
10522 * uri.cpp: fix Combine when the original path is a single file,
10523 without a leading '/'
10525 2009-03-27 Stephane Delcroix <sdelcroix@novell.com>
10527 * multiscalesubimage.h|.cpp: fix the mess I was doing on uris in
10528 the overloaded ctor now that we have a proper Uri struct
10530 2009-03-27 Stephane Delcroix <sdelcroix@novell.com>
10532 * uri.h, uri.cpp: add Combine (const Uri*).
10534 2009-03-27 Stephane Delcroix <sdelcroix@novell.com>
10536 * multiscaleimage.h|.cpp: Emit MotionFinishedEvent
10538 2009-03-26 Chris Toshok <toshok@ximian.com>
10540 * deployment.h|.cpp: be a little more fragile (and a lot less
10541 evil) about the way we're exposing Mono types in our headers.
10542 just put a typedef for MonoDomain in deployment.h instead of
10543 including appdomain.h. Include appdomain.h from deployment.cpp.
10545 2009-03-26 Chris Toshok <toshok@ximian.com>
10547 * uielement.h|.cpp (class UIElement): add the ability to do
10548 instant and delayed emission of Loaded events.
10549 (UIElement::PostSubtreeLoad): perhaps poorly named, but the
10550 @load_list is a list of UIElement which will be walked in order in
10551 a tick call, emitting OnLoaded on all of them.
10552 (UIElement::EmitSyncLoaded): walk the same list as would be passed
10553 to PostSubtreeLoad, emitting it now.
10554 (UIElement::WalkTreeForLoaded): this does a post-order tree walk
10555 building up the list which is passed to PostSubtreeLoad or
10556 EmitSubtreeLoad. The out bool parameter tells us whether we
10557 should delay the emission or not. Currently the only thing that
10558 delays emission is a control with a style applied (even a default
10559 style.) We also set a PENDING_LOADED flag on all elements during
10561 (UIElement::OnLoaded): no longer walk the tree here. only emit
10562 Loaded on this one element. Clear the PENDING_LOADED flag while
10564 (UIElement::ElementAdded): complicate matters slightly here so
10565 that it follows the following two rules:
10567 1) if @this is loaded, walk the tree and either emit or post the
10568 load based on what the out param tells us to do.
10570 2) if @this is pending_loaded, walk the tree and always post.
10572 * frameworkelement.h (class FrameworkElement): unfortunately we
10573 need access to "default_style_applied" from UIElement.
10575 * control.h|.cpp: remove OnLoaded implementation from here.
10577 * runtime.cpp (Surface::Attach): move the Loaded handling *after*
10578 the zombie check. not sure why we were ever doing it before. but
10579 most importantly, this always Posts the loaded state, it doesn't
10580 emit it synchronously. This allows us to do the changes in
10581 Application.cs/Deployment.cs that are needed to get ncaa working.
10583 2009-03-26 Chris Toshok <toshok@ximian.com>
10585 * trigger.cpp (EventTrigger::SetTarget): fix regression, and ifdef
10586 out the code that allows other events to be used. Maybe in SL3
10589 2009-03-26 Jeffrey Stedfast <fejj@novell.com>
10591 * textbox.cpp: Reengineered TextBox and PasswordBox to inherit
10592 from a new TextBoxBase class which handles almost all of the logic
10595 2009-03-26 Stephane Delcroix <sdelcroix@novell.com>
10597 * multiscaleimage.cpp: replace the ldexp (1.0, n) by 1 << n
10599 2009-03-26 Jeffrey Stedfast <fejj@novell.com>
10601 * textbox.cpp: Reengineered TextBox and PasswordBox to inherit
10602 from a new TextBoxBase class which handles almost all of the logic
10605 2009-03-26 Jeffrey Stedfast <fejj@novell.com>
10607 * deepzoomimagetilesource.cpp (DeepZoomImageTileSource::GetTileLayer):
10608 Use the new Uri::Combine() method.
10610 * uri.cpp (Uri::Combine): New method to combine a relative path to
10613 2009-03-26 Chris Toshok <toshok@ximian.com>
10615 * animation.cpp, clock.cpp: move some class-static fields around
10616 so they make more sense.
10618 2009-03-26 Chris Toshok <toshok@ximian.com>
10620 * clock.h: move enum FillBehavior...
10622 * enums.h: ... to here.
10624 2009-03-26 Chris Toshok <toshok@ximian.com>
10626 * animation2.h: nuke, moving everything into animation.h.
10628 * clock.h|.cpp, timesource.h|.cpp, timeline.h|.cpp: split out all
10629 the timesource/timeline stuff into separate files to reduce
10630 clock.cpp's size/complexity a bit.
10632 * mediaplayer.cpp, mediaelement.cpp, media.cpp,
10633 mms-downloader.cpp: track new locations of things (that were moved
10634 out of clock.h|.cpp)
10636 * cbinding.h, cbinding.cpp, type-generate.cpp,
10637 dependencyproperty.g.cpp: regen.
10639 * Makefile.am: add/remove files.
10641 2009-03-26 Stephane Delcroix <sdelcroix@novell.com>
10643 * multiscaleimage.h|.cpp: fix optimal_layer caclulation for tiles
10644 with an aspect_ratio < 1.0 (portrait images).
10646 2009-03-26 Stephane Delcroix <sdelcroix@novell.com>
10648 * multiscaleimage.h|.cpp: replace the single downloader code by
10649 a list of downloader, speed up downloading a lot. (Set --arbitrary--
10650 to 6 dlders for now)
10652 2009-03-26 Stephane Delcroix <sdelcroix@novell.com>
10654 * multiscaleimage.h|.cpp: Download directly from Render*
10656 2009-03-26 Stephane Delcroix <sdelcroix@novell.com>
10658 * multiscaleimage.h|.cpp: DownloadUri downloads a Uri (sic). Use an Uri
10659 as cache key, use the new get_image_uri_func everywhere.
10661 2009-03-26 Stephane Delcroix <sdelcroix@novell.com>
10664 * deepzoomimagetilesource.h|.cpp: change the signature of
10665 get_image_uri_func. It returns a bool indicating success, the Uri is
10666 now a method arg, and no longer returned as a string pointer. Fixes
10667 some random crashes with managed tilesoources.
10669 2009-03-25 Chris Toshok <toshok@ximian.com>
10671 * uri.h (struct Uri): add accessor methods for all of the fields.
10672 The fields are still public for now, since a few places (e.g.,
10673 plugin-debug, playlist), make direct modifications.
10675 * multiscalesubimage.cpp, playlist.cpp, downloader.cpp,
10676 glyphs.cpp, mediaelement.cpp, application.cpp, media.cpp: use
10677 accessors when getting values.
10679 2009-03-25 Stephane Delcroix <sdelcroix@novell.com>
10681 * uri.h, uri.cpp: GetHashCode (), so Uris can be used as keys for
10684 2009-03-25 Jeffrey Stedfast <fejj@novell.com>
10686 * mediaelement.cpp (MediaElement::GetStateName): Don't pass an sl2
10687 argument to enums_int_to_str() anymore.
10689 * trigger.cpp (EventTrigger::SetTarget): Surface::IsSilverlight2()
10690 no longer exists, don't bother checking it. If the target is other
10691 than the Loaded event, we need to treat the whole thing as
10692 Silverlight2 anyway.
10694 * runtime.cpp (Surface::Surface): No longer takes a silverlight2
10695 argument or keeps such a flag.
10696 (Surface::EmitEventOnList): Don't need to care about the
10698 (Surface::HandleUIKeyPress): Same.
10699 (Surface::HandleUIKeyRelease): Here too.
10701 * enums.cpp (enums_str_to_int): No longer takes an sl2 argument.
10702 (enums_int_to_str): Same.
10704 * xaml.cpp (value_from_str_with_typename): No longer takes an sl2
10706 (value_from_str): Same.
10707 (convert_value_type): Same.
10708 (xaml_set_property_from_str): Same.
10710 2009-03-25 Geoff Norton <gnorton@novell.com>
10717 * frameworkelement.cpp:
10718 * frameworkelement.h:
10719 * type-generated.cpp:
10722 * xaml.cpp: Bindings live 100% in managed land now
10724 2009-03-25 Alan McGovern <amcgovern@novell.com>
10726 * animation.cpp: Revert the changes in r130133 as they
10727 resulted in double frees of the Value *.
10729 2009-03-25 Jeffrey Stedfast <fejj@novell.com>
10731 * value.cpp (Value::FreeValue): Don't dereference uri if it is
10734 2009-03-25 Stephane Delcroix <sdelcroix@novell.com>
10736 * multiscaleimage.cpp: emit ViewportChanged
10738 2009-03-25 Stephane Delcroix <sdelcroix@novell.com>
10740 * multiscaleimage.cpp: renders layer 0 too, drop some old debug code
10742 2009-03-25 Jackson Harper <jackson@ximian.com>
10744 * xaml.cpp: Can put this back now that bindings are convertering
10745 strings properly. Don't try to create a value object if we are
10746 just going into managed anyways.
10748 2009-03-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
10751 * runtime.cpp: Move IsVersionSupported implementation here,
10752 add GetBackgroundColor and sprinkle generator annotations.
10755 * cbinding.cpp: Regenerated.
10757 2009-03-25 Alan McGovern <amcgovern@novell.com>
10759 * uri.cpp: Scheme was being used uninitialised if the if
10760 (!*start) check succeeded.
10762 2009-03-24 Chris Toshok <toshok@ximian.com>
10764 * playlist.cpp (PlaylistParser::OnASXStartElement): use
10766 (PlaylistParser::OnSMILStartElement): use uri->IsScheme()
10768 * uri.h, uri.cpp (struct Uri): add "bool IsScheme(const char
10769 *scheme)" so we can stop twiddling internals.
10771 2009-03-24 Chris Toshok <toshok@ximian.com>
10773 * downloader.cpp: s/protocol/scheme for Uris
10775 * playlist.cpp: s/protocol/scheme for Uris
10777 * uri.h, uri.cpp: s/protocol/scheme for Uris.
10779 2009-03-24 Chris Toshok <toshok@ximian.com>
10781 * uri.cpp: do as much as we can to get isAbsolute set correctly.
10783 2009-03-25 Andreia Gaita <avidigal@novell.com>
10785 * clock.h: remove unused timeline field
10787 2009-03-25 Andreia Gaita <avidigal@novell.com>
10789 * clock.cpp: Refresh the clock's duration, it might have changed
10790 after it's creation
10792 2009-03-24 Jeffrey Stedfast <fejj@novell.com>
10794 * value.cpp (Value::Value): If the input value has a NULL uri,
10795 don't call Uri::Copy(), simply set the new uri to NULL too.
10797 * uri.cpp (Uri::Copy): If the 'from' argument is NULL, nullify the
10798 members in the 'to' argument. This should never happen anymore,
10799 but if it does, don't allow 'to' to have invalid pointers.
10801 2009-03-24 Jackson Harper <jackson@ximian.com>
10803 * xaml.cpp: Need to make this a little smarter, revert for now
10804 because it breaks hardrock.
10806 2009-03-24 Jeffrey Stedfast <fejj@novell.com>
10808 * layout.cpp (TextLayout::Layout*Wrap*): Fixed to not give 0.0
10809 actual_height extents if the text is "".
10811 * textbox.cpp (TextBoxView::UpdateText): Make sure that we never
10812 set NULL text on the layout so that we won't crash inside
10813 TextLayout::GetCursor() inside g_utf8_offset_to_pointer().
10815 2009-03-24 Jackson Harper <jackson@ximian.com>
10817 * xaml.cpp: Don't attempt to convert values if we are going to
10818 managed anyways. This prevents things that can be created easily
10819 from strings being created from expressions.
10821 2009-03-24 Jackson Harper <jackson@ximian.com>
10824 * animation.cpp: Use an OBJECT for the Value property.
10825 * dependencyproperty.g.cpp: Regen
10827 2009-03-24 Stephane Delcroix <sdelcroix@novell.com>
10829 * uri.h|uri.cpp: new Equals () methods, so we can use its generated
10830 cbinding as GCompareFunc.
10832 2009-03-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
10834 * pipeline.cpp: Fix breakage.
10836 2009-03-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
10839 * pipeline.cpp: Add a PassThroughDecoder for when the demuxer
10840 gives ready-to-present data. Make it handle pcm, rgb, rgba
10845 * type-generated.cpp: Regenerated.
10847 2009-03-23 Stephane Delcroix <sdelcroix@novell.com>
10849 * deepzoomimagetilesource.h|cpp: pass a *Uri to the ctor, related
10850 changes to keep working
10852 2009-03-23 Jeffrey Stedfast <fejj@novell.com>
10854 * uri.cpp (Uri::operator==): If all the != compares pass, return
10855 true. Don't let control reach the end of a non-void function!
10857 * textbox.cpp (TextBoxView::UpdateCursor): Emit a new cursor
10858 position changed event.
10860 2009-03-23 Chris Toshok <toshok@ximian.com>
10862 * uri.cpp (Uri::Uri): I don't like this fix, mostly because it was
10863 due to vertigo doing some weird stuff that I don't fully
10864 understand :) but in the interest of not requiring every usage to
10865 include a null check, init originalString to g_strdup("") here.
10867 2009-03-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
10869 * pipeline.cpp: FillBuffers: fix warning. NullDecoder: Chain
10872 2009-03-23 Chris Toshok <toshok@ximian.com>
10874 * uri.cpp (Uri::Copy): return immediately if @from == null.
10876 2009-03-21 Chris Toshok <toshok@ximian.com>
10878 * bitmapimage.cpp (BitmapImage::OnPropertyChanged): pass the Uri
10879 to Application:GetResource.
10881 * application.[h,cpp] (Application::GetResource): this takes a Uri
10882 instead of a string now.
10884 2009-03-21 Chris Toshok <toshok@ximian.com>
10886 * uri.[h,cpp]: a few changes:
10887 1. Add "bool isAbsolute" and "char* originalString" fields.
10888 2. Remove Clone and add a static Copy method which Value can use
10889 to copy all the internal fields.
10890 3. Add Free method.
10891 4. make it a struct so we'll only box when explicitly asked to in
10893 5. add an operator== so we can do non-reference comparisons in
10896 * dependencyobject.h,
10897 dependencyobject.cpp (DependencyObject::SetMarshalledValueWithError):
10900 * bitmapimage.[h,cpp]: UriSourceProperty is a Uri, not a string.
10902 * glyphs.[h,cpp]: FontUriProperty is a Uri, not a string.
10904 * deepzoomimagetilesource.h: UriSourceProperty is a Uri, not a
10907 * media.cpp: source->GetUriSource() returns a Uri*
10909 * mediaelement.[h,cpp]: SourceProperty is a Uri, not a string.
10911 * multiscalesubimage.[h,cpp] (MultiScaleSubImage::MultiScaleSubImage):
10914 * playlist.cpp (Playlist::MergeWith): don't Clone() the uris, as
10915 the Value ctor does that for us.
10917 * xaml.cpp (value_from_str): add Type::URI case, and rework the
10918 Type::BITMAPIMAGE case to use a Uri object.
10920 * validators.[h,cpp]: rename NonNullStringValidator to
10921 NonNullValidator. All uses before didn't depend on the
10922 "string"-ness of the value, and we can make use of it for the Uri
10925 * value.h.in, value.cpp: add Uri support, and remove
10928 * dependencyproperty.g.cpp, cbinding.cpp|.h, type-generated.cpp,
10931 * textblock.h, frameworkelement.h: track name change of NonNullStringValidator
10933 2009-03-20 Jeffrey Stedfast <fejj@novell.com>
10935 * textbox.cpp (TextBoxView::UpdateText): Split out from
10936 TextBoxView::Layout(). Sets the text on the layout engine.
10937 (TextBoxView::Layout): Moved most of the logic into UpdateText()
10938 and the rest into Render(). We now just set the MaxWidth and lay
10940 (TextBoxView::Render): If dirty, after calling Layout(), call
10941 UpdateCursor(false) and clear the dirty flag.
10942 (TextBoxView::OnModelChanged): If the text changes, update it
10943 immediately on our layout context by calling UpdateText().
10944 (TextBoxView::SetTextBox): Call UpdateText() here as well and make
10945 it more robust against a NULL textbox argument.
10947 2009-03-20 Jeffrey Stedfast <fejj@novell.com>
10949 * textbox.cpp (TextBoxView::Layout): No longer takes a cairo
10950 context argument since it never actually uses it anyway.
10951 (TextBoxView::MeasureOverride): Don't create a temporary cairo
10952 context since it never gets used.
10953 (TextBoxView::ArrangeOverride): Same.
10955 2009-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10959 * pipeline-asf.cpp: Re-implement fallback to http when mms
10962 2009-03-20 Jeffrey Stedfast <fejj@novell.com>
10964 * layout.cpp (TextLayout::SetText): Handle text being NULL a bit
10967 2009-03-20 Jackson Harper <jackson@ximian.com>
10969 * xaml.cpp: Make sure we go to managed when using property element
10970 syntax for setting properties of managed kinds.
10972 2009-03-20 Jeffrey Stedfast <fejj@novell.com>
10974 * layout.cpp (TextLayout::SetMaxWidth): If the new MaxWidth is
10975 larger than the current ActualWidth (and no wrapping has been
10976 done), then no need to re-layout. This should help improve
10977 performance of many cases of TextBox/Block MeasureOverride() and
10979 (TextLayout::LayoutWrapWithOverflow): If we have to wrap a line,
10980 set is_wrapped to true.
10981 (TextLayout::LayoutWrap): Same.
10982 (TextLayout::Layout): Reset is_wrapped to false before laying out
10985 2009-03-19 Larry Ewing <lewing@novell.com>
10987 * multiscaleimage.cpp (RenderSingle): move the clipping to the
10988 outer loop here too.
10990 2009-03-19 Larry Ewing <lewing@novell.com>
10992 * multiscaleimage.cpp (RenderCollection): rework the collection
10993 rendering slightly by moving the subimages out of the loop.
10995 2009-03-18 Chris Toshok <toshok@ximian.com>
10997 * dependencyobject.cpp (unregister_depobj_names): another side of
10998 the TagProperty coin. don't unregister names from it, since we
10999 aren't registering names from it.
11000 (DependencyObject::SetParent): remove the USERCONTROL extra
11001 registration from here. it's not necessary now that jackson has
11002 fixed where we register the names.
11004 * dependencyproperty.cpp (DependencyProperty::RegisterFull): only
11005 freeze the default value if the property is not custom.
11007 2009-03-18 Jeffrey Stedfast <fejj@novell.com>
11009 Fixes a crash in the Microsoft.SilverlightControls
11010 ControlsExtended unit tests (specifically the DatePickerTest).
11012 * control.h (class Control): Set a DefaultValue for the Foreground
11015 * textblock.h (class TextBlock): Same.
11017 2009-03-18 Jackson Harper <jackson@ximian.com>
11019 * xaml.cpp: When we use x:Name to set an elements name, make sure
11020 that it gets set in the namescope of it's containing element.
11021 * dependencyobject.cpp|h: New method that allows setting objects
11022 name in a different namescope, this will also result in the name
11023 being set in the objects namescope.
11024 - Allow duplicate objects if they are the same object
11025 * namescope.cpp: Allow duplicates if they are the same object.
11027 2009-03-18 Jeffrey Stedfast <fejj@novell.com>
11029 * textbox.cpp (TextBox::Initialize): Don't bother connecting to
11030 MouseEnter/Leave, we don't care.
11031 (TextBoxView::TextBoxView): Connect to MouseLeftButtonDown/Up.
11032 (TextBoxView::OnMouseLeftButtonDown): Proxy the event to our
11033 parent TextBox control.
11034 (TextBoxView::OnMouseLeftButtonUp): Same.
11036 * runtime.cpp (Surface::FocusElement): Don't do all the checks
11037 here, they are now done in Control::Focus().
11038 (Surface::HandleMouseEvent): Don't loop to FocusElement() here, we
11039 now expect this to be done in the MouseLeftButtonDown event
11042 * control.cpp (Control::Focus): New method to focus a control.
11044 2009-03-18 Jb Evain <jbevain@novell.com>
11046 * deployment.cpp: add a MOON_PROFILER environment variable
11047 to control profiling of the embedded mono.
11049 2009-03-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
11052 * pipeline.cpp: Remove unused field.
11054 2009-03-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
11056 * pipeline-asf.cpp: Fix visitmix.
11058 2009-03-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
11062 * deployment.cpp: Add signal handlers for crash detection in
11063 libmoon instead of libshocker, this way there's not a race
11064 condition between loading mono and installing a signal
11065 handler in libshocker (the signal handler has to get
11066 installed before loading mono, otherwise we'll crash for
11067 real due to managed exceptions getting caught by the signal
11070 2009-03-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
11072 * pipeline.cpp: More asserts.
11074 2009-03-17 Jeffrey Stedfast <fejj@novell.com>
11076 * xap.cpp (Xap::Unpack): Canonicalize the extracted filename to
11079 2009-03-17 Jeffrey Stedfast <fejj@novell.com>
11081 * xap.cpp (Xap::Unpack): Don't mix & match malloc/g_free, don't
11082 shadow the fname method argument, and don't leak if
11083 finfo.external_fa has the 4th bit set.
11085 2009-03-17 Chris Toshok <toshok@ximian.com>
11087 * dependencyobject.cpp (DependencyObject::ProviderValueChanged):
11088 don't do the SetParent stuff (even when the value is a
11089 DependencyObject) if the property is UIElement::TagProperty. This
11090 fixes the cyclic tree warning in RichTextBox. Right now it's
11091 hardcoded to check for that property, but we need to move it to
11092 the DP metadata, and do an audit of other "typeof(object)" DP's to
11093 make sure we aren't setting parent where we shouldn't be.
11095 2009-03-17 Stephane Delcroix <sdelcroix@novell.com>
11097 * collection.h|cpp: allow MSISICollections to be sorted by ZIndex
11099 2009-03-16 Jackson Harper <jackson@ximian.com>
11101 * template.cpp: It doesn't really change anything because
11102 templates are never parented, but technically they should be in non
11103 temporary namescopes.
11105 2009-03-16 Jeffrey Stedfast <fejj@novell.com>
11107 * textbox.cpp (TextBox::CursorDown, TextBox::CursorUp): Fixed to
11108 go up/down 'n' lines instead of always 1 if n wouldn't overflow.
11110 2009-03-16 Stephane Delcroix <sdelcroix@novell.com>
11112 * multiscaleimage.cpp:
11113 * multiscalesubimage.h|cpp: keep a ref to the parent MSI, Invalidate
11114 it on VP origin or width changed.
11116 2009-03-13 Stephane Delcroix <sdelcroix@novell.com>
11118 * multiscaleimage.cpp: fix the clipping issue for collections
11120 2009-03-13 Chris Toshok <toshok@ximian.com>
11122 * type.h, type-generated.cpp: regen.
11124 2009-03-13 Chris Toshok <toshok@ximian.com>
11126 * xaml.cpp (value_from_str): in the int32 and int64 case, we need
11127 to parse until we get an invalid character, and return the value
11128 parsed up to that point. it's only an error if there's no valid
11131 2009-03-13 Chris Toshok <toshok@ximian.com>
11133 * textblock.h (class Inline): inlines don't permit multiple
11134 parents (Fixes RunTest.RunMultipleParents).
11136 2009-03-13 Geoff Norton <gnorton@novell.com>
11138 * xap.cpp: Zip files can contain directory entires, we shouldn't
11139 try to open them as files.
11141 2009-03-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
11144 * control.cpp: Added a null check to prevent crashes.
11146 2009-03-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
11149 * mediaelement.cpp: Attach to Deployment::ShuttingDownEvent
11150 and clean up upon shutdown.
11153 * pipeline.cpp: Remove a broken attempt to ensure that we
11154 don't leave Media threads running after having shut down.
11156 2009-03-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
11158 * playlist.cpp: Dispose: fix a typo - dispose the media not
11161 2009-03-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
11163 * playlist.cpp: DownloadProgressChangedHandler: Don't do
11164 anything if we've been disposed. Fixes a warning.
11166 2009-03-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
11168 * mediaelement.cpp: Dispose: We need to dispose the media
11171 2009-03-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
11173 * downloader.h: DownloaderResponse: Add virtual ref/unref
11176 2009-03-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
11178 * mediaplayer.cpp: SetTimeout: Add null-checks to prevent
11179 crashes when we can't find a time manager. Also if we can't
11180 remove a timeout, we have to leak ourselves, otherwise the
11181 timeout might get called after we're destroyed.
11183 2009-03-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
11187 * type-generated.cpp: Added Deployment::ShuttingDownEvent.
11188 This will be used by MediaElement to ensure that all media
11189 threads are cleaned up even if the MediaElement itself is
11192 2009-03-13 Stephane Delcroix <sdelcroix@novell.com>
11194 * multiscaleimage.cpp: no longer use precompiled table for morton
11195 layout, but use short and fast function in place.
11197 2009-03-13 Stephane Delcroix <sdelcroix@novell.com>
11199 * multiscaleimage.cpp: check for null tiles uri returned by
11202 2009-03-13 Stephane Delcroix <sdelcroix@novell.com>
11204 * multiscaleimage.cpp: compute the tie opacity on rendering, avoid
11205 having to loop over all the tiles on every tick.
11207 2009-03-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
11209 * runtime.cpp: Surface::Dispose: call SetSurface (NULL) on the
11210 toplevel element before disposing it, since the SetSurface
11211 will be propagated to all descendants, while Dispose will
11212 detach descendants (preventing subsequent SetSurface calls
11215 2009-03-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
11217 * mediaplayer.cpp: Open: when we add an event handler to the
11218 video stream's FirstFrameEnqueued event, the first frame
11219 might already be in the queue, so just call LoadVideoFrame
11220 once always. Fixes test-canvas-no-size.html.
11222 2009-03-12 Geoff Norton <gnorton@novell.com>
11224 * src/runtime.cpp: MouseLeaveEvent is a MouseEventArgs
11226 2009-03-12 Geoff Norton <gnorton@novell.com>
11228 * deepzoomimagetilesource.cpp: Ensure we dont override default values
11229 if nothing has been provided in the XML
11231 2009-03-12 Geoff Norton <gnorton@novell.com>
11234 * animation.h: Implement SkipToFill
11236 2009-03-12 Larry Ewing <lewing@novell.com>
11238 * canvas.cpp: don't chain up the FE in the overides that is very
11241 2009-03-12 Chris Toshok <toshok@ximian.com>
11243 * runtime.cpp (Surface::CreateArgsForEvent): fix crash in the rich
11244 text demo when you click on the buttons. we need to be creating
11245 RoutedEventArgs, not EventArgs.
11247 2009-03-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
11249 * codec-version.h.in: Bump.
11251 2009-03-12 Alan McGovern <amcgovern@novell.com>
11253 * dependencyproperty.cpp: 1) Refactor the code so that
11254 open/closing parens are parsed in a separate step to
11255 typename/property name. Then merge the codepaths for the
11256 default and '(' case.
11257 2) Attached properties can only be specified inside parens. So
11258 "Canvas.Left" is invalid but "(Canvas.Left)" is valid.
11259 3) For non-attached properties both "Rectangle.RadiusX" and
11260 "(Rectangle.RadiusX)" are acceptable.
11262 2009-03-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
11264 * pipeline.cpp: Add a null check.
11266 2009-03-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
11268 * audio.cpp: Use media's thread-safe event handling.
11271 * playlist.cpp: PlaylistRoot: keep a reference to our media
11272 player (i.e. don't use MediaElement's media player, it may
11273 change). Use the thread-safe event support in media.
11276 * mediaplayer.cpp: Use media's thread-safe event handling.
11277 Don't tick while waiting for the media to get the first
11278 frame, just attach an event handler to
11279 FirstFrameEnqueuedEvent.
11282 * pipeline.cpp: IMediaObject: Add thread-safe event support.
11283 Media: inherit from IMediaObject to get the thread-safe
11286 * pipeline-asf.cpp: ASFDemuxer::SeekAsyncInternal: don't
11287 ignore ASFReader::Seek's result, handle it correctly.
11288 EnqueueGetFrame: requeue a get frame request if we don't
11289 have enough data yet.
11291 2009-03-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
11293 * pipeline.h: Move IMediaObject above Media so that Media can
11294 inherit from IMediaObject.
11296 2009-03-12 Andreia Gaita <avdigal@novell.com>
11298 * clock.[h|cpp]: Fix DispatcherTimer when the timer is stopped and
11299 started during the tick event; in some cases the time between these
11300 two calls was enough to have an extra tick on the time manager, and
11301 the DispatcherTimer would be advanced again even though it was
11302 stopped, and this would happen after the Completed handler was
11303 removed and before it was added again.
11304 Fixes the RestartTimer2 test and SilverlightChess.
11306 2009-03-11 Jeffrey Stedfast <fejj@novell.com>
11308 * textbox.cpp (TextBox::OnPropertyChanged): Don't create selection
11309 brushes here anymore.
11310 (class TextBoxDynamicPropertyValueProvider): Return default
11311 selection brushes if they've been initialized (happens in
11312 TextBoxView::Render).
11313 (TextBoxView::Render): Initialize the selection brushes if they
11314 haven't already been.
11316 2009-03-11 Alan McGovern <amcgovern@novell.com>
11318 * dependencyproperty.cpp: Fix issues in resolve_property_path
11319 with some complex paths. Add two new NUnit tests which
11320 verify the correct properties are animated.
11322 2009-03-11 Jeffrey Stedfast <fejj@novell.com>
11324 * text.cpp|h: Split into textblock.cpp|h and glyphs.cpp|h
11326 * downloader.cpp (downloader_deobfuscate_font): Moved here from
11327 text.cpp and made public.
11329 2009-03-11 Jeffrey Stedfast <fejj@novell.com>
11331 * layout.cpp (TextLayoutGlyphCluster::Render): If we have nothing
11334 2009-03-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
11336 * brush.cpp: ImageBrush::image_failed: we need to ref the
11337 eventargs when we do emit chaining.
11339 2009-03-11 Chris Toshok <toshok@ximian.com>
11341 * border.cpp (Border::OnPropertyChanged): Border is ever the red
11342 headed stepchild. It has its own validation wrt SetLogicalParent,
11343 that behaves like the InvalidOperationException case in
11344 FrameworkElement, but throws ArgumentException instead of IOE.
11346 2009-03-11 Chris Toshok <toshok@ximian.com>
11348 * canvas.h, canvas.cpp (Canvas::OnCollectionItemChanged): move the
11349 Top/Left property changed handling from OnSubPropertyChanged to
11350 here, and remove OnSubPropertyChanged. Basically property changes
11351 on items in collections are never communicated back using
11352 OnSubPropertyChanged. That is reserved for direct children of the
11353 object (fill/stroke brushes, etc.)
11355 * grid.h, grid.cpp: same.
11357 * dependencyobject.cpp (DependencyObject::NotifyListenersOfPropertyChange):
11358 remove this use of GetParent (yay!) since we don't implicitly
11359 notify our logical parent if an attached property was changed. we
11360 just notify all listeners.
11362 * clock.h, clock.cpp, animation.cpp: in an effort to disambiguate,
11363 rename GetParent/SetParent to GetParentClock/SetParentClock.
11365 2009-03-10 Chris Toshok <toshok@ximian.com>
11367 * dependencyobject.cpp (DependencyObject::ProviderValueChanged):
11368 hook up (and unhook) the collection events if the dob is a
11369 Type::COLLECTION. Remove the stupid parent check that was
11370 breaking everything. Pass in our MoonError parameter to
11371 OnPropertyChanged so we can communicate it back.
11372 (DependencyObject::ClearValue): unhook from the collection events.
11374 * dependencyobject.h (SetLogicalParent, GetLogicalParent): remove.
11375 these methods are now in FrameworkElement.
11376 (SetParent, GetParent): their replacements. Hopefully these are
11377 not long for this world, and I'm working on getting rid of them.
11378 they are used in very few places now (basically collection.cpp and
11380 (collection_changed, collection_item_changed): two new
11381 EventHandlers so we can make collection stop calling directly into
11383 (OnPropertyChanged): add a MoonError* arg here so we can transmit
11384 errors back from the various OnPropertyChanged overrides.
11387 validators.cpp (Validators::ContentControlContentValidator): add
11388 half of the "multiple parents for .Content" checks here. This
11389 runs before the value is actually set and checks to see if the
11390 logical parent is a Panel subclass. If it is it throws an
11391 ArgumentException instead of an InvalidOperationException (don't
11394 * collection.cpp, collection.h: remove the assumption that we can
11395 just call into our parent to notify of collection/collection item
11396 changes. instead just emit an event.
11398 * eventargs.h: define CollectionItemChangedEventArgs for the new
11399 Collection::ItemChangedEvent.
11401 * contentcontrol.h,
11402 contentcontrol.cpp (ContentControl::OnPropertyChanged): call
11403 SetLogicalParent on the old/new contents if they're
11404 FrameworkElements, and if either returns an error, return
11407 * usercontro.h, usercontrol.cpp (UserControl::OnPropertyChanged):
11411 * frameworkelement.cpp, frameworkelement.h: move
11412 Set/GetLogicalParent here, and make the InvalidOperationException
11413 on multiple parents unconditional.
11415 * panel.cpp (Panel::OnCollectionChanged): if the new/old child is
11416 a FrameworkElement, set its logical parent.
11418 * animations.*, bitmapimage.*, border.*, brush.*, canvas.*,
11419 control.*, deepzoomimagetilesource.*, geometry.*, grid.*, media.*,
11420 mediaelement.*, multiscaleimage.*, popup*, shape.*, stylus.*,
11421 textbox.*, text.*, transform.*, uielement.*: change all the
11422 OnPropertyChanged signatures to include MoonError*
11424 * cbinding.*, dependencyproperty.g.cpp, type-generated.cpp,
11425 type.h, value.h: regen.
11427 * resources.cpp: s/LogicaParent/Parent.
11429 * provider.h, provider.cpp (StylePropertyValueProvider::unlink_converted_value):
11430 not really part of this larger change, but needed for the
11431 toggleref stuff. we need to call SetParent on all the
11432 DO-subclassed converted values so they never reference a trashed
11434 (get_parent): add more cases here, none of which I'm sure are
11437 2009-03-10 Jeffrey Stedfast <fejj@novell.com>
11439 * textbox.cpp (PasswordBox::OnPropertyChanged): Fixed.
11440 (TextBox::TextBox): New protected ctor that PasswordBox's ctor can
11442 (PasswordBox::PasswordBox): Chain up to the TextBox ctor we want,
11443 so that we don't register event callbacks twice. Doh.
11445 2009-03-10 Jeffrey Stedfast <fejj@novell.com>
11447 * validators.cpp (Validators::PasswordValidator):
11448 Removed. PasswordBox::PasswordProperty is internal, so we map it
11449 to TextBox::TextProperty and manually implement the
11450 getter/setter (which si where we manually throw an
11451 ArgumentNullException if set to null).
11453 * textbox.cpp (PasswordBox::OnPropertyChanged): Manually syncing
11454 Password and Text properties sucks, let's not do it. Instead,
11455 we'll map PasswordProperty to TextProperty on the managed
11456 side. Also need to Invalidate() if PasswordChar changes.
11457 (TextBoxView::Layout): Mask the text with PasswordChars if we are
11458 rendering a PasswordBox's content.
11460 2009-03-10 Jeffrey Stedfast <fejj@novell.com>
11462 * textbox.cpp (PasswordBox::OnPropertyChanged): Keep the Text and
11463 Password properties in sync. Don't emit a PasswordChanged event,
11464 that's mapped to TextChanged on the managed side.
11465 (TextBox::OnApplyTemplate): Handle Border and Panel
11466 ContentElements as well.
11468 * textbox.h (class PasswordBox): Get rid of the
11469 PasswordChangedEvent and also some of the properties that it
11470 shares with TextBox.
11472 2009-03-10 Jeffrey Stedfast <fejj@novell.com>
11474 * contentcontrol.cpp (ContentControl::ContentControl): Use the
11475 nice new ManagedTypeInfo ctor.
11477 * type.h.in (struct ManagedTypeInfo): Added a nice ctor.
11479 * textbox.cpp (TextBox::Initialize): New protected method; all of
11480 the old ctor logic was moved here so that PasswordBox could reuse
11482 (TextBox::TextBox): Call Initialize() with out type info.
11483 (PasswordBox::PasswordBox): Call Initialize() with out type info.
11484 (PasswordBox::Cursor*): Override some of TextBox's cursor
11485 navigation because we don't "see" whitespace or lines.
11487 2009-03-10 Larry Ewing <lewing@novell.com>
11489 * textbox.cpp (OnApplyTemplate): don't crash it ContentElement
11490 isn't found in the template.
11492 2009-03-10 Jackson Harper <jackson@ximian.com>
11494 * xaml.cpp: Don't use GetLogicalParent here because the parenting
11495 hasn't been setup yet. Wse the XamlElementInstance tree for
11496 figuring out who our parent is.
11498 2009-03-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
11500 * brush.cpp: ImageBrush::image_failed: propagate event args.
11502 2009-03-10 Jeffrey Stedfast <fejj@novell.com>
11504 * layout.cpp (TextLayout::Layout*Wrap*): Changed the outer while
11505 loops into do-while loops so that the line->height and
11506 line->descent get set properly. Needed to fix
11507 TextLayout::GetCursor().
11509 2009-03-10 Jackson Harper <jackson@ximian.com>
11511 * xaml.cpp: Do some basic type conversion for resources, this
11512 allows you to do things like store a font family as
11513 <clr:String>Arial</clr:String>.
11515 2009-03-10 Jackson Harper <jackson@ximian.com>
11518 * value.h.in: Consistentify method name.
11520 2009-03-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
11522 * uielement.cpp: GetTimeManager: if we don't have a surface,
11523 try to get it from the deployment.
11525 2009-03-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
11528 * pipeline-nocodec-ui.cpp: Set current deployment in
11531 2009-03-09 Larry Ewing <lewing@novell.com>
11533 * border.cpp (Render): set the fill rule after drawing the clip
11534 geometry since it will set the fill rule for itself.
11536 2009-03-09 Chris Toshok <toshok@ximian.com>
11538 * enums.cpp (cursors_map): add the missing Size* members here.
11540 http://www.adefwebserver.com/DotNetNukeHELP/Misc/Silverlight/GanttChart/Default.aspx
11541 gallery site to the point where it's displaying a UI.
11543 2009-03-09 Jeffrey Stedfast <fejj@novell.com>
11545 * textbox.cpp (TextBox::KeyPressUnichar): Fixed a logic goof that
11548 2009-03-09 Jeffrey Stedfast <fejj@novell.com>
11550 * textbox.cpp (TextBox::TextBox): Initialize have_offset to false
11551 and cursor_offset to 0.0. Silverlight doesn't use character column
11552 when moving the cursor up/down, it uses the cursor's x-offset.
11553 (TextBox::CursorDown): Implement using TextLayoutLines.
11554 (TextBox::CursorUp): Same.
11555 (TextBoxView::GetLineFromY): New convenience method.
11556 (TextBoxView::GetLineFromIndex): Another new method.
11558 * layout.cpp (TextLayoutLine::GetCursorFromX): New convenience
11560 (TextLayout::GetCursorFromXY): Moved the remaining logic into
11561 TextLayoutLine::GetCursorFromX().
11562 (TextLayout::GetLineFromY): Provide the line index to our caller,
11564 (TextLayout::GetLineFromIndex): New convenience method.
11566 2009-03-09 Jeffrey Stedfast <fejj@novell.com>
11568 * textbox.cpp (TextBoxView::UpdateCursor): We shouldn't need the
11569 cursor == 0 hack anymore.
11571 2009-03-09 Andreia Gaita <avidigal@novell.com>
11573 * dependencyobject.cpp: revert r128895 (toggleref changes) for now,
11576 2009-03-09 Andreia Gaita <avidigal@novell.com>
11578 * dependencyobject.cpp: do the toggleref callbacks so the managed
11579 side can dispose of things properly
11581 2009-03-09 Jeffrey Stedfast <fejj@novell.com>
11583 * layout.cpp (unichar_combining_class): New function to protect
11584 against using Glib's g_unichar_combining_class() if the API isn't
11587 2009-03-09 Jackson Harper <jackson@ximian.com>
11589 * xaml.cpp: Store the top element in the xaml context so we can
11590 still lookup handlers when parsing templates.
11592 2009-03-09 Stephane Delcroix <sdelcroix@novell.com>
11594 * multiscaleimage.cpp: fix the loop ending conditions for images
11595 with extreme aspect ratios.
11597 2009-03-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
11599 * deployment.cpp: Add support for setting the root directory
11602 2009-03-06 Larry Ewing <lewing@novell.com>
11604 * multiscaleimage.cpp (Render): cache the surface type as a
11605 similar surface to the rendering target to speed up rendering a
11608 2009-03-06 Larry Ewing <lewing@novell.com>
11610 * layout.cpp (SetText): handle null text here.
11612 2009-03-06 Geoff Norton <gnorton@novell.com>
11614 * codec-version.h.in: When we change the layout of
11615 dependencyobject, we need to bump the ABI
11617 2009-03-06 Alan McGovern <amcgovern@novell.com>
11623 * animation.cpp: If the PropertyPath supplied to the
11624 TargetPropertyProperty is a DependencyProperty, we need a
11625 special method to retrieve it. Normally PropertyPaths which
11626 are instantiated with a DependencyProperty are returned as
11627 'null' from native. Also add method for getting the manual
11630 2009-03-06 Alan McGovern <amcgovern@novell.com>
11637 * animation.cpp: Revert - I didn't mean to commit that yet.
11640 2009-03-06 Alan McGovern <amcgovern@novell.com>
11642 * propertypath.h: Need to null check the path before passing
11643 to strcmp - It is possible for the path to be null now.
11645 2009-03-06 Andreia Gaita <avidigal@novell.com>
11647 * dependencyobject.[h|cpp]: Add toggleref event registration
11650 * cbinding.[h|cpp]: regen
11652 2009-03-05 Jeffrey Stedfast <fejj@novell.com>
11654 * layout.cpp (FindLastWord): We need to walk backwards, not
11657 2009-03-05 Alan McGovern <amcgovern@novell.com>
11659 * propertypath.h: If we set a propertypath with a
11660 DependencyProperty, set the 'path' string to null. This
11661 avoids extra marshalling when it's not needed.
11663 2009-03-04 Geoff Norton <gnorton@novell.com>
11665 * deployment.cpp: Finalizing the domain destroys all objects
11666 immediately. Its possible that we might end up invoking more
11667 finalizers in the unref drain thta begins after dispose, so
11668 we're going to force a full gc and finalizer run of the collected
11669 objects here and allow ~Deployment to finalize the entire domain.
11671 2009-03-04 Jeffrey Stedfast <fejj@novell.com>
11673 * pipeline.cpp (Media::DisposeObjectInternal): Return
11674 MEDIA_SUCCESS so that control doesn't reach the end of a non-void
11677 * layout.cpp (TextLayout::GetCursorFromXY): Don't use
11678 g_unichar_iszerowidth().
11679 (TextLayout::GetCursor): Same.
11681 2009-03-04 Larry Ewing <lewing@novell.com>
11683 * border.cpp, border.h: clean up the path_only drawing a
11684 little. set CanFindElement more appropriately.
11686 * panel.cpp: undo the path_only logic a bit.
11688 * frameworkelement.cpp: make FindElementInHostCoordinates a little
11691 * uielement.cpp, uielement.h: Make the CanFindElement default be
11692 false, and remove the broken in_stroke check.
11694 2009-03-04 Stephane Delcroix <sdelcroix@novell.com>
11696 * multiscaleimage.h|cpp: generate PInvoke for Setters so the
11697 animations are used from managed Set() too
11699 2009-03-04 Stephane Delcroix <sdelcroix@novell.com>
11701 * multiscaleimage.h|cpp: pan and zoom animation in
11702 Viewport[Origin|Width] properties Setters
11704 2009-03-04 Jeffrey Stedfast <fejj@novell.com>
11706 * layout.cpp: Disable debug printfs unless layout debugging is
11709 2009-03-04 Jeffrey Stedfast <fejj@novell.com>
11711 Fixes the last failing case in LineBreakBasic1.htm
11713 * layout.cpp (layout_word_wrap): When checking for last_word, use
11714 <= instead of < because inptr, at this point, is at the first byte
11715 *after* the character just gobbled up.
11717 2009-03-04 Jeffrey Stedfast <fejj@novell.com>
11719 Fixes ActualWidth/Height extents for LineBreakBasic1.htm
11721 * layout.cpp (TextLayout::LayoutWrapWithOverflow): ActualWidth
11722 extents include trailing LWSP if-and-only-if that trailing LWSP is
11724 (TextLayout::LayoutNoWrap): Same.
11725 (TextLayout::LayoutWrap): Same.
11727 2009-03-03 Jeffrey Stedfast <fejj@novell.com>
11729 * layout.cpp (GenerateGlyphCluster): Don't crash if glyph->path is
11732 * font.cpp (TextFont::GetGlyphInfo): If unichar is
11733 0xFEFF (zero-width no-break space), then return a global
11734 GlyphInfo. We do this because at least some fonts won't have this
11735 glyph and we don't want to render an empty box (the default
11738 2009-03-03 Jeffrey Stedfast <fejj@novell.com>
11740 * layout.cpp (layout_word_wrap): Silverlight ignores breaking
11741 rules for glyphs that the font doesn't contain.
11743 2009-03-03 Jeffrey Stedfast <fejj@novell.com>
11745 * layout.cpp (layout_word_wrap): Oops, need to keep op.inptr and
11746 op.prev up-to-date if we combine chars.
11748 2009-03-03 Jeffrey Stedfast <fejj@novell.com>
11750 Fixes a few more cases in LineBreakClasses.htm
11752 * layout.cpp (utf8_find_last_word): If a zero-width space follows
11753 a combining mark, treat the zws as part of a word and not lwsp.
11754 (layout_word_lwsp): Do NOT ignore zero-width characters, let the
11755 font metrics do the talking.
11756 (TextLayout::LayoutNoWrap): Same.
11757 (layout_word_overflow): Same combining-mark fix as above.
11758 (layout_word_wrap): Same. Also changed the way we keep track of
11759 break opportunities. After discoverign that we need to wrap, get
11760 the break-type for the follwoing character before working
11761 backwards. Try to return false if we manage to squeeze the entire
11762 word onto the line anyway.
11764 2009-03-03 Jeffrey Stedfast <fejj@novell.com>
11766 Fixes LineBreakBasic2.htm and some parts of LineBreakClasses.htm
11768 * layout.cpp (BreakSpace): Treat tab as a BREAK_SPACE.
11769 (utf8_find_last_word): Use BreakSpace() instead of
11770 g_unichar_isspace() since that's how the rest of our breaking
11772 (FindLastWord): Same.
11773 (layout_word_lwsp): Don't canonicalize all LWSP as a SPACE, just
11775 (LayoutNoWrap): Same.
11777 2009-03-03 Jeffrey Stedfast <fejj@novell.com>
11779 * layout.cpp (TextLayout::SetTextWrapping): Default unknown values
11780 to Wrap here so that we can avoid a re-layout if the old wrapping
11783 2009-03-02 Jeffrey Stedfast <fejj@novell.com>
11785 Fixes some wrapping issues in LineBreakBasic1.htm
11787 * layout.cpp (TextLayout::LayoutWrap): Use a new 'wrapped' state
11788 variable to keep track of whether or not the layout_word_wrap()
11789 function returned. We want to keep 'linebreak' as a separate
11790 state. If we were told to wrap, but we've reached the end of the
11791 run, postpone wrapping until the next run (which might start with
11794 2009-03-02 Jeffrey Stedfast <fejj@novell.com>
11796 Fixes for AdobeFonts.htm
11798 * layout.cpp (TextLayoutGlyphCluster::Render): Give the underline
11799 its own Fill() so that if any glyphs have a tail that descends
11800 below the baseline into the underline, the fill doesn't negate
11801 itself where the paths overlap.
11802 (GenerateGlyphCluster): Use the font->Ascender() to get the
11803 baseline offset from the top. Height() + Descender() isn't quite
11804 right. Should probably fix other places that use that strategy as
11805 well, but one step at a time.
11807 2009-03-02 Jeffrey Stedfast <fejj@novell.com>
11809 * textbox.cpp (TextBoxView::TextBoxView): Init selection_changed
11811 (TextBoxView::Render): If the selection has changed, update the
11812 selection on the layout engine.
11813 (append_runs): Removed; no longer needed.
11814 (TextBoxView::Layout): Updated to use the new layout APIs.
11815 (TextBoxView::OnModelChanged): When the selection changes, don't
11816 set dirty to true. Instead, set selection_changed to true.
11817 (TextBoxView::SetTextBox): Set the default text attributes on our
11818 layout with the textbox as the source.
11820 * text.cpp (TextBlock::Layout): Updated to use the new text layout
11823 * layout.cpp: All new layout/rendering engine.
11825 2009-03-04 Geoff Norton <gnorton@novell.com>
11827 * deployment.cpp: When we dispose the domain, we force a full GC
11828 run to happen, otherwise objects could retain a ref to the deployment
11829 causing ~Deployment to never be called.
11831 2009-03-04 Jackson Harper <jackson@ximian.com>
11833 * xaml.cpp|h: Add a new method for grabbing the element_name of a
11834 xaml element instance from managed.
11836 2009-03-04 Alan McGovern <amcgovern@novell.com>
11838 * src.mdp: Add missing files to the MD solution
11840 2009-03-03 Chris Toshok <toshok@ximian.com>
11842 * collection.cpp (DependencyObjectCollection::AddedToCollection):
11843 add a check for PermitsMultipleParents here.
11845 * collection.h (UIElementCollection::AddWithError): remove.
11847 * dependencyobject.h (DependencyObject::PermitsMultipleParents):
11848 return true by default.
11850 * style.h (class Setter): setters don't permit multiple parents.
11852 * uielement.h (class UIElement): neither do uielements.
11854 * dependencyobject.cpp (DependencyObject::ProviderValueChanged):
11855 change the UIElement test to a PermitsMultipleParents test.
11857 2009-03-03 Chris Toshok <toshok@ximian.com>
11859 * cbinding.h, cbinding.cpp: regen.
11861 * collection.h, collection.cpp (DependencyObjectCollection::AddedToCollection): if
11862 the parent of the DO is a collection, throw an exception.
11863 (UIElementCollection::CanAdd): remove.
11864 (DependencyObjectCollection::CanAdd): remove.
11865 (HitTestCollection::CanAdd): remove.
11867 * dependencyobject.cpp (DependencyObject::ProviderValueChanged):
11868 reinstate the multiple parents warning, but make it a MoonError,
11869 and make it only apply to visual elements (UIElement subclasses,
11872 * dependencyobject.h (GetLogicalParentIncludingCollections): add a
11873 new getter for just the logical_parent field, which is horribly
11875 (GetLogicalParent): add a pinvoke for this.
11877 2009-03-03 Jackson Harper <jackson@ximian.com>
11879 * xaml.cpp|h: SetProperty now takes a Value instead of a
11880 DependencyObject, this allows us to set properties on things like
11883 2009-03-03 Geoff Norton <gnorton@novell.com>
11886 * pipeline-ui.cpp: Stop storing the mscodec path in the configuration
11889 2009-03-03 Alan McGovern <amcgovern@novell.com>
11892 * propertypath.h: Complete the implementation of PropertyPath.
11893 If it is constructed with a DependencyProperty in managed,
11894 propagate this to native.
11896 * dependencyproperty.cpp: If the property path instance was
11897 constructed with a DependencyProperty *, immediately return
11900 2009-03-03 Alan McGovern <amcgovern@novell.com>
11903 * animation.cpp: Implement the required exceptions for managed
11904 code when starting storyboards which are missing properties
11905 or can't find the target element/property.
11907 2009-03-03 Alan McGovern <amcgovern@novell.com>
11909 * src.mdp: Add propertypath.h to the MD solution
11911 2009-03-03 Alan McGovern <amcgovern@novell.com>
11914 * animation.cpp: Storyboards should always use the surface in
11915 the current deployment when starting. They don't have to be
11916 explicitly attached to a surface - SL2 has different
11917 semantics as compared to SL1 which caused some of the 1.0
11918 tests to flag this as a regression.
11920 2009-03-03 Alan McGovern <amcgovern@novell.com>
11924 * animation.cpp: Revert last change. I have the test failing
11927 2009-03-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
11929 * pipeline-asf.cpp: Add a null check.
11931 2009-03-03 Alan McGovern <amcgovern@novell.com>
11934 * animation.cpp: Storyboards should always use the surface in
11935 the current deployment when starting. They don't have to be
11936 explicitly attached to a surface.
11938 2009-03-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
11940 * dependencyobject.cpp: EventObject::SetSurface: only warn
11941 about wrong thread if we're actually change something.
11943 * mediaplayer.cpp: Call DisposeObject on the media to dispose
11947 * pipeline.cpp: Add Media::DisposeObject to have objects
11948 disposed on the media thread.
11950 2009-03-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
11952 * pipeline.cpp: Add a missing base call to Dispose.
11954 2009-03-02 Geoff Norton <gnorton@novell.com>
11956 * pipeline.cpp: SetSource (uri) is not required to be called before
11957 SetSource (Downloader, PartName) from the javascript API.
11959 2009-03-02 Geoff Norton <gnorton@novell.com>
11961 * deployment.cpp: Enable signal chaning
11963 2009-03-02 Jeffrey Stedfast <fejj@novell.com>
11965 * textbox.cpp (TextBox::Paste): New method to paste the
11966 contents. Since pasting text is asyncronous, we have to emit our
11967 own events and can't rely on them happening inside OnKeyDown().
11968 (TextBoxView::OnModelChanged): Don't allow 'dirty' to get set to
11969 false if updating the layout returns false.
11971 2009-03-01 Andrés G. Aragoneses <aaragoneses@novell.com>
11973 * runtime.cpp: Add an EOL at the end of a printf.
11975 2009-03-01 Jeffrey Stedfast <fejj@novell.com>
11977 * utils.h: Mark our g_ptr_array_insert*() symbols as internal, we
11978 don't want to be exporting these symbols.
11980 2009-02-27 Stephane Delcroix <sdelcroix@novell.com>
11982 * multiscaleimage.cpp: use the tiles containing the shared thumbs for
11983 the highest levels of DZ collections. Saves a lot of network traffic.
11985 2009-02-26 Sebastien Pouliot <sebastien@ximian.com>
11987 * resources.cpp: Simplify (old glib) Clear and use the "right" macro
11989 2009-02-26 Chris Toshok <toshok@ximian.com>
11991 * provider.cpp (InheritedPropertyValueProvider::GetPropertyValue):
11992 more tweaking of inheritance behavior. if the parentProperty
11993 exists, check the local value, and if it exists, return that.
11994 otherwise return return GetValue.
11996 2009-02-26 Chris Toshok <toshok@ximian.com>
11998 * border.cpp (Border::OnPropertyChanged): robustificate this a
12001 2009-02-26 Chris Toshok <toshok@ximian.com>
12003 * cbinding.h, cbinding.cpp: regen.
12005 * frameworkelement.cpp (FrameworkElement::FrameworkElement):
12006 initialize default_style_appled to false.
12007 (FrameworkElement::SetDefaultStyle): new method, so that the
12008 managed code can set the default style without going through the
12009 CLR property wrapper (and the DP system), since (stupidly, imo)
12010 the default style isn't exposed by the Style property.
12011 (FrameworkElement::Measure): I don't like doing this hear, but
12012 according to dave relyea's blog, templates are applied when
12013 Measure is called. we could add an internal measure hook so that
12014 this code could live in control.cpp, but for now this hack will
12017 * frameworkelement.h: expose SetDefaultStyle (GeneratePInvoke too)
12018 and add the default_style_applied field.
12020 * control.cpp (Control::OnLoaded): only apply the default style
12021 here if we haven't already (to handle the case where the object is
12022 created programmatically).
12024 * xaml.cpp (end_element_handler): according to the blog post in
12025 the added comment, controls defined in XAML get their default
12026 style applied when the end tag is seen.
12028 2009-02-26 Jeffrey Stedfast <fejj@novell.com>
12030 * textbox.cpp (TextBuffer::Resize): If we fail to downsize, don't
12032 (TextBuffer::Replace): Don't call Resize() if the replacement text
12033 is shorter than the old subtext because the realloc() would lose
12034 data before we had a chance to shift things into place.
12036 2009-02-26 Sebastien Pouliot <sebastien@ximian.com>
12038 * resources.cpp: Fix crash on SLED (old glib) when clearing the
12039 hashtable (somehow this did not crash before)
12041 2009-02-25 Jackson Harper <jackson@ximian.com>
12043 * xaml.cpp: Remove some old code that was preventing non-dob
12044 values from being set to native properties.
12046 2009-02-25 Jeffrey Stedfast <fejj@novell.com>
12048 * textbox.cpp (TextBuffer::Substring): New method to get a
12050 (class TextBoxUndoAction*): New classes to represent different
12051 types of Undo/Redo actions.
12052 (class TextBoxUndoStack): New Undo/Redo stack class.
12053 (TextBox::TextBox): Initialize undo/redo stacks.
12054 (TextBox): Destroy undo/redo stacks.
12055 (TextBox::KeyPressBackSpace): Record an undo action.
12056 (TextBox::KeyPressDelete): Same.
12057 (TextBox::KeyPressUnichar): Here too.
12058 (TextBox::OnKeyDown): Call Undo() and Redo() when appropriate.
12059 (TextBox::OnPropertyChanged): Record undo actions for setting
12060 SelectedText and Text properties.
12061 (TextBox::Undo): Undo the most recent action.
12062 (TextBox::Redo): Redo the most recent action.
12064 2009-02-25 Stephane Delcroix <sdelcroix@novell.com>
12066 * multiscaleimage.h|cpp: return the next tile to download
12067 in RenderSingle, RenderCollection. so the download is triggered
12068 from a single place.
12070 2009-02-25 Stephane Delcroix <sdelcroix@novell.com>
12072 * multiscaleimage.h|cpp: split Render in RenderSingle,
12075 2009-02-24 Chris Toshok <toshok@ximian.com>
12077 * dependencyobject.cpp (EventObject::FinishEmit): if handlers are
12078 added to the list during emission, we can end up doing the Finish
12079 decrements when we didn't do the Start increments, leading to a
12080 negative events->emitting count. This causes us to spin in
12081 unref_delayed on shutdown. Fixes bug #479364.
12085 2009-02-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
12087 * codec-version.h.in: Bump abi version.
12090 * mediaplayer.cpp: Handle frames with width/height set, and
12091 change our cairo surface accordingly.
12094 * pipeline.cpp: Add width/height to MediaFrame, to support
12095 frames with different sizes than the initial size specified
12098 2009-02-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
12100 * dependencyobject.cpp: Emit: Add a null check.
12102 2009-02-23 Jeffrey Stedfast <fejj@novell.com>
12104 * textbox.cpp (TextBoxView::Paint): Try to draw a crisp
12105 1-pixel-wide line for the cursor... apparently cairo has forsaken
12106 1-pixel-wide lines.
12108 2009-02-23 Jeffrey Stedfast <fejj@novell.com>
12110 * layout.cpp (TextLayout::GetCursor): Revert previous round()
12111 change, this isn't the right way to do it.
12113 * textbox.cpp (TextBoxView::BeginCursorBlink): Call
12115 (TextBox::OnPropertyChanged): Keep proper selection_anchor/cursor
12118 2009-02-23 Stephane Delcroix <sdelcroix@novell.com>
12120 * multiscaleimage.cpp: remove some debugs, clean the render loops,
12121 cleanly dispose the hashtable and its components
12123 2009-02-23 Jeffrey Stedfast <fejj@novell.com>
12125 * layout.cpp (TextLayout::GetCursor): Round the cursor's x
12126 position to the nearest whole number (makes the cursor look
12129 * textbox.cpp (TextBoxView::Paint): Always paint the cursor black.
12131 2009-02-23 Chris Toshok <toshok@ximian.com>
12133 * xaml.cpp (value_from_str): handle Type::OBJECT here by just
12134 assuming the value is a string. Fixes Tag.htm.
12136 2009-02-23 Geoff Norton <gnorton@novell.com>
12138 * debug.cpp: Don't go poking around in managed land if we don't have
12141 2009-02-23 Stephane Delcroix <sdelcroix@novell.com>
12143 * multiscaleimage.cpp: Render () in relative coordinates
12145 2009-02-23 Stephane Delcroix <sdelcroix@novell.com>
12147 * multiscaleimage.h|cpp: use filename as cache keys
12149 2009-02-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
12152 * pipeline.cpp: Only decode on the media thread.
12154 2009-02-23 Alan McGovern <amcgovern@novell.com>
12157 * dependencyproperty.g.cpp: Tag is a System.Object, not a
12160 2009-02-22 Geoff Norton <gnorton@novell.com>
12162 * pipeline.cpp|h: Add extra_data from managed for AudioStream too
12164 2009-02-22 Geoff Norton <gnorton@novell.com>
12166 * cbinding.cpp|h: Regen
12167 * pipeline.cpp|h: When constructing a new VideoStream pass the
12168 extra_data from managed.
12170 2009-02-22 Geoff Norton <gnorton@novell.com>
12172 * pipeline-asf.cpp:
12173 * pipeline.cpp|h: Add some missing codecs.
12175 2009-02-20 Jeffrey Stedfast <fejj@novell.com>
12177 * layout.cpp (TextLayout::Layout*Wrap*): Always need to update
12178 actual_width, segment->end, etc - even if all we had was
12179 whitespace. Try to keep better track of this state as well.
12180 (TextLayout::GetCursor): The cursor height is actually the same as
12183 * textbox.cpp (TextBox::TextBox): Init inkeypress state to false.
12184 (TextBox::OnKeyDown): Set inkeypress to true at the beginning and
12186 (TextBox::OnPropertyChanged): Check for inkeypress so we don't
12187 syncronize things too early (we want to do it in SyncAndEmit() at
12188 the end of OnKeyDown()). Also updated to keep proper emit state.
12189 (TextBox::ClearSelection): Only sync selected text if we aren't in
12191 (TextBox::Select): Same.
12193 2009-02-20 Jeffrey Stedfast <fejj@novell.com>
12195 * textbox.cpp (TextBuffer::Resize): Return bool - true if we were
12196 able to resize or false if we failed.
12197 (TextBuffer::*): If Resize fails, return.
12198 (TextBox::CursorPrevWord): Only nagivate back so long as i >
12199 begin. Prevents us from returning -1 when begin is 0.
12200 (TextBuffer::Cut): Fixed the logic - we don't want to memmove the
12201 total number of bytes left after cutting, we only want to memmove
12202 the bytes after the cut point.
12204 * moon-path.c (moon_path_ensure_space): New function to replace
12205 the ENSURE_SPACE() macro and moon_path_expand(). Returns bool so
12206 that callers can tell if they have enough space to add the data
12207 they want. Fixed callers to check the return value and return w/o
12208 adding curves, lines, whatever. While this will mean that
12209 Moonlight won't render the path correctly, at least we won't
12212 2009-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12214 * mediaplayer.cpp: Open: Show the first frame upon opening a
12217 2009-02-19 Sebastien Pouliot <sebastien@ximian.com>
12219 * size.cpp|h: Add FromStr (copied from Point)
12220 * xaml.cpp: Parse Type::SIZE
12222 2009-02-19 Jeffrey Stedfast <fejj@novell.com>
12224 * stylus.h (class StylusPoint): In managed-land, this class is
12225 actually a struct, so until we find a better way, mark property
12226 accessors for pinvoking.
12227 (class StylusPointCollection): Add AddStylusPoints to the list of
12228 methods to create pinvoke stubs for.
12229 (class StylusInfo): Fixed to have a managed class
12230 autogenerated (internal).
12232 * brush.cpp (VideoBrush::SetSource): Implemented.
12234 2009-02-19 Sebastien Pouliot <sebastien@ximian.com>
12236 * dependencyobject.cpp|h: The parameter is not needed anymore
12237 since the xaml code was updated to work without using the
12240 2009-02-19 Jackson Harper <jackson@ximian.com>
12242 * xaml.cpp: Implement StaticResource element syntax.
12244 2009-02-18 Jeffrey Stedfast <fejj@novell.com>
12246 * geometry.h (class PathGeometry): Don't autocreate the
12247 FiguresProperty until we can figure out why it breaks the PDC
12250 2009-02-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
12252 * mediaelement.h: We always want OnPropertyChanged for
12253 PositionProperty. Fixes seeking to start/0.
12255 * dependencyproperty.g.cpp: Regenerated.
12257 2009-02-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
12259 * mediaelement.cpp: ctor: Initialize flags correctly.
12261 2009-02-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
12265 * pipeline-asf.cpp:
12266 * mediaelement.cpp: g_warn_if_failed -> g_return_if_failed to
12267 make sled (glib 2.10) happy.
12269 2009-02-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
12275 * mediaelement.cpp: Initial implementation of
12279 * cbinding.cpp: Regenerated.
12281 2009-02-18 Alan McGovern <amcgovern@novell.com>
12286 * animation.cpp: Storyboards are considered 'children' if they
12287 ever were attached as a child of another timeline. The
12288 current status doesn't appear to matter.
12289 (StoryboardTest.RemoveChildThenStart).
12291 2009-02-18 Stephane Delcroix <sdelcroix@novell.com>
12293 * multiscaleimage.h|cpp: remove GetViewPortHeight, fix the rendering
12296 2009-02-17 Chris Toshok <toshok@ximian.com>
12298 * text.cpp (TextBlock::TextBlock): remove this hack.
12300 2009-02-17 Chris Toshok <toshok@ximian.com>
12302 * textbox.cpp (TextBox::OnPropertyChanged): add the same hardening
12303 to the SelectedText case, and also don't perform the remaining
12304 operations if g_utf8_to_ucs4_fast fails.
12306 2009-02-17 Jeffrey Stedfast <fejj@novell.com>
12308 * dependencyobject.cpp: Now takes an only_changed argument; if
12309 true, then only return the properties which have been
12310 changed (plus any values which have been auto-created).
12312 * mediaelement.cpp (MediaElement::MediaElement): Set
12313 BufferingTimeProperty and PositionProperty in the ctor, we can't
12314 use DefaultValue nor AutoCreateValue for these since they need to
12315 be returned by ReadLocalValue() immediately after instantiating a
12316 new MediaElement object.
12318 * media.h (class MediaAttribute): Set managed namespaces for
12319 MediaAttribute and MediaAttributeCollection, we have internal
12320 managed implementations of these now.
12322 * text.h (class TextBlock): Changed default LineHeightProperty
12323 value from NaN to 0.0 (docs say NaN is the default, but not
12324 according to the unit tests).
12326 * textbox.h (class TextBox): Changed default TextProperty value
12327 from "" to null (docs say "" is the default, but not according to
12330 * media.cpp (Image::Image): Fix the SourceProperty to be
12333 * shape.cpp (Polygon::Polygon): Don't set a point
12334 collection. We'll make it autocreated instead.
12335 (Polyline::Polyline): Same.
12337 * geometry.h (class PathFigure): Set the default value of
12338 IsFilledProperty to true.
12339 (class PathGeometry): AutoCreate the FiguresProperty.
12340 (class PolyBezierSegment): AutoCreate the PointsProperty.
12341 (class PolyLineSegment): AutoCreate the PointsProperty.
12342 (class PolyQuadraticBezierSegment): AutoCreate the PointsProperty.
12344 * deployment.h (class AssemblyPart): Set the default value of
12345 AssemblyPart::SourceProperty to "".
12347 * mediaelement.h: Set the default value of CurrentState to Closed.
12349 * mediaelement.cpp (MediaElement::MediaElement): Don't need to set
12350 Markers or Attributes properties, these are autocreated.
12352 2009-02-17 Alan McGovern <amcgovern@novell.com>
12354 * animation.cpp: Missed out on a "!" when changing from
12355 GetIsChild to GetIsRootStoryboard
12357 2009-02-17 Alan McGovern <amcgovern@novell.com>
12360 * cbinding.cpp: Regenerated
12363 * animation.cpp: Add *WithError functions so that storyboards
12364 can throw the right exceptions when they are not the root
12367 2009-02-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
12369 * mediaelement.cpp: Add some null checks.
12371 2009-02-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
12374 * mediaelement.cpp: Move bitfields into our flags field.
12375 Remove allow_downloads and related methods, no longer used.
12377 2009-02-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
12380 * mediaelement.cpp: Remove GetDownloaderPolicy, not used
12383 2009-02-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
12389 * mediaelement.cpp: Make SetSource (Stream) work again.
12391 2009-02-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
12398 * pipeline-ffmpeg.h:
12399 * yuv-converter.cpp:
12400 * pipeline-ffmpeg.cpp: Update according to new pipeline api.
12410 * pipeline-asf.cpp:
12411 * mediaelement.cpp:
12412 * mms-downloader.h:
12413 * mms-downloader.cpp: Rework pipeline to be async to support
12420 * type-generated.cpp:
12421 * dependencyproperty.g.cpp: Regenerated.
12423 * codec-version.h.in: Bump codec abi.
12425 * downloader.cpp: Include uri.h.
12427 * downloader.h: Add accessor for failed_msg.
12430 * enums.cpp: Rename MediaElementState to MediaState.
12432 * mutex.h: Added, a pthread implementation of a mutex allowing
12435 * template.h: Inlcude xaml.h and add a forward declaration of
12438 * window.h: Add a forward declaration of MoonWindow.
12440 * src.mdp: Updated.
12442 * dependencyobject.h:
12443 * dependencyobject.cpp: Added EVENTHANDLER macro. Added
12444 support for emititng events from other than the main thread
12445 (by marshalling the event emission to the main thread).
12447 2009-02-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
12449 * deployment.cpp: Use printf instead of g_warning for a
12450 message which is always printed. Makes it less annoying to
12451 break on g_log while debugging.
12453 2009-02-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
12457 * type-generated.cpp: Regenerate.
12459 2009-02-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
12464 * mediaelement.cpp: Remove MediaErrorEventArgs.
12466 2009-02-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
12468 * debug.h: Added LOG_MP3.
12470 * runtime.cpp: Surface ctor: set the surface of the current
12471 deployment to the ourself.
12473 2009-02-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
12475 * runtime.h: Add a VERIFY_MAIN_THREAD sanity macro.
12477 * runtime.cpp: Add support for MOONLIGHT_DEBUG=all.
12479 2009-02-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
12482 * runtime.cpp: CreateDownloader: take an EventObject instead
12485 2009-02-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
12488 * runtime.cpp: Add mp3 support to MOONLIGHT_DEBUG.
12490 2009-02-17 Atsushi Enomoto <atsushi@ximian.com>
12492 * geometry.h, geometry.cpp, dependencyproperty.g.cpp:
12493 Fixed type of ArcSegment::Size from Point to Size.
12495 2009-02-16 Jeffrey Stedfast <fejj@novell.com>
12497 * text.h: Default TextBlock font size seems to be 11px in SL2 as
12498 opposed to 14.667 in SL1.
12500 2009-02-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
12504 * mediaelement.cpp: Move image_brush_compute_pattern_matrix
12505 from media.cpp/mediaelement.cpp to brush.h to avoid having
12506 two declarations of the same method.
12508 2009-02-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
12510 * brush.cpp: Include mediaplayer.h here.
12512 2009-02-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
12514 * dependencyobject.cpp: Change our g_error into a g_warning.
12515 Reffing an object with refcount = 0 can actually happen now.
12517 2009-02-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
12519 * dependencyobject.cpp: AddTickCallInternal: if we don't have
12520 a surface, get it from the deployment.
12522 2009-02-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
12524 * dependencyobject.cpp: EventObject. unref and null out the
12525 deployment in the dtor instead of in Dispose.
12527 2009-02-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
12529 * dependencyobject.h:
12530 * dependencyobject.cpp: Add
12531 DependencyObject::RemoveAllHandlers.
12533 2009-02-16 Alan McGovern <amcgovern@novell.com>
12535 * animation.cpp: Remove the calls to ref/unref as they are
12538 2009-02-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
12540 * libmoon.h: Don't include playlist.h here. Fixes issues with
12541 the plugin when playlist.h includes expat.
12543 2009-02-16 Alan McGovern <amcgovern@novell.com>
12548 * animation.cpp: Implement the managed side of
12549 Storyboard.GetCurrentState ().
12551 2009-02-16 Alan McGovern <amcgovern@novell.com>
12554 * type.h.in: The renaming changes in r126921 break the build
12555 if the generator is run because type.h.in didn't contain the
12556 CopyProperties prototype.
12558 2009-02-16 Geoff Norton <gnorton@novell.com>
12561 * downloader.h: Downloaders created in javascript can suffer the
12562 same shared-cache firefox bug, so we need to expose the buffer
12563 to the image layer in case this is the place.
12565 2009-02-14 Jeffrey Stedfast <fejj@novell.com>
12567 * dependencyobject.cpp (DependencyObject::GetProperties): New
12568 method to get an array of all properties on the object (including
12569 currently attached properties).
12571 * type.cpp (Type::CopyProperties): Renamed from GetProperties()
12572 and changed what it does a bit. Now takes an 'inherited' argument
12573 and returns a GHashTable of properties keyed by GetHashKey().
12575 2009-02-14 Chris Toshok <toshok@ximian.com>
12577 * dependencyobject.h, dependencyobject.cpp: rename
12578 "current_values" as "local_values". current_values now means
12579 "local values + autocreated values". At this point, add
12580 GetCurrentValues which returns a new hashtable containing a union
12581 of both sets, and add FreeCurrentValues to destroy it.
12583 * provider.cpp (LocalPropertyValueProvider::GetPropertyValue): use
12584 DependencyObject::GetLocalValues instead of GetCurrentValues.
12586 2009-02-13 Chris Toshok <toshok@ximian.com>
12588 * provider.cpp (InheritedPropertyValueProvider::GetPropertyValue):
12589 fix a number of logical errors. gets inlines properly inheriting
12592 2009-02-14 Jeffrey Stedfast <fejj@novell.com>
12594 * type.cpp (Type::GetProperties): New method to get an array of
12595 DependencyProperties for a Type.
12597 2009-02-13 Geoff Norton <gnorton@novell.com>
12599 * playlist.cpp: Check these string with g_ascii_str* as well.
12600 Also these should be case-insensitive checks.
12602 2009-02-13 Jeffrey Stedfast <fejj@novell.com>
12604 * mediaelement.h (class MediaElement): NaturalVideoWidth/Height
12605 should be ints, not doubles.
12607 * text.h (class Glyphs): Set the DefaultValues for
12608 UnicodeStringProperty, IndicesProperty, and FontUriProperty to "".
12610 * bitmapimage.cpp (BitmapImage::BitmapImage): Don't call
12611 SetUriSource("") (it's already the DefaultValue).
12613 2009-02-13 Geoff Norton <gnorton@novell.com>
12615 * media.cpp|h: Ensure we're comparing magics with unsigned values, and
12616 fix a logic bug that prevented us from proplery writing progressive pixbuf
12619 2009-02-13 Jeffrey Stedfast <fejj@novell.com>
12621 * multiscaleimage.h (class MultiScaleImage): Rename the
12622 SubImageCollectionProperty to SubImagesProperty to match
12625 2009-02-13 Geoff Norton <gnorton@novell.com>
12627 * runtime.cpp|h: Add a new overload to control the gdk_pixbuf_loader
12629 * media.cpp|h: Ensure that we only load jpeg/png images like microsoft
12630 does when running in the browser profile.
12632 2009-02-13 Alan McGovern <amcgovern@novell.com>
12634 * value.cpp: Use the GPOINTER_TO_INT macro as suggested rather
12635 than casting to a 64bit then 32bit value.
12637 2009-02-13 Stephane Delcroix <sdelcroix@novell.com>
12639 * multiscaleimage.h|cpp: drop the friend here too
12641 2009-02-13 Stephane Delcroix <sdelcroix@novell.com>
12643 * tilesource.h: drop the friends
12645 2009-02-13 Stephane Delcroix <sdelcroix@novell.com>
12647 * Makefile.am: remove deepzoomimagetilesource.h from the
12648 include_headers. no one should code against it.
12650 2009-02-13 Stephane Delcroix <sdelcroix@novell.com>
12652 * multiscaleimage.cpp:
12653 * deepzoomimagetilesource.h|cpp: dzits no longer have any friends
12655 2009-02-13 Stephane Delcroix <sdelcroix@novell.com>
12657 * multiscaleimage.cpp: timing macros
12659 2009-02-13 Stephane Delcroix <sdelcroix@novell.com>
12661 * multiscaleimage.cpp: embed the rendering in push_group/pop_group then
12662 paint at once to avoid flickering.
12664 2009-02-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
12666 * downloader.cpp: Sprinkle a few SetCurrentDeployments. Fixes
12667 a crash when downloading mms streams (due to not having
12670 2009-02-12 Geoff Norton <gnorton@novell.com>
12672 * playlist.cpp: Ensure that we don't poke around in random memory
12673 if we have an invalid entry in our parser.
12675 2009-02-12 Alan McGovern <amcgovern@novell.com>
12677 * value.cpp: Add an assert in case the gchandle value is out
12680 2009-02-12 Alan McGovern <amcgovern@novell.com>
12682 * value.cpp: Fix compile error on x64 when casting a void* to
12685 2009-02-12 Alan McGovern <amcgovern@novell.com>
12687 * value.cpp: Managed objects are stored in native as
12688 GCHandles. Use the mono api to get the target of that
12689 GCHandle so that they can be compared correctly in
12690 value.cpp. Remove hack in ItemCollection.cs which worked
12693 2009-02-12 Stephane Delcroix <sdelcroix@novell.com>
12695 * multiscalesubimage.h|cpp: add id, n as ctor params, make the ctor
12696 public, drop a friend.
12697 * deepzoomimagetilesource.h|cpp: EndElement is now a class method, drop
12700 2009-02-12 Stephane Delcroix <sdelcroix@novell.com>
12702 * deepzoomtilesource.cpp: some g_ascii love
12704 2009-02-11 Chris Toshok <toshok@ximian.com>
12706 * text.h: Inline's fontsize default value is 11. looks like
12707 textblock is the only case where it differs.
12709 2009-02-11 Jeffrey Stedfast <fejj@novell.com>
12711 * eventargs.h (MouseEventArgs::GetEvent): Expose the raw GdkEvent.
12713 * textbox.cpp (TextBoxView::ConnectBlinkTimeout): Get the cursor
12714 blink timeout from the GtkSettings.
12715 (TextBox::OnKeyDown): Don't bother printing the buffer anymore,
12716 things seem to have been debugged enough now.
12717 (TextBox::CursorLineBegin): New convenience method.
12718 (TextBox::CursorLineEnd): Same.
12719 (TextBox::OnMouseLeftButtonDown): Implemented double and
12720 triple-click. Capture mouse if single-click.
12721 (TextBox::OnMouseLeftButtonUp): Release mouse capture.
12722 (TextBox::CursorPrevWord): Don't allow ourselves to go beyond the
12723 beginning of the line.
12725 2009-02-11 Alan McGovern <amcgovern@novell.com>
12742 * mediaelement.cpp:
12743 * multiscaleimage.h:
12744 * multiscaleimage.cpp: Switch FindElementsInHostCoordinates to
12745 use the ::Render codepaths instead of it's own custom
12746 codepath. Added an extra parameter to ::Render () to specify
12747 whether or not the paths appended to the cairo_t should be
12748 filled/stroked/clipped. This allows a whole bunch of NUnit
12752 * frameworkelement.cpp: Add an extra parameter to ::Render ()
12753 to specify whether or not the paths appended to the cairo_t
12754 should be filled/stroked/clipped so it can be shared with
12755 the managed hittesting.
12756 Switch FindElementsInHostCoordinates to use the ::Render
12757 codepaths instead of it's own custom codepath. This allows a
12758 whole bunch of NUnit tests to pass.
12760 2009-02-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
12791 * contentcontrol.h:
12792 * multiscaleimage.h:
12793 * frameworkelement.h:
12794 * dependencyobject.h:
12795 * multiscalesubimage.h:
12796 * dependencyproperty.g.cpp:
12797 * deepzoomimagetilesource.h: Make DP backing fields const.
12799 2009-02-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
12818 * mediaelement.cpp:
12819 * contentcontrol.cpp:
12820 * dependencyobject.h:
12821 * multiscaleimage.cpp:
12822 * dependencyobject.cpp:
12823 * frameworkelement.cpp:
12824 * deepzoomimagetilesource.cpp: PropertyChangedEventArgs: make
12825 dp and id fields private and add accessors.
12827 2009-02-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
12879 * mediaelement.cpp:
12880 * contentcontrol.h:
12881 * multiscaleimage.h:
12882 * contentcontrol.cpp:
12883 * frameworkelement.h:
12884 * dependencyobject.h:
12885 * multiscaleimage.cpp:
12886 * dependencyproperty.h:
12887 * multiscalesubimage.h:
12888 * frameworkelement.cpp:
12889 * dependencyobject.cpp:
12890 * dependencyproperty.cpp:
12891 * dependencyproperty.g.cpp:
12892 * deepzoomimagetilesource.h:
12893 * deepzoomimagetilesource.cpp: Change our static
12894 DependencyProperty backing fields to store an integer id
12895 instead of an instance to a DependencyProperty. This way we
12896 can have true per-deployment dependency properties.
12898 2009-02-11 Alan McGovern <amcgovern@novell.com>
12905 * frameworkelement.cpp: Commit some more updates to the
12906 managed hittesting.
12908 2009-02-10 Jeffrey Stedfast <fejj@novell.com>
12910 * layout.cpp (TextLayout::Layout*Wrap*): Kern between runs. Fixes
12911 xchatitis in TextBox.
12913 2009-02-10 Jeffrey Stedfast <fejj@novell.com>
12915 * fontfamily.h (struct FontFamily): Implemented != operator.
12917 * text.cpp (Inline::Equals): Fixed the fontfamily check.
12919 * provider.cpp (AutoCreatePropertyValueProvider::SetSurface): Removed.
12921 * dependencyobject.cpp (DependencyObject::Dispose): Fixed to
12922 dispose autocreated values too.
12923 (DependencyObject::RemoveAllListeners): Same here.
12924 (DependencyObject::RegisterAllNamesRootedAt): And here.
12925 (DependencyObject::UnregisterAllNamesRootedAt): Here too.
12927 2009-02-10 Jeffrey Stedfast <fejj@novell.com>
12929 * panel.cpp (Panel::GetSubtreeObject): Override UIElement's
12930 GetSubtreeObject so that we can auto-create our Children property
12931 and set it if it hasn't already been set.
12933 * dependencyobject.cpp (DependencyObject::SetValueWithErrorImpl):
12934 We need to clear the LocalProvider value as well, if there is
12935 one. Also, don't allow setting a Value* with a null
12936 DependencyObject if it is an autocreate property.
12937 (DependencyObject::ClearValue): Clear the LocalProvider value too.
12938 (DependencyObject::SetSurface): SetSurface on autocreated values too.
12940 * dependencyproperty.cpp (DependencyProperty::DependencyProperty):
12941 Now takes another bool arg to specify whether it is allowed to
12942 autocreate new DP values.
12943 (DependencyProperty::Register): Updated.
12944 (DependencyProperty::RegisterFull): Updated, now also takes an
12947 * provider.cpp (AutoCreatePropertyValueProvider): A new provider
12948 which sits below DefaultValue.
12950 * *.cpp (*::ctor): Remove calls to SetValue()
12952 * *.h: Added AutoCreateValue where appropriate.
12954 2009-02-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
12956 * color.h: fabs is in math.h.
12958 2009-02-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
12961 * list.cpp: Add a simple ArrayList implementation.
12966 * type-generated.cpp:
12967 * dependencyproperty.g.cpp: Regenerated.
12969 * dependencyproperty.h:
12970 * dependencyproperty.cpp: RegisterCustom: removed, no longer
12971 used anywhere. RegisterNull: incorporated into
12972 RegisterFull. Register[Full]: take another Types* argument
12973 so that the registration doesn't have to look it up in the
12974 deployment for every call (this way we can later register
12975 dependency properties in the Types ctor). Also move any
12976 logic from the individial Register overloads to
12977 RegisterFull, this way we don't have different logic
12978 depending on the overload.
12981 * type.h.in: Keep a list of all properties for all types on
12982 the Types* instance, and remove the custom properties (hash
12983 and list) on the Type* instance, keeping only one hash
12984 table for both native and custom properties.
12986 2009-02-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
12993 * file-downloader.h: Only use G_BEGIN/END_DECLS around c
12994 methods (and in files with no c methods remove completely).
12996 2009-02-10 Jackson Harper <jackson@ximian.com>
12998 * xaml.h|cpp: New method for getting the key of an element
13000 - Pass the element instance data for the values to set property
13001 when we have one, otherwise pass NULL.
13003 2009-02-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
13005 * dependencyproperty.g.cpp: Temporary fix for > 1 xap per
13006 process: don't check if DPs have been created before
13009 2009-02-10 Alan McGovern <amcgovern@novell.com>
13011 * border.cpp: Corner rounding is now taken into account when
13012 hittesting a Border
13014 2009-02-10 Fernando Herrera <fherrera@novell.com>
13016 * value.cpp: Fix GetIsNull call casting in the copy
13019 2009-02-09 Chris Toshok <toshok@ximian.com>
13021 * value.cpp: call SetIsNull everywhere so we can always check
13024 2009-02-09 Alan McGovern <alan.mcgovern@gmail.com>
13029 * frameworkelement.cpp: Three more of the NUnit tests are now
13030 passing for FindElementsInHostCoordinates
13032 2009-02-09 Alan McGovern <alan.mcgovern@gmail.com>
13039 * frameworkelement.cpp: Commit some more of the hittest code.
13041 2009-02-09 Jeffrey Stedfast <fejj@novell.com>
13043 * type.h.in (class Types): Added a private static field to record
13044 whether or not the static DP's have already been registered.
13046 2009-02-09 Geoff Norton <gnorton@novell.com>
13048 * deployment.cpp: Support enabling coreclr for moonlight so we
13049 can start dogfooding this.
13051 2009-02-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
13053 * deployment.cpp: Remove redundant call to SetObjectType.
13055 2009-02-08 Chris Toshok <toshok@ximian.com>
13057 * provider.cpp (InheritedPropertyValueProvider::GetPropertyValue):
13058 add inheritance of FrameworkElement::DataContextProperty.
13060 * frameworkelement.[cpp,h]: remove all the databinding stuff from
13061 here - it's all handled in managed code now.
13063 * dependencyproperty.[cpp,h]: add SetPropertyChangedCallback.
13065 * cbinding.[cpp,h]: regen.
13067 2009-02-07 Sebastien Pouliot <sebastien@ximian.com>
13069 * xaml.cpp: Adjust lookup to find StaticResources defined in
13070 a ResourceDictionary. re-fix parsing of generic.xaml for the
13071 SL toolkit (unit tests)
13073 2009-02-07 Larry Ewing <lewing@novell.com>
13075 * border.cpp (Border::ArrangeOverride):
13076 * usercontrol.cpp (UserControl::ArrangeOverride): Fix padding on
13079 * grid.cpp (Grid::MeasureOverride): distribute the allocation
13080 across auto dimensions when it makes sense.
13082 2009-02-07 Larry Ewing <lewing@novell.com>
13084 * grid.cpp (Grid::MeasureOverride): don't give our whole
13085 allocation to the first column.
13087 2009-02-07 Sebastien Pouliot <sebastien@ximian.com>
13089 * stylus.cpp: Committed a variation of Geoff patch to fix
13090 the crash when running moon-unit
13092 2009-02-07 Geoff Norton <gnorton@novell.com>
13094 * cbinding.cpp|h: Regenerate
13095 * deployment.cpp|h: API cleanup
13096 * downloader.cpp|h: Generate some code that doesn't need to be
13097 hand maintained. Clean up some API to prevent a crash when
13098 unregistering downloaders.
13100 2009-02-07 Geoff Norton <gnorton@novell.com>
13106 * size.h: Account for an epsilon when comparing these structures
13107 to avoid erroneously emitting false results.
13109 2009-02-07 Jeffrey Stedfast <fejj@novell.com>
13111 * text.cpp (TextBlock::GetTextInternal): Now takes an
13112 InlineCollection argument.
13113 (TextBlock::OnPropertyChanged): Pass args->new_value to
13114 GetTextInternal() so that we avoid unnecesary recursion in the
13115 case that we're being called as a result of a GetValue() of the
13117 (TextBlock::OnCollectionChanged): Updated.
13118 (TextBlock::OnCollectionItemChanged): Updated.
13120 2009-02-06 Larry Ewing <lewing@novell.com>
13122 * shape.cpp (Shape::ArrangeOverride): take alignment into account
13123 when Stretch == None.
13125 * media.cpp (Image::ArrangeOverride):
13126 * mediaelement.cpp (MediaElement::ArrangeOverride): take alignment
13127 into account when Stretch == None.
13129 * grid.cpp, grid.h: keep track of the automagical w/h make handle
13130 it properly when alignment is not stretch. Fixes leaf control
13131 placement on "the moment".
13133 2009-02-06 Larry Ewing <lewing@novell.com>
13137 * enums.cpp (enum_from_str): use g_ascii_strcasecmp.
13139 * deepzoomimagetilesource.cpp (start_element): use g_ascii_strtod.
13141 * xaml.cpp (value_from_str): replace use g_ascii_strcasecmp
13144 2009-02-06 Larry Ewing <lewing@novell.com>
13146 * control.cpp (Control::Control): remove bad setting of
13149 2009-02-06 Jackson Harper <jackson@ximian.com>
13151 * xaml.cpp|h: Add a new method for retrieving the control template
13152 parent of a xaml element instance (called from unmanaged).
13153 - quick hack to force binding expressions to be parsed in managed.
13155 2009-02-06 Jeffrey Stedfast <fejj@novell.com>
13157 * keyboard.cpp (Keyboard::MapKeyValToKey): Map alternative names
13158 for *+/- and . to our Key enum needed for the DLR Console app.
13160 2009-02-06 Jeffrey Stedfast <fejj@novell.com>
13162 * Reverted previous commit as I goofed the unit test on
13163 Windows. Once I fixed it, the logic I worked so hard to achieve
13166 2009-02-06 Larry Ewing <lewing@novell.com>
13168 * frameworkelement.cpp (FrameworkElement::Arrange): don't align if
13169 we are the toplevel.
13171 2009-02-06 Jeffrey Stedfast <fejj@novell.com>
13173 See InkPresenter's ClearValue unit test
13175 1. Calling SetValue() in ctors was gross.
13176 2. it was wrong because ReadLocalValue() on Silverlight got "Unset"
13177 3. it broke things if ClearValue was used and/or if the properties
13180 * dependencyobject.cpp (DependencyObject::GetDefaultValue): New
13181 method to query for a default property value as used by the
13182 PropertyValueProviders.
13183 (DependencyObject::ReadLocalValue): Read the value directly from
13186 * provider.cpp (LocalValuePropertyValueProvider::GetPropertyValue):
13187 Call DependencyObject::GetDefaultValue() to try and get a default
13188 value. If successful, set it on the current_values hash table.
13190 * *.cpp: Fixed all classes that had ctors that called SetValue()
13191 to instead override GetDefaultValue().
13193 2009-02-06 Chris Toshok <toshok@ximian.com>
13195 * uielement.cpp (UIElement::SetSurface): if we have a subtree
13196 object (which is a UIElement), set its surface too. Fixes the
13197 ContentPresenter textblocks in ItemsControl.
13199 2009-02-06 Stephane Delcroix <sdelcroix@novell.com>
13201 * deepzoomimagetilesource.cpp: set subimage width/height
13202 * multiscaleimage.cpp: do not download subimages .xml, we can work
13205 2009-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
13208 * cbinding.cpp: Regenerated.
13210 * dependencyobject.h:
13211 * dependencyobject.cpp:
13212 DependencyObject::ProviderValueChanged: Add a MoonError
13213 argument to be able to marshal managed exceptions through
13214 native code. ClearValue: Add a MoonError argument to match
13215 the signature of ProviderValueChanged.
13217 * dependencyproperty.h: Make NativePropertyChangedHandler
13218 take a MoonError argument to be able to marshal managed
13219 exceptions through native code.
13222 * error.cpp: Add a gchandle_ptr field to hold managed
13225 * frameworkelement.h:
13226 * frameworkelement.cpp: Update according to ClearValue
13229 * provider.cpp: Update according to ProviderValueChanged
13232 2009-02-06 Stephane Delcroix <sdelcroix@novell.com>
13234 * morton-layout-table.inc: pre-computed table for Morton Layout
13237 2009-02-06 Stephane Delcroix <sdelcroix@novell.com>
13239 * multiscaleimage.cpp: fix the most annoying rendering issue for
13242 2009-02-06 Jackson Harper <jackson@ximian.com>
13244 * xaml.cpp: Store a list of resource dictionaries on the xaml
13245 context, so control templates can use these to lookup resources.
13246 Also go back to using the XamlElementInstance's for walking up the
13247 tree, this allows us to parse before parenting items.
13249 2009-02-05 Geoff Norton <gnorton@novell.com>
13251 * deepzoomimagetilesource.cpp|h: We don't want to download all of
13252 the sub images at creation time, so allow them to defer, otherwise
13253 we might fire off hundreds of downloaders at once.
13255 2009-02-05 Jackson Harper <jackson@ximian.com>
13257 * xaml.cpp: Use the case sensitive Type::Find (fixes parsing
13260 2009-02-05 Jeffrey Stedfast <fejj@novell.com>
13262 * dependencyobject.cpp (DependencyObject::ReadLocalValue): Renamed
13263 to be more consistent with the managed API.
13265 * frameworkelement.cpp (FrameworkElement::ReadLocalValue): Same.
13267 2009-02-05 Geoff Norton <gnorton@novell.com>
13269 * multiscaleimage.cpp|h: We must emit this event on the main thread
13271 2009-02-05 Alan McGovern <alan.mcgovern@gmail.com>
13280 * frameworkelement.h:
13281 * frameworkelement.cpp: Create an unmanaged version of
13282 FindElementsInHostCoordinates
13284 2009-02-05 Geoff Norton <gnorton@novell.com>
13287 * dependencyproperty.g.cpp:
13288 * type-generated.cpp: Regenerate
13289 * collection.h: Generate bindings for the multiscalesubimage collection.
13290 * deepzoomimagetilesource.cpp: Trigger a download when we get our URI
13291 * multiscaleimage.cpp|h: Hide SubImages in a internal property until
13292 we can marshal collections as ReadOnly into managed automatically.
13293 Also emit the ImageOpenSucceeded event when we're done parsing.
13295 2009-02-05 Jackson Harper <jackson@ximian.com>
13297 * type.cpp|h|h.in: Type:Find does need to be insensitive for JS.
13298 So I've added an ignore_case flag that the parser can use.
13300 2009-02-05 Jackson Harper <jackson@ximian.com>
13302 * type.cpp: As far as I can tell, Type::Find does not need to be
13303 case sensitive. This fixes "Double" being found when we register
13306 2009-02-05 Jeffrey Stedfast <fejj@novell.com>
13308 Save some additional state for an optimization I'd like to do.
13310 * layout.cpp (TextLayout::LayoutWrapWithOverflow): Keep track of
13311 character offset for each TextLine.
13312 (TextLayout::LayoutNoWrap): Same.
13313 (TextLayout::LayoutWrap): Here too.
13315 2009-02-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
13317 * deployment.cpp: Fix typo.
13319 2009-02-05 Alan McGovern <alan.mcgovern@gmail.com>
13321 * frameworkelement.cpp: Reverting r125649 as it's incorrect.
13323 2009-02-05 Jeffrey Stedfast <fejj@novell.com>
13325 * textbox.cpp (TextBox::OnMouseLeftButtonDown): Don't use
13326 ClearSelection() because we'll be syncing the SelectedText in
13327 SyncAndEmit() anyway.
13329 * layout.cpp (TextLayout::Layout*Wrap*): Oops, fix outer loop to
13330 exit when inptr >= inend rather than when *inptr == 0.
13331 (TextLayout::GetCursorFromXY): Slightly improved.
13333 2009-02-05 Sebastien Pouliot <sebastien@ximian.com>
13335 * dependencyobject.cpp|h: Let GetLogicalParent optionally report
13336 a collection for it's parent. This is needed in some cases like
13337 a Style inside a ResourceDictionary that defines "{StaticResource..."
13338 that other Style needs (e.g. SL toolkit unit tests)
13339 * xaml.cpp: Adjust lookup to find StaticResources defined in
13340 a ResourceDictionary
13342 2009-02-05 Stephane Delcroix <sdelcroix@novell.com>
13344 * multiscaleimage.cpp: Renders subimages
13346 2009-02-05 Jeffrey Stedfast <fejj@novell.com>
13348 Memory Optimization:
13350 * textbox.cpp (append_runs): Updated. Also fixed a bug which would
13351 sometimes append empty TextRuns to the list.
13353 * text.cpp (TextBlock::Layout): Updated. No longer need to use the
13354 retarded TextRun linebreak ctor.
13356 * layout.cpp (TextRun): Changed TextRuns a bit, all members are
13357 now private but accessors have been added to get the values. Get
13358 rid of the crlf field and ctor params. We also no longer "strdup"
13359 for the ucs4 ctor since TextBox is the only consumer of that API
13360 and it is not constructed using a temp buffer.
13361 (TextSegment): Updated a bit for TextRun changes.
13362 (TextLayout): Updated for TextRun changes.
13364 2009-02-05 Sebastien Pouliot <sebastien@ximian.com>
13366 * style.cpp|h: Remove "style-hack" from SetterBaseCollection
13367 since that collection has no need to know about the style itself.
13368 Simplify the API a bit.
13369 * xaml.cpp: Introduce an hack for SetterBase tp workaround the
13370 fact that the current parser adds elements to the collections
13371 before setting their properties (and a SetterBase would seal
13372 itself when added to a collection).
13374 2009-02-05 Jb Evain <jbevain@novell.com>
13376 * propertypath.h: new type.
13377 * value.h.in, value.cpp: make Value deal with PROPERTYPATH.
13378 * xaml.cpp (value_from_str): parse Kind::PROPERTYPATH.
13379 * animation.h: change type of Storyboard.TargetPropertyProperty
13380 from string to PropertyPath.
13381 * animation.cpp: update accordingly.
13382 * dependecyproperty.h (resolve_property_path): now takes a PropertyPath.
13383 * dependecyproperty.cpp: update accordingly.
13384 * value.h, type-generated.cpp, type.h, dependecyproperty.h.cpp: regen.
13386 2009-02-05 Jackson Harper <jackson@ximian.com>
13388 * xaml.cpp|h: Use the kind for getting content property names.
13390 2009-02-04 Chris Toshok <toshok@ximian.com>
13392 * provider.cpp (InheritedPropertyValueProvider::GetPropertyValue):
13393 fix property inheritance to walk back up the tree (instead of just
13394 looking at the direct parent.) Also, we can't use the parent's
13395 kind directly, we have to use parent->Is().
13397 2009-02-04 Larry Ewing <lewing@novell.com>
13399 * grid.cpp (Grid::ArrangeOverride): make the resizing logic only
13400 apply when the final value is not equal to the measured value.
13402 2009-02-04 Jackson Harper <jackson@ximian.com>
13404 * xaml.cpp|h: When setting properties pass in the
13405 XamlElementInstance.
13406 - Function so named items can be looked up from managed.
13407 * cbinding.cpp|h: regen.
13409 2009-02-04 Aaron Bockover <abockover@novell.com>
13411 * color.cpp: Use double_garray_from_str to parse sc# color strings, fixing
13412 bug where the blue channel was dropped in sc#r,g,b
13414 2009-02-04 Sebastien Pouliot <sebastien@ximian.com>
13416 * collection.cpp|h: Override AddWithError on UIElementCollection
13417 to return an error on duplicate elements
13419 2009-02-04 Jeffrey Stedfast <fejj@novell.com>
13421 * color.cpp (read_next_double): Use g_ascii_strtod().
13422 (color_from_str): Use g_ascii_strcasecmp().
13424 * textbox.cpp (TextBox::OnKeyDown): Implemented Cut/Copy/Paste.
13426 2009-02-04 Larry Ewing <lewing@novell.com>
13428 * grid.cpp (Grid::ArrangeOverride): thanks to the listbox test
13429 case we implement star columns in a matching manor.
13431 * mediaelement.cpp (MediaElement::Render): disable mediaelement
13432 pixel snapping for now, we'll deal with this at a higher level.
13434 2009-02-04 Chris Toshok <toshok@ximian.com>
13436 * type.cpp (type_is_dependency_object): no need to c&p the entire
13437 method, just call Type::IsSubclassOf with the kinds.
13439 2009-02-04 Jeffrey Stedfast <fejj@novell.com>
13441 * textbox.cpp (TextBoxView::ConnectBlinkTimeout): Use
13442 TimeManager's timeout functions instead of calling g_timeout_add()
13445 2009-02-04 Stephane Delcroix <sdelcroix@novell.com>
13447 * multiscaleimage.cpp: prepare the rendering for subimages.
13449 2009-02-04 Stephane Delcroix <sdelcroix@novell.com>
13451 * multiscalesubimage.h|cpp: GetViewportHeight () utility method.
13453 2009-02-04 Stephane Delcroix <sdelcroix@novell.com>
13455 * deepzoomimagetilesource.cpp: set the aspect ratio for subimages on
13458 2009-02-04 Jeffrey Stedfast <fejj@novell.com>
13460 * textbox.cpp (TextBox::TextBox): Initialize our 'selecting' state
13461 to false. Get rid of maxlen state, it's not needed.
13462 (TextBox::KeyPressUnichar): Use GetMaxLength() instead of a maxlen
13463 class member variable.
13464 (TextBox::SyncAndEmit): Renamed from KeyPressThaw() since it's
13465 useful for mouse events too.
13466 (TextBox::KeyPressFreeze): Removed.
13467 (TextBox::OnMouseLeftButtonDown): Set our 'selecting' state to
13468 true, get the cursor from the x,y coordinates and update the
13469 selection to be zero-length starting at the cursor position.
13470 (TextBox::OnMouseLeftButtonUp): Set 'selecting' state to false.
13471 (TextBox::OnMouseMove): If we are in the 'selecting' state,
13472 translate current mouse coordinates into a new cursor position and
13473 update selection start/length.
13474 (TextBoxView::GetCursorFromXY): New helper method.
13475 (TextBoxView::TextBoxView): Set our cursor to be the IBeam.
13477 * layout.cpp (TextLayout::GetCursorFromXY): Implemented.
13479 2009-02-04 Jackson Harper <jackson@ximian.com>
13481 * template.cpp|h: Add a function for creating xaml template
13484 2009-02-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
13487 * audio-pulse.cpp: More SetCurrentDeployments.
13489 2009-02-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
13491 * audio.cpp: One more SetCurrentDeployment.
13493 2009-02-04 Alan McGovern <amcgovern@novell.com>
13495 * frameworkelement.cpp: Fixed hit tests which didn't do what
13496 i meant them to do and added new tests. Panels should not
13497 swallow a click when hit testing, so we should never abort
13500 2009-02-04 Stephane Delcroix <sdelcroix@novell.com>
13502 * multiscalesubimage.cpp: fix the source uri in the subimage
13503 ctor. the source for the subimage is now parsed.
13505 2009-02-04 Alan McGovern <amcgovern@novell.com>
13515 * type-generated.cpp: Hook up the managed hittesting code to
13516 the native hit testing code.
13518 2009-02-04 Stephane Delcroix <sdelcroix@novell.com>
13520 * multiscaleimage.cpp: iterate the collection and not the GList
13523 2009-02-04 Stephane Delcroix <sdelcroix@novell.com>
13525 * multiscalesubimage.h|cpp:
13526 * deepzoomimagetilesource.cpp: add a uri parameter to MSISI ctor
13527 so we can compute the UriSource based on parent's one
13529 2009-02-04 Stephane Delcroix <sdelcroix@novell.com>
13531 * collection.cpp: MultiScaleSubImageCollection ctor
13533 2009-02-03 Larry Ewing <lewing@novell.com>
13535 * dirty.cpp (Surface::UpdateLayout): hack some sizing logic into
13536 the toplevel logic.
13538 * usercontrol.cpp: fix missing modification.
13540 2009-02-03 Larry Ewing <lewing@novell.com>
13542 * frameworkelement.cpp (FrameworkElement::Arrange): shrink the
13543 clip by the margin.
13545 2009-02-03 Geoff Norton <gnorton@novell.com>
13547 * frameworkelement.cpp (Arrange): If we have a negative margin,
13548 it moves our layout slot, instead of clipping it, as such we need
13549 to adjust the clipping path accordingly in these cases to accomodate
13552 2009-02-03 Jeffrey Stedfast <fejj@novell.com>
13554 * textbox.cpp (TextBoxView::ResetCursorBlink): We don't care about
13555 ReadOnly status afterall.
13556 (TextBoxView::OnModelChanged): Same.
13557 (TextBox::OnKeyDown): If we are ReadOnly, don't allow editing of
13560 * control.h: Control's default FontSize is 11, not 14.666 like
13563 2009-02-03 Larry Ewing <lewing@novell.com>
13565 * shape.cpp (Shape::ArrangeOverride): invalidate the path cache
13566 when we arrange. Fixes the rectangle bg on pdc.
13568 2009-02-03 Jeffrey Stedfast <fejj@novell.com>
13570 * textbox.cpp (TextBox::OnPropertyChanged): Set the default
13571 SelectionBackground and SelectionForeground brushes if
13572 SelectionLength gets to be >0.
13573 (TextBox::TextBox): Don't set them here. Initialize a new state
13574 variable, cursor_column to 0.
13575 (TextBox::CursorDown): Update cursor_column and fix some
13576 inconsistencies with Microsoft's logic. Renamed and c++'ified from
13578 (TextBox::CursorUp): Same idea here.
13579 (TextBox::CursorNextWord): Renamed/c++'ified from next_word().
13580 (TextBox::CursorPrevWord): Same idea.
13581 (TextBox::KeyPress*Down): Save/Restore cursor_column state after
13582 updating SelectionStart/Length properties.
13583 (TextBox::KeyPress*Up): Same.
13584 (TextBox::KeyPressHome): We can set cursor_column to 0 here.
13585 (TextBox::OnPropertyChanged): If Text, SelectedText,
13586 SelectionStart or SelectionLength chanegs, we need to reset
13587 cursor_column to -1 (aka "unknown").
13589 2009-02-03 Larry Ewing <lewing@novell.com>
13591 * grid.cpp (Grid::ArrangeOverride): remove a bunch of the old code
13592 and apply the finalsize adjustments to the existing values.
13593 Handle the empty row/col case specially.
13595 * usercontrol.cpp: revert accicdental diabling (for now).
13597 2009-02-03 Jeffrey Stedfast <fejj@novell.com>
13599 * textbox.cpp (TextBuffer::Replace): Do the right thing if length
13600 goes beyond the end of the buffer.
13601 (TextBuffer::Cut): Same.
13603 * layout.cpp (RenderSegment): Extend the selection line
13604 Silverlight's TextBox does if the selection crosses over the CRLF
13605 sequence at the end of a line.
13607 2009-02-03 Larry Ewing <lewing@novell.com>
13611 * frameworkelement.cpp: handle the specified size case as well.
13613 2009-02-03 Jb Evain <jbevain@novell.com>
13615 * xaml.cpp (PrimitiveNamespace::FindElement): correctly retrieve
13618 2009-02-03 Jeffrey Stedfast <fejj@novell.com>
13620 * textbox.cpp: Rewrote selection logic and vastly simplified
13621 cursor movement along the way.
13623 2009-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
13628 * dependencyproperty.h:
13629 * dependencyproperty.cpp: Remove the need for
13630 DependencyProperty to be a friend class of Type.
13632 2009-02-03 Stephane Delcroix <sdelcroix@novell.com>
13634 * multiscalesubimage.h: DefaultValues for DPs.
13636 2009-02-03 Stephane Delcroix <sdelcroix@novell.com>
13638 * deepzoomimagetilesource.h|cpp:
13639 * multiscaleimage.h|cpp:
13640 * multiscalesubimage.h|cpp: fill the subimages on MSI
13642 2009-02-03 Sebastien Pouliot <sebastien@ximian.com>
13644 * deployment.h: Don't use 'volatile' before glib 2.10 (e.g. sled10)
13645 because that was not part of the API before then (and it breaks
13648 2009-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
13652 * type.h.in: Type: don't make Types a friend class of Type.
13654 2009-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
13657 * animation.cpp: Remove animation_init, it's empty.
13659 * audio.cpp: We need to set the current deployment on the
13660 audio thread (but without touching mono at all).
13664 * type-generated.cpp:
13665 * dependencyproperty.g.cpp: Regenerated.
13667 * dependencyobject.h:
13668 * dependencyobject.cpp: Move object accounting and delayed
13669 unref handling to Deployment.
13671 * dependencyproperty.h: Remove DependencyProperty::Shutdown,
13674 * deployment.cpp: Add a SetCurrent overload which allows us
13675 to specify whether the current appdomain should be updated
13676 too. GetCurrent: Never access mono if the current domain is
13677 NULL. Move object tracking and delayed unrefs here.
13679 * deployment.h: Add a SetCurrent overload which allows us to
13680 specify whether the current appdomain should be updated
13681 too. Move object tracking and delayed unrefs here.
13683 * runtime.cpp: Move object tracking reports to Deployment.
13684 Remove unnecessary static init and shutdown methods.
13688 * type.h.in: Completely remove all static Type
13689 initialization, we now rely on the Types* on the current
13692 2009-02-03 Sebastien Pouliot <sebastien@ximian.com>
13694 * style.cpp: Remove extra logic and comment the main "bad" hack
13695 still required not to cause regressions. Affected test cases
13696 will marked as known issues until the XAML parser issue (which
13697 is adding elements to collections before setting their properties)
13700 2009-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
13702 * window-gtk.cpp: Add missing Deployment::SetCurrent calls.
13704 2009-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
13706 * namescope.cpp: NamScope::ObjectDestroyedEvent: upon object
13707 destruction the name might not be available anymore, so
13708 loop over the entire hash tables looking for the object to
13709 remove instead of trying to lookup with a null key. Fixes a
13710 crash while running moon-unit.
13712 2009-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
13714 * xaml.cpp: Use property accessors on Type instead of
13715 accessing the fields.
13717 2009-02-03 Stephane Delcroix <sdelcroix@novell.com>
13720 * runtime.h|runtime.cpp: new LOG_MSI macro.
13722 2009-02-03 Fernando Herrera <fherrera@novell.com>
13725 * runtime.h: Move moonlight_flags and runtime_flags to 64bits
13726 as we reached the 32bits limit for debug.
13728 2009-02-03 Stephane Delcroix <sdelcroix@novell.com>
13730 * deepzoomimagetilesource.h|cpp: Parse Collections.
13732 2009-02-03 Stephane Delcroix <sdelcroix@novell.com>
13734 * deepzoomimagetilesource.h|cpp: data structures to parse
13735 DZ images with subimages. Move the common parts of both ctors
13738 2009-02-03 Stephane Delcroix <sdelcroix@novell.com>
13741 * deepzoomimagetilesource.h|cpp: fix some compilation warning, move
13742 some methods and fields to the private section.
13744 2009-02-03 Stephane Delcroix <sdelcroix@novell.com>
13746 * multiscalesubimage.h|cpp: re-use the tilesource to parse subimages
13748 2009-02-02 Chris Toshok <toshok@ximian.com>
13750 * popup.h, popup.cpp: this inherits from FrameworkElement, not
13753 * dependencyobject.cpp (dispose_value): this method is doing *way*
13754 too much. we can't just blindly dispose of our values. they
13755 could be shared across multiple elements. don't even unref them
13756 here, as deleting the value does that.
13758 * type-generated.cpp: regen.
13760 2009-02-02 Larry Ewing <lewing@novell.com>
13762 * mediaelement.cpp:
13763 * media.cpp (Image::UpdateSize): update horrible hacks that are
13764 used when we are part of canvas until they can be removed
13767 2009-02-02 Larry Ewing <lewing@novell.com>
13769 2009-02-02 Chris Toshok <toshok@ximian.com>
13771 * enums.cpp (keyboard_navigation_mode_map): add
13772 (initialize_enums): add TabNavigation property handling, mapping
13773 to keyboard_navigation_mode_map.
13775 2009-02-02 Geoff Norton <gnorton@novell.com>
13778 * xaml.cpp: Inject ImageSource underneath BitmapImage so that
13779 custom xaml that attaches a ImageSource can work. Every
13780 ImageSource is a BitmapImage in SL2
13781 * type-generated.cpp:
13785 2009-02-02 Larry Ewing <lewing@novell.com>
13789 * frameworkelement.cpp (FrameworkElement::ArrangeOverride): only
13790 stretch back out to finalsize in the stretch case.
13792 2009-02-02 Jeffrey Stedfast <fejj@novell.com>
13794 * layout.cpp (TextRun): 'crlf' is now a short rather than a 2-bit
13795 int because, duh, the range is -2 to 1, not 0 to 3 and so
13796 TextLine::crlf was being set to -2 instead of 2.
13797 (TextLayout::GetCursor): A minor tweak to get things to work if
13798 the cursor is right after the last char which is a \r.
13800 * textbox.cpp (TextBuffer::Cut): Fixed, this was totally broken
13802 (move_down): Need to use a loop when advancing back to the
13803 previous column so we don't go beyond EOL.
13804 (move_up): Same, but more fixes as well.
13806 2009-02-02 Jeffrey Stedfast <fejj@novell.com>
13808 * textbox.cpp: Moved all event handling back to TextBox since
13809 that's the focusable element.
13811 * runtime.cpp (Surface::HandleMouseEvent): Loop until we find the
13812 first Control subclass that we can focus.
13814 2009-02-02 Sebastien Pouliot <sebastien@ximian.com>
13816 * dependencyproperty.g.cpp:Regenerated
13817 * style.cpp|h: Use validators on Setter instead of overriding
13818 SetValueWithErrorImpl on SetterBase
13819 * validators.cpp|h: Addvalidator for checking sealed Setter
13821 2009-02-02 Larry Ewing <lewing@novell.com>
13823 * border.cpp (Border::Render): don't fill the whole are with the
13824 border brush only fill the BorderThickness.
13826 2009-02-02 Larry Ewing <lewing@novell.com>
13828 * textbox.cpp, textbox.h: first pass at implementing arrange and
13831 * text.cpp: request with padding too.
13833 2009-02-02 Chris Toshok <toshok@ximian.com>
13835 * textbox.h (class TextBox): store the contentElement as an
13836 instance field so we can update it in OnPropertyChanged.
13838 * textbox.cpp (TextBox::OnApplyTemplate): this is seriously
13839 disgusting, and *SHOULD* be handled in the textbox template, but
13840 we can't handle it in ours in case people replace it. if the
13841 ContentElement template child has DP's named
13842 VerticalScrollBarVisibility and HorizontalScrollBarVisibility, set
13843 them based on the value of ours.
13844 (TextBox::OnPropertyChanged): handle property changes on our
13845 VerticalScrollBarVisibility/HorizontalScrollBarVisibility
13846 properties by proxying them to our contentElement.
13848 2009-02-02 Alan McGovern <amcgovern@novell.com>
13851 * bitmapimage.cpp: Image.Source defaults to a BitmapImage
13852 with a uri of string.empty.
13854 2009-02-02 Chris Toshok <toshok@ximian.com>
13856 * rect.h (struct Rect): we can be Grown by a negative amount. make
13857 sure we don't drop below 0 on width/height, since everything blows
13860 2009-02-02 Alan McGovern <amcgovern@novell.com>
13863 * dependencyproperty.g.cpp: The default value for
13864 Bitmap.ImageSource is an empty string.
13866 2009-02-02 Jeffrey Stedfast <fejj@novell.com>
13868 * textbox.cpp (TextBox::OnPropertyChanged): Emit ModelChanged
13869 events when the selection or text changes. TextBoxView cannot
13870 depend on getting those events if things are changed
13872 (TextBox::KeyPressThaw): Don't ever bother with emitting
13873 ModelChanged events here, they'll be emitted in
13874 OnPropertyChanged(), now.
13875 (TextBoxView): We no longer listen to TextChanged or
13876 SelectionChanged events.
13877 (TextBoxView::ResetCursorBlink): New method to do all of the
13878 proper state checking to see if the cursor should be rendered
13879 which calls the appropriate Begin/Delay/EndCursorBlink() method.
13880 (TextBoxView::OnModelChanged): Updated to handle Text and
13881 Selection changes. Dropped CursorPosition because it is no longer
13883 (TextBoxView::OnFocusIn): Set focused to true before calling
13884 ResetCursorBlink().
13885 (append_runs): Don't forget to append the LineBreak to the Runs
13887 (TextBoxView::SetTextBox): Need to sync some additional state.
13889 2009-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
13891 * runtime.cpp: ~Surface: don't call DrainUnrefs, we might
13892 already be in one, and DrainUnrefs isn't recursive anymore.
13894 2009-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
13896 * src.mdp: Updated to use new MD features (ChangeLog and log
13899 2009-02-02 Stephane Delcroix <sdelcroix@novell.com>
13901 * deepzoomimagetilesource.h|cpp: add a parsed_callback.
13902 * multiscaleimage.cpp: re-render on parsed_cb, starting rendering
13905 2009-02-02 Stephane Delcroix <sdelcroix@novell.com>
13907 * deepzoomimagetilesource.h|cpp: parse DisplayRects, returns NULL
13908 in GetTileLayer for missing tiles.
13910 2009-02-02 Stephane Delcroix <sdelcroix@novell.com>
13912 * multiscaleimage.cpp: render lower layer if the current layer
13913 contains NULL tiles.
13915 2009-02-02 Chris Toshok <toshok@ximian.com>
13917 * frameworkelement.cpp (FrameworkElement::ArrangeOverride):
13918 correct apparent c&p error.
13920 2009-02-01 Larry Ewing <lewing@novell.com>
13922 * control.cpp, control.h:
13923 * usercontrol.cpp, usercontrol.h: move ArrangeOverride and
13924 MeasureOverride here from control where they are only used for
13927 2009-02-01 Larry Ewing <lewing@novell.com>
13929 * thickness.cpp (Thickness::FromStr):
13930 * cornerradius.cpp (CornerRadius::FromStr): don't pass a max value
13931 that will cause the rest to be filled with 0. Fixes parsing of
13932 single value entries.
13934 * frameworkelement.cpp: arrange based on the adjusted rect.
13936 2009-02-01 Chris Toshok <toshok@ximian.com>
13938 * contentcontrol.cpp (ContentControl::OnPropertyChanged): remove
13939 the ApplyTemplate gunk here, as the template doesn't change when
13940 our content does - the ContentPresenter in our control template
13941 will changed based on our content.
13943 * xaml.cpp (dependency_object_set_attributes):
13944 handle_xaml_markup_extension has three possible return states.
13945 "Need SetValue", "Don't SetValue", and "Error". the bool return
13946 value is the first two (true == need_setvalue), and p->error_args
13947 determines the last one.
13948 (handle_xaml_markup_extension): add a comment detailing the
13949 need_setvalue return value, and make the return values consistent.
13950 TemplateBindings are weird in that they don't (for now) set a
13951 value, but require that we don't continue on with the set value
13952 machinery in dependency_object_set_attributes.
13954 Also, the TemplateBinding handling in the case of
13955 Property1={TemplateBinding Property2} was attaching things such
13956 that updates to source.Property1 would update target.Property2.
13957 This is exactly backward - it should have been source.Property2 =>
13958 target.Property1. We got lucky in a vast number of instances
13959 because the property names were the same.
13961 2009-02-01 Sebastien Pouliot <sebastien@ximian.com>
13963 * style.cpp: Revert first part (always seal) of last patch due to
13966 2009-02-01 Sebastien Pouliot <sebastien@ximian.com>
13968 * style.cpp: Always seal setters when added to collection (unit
13969 tested) and unrelated to style (which may not be assigned, SIGSEGV)
13971 2009-01-31 Geoff Norton <gnorton@novell.com>
13973 * animation.cpp: Its possible for a Storyboard to have TargetName
13974 and TargetProperty set, but be unresolvable, and still use a parent
13975 manual target (See Axelerate3D).
13977 2009-01-31 Chris Toshok <toshok@ximian.com>
13979 * collection.h, collection.cpp (class UIElementCollection):
13980 UIElements can be reparented logical parent-wise, but can't have
13981 more than one *visual* parent.
13983 2009-01-31 Larry Ewing <lewing@novell.com>
13987 * frameworkelement.cpp: rather than trying to fix the rendering
13988 fix the layout_xform to handle margins automatically.
13990 2009-01-31 Larry Ewing <lewing@novell.com>
13992 * border.cpp (Border::Render): try to match the interior
13993 CornerRound behavior a littler closer.
13995 2009-01-31 Larry Ewing <lewing@novell.com>
13997 * rect.cpp (Rect::Draw): fix typo in rect drawing.
13999 2009-01-31 Larry Ewing <lewing@novell.com>
14001 * cornerradius.h: add == and != overloads.
14003 * uielement.cpp: don't include the layout clip if we are
14004 tranforming the bounds. The layout clip only applies to local
14007 * border.cpp: restore the graphics context after clipping.
14009 2009-01-31 Larry Ewing <lewing@novell.com>
14011 * rect.cpp, rect.h: move the rounded drawing here for now until
14012 there is a better place.
14014 * border.cpp: start drawing the borderbrush and using border
14017 2009-01-31 Larry Ewing <lewing@novell.com>
14019 control.cpp: fix arranged size with border thickness or padding.
14021 border.cpp: fix arranged size with border thickness or
14022 padding. fix rendering with margins.
14024 panel.cpp: fix rendering with a margin.
14026 2009-01-31 Larry Ewing <lewing@novell.com>
14028 * border.cpp (Border::Render): add corner radius rendering logic
14031 2009-01-31 Stephane Delcroix <sdelcroix@novell.com>
14033 * multiscaleimage.h|cpp: ensure there's only one downloader running,
14034 fixes the issue where wrong images were cached.
14036 2009-01-31 Sebastien Pouliot <sebastien@ximian.com>
14038 * contentcontrol.h: Add @CallInitialize so the event gets
14039 registred (in the managed side) and we can now track content
14042 2009-01-30 Geoff Norton <gnorton@novell.com>
14044 * textbox.cpp: FontFamily is now a FontFamily not a string.
14046 2009-01-30 Chris Toshok <toshok@ximian.com>
14048 * xaml.cpp: fix ResourceDictionary once and for all.
14050 2009-01-30 Geoff Norton <gnorton@novell.com>
14052 * deployment.cpp|h: Ensure that any downloaders that might
14053 call back into managed land are aborted before we throw out the
14055 * downloader.cpp|h: Add a nice interface to DownloaderRequest
14056 and DownloaderResponse to save some code duplication in deployment
14058 2009-01-30 Geoff Norton <gnorton@novell.com>
14060 * mediaelement.cpp: If we finish downloading before we can
14061 fill the buffer, we still need to emit this event.
14063 2009-01-30 Chris Toshok <toshok@ximian.com>
14065 * usercontrol.h (class UserControl): make managed access to
14066 ContentProperty protected internal, not just protected.
14068 * dependencyobject.h (class DependencyObject): generate a
14069 cbinding/pinvoke for SetLogicalParent.
14071 * cbinding.h, cbinding.cpp: regen.
14073 2009-01-30 Jeffrey Stedfast <fejj@novell.com>
14075 * textbox.cpp (TextBox::KeyPressUnichar): Fixed to update
14076 SelectionStart/Length.
14078 2009-01-30 Geoff Norton <gnorton@novell.com>
14080 * runtime.cpp: Let managed code change the fullscreen state.
14081 * cbinding.cpp|h: Regenerate
14083 2009-01-30 Chris Toshok <toshok@ximian.com>
14085 * xaml.cpp (dependency_object_set_property): remove the ugly
14086 assumption - we know if the property type is managed now.
14088 2009-01-30 Jeffrey Stedfast <fejj@novell.com>
14090 * textbox.cpp (TextBox::KeyPress<key>): Update an internal 'emit'
14091 state rather than returning a changed mask. Also modified to treat
14092 selection.start as the cursor position when selection.length is
14093 0. Otherwise refer to the cursor state to figure out which end of
14094 the selection the cursor is at (for growing/shrinking).
14095 (TextBox::KeyPressFreeze): Reset 'emit' state.
14096 (TextBox::KeyPressThaw): Sync and then emit our changed events.
14097 (TextBox::OnPropertyChanged): Updated for ClearSelection() API
14099 (TextBox::ClearSelection): Now takes a 'start' argument to set
14100 SelectionStart to (e.g. cursor position).
14101 (TextBox::Select): Now longer needs to do a freeze/thaw.
14102 (TextBoxView::OnKeyDown): Updated.
14104 2009-01-30 Chris Toshok <toshok@ximian.com>
14106 * control.h, control.cpp: same story with InsideObject.
14108 2009-01-30 Chris Toshok <toshok@ximian.com>
14110 * control.h, control.cpp: remove Control::Render. handling of the
14111 background property is left to a templatebinding in the visual
14112 tree of the applied template.
14114 2009-01-30 Chris Toshok <toshok@ximian.com>
14116 * provider.cpp (StylePropertyValueProvider::SealStyle): call
14117 ProviderValueChanged on all values in the style so the object can
14118 do things with them.
14120 * frameworkelement.cpp (FrameworkElement::OnPropertyChanged): add
14121 a comment about SealStyle calling ProviderValueChanged.
14123 2009-01-30 Chris Toshok <toshok@ximian.com>
14125 * xaml.cpp: when parsing multiple buffers (as we do when hydrating
14126 from a template), we need to keep track of the total offset from
14127 the start of all buffers, since XML_GetCurrentByteIndex returns a
14128 value with that range, it's not the byte index into the current
14129 buffer (unless there's only 1). Fixes templates stored inside of
14132 2009-01-30 Andreia Gaita <avidigal@novell.com>
14134 * clock.cpp: no use stopping if it's already stopped
14136 2009-01-30 Andreia Gaita <avidigal@novell.com>
14138 * clock.cpp: reset the state flags as well
14140 2009-01-30 Larry Ewing <lewing@novell.com>
14142 * text.cpp (TextBlock::Render): Start taking padding into account
14143 and limit the max size to actual not to the arranged value.
14145 2009-01-30 Jeffrey Stedfast <fejj@novell.com>
14147 * textbox.h (TextBox::GetCursor): Cursor position is aka
14150 * textbox.cpp (TextBox::Freeze): Renamed from PreKeyPress().
14151 (TextBox::Thaw): Decrement freeze count and emit events when we
14153 (TextBox::OnPropertyChanged): When SelectionStartProperty or
14154 SelectionLengthProperty change, call SyncSelectedText(). Fixed the
14155 selection.start/cursor positioning logic when TextProperty or
14156 SelectedTextProperty changes.
14157 (TextBoxView::OnKeyDown): Updated to sue the new Freeze()/Thaw()
14160 2009-01-30 Larry Ewing <lewing@novell.com>
14162 * grid.cpp (Grid::ArrangeOverride): fix the minimum measure size
14165 2009-01-30 Sebastien Pouliot <sebastien@ximian.com>
14167 * frameworkelement.cpp: Make sure bounds_with_children is always
14168 initialized before being used.
14170 2009-01-30 Geoff Norton <gnorton@novell.com>
14172 * mediaelement.cpp: Emit MediaOpenedEvent as soon as we've opened the
14173 media. Fixes the thumber moving on PDC player.
14175 2009-01-30 Jackson Harper <jackson@ximian.com>
14177 * xaml.cpp: Fixup logic for setting both Key and Name, I was wrong
14178 about them being legal if they are equal.
14180 2009-01-30 Larry Ewing <lewing@novell.com>
14182 * grid.cpp (Grid::ArrangeOverride): hack around spans in
14183 rebuilding the table until we understand them better.
14185 2009-01-30 Larry Ewing <lewing@novell.com>
14187 * frameworkelement.cpp:
14189 * control.cpp (Control::ArrangeOverride): use alignment properly
14190 in these places as well
14192 2009-01-30 Larry Ewing <lewing@novell.com>
14194 * frameworkelement.cpp (FrameworkElement::Arrange): don't modify
14195 the alignment here.
14197 2009-01-30 Stephane Delcroix <sdelcroix@novell.com>
14199 * multiscaleimage.cpp: load png too
14201 2009-01-30 Stephane Delcroix <sdelcroix@novell.com>
14203 * multiscaleimage.cpp: change the vporigin to relative coords
14205 2009-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
14207 * dependencyobject.cpp: EventObject::unref: don't try to get the
14208 typename if there's no deployment around.
14210 * pipeline.cpp: Media::Shutdown: set the current deployment before
14211 looping over each media.
14213 2009-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
14215 * deployment.cpp: Remove dead code.
14217 2009-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
14219 * downloader.cpp: Downloader::Write: update current deployment.
14221 2009-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
14228 * mediaelement.cpp:
14229 * pipeline-asf.cpp:
14230 * mms-downloader.cpp:
14231 * pipeline-ffmpeg.cpp: %llu => G_UINT64_FORMAT.
14233 2009-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
14235 * deployment.cpp: Comment out log spammer.
14237 * runtime.cpp: Add some sanity checks.
14239 * dependencyobject.cpp: Set current deployment for delayed unrefs too.
14241 2009-01-30 Stephane Delcroix <sdelcroix@novell.com>
14243 * deepzoomimagetilesource.cpp: normalize ViewportWidth
14245 2009-01-30 Sebastien Pouliot <sebastien@ximian.com>
14247 * cbinding.cpp|h: Regenerated
14248 * geometry.h: Get bindings/pinvoke on Geometry::GetBounds
14249 * rect.h: Add new ctor so the generator code can work
14251 2009-01-30 Stephane Delcroix <sdelcroix@novell.com>
14253 * tilesource.h|cpp:
14254 * deepzoomimagetilesource.h|cpp:
14255 * multiscaleimage.cpp: as we can't assume there's a managed DZITS,
14256 implement the DZ parser in native code.
14258 2009-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
14260 * mediaplayer.cpp: MediaPlayer: Set object type correctly.
14262 2009-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
14264 * deployment.cpp: Allow setting the current deployment to NULL.
14266 2009-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
14268 * mediaelement.cpp: Handle MediaElementStateIndividualizing and
14269 AcquiringLicense in all switch statements to fix gcc warnings.
14271 2009-01-30 Geoff Norton <gnorton@novell.com>
14273 * debug.cpp: Use the proper headers here, we need them anyways.
14274 * window.h: Store the deployment we were created in.
14275 * window-gtk.cpp: Ensure we set our deployment before starting
14276 to call into our heirarchy.
14278 2009-01-30 Jb Evain <jbevain@novell.com>
14280 * deployment.h: make Deployment::Surface DP internal.
14282 2009-01-29 Geoff Norton <gnorton@novell.com>
14284 * deployment.h: Surface is now a DP on the deployment so we
14285 can share it with managed.
14286 * dependencyproperty.g.cpp: Regen
14287 * clock.cpp: Get the surface of the Deployment we're in so that
14288 clocks from Dispatcher timer end up on the right surface.
14290 2009-01-29 Geoff Norton <gnorton@novell.com>
14292 * deployment.cpp: Trust the domain over the TLS slot since mono
14293 will switch that on us on any thread really.
14295 2009-01-29 Geoff Norton <gnorton@novell.com>
14297 * clock.cpp|h: Ensure that we set the correct deployment from the
14298 clock ticks before traversing back into our heirarchy.
14300 2009-01-29 Jackson Harper <jackson@ximian.com>
14302 * xaml.cpp: Add support for the primitive types in mscorlib. This
14303 will get properly formed strings, doubles, and int32s working for
14304 now, we don't handle the oddities of the SL parsing properly yet
14307 2009-01-29 Jackson Harper <jackson@ximian.com>
14309 * type-generated.cpp: regen
14311 2009-01-29 Larry Ewing <lewing@novell.com>
14313 * frameworkelement.cpp (FrameworkElement::Arrange): unref the clip
14316 * grid.cpp: unref the dummy columns we create here.
14318 2009-01-29 Jeffrey Stedfast <fejj@novell.com>
14320 * textbox.cpp (TextBoxView::ArrangeOverride): Removed.
14322 * textbox.h: Shuffle some internal accessors/events around.
14324 2009-01-29 Larry Ewing <lewing@novell.com>
14326 * text.cpp, text.h: implement basic layout size rules and strip
14327 the custom actual* properties. Still a hack but passable for now.
14331 2009-01-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
14334 * runtime.cpp: Surface: Implement Dispose and call Dispose on the
14335 toplevel object. PaintToDrawable: Update current deployment.
14337 2009-01-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
14339 * uielement.cpp: Dispose: add a null-check, and only walk the visual
14340 tree if we haven't been disposed already.
14342 2009-01-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
14345 * namescope.cpp: Namespace: Implement Dispose and remove all entries
14346 from our names hash table there.
14348 2009-01-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
14350 * xaml.cpp: XamlLoader::CreateFromFile: Add a ref to avoid a crash later
14351 on upon destruction.
14353 2009-01-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
14355 * dependencyobject.h:
14356 * dependencyobject.cpp: EventObject: Added SetCurrentDeployment: updates
14357 Deployment::Current. Emit DestroyedEvent in Dispose instead of the
14360 2009-01-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
14363 * mediaelement.cpp: Implement Dispose and put most of the cleanup there
14364 instead of in the dtor. media_element_advance_frame: we need to set
14365 the current deployment here.
14367 2009-01-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
14369 * collection.cpp: Collection::Dispose: Post-chain Dispose instead of
14370 pre-chain. Set array's size to 0 after deleting all the values.
14372 * pipeline.cpp: Post-chain Dispose instead of pre-chain. Since there's
14373 one media thread per Media object, there's no need to set the current
14374 deployment for each work node, just set it at thread start.
14375 MediaClosure::SetContext: fix refcounting bug.
14377 * pipeline-asf.cpp: Post-chain Dispose instead of pre-chain.
14379 2009-01-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
14382 * deployment.cpp: Deployment: Enable support managed stackframes after
14383 initializing mono. Implement Dispose, and upon destruction set
14384 current application to NULL.
14386 2009-01-29 Stephane Delcroix <sdelcroix@novell.com>
14388 * tilesource.h|cpp: image size is long
14390 2009-01-29 Stephane Delcroix <sdelcroix@novell.com>
14392 * deepzoomimagetilesource.cpp: set the callback to NULL in ctor
14394 2009-01-29 Stephane Delcroix <sdelcroix@novell.com>
14396 * multiscaleimage.cpp: ElementToLogicalPoint, ZoomAboutLogicalPoint:
14397 logical is [0,1],[0,1]
14399 2009-01-28 Larry Ewing <lewing@novell.com>
14401 * frameworkelement.cpp (FrameworkElement::MeasureOverride):
14402 it might help to actually measure things, so do that... *sigh*
14404 2009-01-28 Larry Ewing <lewing@novell.com>
14406 * shape.cpp (Shape::ComputeStretchBounds): remove the old
14407 width/height short circuiting when one or the other of
14408 width/height was not set simply use the lyaout clip when it is
14409 around. Might need a little more work but it is definitely
14412 2009-01-28 Larry Ewing <lewing@novell.com>
14414 * frameworkelement.cpp, frameworkelement.h: layout and arrange
14415 children if there are any. set IsLayoutContainer to true if we
14418 2009-01-28 Larry Ewing <lewing@novell.com>
14420 * frameworkelement.cpp (FrameworkElement::HitTest): move the
14421 majority of the hit test logic here. Now we only walk the
14422 children once and we only call InsideObject when we must.
14423 InsideObject now only checks the local object subtree is handled
14426 * panel.cpp, panel.h:
14427 * control.cpp, control.h:
14428 * border.cpp, border.h:
14429 * text.cpp, text.h: remove the old HitTest and rework InsideObject
14432 * uielement.cpp: make InsideClip potentially a little faster.
14434 2009-01-28 Larry Ewing <lewing@novell.com>
14436 * uielement.cpp (UIElement::OnPropertyChanged): invalidate measure
14441 * canvas.cpp: skip invisible elements.
14443 2009-01-28 Jeffrey Stedfast <fejj@novell.com>
14445 * textbox.cpp (TextBoxView::Layout): We need to break the text
14446 apart by lines so that the TextLayout engine can handle them
14449 * layout.cpp (TextLayout::LayoutWrapWithOverflow): Copy run->crlf
14450 over to line->crlf for each LineBreak.
14451 (TextLayout::GetCursor): Need to keep track of the line-ending
14452 character sequences as well.
14454 * layout.h (TextRun::IsLineBreak): New method to check if the run
14455 represents a LineBreak, cleaner than manually checking for text ==
14457 (TextRun::ctor): LineBreak version now takes a crlf argument to
14458 specify which line ending sequence it is.
14460 2009-01-28 Jeffrey Stedfast <fejj@novell.com>
14462 * textbox.cpp (move_down): Fixed to handle any line-ending.
14466 (TextBox::KeyPressBackSpace): Handle backspacing over any eoln
14468 (TextBox::KeyPressDelete): Same.
14469 (TextBox::KeyPressHome): Same.
14470 (TextBox::KeyPressEnd): Same.
14471 (TextBox::KeyPressRight): Same.
14472 (TextBox::KeyPressLeft): Same.
14473 (TextBoxView::OnKeyDown): Hitting Enter in a Silverlight TextBox
14474 inserts a \r character, not a \n, nor a \r\n.
14476 * text.cpp (TextBlock::Layout): Handle \r and \r\n as line-ending
14478 (TextBlock::SetTextInternal): Canonicalize line endings in our
14481 * layout.cpp (TextRun::TextRun): Don't worry about line endings...
14483 2009-01-28 Jackson Harper <jackson@ximian.com>
14485 * xaml.cpp: Fix logic for setting name and key on
14486 storyboards. Rules are:
14487 1. You can set both if you set the name before the key
14488 2. You can set both if both values are equal
14490 2009-01-28 Chris Toshok <toshok@ximian.com>
14492 * style.cpp (SetterBaseCollection::AddedToCollection): chain up to
14493 DependencyObjectCollection::AddedToCollection.
14494 (SetterBaseCollection::RemovedFromCollection): chain up to
14495 DependencyObjectCollection::RemovedFromCollection.
14497 2009-01-28 Sebastien Pouliot <sebastien@ximian.com>
14499 * dependencyproperty.g.cpp: Regenerated
14500 * enums.cpp|h: Add MediaElementState
14501 * playlist.cpp: Use new MediaElementState enum
14502 * mediaelement.cpp|h: Use new MediaElementState enum
14504 2009-01-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14506 * dependencyobject.cpp: ~EventObject: only inc objects_destroyed once.
14508 2009-01-27 Larry Ewing <lewing@novell.com>
14510 * grid.cpp: limit the reduction in size to zero.
14512 2009-01-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14515 * dependencyobject.cpp: Fix building with object tracking.
14517 2009-01-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14519 * debug.h: Surround logging macros with #if LOGGING instead of #if
14522 2009-01-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14524 * dependencyobject.cpp: Move the OBJECT_TRACK macro here from the
14525 header, it's not used anywhere but in this file.
14527 * dependencyobject.h: Remove OBJECT_TRACKING from here, it's done at
14528 configure time now.
14530 2009-01-28 Jeffrey Stedfast <fejj@novell.com>
14532 * textbox.cpp (TextBoxView::OnModelChanged): Handle updates to
14534 (TextBox::OnPropertyChanged): Emit ReadOnly model-changed event.
14536 2009-01-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14538 * uielement.h: Make Dispose public.
14540 2009-01-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14542 * codec-version.h.in:
14543 * dependencyobject.h:
14544 * dependencyobject.cpp: EventObject: Make the flags field an gint32
14545 field (to keep size consistent), put the flags at the upper bits and
14546 use the remaining lower bits for the object id. This requires a codec
14549 2009-01-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14551 * dependencyobject.cpp: Use bitfields correctly.
14553 2009-01-28 Sebastien Pouliot <sebastien@ximian.com>
14555 * text.cpp: FontFamily can be NULL so we can't just access its
14556 source field without a check. Fix SIGSEGV when running moon-unit.
14557 * value.cpp: FontFamily is not a (managed) struct so it can have
14558 a NULL value. Fix SIGSEGV when creating a Value out of a NULL
14559 FontFamily in moon-unit.
14561 2009-01-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14564 * type-generated.cpp: Regenerated.
14566 2009-01-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14572 * type-generated.cpp: Regenerated.
14574 2009-01-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14580 * audio-pulse.cpp: Don't register any audio threads, they may interact
14581 badly with the gc and deadlock. Audio threads shouldn't be doing
14582 anything which requires the current deployment to be set anyway.
14584 2009-01-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14587 * pipeline.cpp: AudioStream: call SetObjectType.
14589 2009-01-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14591 * dependencyobject.h:
14592 * dependencyobject.cpp: Add an EventObject ctor overload which takes a
14593 Type::Kind. In EventObject::ref don't warn about inexistent
14594 deployments for audio objects.
14596 2009-01-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14598 * dependencyobject.cpp: EventObject::GetDeployment: Fix warning.
14600 2009-01-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14606 * audio-pulse.cpp: Every AudioSource already has deployment set (since
14607 they inherit from EventObject), use that to set the current
14610 2009-01-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14612 * src.mdp: Updated.
14614 2009-01-27 Chris Toshok <toshok@ximian.com>
14616 * pipeline.cpp: include codec-version.h
14618 * pipeline-ui.cpp: same.
14620 * pipeline.h: remove the MOONLIGHT_CODEC_ABI_VERSION #define from
14623 * codec-version.h.in: new file. update the
14624 MOONLIGHT_CODEC_ABI_VERSION #define here when things change.
14626 2009-01-27 Larry Ewing <lewing@novell.com>
14628 * mediaelement.cpp (MediaElement::MeasureOverride): correct
14631 2009-01-27 Larry Ewing <lewing@novell.com>
14633 * frameworkelement.cpp, frameworkelement.h: move generic
14634 bounds_with_children computation here for now. Make
14635 GetSubtreeBounds return bounds or bounds_with_children based on
14636 having children. Start setting the layout clip in arrange (it will
14637 probably move later). Rework the layout_xform logic slightly.
14639 * uielement.cpp: remove the generic render warning, it is ok not
14640 to override here if there is nothing local you need to draw. When
14641 intersecting bounds with the clip path take the layout clip into
14644 * text.cpp: update for bounds changes. Don't recompute the
14645 natural bounds every pass.
14647 * mediaelement.cpp, mediaelement.h:
14648 * media.cpp, media.h: rework arrange and measure to match shape.
14649 Remove overridden bounds logic since it is no longer needed. Only
14650 use the odd width/height setting logic when we aren're part of a
14651 layout tree. Use the layout clip when drawing.
14653 * shape.cpp: clean up the bounds logic. Use the layout clip when
14656 * control.cpp, control.h:
14657 * border.cpp, border.h: use the layout clip when rendering, remove
14658 overrides for bounds now that fe handles them.
14661 2009-01-27 Chris Toshok <toshok@ximian.com>
14663 * Makefile.am (libmoon_include_headers): add fontfamily.h
14665 * fontfamily.h: add struct.
14667 * control.h, text.h: FontFamilyProperty is of type FontFamily now.
14669 * text.cpp: FontFamilyProperty is a FontFamily struct now, not a
14672 * value.cpp: add FontFamily logic, and remove FONTFAMILY from the
14675 * value.h.in (struct Value): add FontFamily and guint32 cases.
14677 * xaml.cpp (value_from_str): add case for FONTFAMILY.
14679 * value.h, type-generated.cpp, dependencyproperty.g.cpp: regen.
14681 2009-01-27 Geoff Norton <gnorton@novell.com>
14683 * audio-pulse.cpp|h: Use the Deployment sourced from the player
14684 * dependencyobject.cpp: Fix the warning to not use triple not
14686 * deployment.cpp: If we find the deployment from the domain,
14687 put it in the tls slot to make future lookups use the fast-path.
14689 2009-01-27 Jeffrey Stedfast <fejj@novell.com>
14691 * textbox.cpp (TextBox::TextBox): Don't connect to KeyDown/Up
14692 events anymore. Instead of having a bool 'emit' flag, use
14693 something closer to gtk's freeze_count.
14694 (TextBox::OnKeyDown): Moved to TextBoxView.
14695 (TextBox::OnKeyUp): Same.
14696 (TextBox::SelectAll): Now returns bool to specify if the selection
14698 (TextBox::PreKeyPress): Freeze event emission for our state
14700 (TextBox::PostKeyPress): Thaw them and emit the events.
14701 (TextBoxView::OnKeyDown): Before processing the KeyEvent, call
14702 textbox->PreKeyPress() and after processing, call
14703 textbox->PostKeyPress().
14705 2009-01-27 Jackson Harper <jackson@ximian.com>
14707 * value.cpp: unmarshall fonts properly.
14709 2009-01-27 Geoff Norton <gnorton@novell.com>
14711 * dependencyobject.cpp|h:
14712 * mediaplayer.cpp: Remove the stupidity from my last commit.
14713 * audio.cpp: We're in the right thread and Deployment here, use
14714 Deployment::GetCurrent().
14716 2009-01-27 Geoff Norton <gnorton@novell.com>
14718 * dependencyobject.cpp|h: Add a SetDeployment() call to lazy set
14719 the deployment on a EO.
14720 * deployment.cpp: Add some more logging.
14721 * mediaplayer.cpp: Inherit our Deployment from the MediaElement
14724 2009-01-27 Geoff Norton <gnorton@novell.com>
14727 * audio-pulse.cpp: Register the worker-thread's with mono and set our
14728 deployment correctly.
14729 * audio.cpp|h: Inherit the deployment from the MediaPlayer and keep it
14730 around so that our audio-players can register the thread with mono.
14732 2009-01-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
14734 * pipeline.cpp: WorkerLoop: set the current deployment for every work
14738 * deployment.cpp: Add RegisterThread.
14740 2009-01-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
14742 * deployment.cpp: Deployment: Add some logging, fix indentation and call
14743 the DependencyObject ctor which takes a Deployment instead of the
14746 2009-01-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
14748 * dependencyobject.h:
14749 * dependencyobject.cpp: Add EventObject and DependencyObject ctors which
14750 take a Deployment*, and an Initialize method which is called by both
14751 ctors of each type.
14753 2009-01-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
14755 * deployment.h: Initialize doesn't need cbinding/pinvoke.
14757 2009-01-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
14759 * debug.h: Add LOG_DEPLOYMENT.
14762 * runtime.cpp: Add LOG_DEPLOYMENT. Call Deployment::Initialize in
14765 2009-01-27 Geoff Norton <gnorton@novell.com>
14767 * deployment.cpp|h: Lock our access to the hash. Remove a SetCurrent()
14768 instance since its just sugar and cant be bound anyways.
14770 2009-01-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
14772 * dependencyobject.h:
14773 * dependencyobject.cpp: Move ref to cpp file and add some sanity checks.
14775 2009-01-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
14777 * dependencyobject.h:
14778 * dependencyobject.cpp: Add Deployment* and flags fields on EventObject.
14780 2009-01-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
14782 * collection.cpp: Collection::Dispose: Call base class Dispose too.
14784 2009-01-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
14826 * contentcontrol.h:
14827 * multiscaleimage.h:
14828 * dependencyobject.h:
14829 * type-generated.cpp:
14830 * frameworkelement.h:
14831 * multiscalesubimage.h:
14832 * deepzoomimagetilesource.h: Include all types derived from EventObject
14833 in the type system and remove the IncludeInKinds annotations from
14836 2009-01-27 Chris Toshok <toshok@ximian.com>
14838 * xaml.cpp (XamlElementInstanceManaged::TrySetContentProperty):
14839 add the "XamlElementInstance* value" overload. part of axelerate
14841 (XamlElementInfoManaged::GetContentProperty): pass
14842 obj->AsDependencyObject() to GetContentPropertyName, instead of
14843 obj (which is a Value*).
14845 2009-01-26 Chris Toshok <toshok@ximian.com>
14847 * xaml.cpp (XNamespace::IsParentResourceDictionary, SetAttribute):
14848 some behavior with x:Key/x:Name only happens when the element is a
14849 child of a ResourceDictionary.
14851 2009-01-26 Larry Ewing <lewing@novell.com>
14853 * grid.cpp: rework proportional contribution of auto columns.
14855 * uielement.cpp: remove the slot logic from the transform here we
14856 will compute it in arrange.
14858 2009-01-26 Larry Ewing <lewing@novell.com>
14860 * grid.cpp (Grid::ArrangeOverride): fix a an error in the loop
14863 2009-01-26 Geoff Norton <gnorton@novell.com>
14865 * deployment.cpp: Cleanup our usage of hash a bit to avoid some
14866 senseless compare/branches.
14868 2009-01-26 Larry Ewing <lewing@novell.com>
14870 * shape.cpp (Shape::Clip): hack back in shape clipping until the
14871 layout clip logic fixed.
14873 2009-01-26 Geoff Norton <gnorton@novell.com>
14875 * deployment.cpp: Remove a useless null guard now that we have
14876 Deployment::Initialize. Don't rudely nuke the TLS slot we might not
14879 2009-01-26 Geoff Norton <gnorton@novell.com>
14881 * deployment.cpp|h: Deployment now does all the domain book keeping
14882 for us, so that calls to GetCurrent will return the Deployment for
14883 the appropriate context, it will also set the MonoDomain* appropriately
14886 2009-01-26 Jeffrey Stedfast <fejj@novell.com>
14888 * textbox.cpp (class TextBoxDynamicPropertyValueProvider):
14890 (TextBox::OnPropertyChanged): Guard SelectedTextProperty and
14891 TextProperty from reentrancy.
14892 (TextBox::EmitSelectionChanged): Update the value before emitting
14893 the event, this way we don't need the dynamic provider.
14894 (TextBox::EmitTextChanged): Same.
14895 (TextBox::OnKeyDown): Handle key == GDK_Return.
14897 2009-01-26 Jeffrey Stedfast <fejj@novell.com>
14899 * textbox.cpp (class TextBoxDynamicPropertyValueProvider): We need
14900 to handle the TextProperty as well.
14901 (TextBox::TextBox): Init text_changed to false.
14902 (TextBox::EmitSelectionChanged): New helper method to set
14903 selection_changed to true and then emit the event.
14904 (TextBox::EmitTextChanged): Same idea.
14905 (TextBox::OnPropertyChanged): Use the new Emit helper methods.
14906 (TextBox::ClearSelection): Same.
14907 (TextBox::Select): Same.
14909 2009-01-26 Sebastien Pouliot <sebastien@ximian.com>
14911 * animation.h: Change validators for TargetNameProperty and
14913 * dependencyproperty.g.cpp: Regenerated
14914 * validators.cpp|h: Add new IsTimelineValidator that check that
14915 the instance is derived from Timeline.
14917 2009-01-26 Larry Ewing <lewing@novell.com>
14922 * control.cpp, control.h:
14923 * frameworkelement.cpp, frameworkelement.h:
14926 * src/mediaelement.cpp:
14928 * src/uielement.cpp:
14929 * src/usercontrol.h: Fix things to match the test results. Still
14930 a few regressions in shapes.
14932 2009-01-26 Larry Ewing <lewing@novell.com>
14934 * border.cpp (Border::MeasureOverride):
14936 2009-01-26 Larry Ewing <lewing@novell.com>
14938 * grid.cpp (Grid::MeasureOverride): handle out of bounds
14939 rows/columns the way the tests indicate.
14941 2009-01-24 Larry Ewing <lewing@novell.com>
14943 * border.cpp (Border::MeasureOverride): Fix a width/height mixup.
14945 2009-01-24 Larry Ewing <lewing@novell.com>
14947 * uielement.h (class UIElement): add IsLayoutContainer () to test
14948 if a given element wants to do the layout dance. Hopefully this
14949 can be removed once the logic is more clear.
14954 * usercontrol.h: add IsLayoutContainer values.
14956 2009-01-26 Larry Ewing <lewing@novell.com>
14958 * frameworkelement.cpp: tests show some really crazy behavior in
14959 the short circuit case, try to emulate that.
14961 2009-01-26 Larry Ewing <lewing@novell.com>
14963 * frameworkelement.cpp (FrameworkElement::Measure): remove the
14966 * media.cpp: fix rendering.
14968 2009-01-26 Larry Ewing <lewing@novell.com>
14971 * border.cpp: Try to get alignment working visually.
14973 * frameworkelement.cpp: hack the needed behavior in until I
14974 understand the problem better.
14976 * mediaelement.cpp, mediaelement.h:
14977 * media.cpp: use the layout values in stretching
14979 2009-01-26 Larry Ewing <lewing@novell.com>
14981 * frameworkelement.cpp:
14984 * mediaelement.cpp, mediaelement.h: fix up the bounds to use the
14987 2009-01-26 Larry Ewing <lewing@novell.com>
14990 * media.cpp: add bounds logic.
14995 * border.cpp: start trying to deal with
14998 * frameworkelement.cpp: compute the layout_xform.
15000 * uielement.cpp, uielement.h: add layout_xform and use it.
15002 * shape.cpp: try something else in measure.
15004 * size.h: add == and != overrides.
15006 2009-01-26 Jeffrey Stedfast <fejj@novell.com>
15008 * brush.cpp (VisualBrush::SetupBrush): Updated.
15010 * uielement.cpp (UIElement::Render): Render our subtree in the
15011 Region* version of this method and get rid of the old x,y,w,h
15014 * text.cpp (TextBlock::Render): Override the Render() that takes a
15016 (Glyphs::Render): Same.
15018 * textbox.cpp (TextBoxView::Render): Same.
15020 * shape.cpp (Shape::Render): Here too.
15022 2009-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
15026 2009-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
15028 * type.cpp: Revert r124497.
15030 2009-01-26 Sebastien Pouliot <sebastien@ximian.com>
15032 * transform.cpp: Add comment about a difference between SL2/ML
15033 in caching/computing the resulting matrix value (exposed in SL2)
15034 of a TransformGroup
15036 2009-01-26 Jackson Harper <jackson@ximian.com>
15038 * xaml.cpp: Move this check into a function since it will be used
15041 2009-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
15043 * type.cpp: Type::Find: Check for NULL deployment to avoid crashes.
15045 2009-01-26 Chris Toshok <toshok@ximian.com>
15047 * animation2.h, animation.[cpp,h], application.[cpp,h], asf/asf.h,
15048 binding.[cpp,h], bitmapimage.[cpp,h], brush.[cpp,h],
15049 canvas.[cpp,h], clock.[cpp,h], collection.[cpp,h],
15050 contentcontrol.[cpp,h], deepzoomimagetilesource.[cpp,h],
15051 dependencyobject.[cpp,h], dependencyproperty.h,
15052 deployment.[cpp,h], downloader.[cpp,h], error.[cpp,h],
15053 eventargs.[cpp,h], expression.[cpp,h], frameworkelement.[cpp,h],
15054 geometry.[cpp,h], grid.[cpp,h], media.[cpp,h],
15055 mediaelement.[cpp,h], multiscaleimage.[cpp,h],
15056 multiscalesubimage.h, namescope.[cpp,h], pipeline.h,
15057 popup.[cpp,h], resources.[cpp,h], runtime.[cpp,h], shape.[cpp,h],
15058 size.[cpp,h], style.[cpp,h], stylus.[cpp,h], textbox.[cpp,h],
15059 text.[cpp,h], tilesource.[cpp,h], transform.[cpp,h],
15060 trigger.[cpp,h], uielement.[cpp,h], uri.h, usercontrol.cpp,
15061 usercontrol.h: move some methods (mostly ctor/dtor) to the .cpp
15062 files, and remove GetObjectType - call SetObjectType instead. Add
15063 @IncludeInKinds everywhere on types we want in the Kinds array -
15064 nothing is implicit now. Also, add @SkipValue on types that
15065 shouldn't automatically appear in the Value struct (As* method,
15068 * border.[cpp,h], control.[cpp,h], panel.[cpp,h]: same as above,
15069 but also call SetSubtreeObject at the right times (basically
15070 whenever our subtree object changes).
15072 * template.[cpp,h]: do the GetObjectType/SetObjectType switch here
15073 too. also, rework the control template application step - don't
15074 cache the tree and duplicate it. just reparse. hook up template
15075 bindings properly as well. with this change buttons are starting
15078 * type.cpp: total_event_count = my_events +
15079 parent->total_event_count, so if my_events == 0...
15081 * xaml.cpp (start_element): reverse the subclass check.
15083 * cbinding.cpp, cbinding.h, type-generated.cpp, type.h, value.h: regen
15085 * Makefile.am: add expression.cpp, and there's no need for
15086 separate file lists anymore.
15088 2009-01-25 Chris Toshok <toshok@ximian.com>
15090 * dependencyproperty.cpp (DependencyProperty::RegisterManagedProperty):
15091 this registers a custom property. Fixes moon-unit failures.
15093 2009-01-25 Chris Toshok <toshok@ximian.com>
15095 * value.cpp (Value::Value): allow ManagedTypeInfo of NULL - fixes
15098 2009-01-25 Chris Toshok <toshok@ximian.com>
15100 * xaml.cpp: mostly just remove the NULL's we were passing to the
15101 various DependencyObject methods that used to require an
15102 additional_types arg.
15103 (dependency_object_set_attributes): one important fix here - force
15104 the loader to do the SetValue if the type is URI, or if the type
15105 of the object itself is a custom type. Also, if we've converted
15106 the string to a valid value already, don't pass a string to the
15107 loader - this keeps us from passing "{Binding foo...}" to the
15108 loader to setvalue on a databound property. This does uncover a
15109 failing in our managed code, though, that there's no way to deal
15110 with the unmanaged BindingExpression from managed code.
15112 * application.cpp, application.h: instead of having a
15113 MonoDomain->Application mapping, we now have a
15114 MonoDomain->Deployment mapping, so Application::GetCurrent maps to
15115 Deployment::GetCurrent()->GetCurrentApplication().
15117 * deployment.cpp, deployment.h: flesh out Deployment, along with
15118 the MonoDomain->Deployment mapping. Also add a per-deployment
15119 Types* object, so we can look them up anywhere in the engine
15120 without having to rely on the managed layer passing
15123 * type.h.in, type.cpp: remove additional_types from all the apis.
15124 the currently registered custom types are always available from
15125 the Current deployment, which Type::Find uses. Also, add
15126 IsCustomType which lets us check if a type is one of our special
15127 built-in types, or if it's one that's been registered dynamically.
15129 * value.h.in, value.cpp: remove additional_types.
15131 * dependencyproperty.h, dependencyproperty.cpp: remove
15134 * dependencyobject.h, dependencyobject.cpp: remove
15137 * uielement.h: add cbindings/pinvokes for ElementAdded and
15140 * contentpresenter.h, contentpresenter.cpp: remove - this is 100%
15143 * Makefile.am: remove contentpresenter.{h,cpp}
15145 * type.h, type-generated.cpp, value.h, cbinding.cpp, cbinding.h:
15148 2009-01-25 Sebastien Pouliot <sebastien@ximian.com>
15150 * cbinding.cpp|h: Regenerated
15151 * transform.cpp|h: Add GetMatrix (w/bindings).
15153 2009-01-23 Geoff Norton <gnorton@novell.com>
15155 * xaml.cpp: This is case-insensitive here too.
15157 2009-01-23 Geoff Norton <gnorton@novell.com>
15159 * dependencyobject.cpp: Avoid a SIGSEGV if the parent_scope is null.
15161 2009-01-23 Jeffrey Stedfast <fejj@novell.com>
15163 * utils.cpp (managed_stream_read_func): Fixed to do as intended.
15164 (managed_stream_write_func): Same.
15166 * textbox.cpp (next_word): Implemented.
15167 (prev_word): Implemented.
15169 2009-01-23 Andreia Gaita <avidigal@novell.com>
15171 * clock.[h|cpp]: Add RemoveTickCall() to remove callbacks from the
15172 list in case the dispatcher gets destroyed before they are processed.
15174 2009-01-23 Geoff Norton <gnorton@novell.com>
15176 * utils.cpp: Remove some g_error and handle ridiculously large
15177 zip files to appease glib.
15179 2009-01-23 Sebastien Pouliot <sebastien@ximian.com>
15181 * dependencyproperty.g.cpp: regenerated
15182 * brush.h: Set default values for RadialGradientTransform points
15184 2009-01-23 Stephane Delcroix <sdelcroix@novell.com>
15186 * multiscaleimage.cpp: add a bool so render knows if it was
15187 invalidated locally or not, and should keep rendering the upper
15188 layers or restart from the bottom.
15190 2009-01-23 Geoff Norton <gnorton@novell.com>
15192 * pipeline.h: Move ManagedStreamCallbacks to utils so other things
15194 * utils.cpp|h: Implement a minizip io-style wrapper around
15195 ManagedStreamCallbacks so that we can unzip from / to managed Stream's.
15197 2009-01-23 Stephane delcroix <sdelcroix@novell.com>
15199 * multiscaleimage.cpp: no longer crash on null uri
15201 2009-01-23 Sebastien Pouliot <sebastien@ximian.com>
15203 * xaml.cpp: Fix SIGSEGV when we're parsing something that turns out
15204 to be valid (xml-wise) but not a DO (e.g. a Color).
15206 2009-01-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
15208 * src.mdp: Added new files.
15210 2009-01-22 Chris Toshok <toshok@ximian.com>
15212 * textbox.h, textbox.cpp (class PasswordBox): move the ctor to
15213 .cpp, and call SetDefaultStyleKey to get that working.
15215 2009-01-22 Chris Toshok <toshok@ximian.com>
15217 [ fixes to get http://www.life-silverlight.com/ to come up with
15220 * enums.cpp (initialize_enums): add a mapping for the property
15221 VerticaalContentAlignment using the vertical_alignment_map.
15223 * uielement.h, uielement.cpp: move SetVisualParent to the .cpp
15224 file. Also, call SetSurface in SetVisualParent, so things like
15225 controls templates get the right surface assigned to them (they
15226 have no logical parent, only a visual one.)
15228 * contentpresenter.cpp (ContentPresenter::OnLoaded): follow the
15229 other template stuff - create a temp namescope here. it won't be
15230 merged, so nothing to worry about. Also, don't call
15231 PrepareContentPresenter here. do it after we look up text and
15232 root in OnApplyTemplate.
15233 (ContentPresenter::OnApplyTemplate): prepare the content
15236 2009-01-22 Jeffrey Stedfast <fejj@novell.com>
15238 * contentpresenter.cpp (ContentPresenter::PrepareContentPresenter):
15240 (ContentPresenter::OnLoaded): Only unref the template if it isn't
15243 * contentpresenter.h (ContentPresenter::GetElementRoot):
15244 Implemented temporary binding hack.
15246 * contentpresenter.cpp (ContentPresenter::PrepareContentPresenter):
15248 (ContentPresenter::OnPropertyChanged): Call
15249 PrepareContentPresenter() instead of ApplyTemplate().
15250 (ContentPresenter::OnApplyTemplate): Implemented.
15252 2009-01-22 Chris Toshok <toshok@ximian.com>
15254 * application.h, application.cpp: make surface a per-application
15255 thing, and add GetSurface/SetSurface.
15257 * cbinding.h, cbinding.cpp: regen.
15259 2009-01-22 Jeffrey Stedfast <fejj@novell.com>
15261 * contentcontrol.cpp (ContentControl::ContentControl): I'm
15262 guessing this needs to call SetDefaultStyleKey as well.
15264 * textbox.cpp (TextBoxView): Get rid of the TextBoxProperty
15265 because that causes problems (the TextBox already has a logical
15266 parent). Instead, we'll just keep track of it internally
15268 (TextBoxView::SetTextBox): Do what OnPropertyChanged() used to do
15269 when the TextBox property changed.
15271 * contentpresenter.cpp (ContentPresenter::ContentPresenter): Set
15272 the default style key.
15273 (ContentPresenter::OnLoaded): Load the default template.
15275 * contentpresenter.cpp|h: New source files. Subclass Control even
15276 though in managed-land, we technically subclass
15277 FrameworkElement. This way we can take advantage of Control's
15280 2009-01-22 Chris Toshok <toshok@ximian.com>
15282 * xaml.cpp (dependency_object_set_attributes): commit jackson's
15283 patch (with one slight modification) so everyone can have the
15284 wonderful world of non-broken setters.
15286 2009-01-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
15288 * dependencyobject.h:
15289 * dependencyobject.cpp: Remove comment about weak refs, and #if DEBUG
15290 around object counters (we define DEBUG always anyways, and the
15291 counters are always useful).
15293 2009-01-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
15295 * dependencyobject.cpp: Protect objects_alive with a mutex.
15297 2009-01-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
15299 * dependencyobject.h:
15300 * dependencyobject.cpp: Remove the weak ref stuff, it's never been of
15303 2009-01-22 Stephane delcroix <sdelcroix@novell.com>
15306 * deepzoomimagetilesource.h|cpp: only download the deepzoomfile the
15307 first time it's needed.
15309 2009-01-21 Geoff Norton <gnorton@novell.com>
15311 * application.cpp: If we're set to NULL remove the application
15312 from the hash table.
15314 2009-01-21 Geoff Norton <gnorton@novell.com>
15316 * Makefile.am: Add bitmapimage.cpp to the build
15317 * application.cpp|h: Add a new callback into Application to
15318 return a resource stream.
15319 * bitmapimage.cpp|h: Add a local buffer backed (possibly) by
15320 a managed resource stream and make this all native.
15321 * brush.cpp|h: Brush.ImageSource is now a BitmapImage
15322 * media.cpp|h: Image.Source is now a BitmapImage
15323 * xaml.cpp: BitmapImage can be constructed from a string in xaml
15325 * dependencyproperty.g.cpp: Regenerate
15327 2009-01-21 Larry Ewing <lewing@novell.com>
15329 * grid.cpp (Grid::MeasureOverride): rework the incremental
15330 contribution logic.
15332 2009-01-21 Jeffrey Stedfast <fejj@novell.com>
15334 * contentcontrol.cpp (ContentControl::OnPropertyChanged):
15335 Implemented by calling ApplyTemplate() when ContentTemplate or
15336 Content properties change.
15337 (ContentControl::OnPropertyChanged): Emit a ContentChangedEvent
15338 when the content changes.
15340 2009-01-21 Larry Ewing <lewing@novell.com>
15342 * grid.cpp: store measurement info in the row and column
15343 definitions and don't allocate the arrays.
15345 2009-01-21 Larry Ewing <lewing@novell.com>
15347 * grid.cpp, grid.h: Hack things to handle missing row
15348 definitions and clean up some old errors.
15350 2009-01-21 Jeffrey Stedfast <fejj@novell.com>
15352 * textbox.cpp (TextBox::OnApplyTemplate): Use SetValue() directly
15353 rather than SetContent() since SetContent() has been removed.
15354 * contentcontrol.h (class ContentControl): Updated a bit, we're
15355 going to actually use this unmanaged class now.
15356 (class ContentControl): Set PropertyType for ContentProperty to
15357 'object' and get rid of the generated accessors.
15359 2009-01-21 Jackson Harper <jackson@ximian.com>
15361 * dependencyobject.cpp|h: When setting values, unmarshal values
15363 * value.h|cpp: Add unmarshal function so we can convert types
15364 coming from managed.
15367 * type-generated.cpp: Regenerated.
15369 2009-01-21 Sebastien Pouliot <sebastien@ximian.com>
15371 * dependencyproperty.g.cpp: Regenerated
15372 * text.cpp|h: Revert earlier change as it "turns black" too many
15373 things. DRT #47 will fail until I find the right fix :(
15375 2009-01-21 Larry Ewing <lewing@novell.com>
15377 * grid.cpp (Grid::ArrangeOverride): make the basic cases work
15380 2009-01-21 Alan McGovern <amcgovern@novell.com>
15382 * popup.cpp: Remove debug code from svn.
15384 2009-01-21 Alan McGovern <amcgovern@novell.com>
15391 * type-generated.cpp: Initial attempt at trying to get Popup.Child
15394 2009-01-21 Sebastien Pouliot <sebastien@ximian.com>
15396 * dependencyproperty.g.cpp: Regenerated
15397 * text.cpp|h: Move ForegroundProperty from a DefaultValue to a
15398 ctor initialized value. This means that GetLocalValue won't return
15399 null for this property, which makes it behave correctly for SL1/JS
15401 [Fix DRT#47 failing since r123884]
15403 2009-01-20 Chris Toshok <toshok@ximian.com>
15405 * application.h, application.cpp: switch from using a static
15406 Application* for "Current" to a hashtable mapping MonoDomain* to
15409 2009-01-20 Jackson Harper <jackson@ximian.com>
15411 * xaml.cpp: Lookup resources in Application.Resources if we don't
15412 find the resource in the tree.
15414 2009-01-20 Chris Toshok <toshok@ximian.com>
15416 * dependencyproperty.g.cpp, type-generated.cpp, cbinding.h,
15417 cbinding.cpp: regen.
15419 * Makefile.am (libmoon_include_headers): add application.h
15420 (libmoon_la_SOURCES): add application.cpp
15422 * frameworkelement.cpp (FrameworkElement::SetValueWithErrorImpl):
15423 if the style was set, call Application::ApplyStyle -- doesn't
15424 actually *apply* the style, it just converts the values.
15426 * style.cpp (SetterBase::SetValueWithErrorImpl): we allow setting
15427 the ConvertedValueProperty after the setter is sealed.
15429 * style.h (class Setter): add ConvertedValueProperty.
15431 * textbox.h (class TextBox): remove @CallInitialize.
15433 * textbox.cpp (TextBox::TextBox): i hate the way this is
15434 expressed (we need a ManagedTypeInfo ctor/dtor), but set
15435 DefaultStyleKey here instead of in managed land.
15437 * provider.cpp (StylePropertyValueProvider::GetPropertyValue):
15438 return the converted property value, not the original (which may
15439 have been a string.)
15440 (StylePropertyValueProvider::SealStyle): only put setters in the
15441 hash if their converted value is non-null.
15443 * control.h (class Control): generate accessors for
15446 * control.cpp (Control::OnLoaded): do the default style
15448 (Control::ApplyTemplate): output a little spew so we
15449 can tell if we're applying a template.
15451 * application.h, application.cpp: move Application here, and make
15452 it a full DO subclass. It no longer maps to the managed
15453 ApplicationInternal.
15455 * deployment.h: remove Application from here.
15457 2009-01-20 Jackson Harper <jackson@ximian.com>
15459 * xaml.cpp: When we create templates make sure we track the
15460 template ourself, we can't rely on the ControlTemplate still
15461 having a surface when it is applied.
15463 2009-01-20 Jeffrey Stedfast <fejj@novell.com>
15465 * keyboard.cpp (Keyboard::OnKeyPress): Update modifiers.
15466 (Keyboard::OnKeyRelease): Same.
15468 2009-01-20 Jackson Harper <jackson@ximian.com>
15470 * clock.h: Set namespace for Duration and RepeatBehavior
15472 2009-01-20 Sebastien Pouliot <sebastien@ximian.com>
15474 * dependencyproperty.g.cpp: Regenerated
15475 * uielement.h: Re-apply default value for RenderTransformProperty
15477 2009-01-19 Larry Ewing <lewing@novell.com>
15481 * window-gtk.cpp, window-gtk.h: clean up the set background
15482 clearing logic and make it general.
15484 2009-01-19 Larry Ewing <lewing@novell.com>
15486 * window-gtk.cpp (MoonWindowGtk::InitializeCommon): clear the
15487 window to white by default.
15489 2009-01-19 Larry Ewing <lewing@novell.com>
15491 * grid.cpp (Grid::ArrangeOverride): clean up debug spew start
15492 implementing arrangeoverride.
15494 2009-01-19 Larry Ewing <lewing@novell.com>
15496 * dirty.cpp (Surface::UpdateLayout): make sure we layout the full
15497 screen message too.
15499 2009-01-19 Jackson Harper <jackson@ximian.com>
15502 * binding.h: Get kinds generated for these guys.
15504 * type-generated.cpp: updated
15506 2009-01-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
15510 2009-01-19 Jackson Harper <jackson@ximian.com>
15512 * grid.h: GridLength lives in System.Windows.
15514 2009-01-19 Jackson Harper <jackson@ximian.com>
15516 * color.h: Colours are in System.Windows.Media.
15518 2009-01-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
15520 * pipeline.h: Instead of overriding GetTypeName for media clases
15521 override GetObjectType so that the generator puts these classes into
15522 our type system. This will fix a lot of the "event not registered"
15527 * type-generated.cpp: Regenerated.
15529 2009-01-19 Alan McGovern <amcgovern@novell.com>
15538 * type-generated.cpp:
15539 * dependencyproperty.g.cpp: Create an unmanaged peer for the Popup class
15541 2009-01-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
15543 * type-generated.cpp: When scanning headers in src/ scan src/asf/ too.
15544 Add support for 'unsigned X' types (used in src/asf/).
15546 2009-01-18 Geoff Norton <gnorton@novell.com>
15548 * xaml.cpp: Only unref the surface if it exists.
15550 2009-01-18 Geoff Norton <gnorton@novell.com>
15552 * dependencyobject.cpp: Ensure that the parent scope registration
15553 behavior is only applied to UserControl's.
15555 2009-01-18 Geoff Norton <gnorton@novell.com>
15557 * xaml.cpp: Only ref the surface if it exists.
15559 2009-01-18 Larry Ewing <lewing@novell.com>
15561 * dirty.cpp (Surface::UpdateLayout): pass the full size in always.
15563 * grid.cpp, grid.h (Grid::ArrangeOverride): hook up and empty
15564 arrange method for now.
15566 2009-01-18 Larry Ewing <lewing@novell.com>
15568 * control.cpp: update invaliate/measure to look more like border
15569 (still wrong) and remove some debug spew.
15571 2009-01-18 Sebastien Pouliot <sebastien@ximian.com>
15573 * cbinding.h|cpp, type.h, value.h: Regenerated
15574 * transform.h: Add UnmanagedMatrix (which is a DO accessible to
15575 managed code) and a new method to get the address of the matrix
15577 * type-generated.cpp: Regenerated to include UNMANAGEDMATRIX
15579 2009-01-17 Larry Ewing <lewing@novell.com>
15581 * canvas.cpp (Canvas::MeasureOverride):
15582 * frameworkelement.cpp (Frameworkelement::MeasureOverride): simplify.
15584 2009-01-17 Jackson Harper <jackson@ximian.com>
15586 * xaml.cpp: Dont create items for property elements. The element
15587 name for property elements can be an abstract type.
15589 2009-01-17 Jackson Harper <jackson@ximian.com>
15591 * xaml.cpp: Don't try to set properties that are collections,
15592 they've already had the items added in add_child.
15594 2009-01-17 Jackson Harper <jackson@ximian.com>
15596 * xaml.cpp|h: Change CreateObject to LookupObject and give it a
15597 flag for actually creating the object. This allows us to verify
15598 the type on hydrated elements without creating another instance
15599 and prevents a circular dependency when elements load themself in
15600 their LoadComponent xaml.
15602 2009-01-17 Geoff Norton <gnorton@novell.com>
15604 * dependencyobject.cpp: A custom UserControl has a local namescope
15605 but also needs to be locatable in its parent namescope.
15607 2009-01-16 Jeffrey Stedfast <fejj@novell.com>
15609 * layout.cpp (TextLayout::GetCursor): Fixed to support segments of
15610 different font size (not that TextBox really needs that since all
15611 runs will be the same exact font).
15613 * textbox.cpp (TextBoxView::UpdateCursor): New convenience method
15614 to update the cursor rect.
15615 (TextBoxView::Layout): Update the cursor after we finish laying
15617 (TextBoxView::OnModelChanged): Updated to use UpdateCursor().
15618 (TextBox::OnKeyDown): Prevent character entry if buffer->len >=
15621 2009-01-16 Jackson Harper <jackson@ximian.com>
15623 * xaml.cpp: NULL is OK if it's being explicitly set.
15625 2009-01-16 Jeffrey Stedfast <fejj@novell.com>
15627 * textbox.cpp (TextBoxView::OnModelChanged): Invalidate the old
15628 cursor region and the new cursor region.
15629 (TextBoxView::Paint): Paint the cursor as well.
15631 * layout.cpp (Layout::GetCursor): Implemented.
15633 2009-01-16 Larry Ewing <lewing@novell.com>
15635 * frameworkelement.cpp (FrameworkElement::MeasureOverride):
15638 * panel.cpp, panel.h: remove arrange override and make measure
15639 override return (0,0) always.
15641 2009-01-16 Larry Ewing <lewing@novell.com>
15643 * panel.cpp: Make ArrangeOverride and MeasureOverride do something
15644 closer to the right thing.
15646 2009-01-16 Jeffrey Stedfast <fejj@novell.com>
15648 * textbox.cpp (TextBox::ArrangeOverride): Removed.
15649 (TextBox::Background) needs to return NULL if not selected mode -
15650 we don't want to be redrawing the normal bg.
15652 2009-01-16 Geoff Norton <gnorton@novell.com>
15654 * xaml.cpp|h: Allocate a GCHandle to the ManagedXamlLoader if
15655 we're going to keep it alive to apply control templates.
15657 2009-01-16 Geoff Norton <gnorton@novell.com>
15659 * template.cpp: Add the namescope to the closure to avoid
15660 referencing random memory.
15661 * xaml.cpp: We create a new XamlLoader when applying control
15662 templates, and inherit the callbacks. Set vm_loaded to true in
15665 2009-01-16 Jeffrey Stedfast <fejj@novell.com>
15667 * textbox.cpp (TextBox::TextBox): Don't init the selection
15668 brushes, they must come from the style.
15670 2009-01-16 Larry Ewing <lewing@novell.com>
15672 * border.cpp, border.h:
15673 * uielement.cpp, uielement.h:
15674 * panel.cpp, panel.h:
15675 * canvas.cpp, canvas.h:
15676 * control.cpp, control.h: Remove GetTransformFor completely, use
15677 the layout slot x/y when computing the local transform,
15678 invalidatemeasure (for now) when updating the tranform.
15680 * dirty.cpp: hack in the intial Left/Top stuff until we can clean
15683 2009-01-16 Larry Ewing <lewing@novell.com>
15685 * frameworkelement.cpp (FrameworkElement::Arrange): don't stretch
15686 unless stretch is specified.
15688 2009-01-16 Geoff Norton <gnorton@novell.com>
15690 * mediaelement.h: The MediaElement.Source is a Uri on the managed
15693 2009-01-16 Jackson Harper <jackson@ximian.com>
15695 * xaml.cpp: FindTypeName type names dont' always have a
15696 namespace/assembly.
15697 - Special case Application and don't try to find it's name since
15698 it is renamed in the managed code. (Need to figure out a better
15700 - Pass in NULL for setting propertys and let the underlying types
15701 determine whether or not that is an error.
15703 2009-01-16 Jackson Harper <jackson@ximian.com>
15705 * xaml.cpp: Before going to managed to create an element, scan the
15706 xnamespace for the x:Class attribute and pass that in as the
15707 element name if we have one, this allows you to use abstract names
15708 for the elements as long as the x:Class is a complete type. Should
15709 also allow us to optimize out a trip into managed.
15711 2009-01-16 Jackson Harper <jackson@ximian.com>
15713 * xaml.cpp: The xaml context needs to store the callbacks so that
15714 we can properly invoke managed code in a template.
15716 2009-01-16 Jackson Harper <jackson@ximian.com>
15718 * dependencyproperty.cpp: This warning isn't really needed and now
15719 with managed DP lookup's, this scenario happens about a trillion
15720 times during parsing of generic.xaml.
15722 2009-01-16 Larry Ewing <lewing@novell.com>
15724 * uielement.h (class UIElement): remove the default value from
15725 RenderTransformProperty until the bugs it introduces are resolved.
15727 * dependencyproperty.g.cpp:Regenerated.
15729 2009-01-15 Sebastien Pouliot <sebastien@ximian.com>
15731 * dependencyproperty.g.cpp: Regenerated
15732 * grid.h: Add default values for [Column|Row]Definition Width
15734 * xaml.cpp: Fix most cases (except empty) of GridLength
15736 2009-01-15 Geoff Norton <gnorton@novell.com>
15738 * downloader.cpp|h: Add downloader_response_abort.
15740 2009-01-15 Jackson Harper <jackson@ximian.com>
15742 * xaml.cpp|h: We need to pass a pointer to the elements parent
15743 object to managed code, this is so we can look up a Setter's
15745 - Let managed handle Type::DEPEPENDENCYPROPERTY attributes.
15747 2009-01-15 Jackson Harper <jackson@ximian.com>
15749 * dependencyproperty.cpp: Patch mostly by rolf. Allows property
15750 lookup to work on custom types that subclass custom types.
15751 * template.cpp: Now that templates work pretty well, lets reduce
15754 2009-01-15 Sebastien Pouliot <sebastien@ximian.com>
15756 * dependencyproperty.g.cpp: Regenerated to include the specified
15757 type (and not the implied one from the default value)
15758 * uielement.h: RenderTransformProperty defaults to a empty (identity)
15761 2009-01-15 Jeffrey Stedfast <fejj@novell.com>
15763 * textbox.cpp: Removed default_*[fore,back]ground() functions as
15764 well as textbox_shutdown() since they are no longer needed.
15765 (TextBox::TextBox): Initialize the default SelectionBackground and
15766 SelectionForeground brushes.
15768 * layout.h (struct TextSelection): Removed brushes from
15769 TextSelection struct.
15771 2009-01-15 Jeffrey Stedfast <fejj@novell.com>
15773 * mediaelement.cpp (MediaElementPropertyValueProvider::GetPropertyValue):
15774 Cannot compare a guint64 with -1, presuming the comparison was
15775 meant to be against TimeSpan_FromPTS (position) instead.
15777 * textbox.cpp: Emit SelectionChanged events with RoutedEventArgs
15778 instead of SelectionChangedEventArgs.
15780 * eventargs.cpp (RoutedEventArgs::RoutedEventArgs): New helper
15781 ctor that takes a source.
15783 * textbox.h (class SelectionChangedEventArgs): Removed, this type
15784 of EventArgs is not actually emitted by TextBox as I had
15785 originally thought. TextBox's SelectionChanged event uses
15788 2009-01-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
15790 * type-generated.cpp:
15791 * dependencyproperty.g.cpp: Regenerated.
15794 * mediaelement.cpp: Inherit directly from FrameworkElement instead of
15795 MediaBase. This requires copying some code from MediaBase into
15796 MediaElement (which at some later stage would move into Media).
15798 2009-01-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
15801 * cbinding.cpp: Regenerated.
15806 * type-generated.cpp:
15807 * dependencyproperty.h:
15808 * dependencyproperty.cpp: Add support for looking up custom dependency
15809 properties by name.
15811 2009-01-15 Sebastien Pouliot <sebastien@ximian.com>
15813 * xaml.cpp: Free Value on error inside ManagedNamespace.FindElement.
15814 Add comment on value_from_str_with_typename to update NativeMethods.cs
15816 2009-01-15 Larry Ewing <lewing@novell.com>
15821 * frameworkelement.cpp: start taking layout slot into account when
15824 2009-01-15 Jackson Harper <jackson@ximian.com>
15826 * xaml.cpp: Storyboard are allowed to have an x:Name and an
15827 x:Key. This is for backwards compatibility because SL1 didn't have
15828 x:Key. It's also stupid.
15830 2009-01-15 Jackson Harper <jackson@ximian.com>
15832 * xaml.cpp: Add a fake element to templates with all the imported
15833 namespaces. This allows all the namespaces imported in the main
15834 source to work in the template.
15836 2009-01-14 Jeffrey Stedfast <fejj@novell.com>
15838 * textbox.cpp (TextBoxView::OnSelectionChanged): Force a
15840 (TextBoxView::Layout): Build the text runs based on the selection.
15841 (TextBoxView::Paint): Updated to no longer pass the selection
15842 state to the layout engine.
15844 * layout.h (class ITextSource): Added a Background() accessor and
15845 changed the Foreground() accessor to take a bool selected
15848 * layout.cpp (RenderSegment): Render the background if non-NULL.
15849 (TextRun::TextRun): Now takes a 'selected' state.
15850 (TextLayout::Render): No longer takes selection or cursor
15853 2009-01-14 Jackson Harper <jackson@ximian.com>
15855 * xaml.cpp: Fix x:Null handling.
15857 2009-01-14 Sebastien Pouliot <sebastien@ximian.com>
15859 * brush.h: Add default values used by some brushes
15860 * dependencyproperty.g.cpp: Regenerated
15862 2009-01-14 Larry Ewing <lewing@novell.com>
15864 * panel.cpp (Panel::GetTransformFor): override gettransformfor for
15867 2009-01-14 Jackson Harper <jackson@ximian.com>
15869 * xaml.cpp: Add the namespaces to the xaml context.
15871 2009-01-14 Jeffrey Stedfast <fejj@novell.com>
15873 * textbox.cpp (TextBox::CursorBackSpace): Implemented.
15874 (TextBox::CursorDelete): Implemented.
15876 * layout.cpp (RenderSegment): Split out from RenderLine().
15878 2009-01-14 Jackson Harper <jackson@ximian.com>
15880 * xaml.cpp: Apparently there is a new NULL on the block. Use
15881 SetIsNull instead of a NULL Value* now.
15883 2009-01-14 Jackson Harper <jackson@ximian.com>
15885 * template.cpp: initialize xaml_context. (fixes shutdown crash)
15887 2009-01-14 Jackson Harper <jackson@ximian.com>
15889 * type.h|h.in: typo. Don't ask me how, but somehow I accidently flipped
15890 these before my last patch.
15892 2009-01-14 Jackson Harper <jackson@ximian.com>
15894 * xaml.cpp: Styles use their TargetType as their
15895 ResourceDictionary key.
15896 - Handle the new type MANAGEDTYPEINFO by allowing the managed code
15898 * value.cpp|h|.h.in:
15899 * type.h|h.in: New type, ManagedTypeInfo. Contains info for
15900 loading managed types.
15903 * template.h: Use ManagedTypeInfo when we have a System.Type on
15905 * dependencyproperty.g.cpp:
15906 * typegenerated.cpp: Regen
15908 2009-01-14 Jeffrey Stedfast <fejj@novell.com>
15910 * textbox.cpp: More fixes for cursor movement & keyboard selection.
15912 2009-01-14 Sebastien Pouliot <sebastien@ximian.com>
15914 * grid.cpp (MeasureOverride): Free allocated arrays
15916 2009-01-14 Sebastien Pouliot <sebastien@ximian.com>
15918 * grid.cpp: Add a bunch of NULL checks for width and height to avoid
15919 crashes when running the SDK controls unit tests.
15921 2009-01-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
15923 * dependencyobject.cpp: Fix
15924 media/video/test-reset-media-element-source.html.
15926 2009-01-14 Alan McGovern <amcgovern@novell.com>
15928 * enums.cpp: Control.HorizontalContentAlignment should map to the
15929 HorizontalAlignment enum.
15931 2009-01-14 Stephane Delcroix <sdelcroix@novell.com>
15933 * deepzoomtilesource.h|cpp: download the source on UriSourceProperty
15936 2009-01-14 Stephane Delcroix <sdelcroix@novell.com>
15938 * deepzoomtilesource.h: mark it with CallInitialize
15940 2009-01-14 Stephane Delcroix <sdelcroix@novell.com>
15942 * tilesource.h|cpp: autogenerate the cbinding
15944 * deepzoomimagetilesource.h|cpp: define a downloaded cb to poke the
15945 managed side for xml parsing.
15947 2009-01-13 Chris Toshok <toshok@ximian.com>
15949 * xaml.cpp (XamlLoader::CreateFromFileWithError): strdup the error
15951 (XamlLoader::CreateFromStringWithError): same.
15952 (XamlLoader::HydrateFromStringWithError): same.
15953 (~XamlLoader): unref the error_args.
15954 (XamlLoader::HydrateFromString): no need to ref the object again
15955 here if it was passed in.
15957 2009-01-13 Larry Ewing <lewing@novell.com>
15959 * uielement.cpp, uielement.h (class LayoutInformation): add
15960 LayoutInformation class to hold the layout related attached
15961 properties. (will move it later).
15963 * frameworkelement.cpp: use the new layout information and use it
15966 * border.cpp: fix the arrange logic.
15968 2009-01-13 Larry Ewing <lewing@novell.com>
15970 * shape.cpp: switch over to using the computed values for stretch.
15972 * frameworkelement.cpp:
15974 * dirty.cpp, dirty.h: Try to get invalidation logic close to
15977 2009-01-13 Larry Ewing <lewing@novell.com>
15979 * shape.cpp: treat rect and ellipse like normal framework elements.
15981 2009-01-13 Larry Ewing <lewing@novell.com>
15983 * frameworkelement.cpp:
15987 * mediaelement.cpp:
15988 * panel.cpp: Use the layout values for values we used to compute
15991 2009-01-13 Larry Ewing <lewing@novell.com>
15993 * grid.cpp (Grid::MeasureOverride): make sure we stay inside the
15994 collection while iterating.
15996 2009-01-13 Larry Ewing <lewing@novell.com>
15999 * src/frameworkelement.cpp
16001 * src/panel.cpp, src/panel.h: layout updates
16003 2009-01-13 Larry Ewing <lewing@novell.com>
16005 * canvas.cpp (Canvas::ArrangeOverride): pass in the requested
16008 * media.cpp, media.h: add ArrangeOverride/MeasureOverride.
16010 2009-01-13 Larry Ewing <lewing@novell.com>
16012 * shape.cpp, shape.h: start moving cleaning up references to width
16013 and height and moving towards using the layout logic. Remove
16014 stale LargestRect stuff
16016 * runtime.c, dirty.h: stub in an update layout function.
16018 * border.cpp, canvas.cpp: try to match some more tests.
16020 2009-01-13 Jeffrey Stedfast <fejj@novell.com>
16022 * textbox.cpp (TextBox::CursorPageDown): Implemented.
16023 (TextBox::CursorPageUp): Implemented.
16024 (TextBox::CursorHome): Implemented.
16025 (TextBox::CursorEnd): Implemented.
16026 (TextBox::CursorDown): Implemented.
16027 (TextBox::CursorUp): Implemented.
16028 (TextBox::OnKeyDown): Implemented Select-All keybinding and
16029 stubbed out cut/copy/paste.
16031 2009-01-13 Sebastien Pouliot <sebastien@ximian.com>
16033 * dependencyproperty.g.cpp: Regenerated
16034 * shape.h|cpp: Remove DefaultValue for Poly[gon|line].Points and
16035 Shape.StrokeDashArray and set them in the constructors (which is
16036 bit ifferent and fix Polyhedra animation).
16038 2009-01-13 Sebastien Pouliot <sebastien@ximian.com>
16040 * dependencyproperty.g.cpp: Regenerated
16041 * shape.h: Add DefaultValue for Poly[gon|line].Points and Shape
16042 StrokeDashArray since they are not NULL in SL2
16044 2009-01-13 Alan McGovern <amcgovern@novell.com>
16046 * src.mdp: Add the provider stuff to the MD solution
16048 2009-01-13 Chris Toshok <toshok@ximian.com>
16050 * provider.cpp (StylePropertyValueProvider::SealStyle): only
16051 insert the setter into the hash if the setter's value matches the
16052 type of the setter's property. Fixes
16053 StyleTest.InvalidValueProgrammatically.
16055 2009-01-13 Jackson Harper <jackson@ximian.com>
16057 * xaml.cpp|h: Add the ability to lookup full uri's based on local
16058 prefixes. This is so managed can convert something like
16059 'local:' into 'clr-namespace=Foo;assembly=bar'
16061 2009-01-13 Jackson Harper <jackson@ximian.com>
16063 * xaml.cpp|h: Pass the ParserInfo to every callback, this will
16064 allow us to call back into unmanaged to do extra stuff.
16066 2009-01-13 Stephane Delcroix <sdelcroix@novell.com>
16068 * tilesource.h|cpp: add a callback and a method to set the callback
16069 so we can poke the managed GetTileLayers.
16071 2009-01-12 Chris Toshok <toshok@ximian.com>
16073 * style.cpp, style.h (Style::GetPropertyValue): remove this. it's
16074 been replaced by the hash lookup in the style provider.
16076 * dependencyobject.cpp (DependencyObject::ClearValue): i hate this
16077 change... apparently there's something that happens to lower
16078 precedence providers after you call ClearValue, but *only if the
16079 local value was actually cleared*. yuck.
16081 * frameworkelement.cpp (FrameworkElement::OnPropertyChanged):
16082 remove the Style sealing from SetValueWithErrorImpl, and move it
16083 here where it should have been all along. Also, do the sealing
16084 via the Style value provider, so it can make things a bit more
16087 * provider.cpp (StylePropertyValueProvider::SealStyle): new
16088 method, called by FWE::OnPropertyChanged when the style is
16089 initially set. we cache the setters (keyed by DP) in a hashtable.
16090 (StylePropertyValueProvider::RecomputePropertyValue): this is the
16091 magic method that DependencyObject::ClearValue calls, which causes
16092 the style provider to refresh its cache for the listed property.
16094 2009-01-12 Jackson Harper <jackson@ximian.com>
16096 * xaml.cpp: Fix typo, makes ControlTemplates inside of
16097 ControlTemplates work properly.
16099 2009-01-12 Jackson Harper <jackson@ximian.com>
16101 * xaml.cpp: Add MOON_NOFAIL_MISSING_PROPS, this is a temp hack so
16102 we can load some sites and see which properties are missing, right
16103 now it will only work for attributes. Intentionally not using the
16104 debug flags stuff, because i don't want this hack to stay around
16107 2009-01-12 Jackson Harper <jackson@ximian.com>
16109 * xaml.cpp: Stop trying to set attributes once we hit the first
16112 2009-01-12 Jeffrey Stedfast <fejj@novell.com>
16114 * collection.cpp (InlineCollection::Equals): New convenience
16115 method to replace text.cpp's inlines_simple_text_equal().
16117 * textbox.h (class TextBox): Now implements ITextSource.
16119 * text.cpp (Inline::UpdateFontDescription): New convenience method
16120 to populate the cached TextFontDescription since we can no longer
16121 rely on doing so from within OnPropertyChanged().
16122 (Inline::Equals): Base comparison method used by
16123 InlineCollection::Equals().
16124 (Run::Equals): Compare the Text property as well.
16125 (TextBlock::Layout): Call UpdateFontDescription() on each Inline
16126 as we iterate through them. Also updated for TextRun ctors.
16127 (TextBlock::OnCollectionItemChanged): Simplified a bit. The basic
16128 premise is that we do not want to force a layout calculation to be
16129 redone, we just need to invalidate if all that changed was a
16131 (inlines_simple_text_equal): Removed, use
16132 InlineCollection::Equals() instead.
16133 (TextBlock::SetTextInternal): Updated to use
16134 InlineCollection::Equals().
16136 * text.h (class Inline): Now implements the ITextSource
16137 interface. Moved the local TextFontDescription and autogen state
16138 into the private section and added accessors for them.
16140 * layout.cpp|h (class ITextSource): New interface sued by TextRuns
16141 and the internal Layout logic to grab a run's foreground brush and
16143 (TextRun::ctor): No longer take TextDecoration,
16144 TextFontDescription, or Brush arguments, instead takes an
16145 ITextSource that it can query for those properties when it needs
16147 (RenderLine): Updated to get the decorations and foreground brush
16148 from the ITextSource.
16150 2009-01-12 Alan McGovern <amcgovern@novell.com>
16155 * dependencyproperty.g.cpp: Add range validation to TimeSpan
16157 2009-01-12 Jackson Harper <jackson@ximian.com>
16159 * xaml.cpp: Moved nameditem lookup into the parser info so we can
16160 use the parser context data to lookup resources. This allows
16161 templates to reference StaticResources.
16163 2009-01-12 Alan McGovern <amcgovern@novell.com>
16165 * clock.cpp: Minimum FPS is clamped at 1.
16167 2009-01-12 Jackson Harper <jackson@ximian.com>
16169 * xaml.cpp|h: Create a xaml context object so we can save some
16170 state information for buffered templates.
16171 * template.h|cpp: Updated xaml methods.
16173 2009-01-12 Alan McGovern <amcgovern@novell.com>
16178 * dependencyproperty.g.cpp: Add correct validator for
16179 Storyboard.TargetName and Storyboard.TargetProperty
16181 2009-01-12 Sebastien Pouliot <sebastien@ximian.com>
16183 * grid.h: Hide RowDefinitionCollection ctor from managed code
16184 * frameworkelement.cpp, provider.cpp: Even is Is(Type::Style)
16185 returns true the Style value can still be NULL (fix two new crash
16186 in SDK control unit tests)
16188 2009-01-12 Andreia Gaita <avidigal@novell.com>
16190 * stackpanel.cpp|h: removed, stackpanel is now done in managed
16193 * cbinding.cpp|h, dependencyproperty.g.cpp,
16194 type-generated.cpp, type.h,
16197 * Makefile.am, src.mdp: update build
16199 2009-01-11 Chris Toshok <toshok@ximian.com>
16201 * layout.h, layout.cpp (RenderLine): default_fg is unnecessary
16202 now. the run fg will always be initialized.
16203 (TextRun::TextRun): the fg pointer is Brush*, not Brush**.
16204 (TextLayout::Render): no need to pass in the default foreground.
16206 * runtime.cpp (runtime_shutdown): text_shutdown is gone.
16208 * text.h, text.cpp: stop caching the foreground. and there's no
16209 need to create the default foreground brush in code. it's simply
16210 the default value of the Foreground dependency property.
16211 (inlines_simple_text_equal): this needed fixing up since the font
16212 flags really aren't used for inheritance anymore - we need (and
16213 really, always needed to) compare the actual values, not just if
16215 (text_shutdown): no need for this anymore.
16217 * textbox.cpp (TextBoxView::Paint): same. no more default_fg
16220 2009-01-11 Chris Toshok <toshok@ximian.com>
16222 * dependencyobject.h, dependencyobject.cpp: make DO's freezable.
16223 if a DO is frozen, any SetValue() call raises an
16224 UnauthorizedAccessException. We use this for default values of
16225 DependencyProperties.
16227 * dependencyproperty.cpp (DependencyProperty::DependencyProperty):
16228 freeze the default value.
16230 2009-01-11 Andreia Gaita <avidigal@novell.com>
16232 * clock.h|cpp (DispatcherTimer): Don't destroy the clock on Stop(),
16233 it could be called in the middle of a tick. Instead, just reset and
16234 reuse the clock on every tick. Track if the timer is stopped during
16235 a tick so the clock is not relaunched. Set a default duration so
16236 it's never automatic.
16238 2009-01-11 Chris Toshok <toshok@ximian.com>
16240 * text.h, text.cpp (class Inline): generate accessors for
16241 FontFamily, FontSize, and TextDecoration.
16242 (class Inline, class TextBlock): add an internal DP for the font
16244 (Inline::OnPropertyChanged): the only case that's needed at the
16245 moment is foreground, but that's slated for the axe as well.
16247 * dependencyproperty.g.cpp: regen.
16249 * provider.cpp (InheritedPropertyValueProvider::GetPropertyValue):
16250 make sure we inherit properly across the logical tree if the node
16251 doesn't have a visual parent (this fixes inheritance for non
16252 UIElement's, like Runs). Also, add the FontFilename property to
16253 the list of things that inherit.
16255 * dependencyobject.h,
16256 dependencyobject.cpp (DependencyObject::ProviderValueChanged): new
16257 method. Providers can call this whenever the value at their
16258 precedence level has changed. It contains all the smarts to
16259 correctly generate OnPropertyChanged method calls in the face of
16260 all the provider levels.
16262 2009-01-10 Jeffrey Stedfast <fejj@novell.com>
16264 * textbox.cpp (TextBox::OnKeyDown): Changed a bit. We need to emit
16265 TextChangedEvent and SelectionChangedEvent. Don't combine those
16266 into the ModelChangedEvent that is only meant for TextBoxView.
16267 (TextBox::OnPropertyChanged): Emit TextChangedEvent and
16268 SelectionChangedEvent appropriately.
16269 (TextBoxView::OnSelectionChanged): New event callback handler.
16270 (TextBoxView::OnTextChanged): Same.
16271 (TextBoxView::OnModelChanged): Don't handle text/selection change
16272 notification here anymore, because those 'change' enum types have
16274 (TextBoxView::OnPropertyChanged): Need to listen to more events.
16276 2009-01-10 Jeffrey Stedfast <fejj@novell.com>
16278 * value.cpp (Value::Value): the const char* ctor now takes a bool
16279 argument specifying whether to take ownership of the string
16282 * textbox.cpp (class TextBoxDynamicPropertyValueProvider): We
16283 don't need to keep a char* selection, we only need it temporarily
16284 while creating the Value*.
16285 (TextBox::OnKeyDown): Check for AcceptsReturn when Enter is
16287 (TextBox::ClearSelection): Don't set the TextProperty value
16288 anymore. Also don't bother with the setvalue state variable
16290 (TextBox::OnPropertyChanged): Don't worry about setvalue state
16292 (TextBox::TextBox): Get rid of 'setvalue' state.
16294 2009-01-10 Geoff Norton <gnorton@novell.com>
16296 * media.cpp: surface->filename might be NULL, so we need to guard
16297 against this in our cleanup accordingly.
16299 2009-01-09 Chris Toshok <toshok@ximian.com>
16301 * frameworkelement.cpp (FrameworkElement::SetValueWithErrorImpl):
16302 oops. we still need to seal the style if that's the thing we're
16305 2009-01-09 Chris Toshok <toshok@ximian.com>
16307 * Makefile.am (libmoon_include_headers): add provider.h
16308 (libmoon_la_SOURCES): add provider.cpp
16310 * provider.h, provider.cpp: clean up this some. the only provider
16311 really not being used right now is the Animation value provider,
16312 since the animation code assumes it can just set local values.
16314 * shape.cpp (Shape::OnPropertyChanged): no need to look up the
16315 default value - GetValue will return it now.
16317 * textbox.h, textbox.cpp (class
16318 TextBoxDynamicPropertyValueProvider): new custom provider class to
16319 replace the ::GetValue override. Install it in the ctor.
16321 * text.h, text.cpp (class TextBlockDynamicPropertyValueProvider):
16322 new custom provider class to replace the ::GetValue override.
16323 Install it in the ctor.
16324 (GetBoundingWidth, GetBoundingHeight): don't use
16326 (SetActualHeight, SetActualWidth): no longer needed.
16327 (textblock_property): no longer needed.
16328 (Inline::GetDefaultValue): no longer needed. the inherited
16329 property provider handles it.
16330 (TextBlock::OnPropertyChanged): no need to deal with
16331 Actual{Height,Width}Property here anymore.
16333 * frameworkelement.cpp (FrameworkElement::FrameworkElement):
16334 remove styles initialization.
16335 (FrameworkElement): remove styles destruction.
16336 (FrameworkElement::ClearValue): this doesn't need any styles stuff
16337 anymore - just clear the binding if we have one, and otherwise
16339 (FrameworkElement::GetLocalValue): I'm not sure why this was
16340 looking things up via a style, as styles are a lower priority than
16341 local values. if there's a binding return that, otherwise chain
16343 (FrameworkElement::SetValueWithErrorImpl): remove the styles stuff
16345 (FrameworkElement::UpdateFromStyle): remove. the style lookup is
16346 done in the style provider.
16349 * style.h, style.cpp (SetterBaseCollection::SetStyle): remove the
16350 public Style* field and use SetStyle to set it.
16351 (Style::GetPropertyValue): new method. this should probably be a
16352 hash lookup instead of the linear lookup, but for now this will
16354 (SetterBaseCollection::ValidateSetter): make this a static method
16355 on the class instead of just a C function.
16357 * dependencyobject.h: add a couple more GetValue overrides to deal
16358 with precedence levels. Remove GetDefaultValue, as it's no longer
16359 needed - we can finally use DependencyProperty::GetDefaultValue as
16360 it's meant to be used.
16362 * dependencyobject.cpp (DependencyObject::GetLocalValue): change
16363 this to just call the LocalValue provider.
16364 (DependencyObject::GetValue (DependencyProperty* property)): call
16365 the overload that lets us specify a starting precedence (start at
16366 the highest precedence level).
16367 (DependencyObject::GetValue (DependencyProperty *property,
16368 PropertyPrecedence startingAtPrecedence)): new method. loop over
16369 the providers until one of them gives us a value.
16370 (DependencyObject::GetValueSkippingPrecedence): we need this for
16371 looking up the value of FrameworkElement::StyleProperty from
16372 inside the style provider.
16373 (DependencyObject::GetValueNoDefault): reimplement this for the
16374 time being using the providers.
16375 (DependencyObject::DependencyObject): register all the default
16376 providers. we leave a DynamicValue slot open for subclasses who
16377 want to implement "computed" properties.
16378 (DependencyObject): free all the providers.
16380 * dependencyproperty.g.cpp: regen
16382 2009-01-09 Geoff Norton <gnorton@novell.com>
16384 * media.cpp: Remove a unnecessary synthesized PropertyChangedEvent
16386 2009-01-09 Geoff Norton <gnorton@novell.com>
16388 * media.cpp: Ensure that we actually do change the value of the
16389 Source property when we call MediaBase::SetSource (char*)
16391 2009-01-09 Jeffrey Stedfast <fejj@novell.com>
16393 * text.cpp (TextBlock::OnPropertyChanged): Update our TextLayout
16394 with layout-hint changes (including TextWrapping hints).
16395 (TextBlock::Layout): Don't pass 'hints' to layout->Layout()
16396 anymore. Also no need to set the wrapping mode here anymore as it
16397 is set in OnProeprtyChanged() now.
16399 * layout.cpp (TextLayout): Move TextLayoutHints into TextLayout,
16400 it doesn't make sense to have them separate.
16402 * textbox.cpp (class TextBox): Get rid of TextLayoutHints state,
16403 we'll pass changes directly to the View as they get updated.
16404 (TextBox::OnPropertyChanged): If the layout hints change, set
16405 changed to the appropriate TextBoxModelChanged hint enum. Also
16406 pass the PropertyChangedEventArgs to the ModelChangedEventArgs
16407 ctor so that TextBoxView can grab the new value to update its
16409 (TextBoxView::OnModelChanged): Handle the new enums.
16410 (TextBoxView::OnPropertyChanged): Sync our layout-hints state when
16411 a new TextBox gets set.
16413 2009-01-09 Alan McGovern <amcgovern@novell.com>
16415 * dependencyproperty.cpp: 'validator' should never be null - it should
16416 be default_validator instead. Regression caused by previous change to
16419 2009-01-09 Alan McGovern <amcgovern@novell.com>
16421 * validators.cpp: Validator only converts -1 to null. All other values
16422 appear to be left the same
16424 2009-01-09 Alan McGovern <amcgovern@novell.com>
16428 * validators.cpp: Add a validator to AudioStreamIndex. This converts
16429 negative values to null, as the unit tests show.
16431 2009-01-09 Alan McGovern <amcgovern@novell.com>
16433 * dependencyproperty.h:
16434 * dependencyproperty.cpp:
16435 * dependencyproperty.g.cpp: Make it possible to use validators with
16436 Nullable properties.
16438 2009-01-08 Jeffrey Stedfast <fejj@novell.com>
16440 * text.cpp (Glyphs::SetFill): Removed, autogenerated now.
16441 (Glyphs::GetFill): Same.
16443 * text.h (class Glyphs): GenerateAccessors for FillProperty too.
16445 * textbox.cpp (TextBox::CursorRight): Implemented.
16446 (TextBox::CursorLeft): Implemented.
16447 (TextBox::GetValue): New override to set the SelectedText property
16448 if the selection has been changed since the last request.
16450 * eventargs.cpp (KeyEventArgs::IsModifier): Work around gtk < 2.10.
16452 * text.cpp (TextBlock::Layout): Fix bug #435798 in a slightly
16453 different way so that we don't have to use GetValueNoDefault().
16455 2009-01-08 Larry Ewing <lewing@novell.com>
16457 * text.cpp (TextBlock::Layout): use nan logic for FE:Width here.
16459 * geometry.h, geometry.cpp (class RectangleGeometry): remove
16460 GetRadius logic everything is handled property by the properties
16463 2009-01-08 Jeffrey Stedfast <fejj@novell.com>
16465 * textbox.cpp (TextBox::OnKeyDown): Updated a bit to use the new
16468 * keyboard.cpp (Keyboard::KeyIsChar): Removed.
16469 (Keyboard::KeyToChar): Removed.
16470 (Keyboard::KeyIsMovement): Removed.
16472 * eventargs.cpp (KeyEventArgs::GetModifiers): Renamed from
16473 GetState() to make the purpose clearer.
16474 (KeyEventArgs::IsModifier): New helper method.
16475 (KeyEventArgs::GetKeyVal): New helper method.
16476 (KeyEventArgs::GetUnicode): New helper method.
16478 * textbox.cpp (TextBox::OnPropertyChanged): Get rid of the 'dirty'
16479 state, all places that set dirty=true are now handled by
16480 TextBoxView instead. Only call Invalidate() when appropriate. For
16481 selection state changes, check setvalue state to see if we need to
16483 (TextBox::ClearSelection): New helper method to clear the
16485 (TextBox::OnKeyDown): Properly clear the selection using
16486 ClearSelection() so that the DP values get updated.
16488 2009-01-08 Larry Ewing <lewing@novell.com>
16490 * shape.cpp, shape.h: remove all the GetValueNoDefault logic,
16491 replace it with proper NAN state. Remove MixedWidthAndHeight for
16492 c&p checks that will be removed in the layou code.
16494 * frameworkelement.cpp: more nan cleanup.
16497 * control.cpp: handle nan.
16499 2009-01-08 Alan McGovern <amcgovern@novell.com>
16504 * frameworkelement.cpp:
16505 * dependencyproperty.g.cpp: Add the ability to map a DependencyProperty
16506 to/from native. This removes a hack in Style where DP's used to be
16507 looked up by name, which couldn't be done with properties registered
16508 through C#. Fixes 2 NUnit tests.
16510 2009-01-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
16513 * validators.cpp: Added DoubleGreaterThanZeroValidator.
16515 * mediaelement.h: Use double validator instead of int validator for
16518 * dependencyproperty.g.cpp: Regenerated.
16520 2009-01-08 Alan McGovern <amcgovern@novell.com>
16522 * dependencyobject.cpp: *Warning - Changing default values* When
16523 DO.ClearValue is called, we always return 'NULL' as the new value.
16524 This is incorrect as the pattern: do.ClearValue (property),
16525 do.GetValue (property) will actually return do.GetDefaultValue
16526 (DependencyProperty*). This change fixes a failing assertion in
16527 StyleTest.cs - ModifyAfterBinding.
16529 2009-01-08 Sebastien Pouliot <sebastien@ximian.com>
16531 * cbinding.h|cpp, collection.h, type.h, type-generated.cpp, value.h:
16532 Regenerated for ITEM_COLLECTION
16534 2009-01-08 Alan McGovern <amcgovern@novell.com>
16537 * dependencyobject.h:
16538 * dependencyobject.cpp: Reinstate GetDefaultValue as it was actually
16539 overridden by Inlines
16541 2009-01-07 Larry Ewing <lewing@novell.com>
16543 * frameworkelement.cpp, frameworkelement.h:
16544 move all the various duplicate versions GetTransformOrigin here.
16546 * mediaelement.cpp: fix GetTransformOrigin for new default values.
16548 * shape.cpp, shape.h:
16549 * canvas.cpp, canvas.h:
16550 * media.cpp, media.h:
16551 * shape.cpp, shape.h:
16552 * stackpanel.cpp, stackpanel.h: remove c&p code from all over.
16556 2009-01-07 Geoff Norton <gnorton@novell.com>
16558 * collection.cpp: Ensure that we call any AddWithError overrides
16559 that might exist in a subclass (like TimelineMarkerCollection) as
16560 it could affect the integer returned.
16562 2009-01-07 Geoff Norton <gnorton@novell.com>
16564 * xaml.cpp, file-downloader.cpp: TextStream::Open has been renamed
16565 to TextStream::OpenFile
16566 * utils.h|cpp: Refactor TextStream to read in-memory and file buffers
16567 * downloader.cpp: GetResponseText needs to ensure it returns data in
16568 UTF-8, and doesn't handle zip files.
16570 2009-01-07 Jeffrey Stedfast <fejj@novell.com>
16572 * textbox.cpp (TextBox::OnKeyDown): Added support for keyboard
16573 input a bit. Cutting a lot of corners for now, but oh well.
16574 (TextBoxView::TextBoxView): Hooked up some cursor blinking
16575 action. We don't actually render the cursor yet tho.
16577 * keyboard.cpp (Keyboard): Moved into it's own source file from
16578 eventargs.cpp. I have a sneaking suspicion that this logic will
16579 get large and complicated someday soon.
16581 2009-01-07 Sebastien Pouliot <sebastien@ximian.com>
16583 * dependencyobject.cpp (set_surface): Add null check since the
16584 hashtable can contain Value with a NULL DependencyObject
16586 2009-01-07 Larry Ewing <lewing@novell.com>
16589 * frameworkelement.cpp:
16590 * shape.cpp: Quick hacks to get test 0 passing after the default
16593 2009-01-07 Chris Toshok <toshok@ximian.com>
16595 * textbox.h (class TextBox): add @CallInitialize so we can set the
16598 * control.cpp (Control::OnLoaded): move FrameworkElement::OnLoaded
16599 call to before ApplyTemplate(), as the template isn't applied
16600 until after the Loaded event is fired.
16602 2009-01-07 Geoff Norton <gnorton@novell.com>
16604 * downloader.h|cpp: Work around mozilla bug #444160 by keeping an in
16605 memory cache of all downloads <= 64KB that are streamed in 1 shot.
16607 2009-01-07 Sebastien Pouliot <sebastien@ximian.com>
16609 * contentcontrol.h|cpp: Remove properties that are not in SL2 final
16610 * dependencyproperty.g.cpp: Regenerated.
16612 2009-01-07 Alan McGovern <amcgovern@novell.com>
16617 * dependencyproperty.g.cpp: If C# passes a null cursor to C++, convert
16618 it to the default cursor instead.
16620 2009-01-06 Larry Ewing <lewing@novell.com>
16622 * uielement.h (class UIElement): add a default value to
16623 UIElement::CusorProperty, fixes a crossing event crash.
16625 * uielement.cpp (UIElement::ElementRemoved): remove the element
16626 from the dirty list since it is an orphan now.
16628 * runtime.cpp (Surface::PaintToDrawable): add some logging.
16630 2009-01-06 Jeffrey Stedfast <fejj@novell.com>
16632 * textbox.cpp (TextBox::OnKeyDown): Added some keyboard keypress
16633 callbacks so that we can eventually make TextBox receive keyboard
16634 input. Currently the events never seem to fire, tho.
16636 2009-01-06 Sebastien Pouliot <sebastien@ximian.com>
16638 * enums.h: Add enums values for MouseCursorSize[NS|WE]
16639 * window-gtk.cpp: Display MouseCursorSize[NS|WE] cursors
16641 2009-01-06 Alan McGovern <amcgovern@novell.com>
16643 * frameworkelement.cpp:
16644 * dependencyobject.cpp: Fixes so that StyleTests.NullLocalValue passes
16645 again after my previous commit changing the handling of
16646 GetValue/GetLocalValue.
16648 2009-01-06 Alan McGovern <amcgovern@novell.com>
16652 * dependencyobject.h:
16653 * dependencyobject.cpp: Nuke DO.GetDefaultValue as it just wraps the
16654 DP.GetDefaultValue function. Fixed the implementation of 'null'
16655 Value*. Now a Value* with GetIsNull () == true will be returned as
16656 'NULL' for calls to GetValue or GetValueNoDefault. This makes
16657 Value.GetIsNull opaque to native code so existing null checks will
16658 work as they should. The only function which is aware of GetIsNull is
16659 GetLocalValue, and this correctly handles this case.
16661 2009-01-06 Alan McGovern <amcgovern@novell.com>
16666 * dependencyproperty.g.cpp: Ensure correct exception is thrown when a
16667 null string is passed to PasswordBox.Password. Use correct range
16668 validation for MaxLength.
16670 2009-01-06 Alan McGovern <amcgovern@novell.com>
16672 * frameworkelement.h:
16673 * frameworkelement.cpp:
16674 * dependencyproperty.g.cpp: Default value for FE.Height and FE.Width is
16677 2009-01-06 Alan McGovern <amcgovern@novell.com>
16681 * frameworkelement.cpp: Implement proper validation of Setters and also
16682 correctly implement behaviour of sealed/unsealed styles. They are now
16683 passing all the NUnit tests except for one.
16685 2009-01-05 Chris Toshok <toshok@ximian.com>
16687 * frameworkelement.h, frameworkelement.cpp: remove all reference
16688 to template_namescope.
16690 * template.cpp (ControlTemplate::Apply): remove call to
16691 FrameworkElement::SetTemplateNameScope - just set it as the
16692 namescope on the root of the applied template. This way name
16693 references within the template resolve correctly.
16695 * control.cpp (Control::GetTemplateChild): with the above change,
16696 this just becomes template_root->FindName ()
16698 2009-01-05 Sebastien Pouliot <sebastien@ximian.com>
16700 * runtime.cpp: Add a null check in Surface::FocusElement since both
16701 the C bindings and the MouseLeftButtonDown event can call it with a
16702 NULL value causing a SIGSEGV.
16704 2009-01-05 Jeffrey Stedfast <fejj@novell.com>
16706 * textbox.cpp (TextBox::OnApplyTemplate): Override. Insert a
16707 TextBoxView in the appropriate place.
16709 * control.cpp (Control::GetTemplateChild): Now takes a const
16712 2009-01-05 Alan McGovern <amcgovern@novell.com>
16714 * uielement.h: Cursor shouldn't have a default value in SL2.
16717 * dependencyobject.h:
16718 * dependencyobject.cpp:
16719 * dependencyproperty.g.cpp: DO.Name defaults to String.Empty. Modify
16720 code calling NameScope::[Un]RegisterName to ignore empty names just
16721 like it ignores null names.
16723 2009-01-05 Alan McGovern <amcgovern@novell.com>
16727 * frameworkelement.h:
16728 * frameworkelement.cpp:
16729 * dependencyproperty.h:
16730 * dependencyproperty.cpp:
16731 * dependencyproperty.g.cpp: We need a reference to the current
16732 DependencyProperty so that write-once properties can be properly
16733 validated. Moved validation of StyleProperty from
16734 FrameworkElement.SetValue into the new StyleValidator.
16736 2009-01-05 Alan McGovern <amcgovern@novell.com>
16740 * dependencyobject.cpp:
16741 * dependencyproperty.h:
16742 * dependencyproperty.cpp: When validating the Value we need a reference
16743 to the current DependencyObject as some properties are
16744 write-once/read-only
16746 2009-01-02 Jeffrey Stedfast <fejj@novell.com>
16748 * textbox.cpp (TextBox): No longer maintains a TextLayout nor a
16749 dirty flag. TextBox is basically just a model now. Also added a
16750 ModelChanged event.
16751 (TextBox::Render): Removed.
16752 (TextBox::GetValue): Removed, dunno why it was ever overridden.
16753 (TextBox::OnPropertyChanged): Emit a ModelChangedEvent when the
16754 view needs to be updated.
16755 (TextBoxView): New class that renders the contents of a TextBox
16758 * value.cpp (Value::GetIsNull): Fixed compiler warning.
16760 * pipeline.h (class MediaMarker): dtor needs to be virtual.
16762 2009-01-02 Sebastien Pouliot <sebastien@ximian.com>
16764 * validators.cpp: Remove the printf calls (that won't compile under
16765 SLED10 without changing includes).
16767 2008-12-22 Alan McGovern <amcgovern@novell.com>
16772 * dependencyproperty.g.cpp: Add validators for the Border class
16776 * value.h.in: unused_padding is now used as a bitfield. Currently used
16777 to indicate whether an object is null or not
16779 * frameworkelement.cpp: the styles hashtable only indicates if the
16780 current value comes from a style. It does not show if a dp has been
16781 bound to a style. If the current value is cleared, we need to update
16782 from the style to repopulate the styles hashtable and correctly set
16783 the style value. This can be optimised by passing the current dp to
16786 * dependencyobject.cpp: When do.SetValue (dp, null) is called, correctly
16787 set the null value as opposed to calling do.ClearValue(dp).
16789 2008-12-22 Andreia Gaita <avidigal@novell.com>
16791 * cbinding.h|cpp, type-generated.cpp, type.h, value.h:
16792 Regenerated for DispatcherTimer
16794 * animation.h: Move Completed events to the timeline
16796 * clock.h|cpp: Add DispatcherTimer class, a timeline to drive a
16797 clock whose duration is the timer Interval property. The timeline's
16798 completed event is a tick of the timer, and the clock gets restarted
16800 Save the current time when a clock starts so that clocks that are
16801 set to be started on the next tick with BeginOnTick include the time
16802 between the BeginOnTick call and the actual Begin in their elapsed
16803 time. Also, clocks beneath the time manager root clock now track time
16804 since they were started, and not since the time manager started.
16806 2008-12-20 Larry Ewing <lewing@novell.com>
16808 * mediaelement.cpp (MediaElement::UpdateProgress):
16809 * media.cpp (Image::UpdateProgress): Change the delta from 0.0005
16810 to 0.05 which appears to be what the docs actually say.
16812 2008-12-19 Sebastien Pouliot <sebastien@ximian.com>
16814 * cbinding.cpp|h: Regenerated for read-only DP.
16815 * dependencyproperty.h: Expose IsReadOnly. Add read_only parameter
16816 to RegisterManagedProperty.
16818 2008-12-19 Alan McGovern <amcgovern@novell.com>
16822 * dependencyproperty.g.cpp: Add validation + tests for
16823 Storyboard.TargetNameProperty and TargetPropertyProperty
16825 2008-12-18 Chris Toshok <toshok@ximian.com>
16827 * control.h, text.h, frameworkelement.h, grid.h, mediaelement.h,
16828 textbox.h: decorate properties with @Validator attributes which
16829 the generator uses to generate the proper call to
16830 DependencyProperty::RegisterFull.
16832 * control.h, text.h, frameworkelement.h, grid.h, mediaelement.h,
16833 textbox.cpp: Remove the calls to
16834 DependencyProperty::SetValueValidator. They're generated by the
16835 generator now from our metadata.
16837 * dependencyproperty.cpp, dependencyproperty.h: add new parameter
16838 to RegisterFull prototypes so we can supply a validator at
16841 * dependencyproperty.g.cpp: regen.
16843 2008-12-18 Chris Toshok <toshok@ximian.com>
16845 * validators.cpp, validators.h: move these into a class instead of
16846 static C methods, and don't include C methods into every file. we
16847 were getting warnings every time they went unused, and namespacing
16848 with C++ is better than #including them all over the place.
16850 * grid.cpp, control.cpp, text.cpp, mediaelement.cpp, textbox.cpp,
16851 dependencyproperty.cpp, frameworkelement.cpp: track change above.
16853 2008-12-18 Chris Toshok <toshok@ximian.com>
16855 * xaml.cpp (class XamlElementInstanceManaged): this instance can
16856 be a DependencyObject sometimes. we need an instance field to
16858 (XamlElementInstanceManaged::XamlElementInstanceManaged): when
16859 @obj, set is_dependency_object to true. This fixes setting x:
16860 namescope properties on managed DependencyObject subclasses, as in
16861 '<Button x:Name="foo" />'.
16862 (dependency_object_add_child): remove the template case from here.
16863 it'll be handled differently (being parsed at application time,
16866 2008-12-18 Alan McGovern <amcgovern@novell.com>
16871 * mediaelement.cpp:
16872 * multiscaleimage.h:
16873 * multiscaleimage.cpp:
16874 * frameworkelement.cpp: Add validation to DPs
16876 2008-12-18 Alan McGovern <amcgovern@novell.com>
16878 * mediaelement.cpp: Add validation for NaturalVideoHeight and
16881 2008-12-18 Alan McGovern <amcgovern@novell.com>
16888 * dependencyobject.h:
16889 * frameworkelement.h:
16890 * frameworkelement.cpp:
16891 * dependencyproperty.cpp: Move parameter validation for DP's to use the
16892 new ValueValidator callback.
16894 * validators.h: All validators are defined in this header file so they
16895 can be easily reused for different DPs.
16897 2008-12-18 Alan McGovern <amcgovern@novell.com>
16899 * grid.cpp: Correctly set the validators - forgot to revert changes
16902 2008-12-18 Alan McGovern <amcgovern@novell.com>
16905 * dependencyobject.cpp:
16906 * dependencyproperty.h:
16907 * dependencyproperty.cpp: Add the ability to validate the value for a
16908 DependencyProperty before setting it.
16910 2008-12-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
16912 * text.h, text.cpp: Remove some useless code.
16914 2008-12-16 Alan McGovern <amcgovern@novell.com>
16918 * dependencyproperty.h: If a default value has been set in native code,
16919 propagate that to managed code.
16921 2008-12-15 Chris Toshok <toshok@ximian.com>
16923 * template.cpp (ControlTemplate::Apply): make sure we clear the
16924 toplevel namescope from the template tree. instead we keep a
16925 different namescope around (full of the duplicated elements) which
16926 is populated during DuplicateObject.
16928 2008-12-15 Jeffrey Stedfast <fejj@novell.com>
16930 * xaml.cpp: Macroize the static tables.
16931 (create_binding_expression_from_markup): Got rid of
16932 BindingExtension::path.
16933 (xaml_markup_parse_binding): Update the markup pointer before a
16936 2008-12-15 Jackson Harper <jackson@ximian.com>
16938 * xaml.cpp: fix typo.
16939 - remove sneaky debug
16941 2008-12-15 Jackson Harper <jackson@ximian.com>
16943 * xaml.cpp: Always check if we are in buffering mode. (Otherwise
16944 we'll get cdata content at the end of a template or a namespace
16945 handler during a template).
16947 2008-12-15 Alan McGovern <amcgovern@novell.com>
16950 * dependencyproperty.g.cpp: ShowGridLines is true by default.
16952 2008-12-15 Alan McGovern <amcgovern@novell.com>
16954 * control.cpp: Default foreground brush is black
16956 2008-12-12 Jackson Harper <jackson@ximian.com>
16958 * xaml.cpp: Remove some old code.
16960 2008-12-12 Jackson Harper <jackson@ximian.com>
16962 * xaml.cpp: Still need to call setproperty on non managed
16963 attributes, they could be events.
16965 2008-12-12 Jackson Harper <jackson@ximian.com>
16967 * xaml.cpp: A little cleanup so that we only try setting non-dp
16968 attributes on managed objects. (previously we would try but fail,
16969 so the results are basically the same, just less waste).
16971 2008-12-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
16973 * runtime.h: Make DetachDownloaders public so that the plugin can call
16976 2008-12-12 Alan McGovern <amcgovern@novell.com>
16978 * textbox.cpp: Add bounds checking to SelectionStartProperty too
16980 2008-12-12 Alan McGovern <amcgovern@novell.com>
16983 * textbox.cpp: Add range checking for MaxLengthProperty and
16984 SelectionLengthProperty
16986 2008-12-11 Sebastien Pouliot <sebastien@ximian.com>
16988 * dependencyobject.h: Name setter is public in SL2 final.
16990 2008-12-11 Chris Toshok <toshok@ximian.com>
16992 * control.h, control.cpp: hook up TemplateApplied event.
16994 * type-generated.cpp: regen.
16996 2008-12-11 Chris Toshok <toshok@ximian.com>
16998 * control.h (class Control): generate cbinding/pinvoke for
17001 * cbinding.h, cbinding.cpp: regen.
17003 2008-12-11 Alan McGovern <amcgovern@novell.com>
17005 * textbox.cpp: Unbreak the build.
17007 2008-12-11 Alan McGovern <amcgovern@novell.com>
17009 * textbox.cpp: It should not be possible to set a null value as the
17012 2008-12-11 Alan McGovern <amcgovern@novell.com>
17015 * dependencyproperty.g.cpp: Fix several issues with default values for
17016 TextBox and PasswordBox
17018 2008-12-11 Andreia Gaita <shana@jitted.com>
17020 * cbinding.h|cpp, clock.h: Framerate accessors
17022 2008-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
17024 * audio.cpp: Enqueue: don't enqueue anything if we've reached EOF. Also
17025 remove some stale code.
17027 2008-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
17029 * mediaplayer.cpp, mediaplayer.h: Added locking to accesses to the
17030 audio field. Added comments/explicit verification in every method
17031 describing which methods must be thread-safe and which aren't.
17033 2008-12-10 Jeffrey Stedfast <fejj@novell.com>
17035 * xaml.cpp (parser_error): Now takes varargs to simplify
17036 things. Fixed all callers to not strdup/g_strdup_printf (and leak)
17037 the message argument.
17038 (create_binding_expression_from_markup): Check that the source is
17039 a DO before casting.
17041 2008-12-10 Alan McGovern <amcgovern@novell.com>
17045 * type-generated.cpp:
17046 * dependencyproperty.g.cpp: PasswordCharProperty should be a char. This
17047 is represented by an int32 in unmanaged code.
17049 2008-12-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
17051 * audio-pulse.cpp: Fix int->enum conversion.
17053 2008-12-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
17055 * audio-pulse.h, audio-pulse.cpp: PulsePlayer: Use enum instead of
17056 random constants for the connected variable.
17058 2008-12-10 Jackson Harper <jackson@ximian.com>
17060 * xaml.cpp: Add a buffering mode to the parser, this mode is used
17061 for templates and simply buffers all the text without doing
17062 any real parsing. So everything between a
17063 <DataTemplate>..</DataTemplate> block is turned into a string.
17065 2008-12-10 Alan McGovern <amcgovern@novell.com>
17068 * textbox.cpp: Implement the SelectAll function and raise an event when
17069 the Password changes
17075 * type-generated.cpp:
17076 * dependencyproperty.g.cpp: Commit the files from the generator.
17078 2008-12-10 Alan McGovern <amcgovern@novell.com>
17080 * textbox.h: Partial implementation of the PasswordBox control
17082 2008-12-09 Chris Toshok <toshok@ximian.com>
17084 * template.h, template.cpp: add DataTemplates.
17086 * cbinding.h, cbinding.cpp, value.h, type.h, type-generated.cpp:
17089 2008-12-09 Jeffrey Stedfast <fejj@novell.com>
17091 * xaml.cpp (create_binding_expression_from_markup): Converter can
17092 also take a StaticResource.
17094 * playlist.cpp: Don't use ctype is*() with a char argument, these
17095 functions are meant to take unsigned char values cast to an
17096 int. Use the g_ascii_is*() functions instead.
17098 * xaml.cpp (create_binding_expression_from_markup):
17099 ConverterParameter can either be a string or a StaticResource. If
17100 it is a StaticResource, lookup the resource object.
17102 * binding.cpp (BindingExpressionBase::SetConverterParameter): Now
17103 takes a Value* since we need to handle either string or
17106 2008-12-09 Jackson Harper <jackson@ximian.com>
17108 * xaml.cpp: Don't use the cpp initializers.
17109 - More consistent naming.
17111 2008-12-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
17113 * audio-pulse.cpp, audio-pulse.h: Improve locking while waiting for
17114 pulseaudio to initialize - keep waiting if we get spurious wakeups.
17116 2008-12-09 Jeffrey Stedfast <fejj@novell.com>
17118 * xaml.cpp (create_binding_expression_from_markup): Lookup the
17119 StaticResource property for Source.
17121 * binding.cpp (BindingExpressionBase::SetSourceName): Removed. No
17123 (BindingExpressionBase::*): No longer do dynamic lookup of the
17126 2008-12-09 Sebastien Pouliot <sebastien@ximian.com>
17128 * usercontrol.cpp|h: Remove @CallInitialize and set IsTabStop to
17129 false in C++ constructor.
17131 2008-12-09 Jeffrey Stedfast <fejj@novell.com>
17133 * xaml.cpp (handle_xaml_markup_extension): Lots more refactoring
17135 (xaml_markup_parse_binding): Fixed to handle
17136 "Source={StaticResource ...}" syntax.
17138 2008-12-08 Sebastien Pouliot <sebastien@ximian.com>
17140 * usercontrol.h: Tag with @CallInitialize since IsTabStop is false
17141 for UserControl while it's true for Control
17143 2008-12-08 Jeffrey Stedfast <fejj@novell.com>
17145 * xaml.cpp: A bit of refactoring...
17147 * binding.cpp (BindingExpressionBase::SetConverterParameter):
17149 (BindingExpressionBase::SetConverterCulture): Same.
17150 (BindingExpressionBase::SetConverter): Same.
17151 (BindingExpressionBase::SetSourceName): Same.
17152 (BindingExpressionBase::AttachListener): Lookup the source by name
17153 if we don't already have it.
17154 (BindingExpressionBase::GetValue): Same.
17155 (BindingExpressionBase::UpdateSource): Same.
17157 * xaml.cpp (binding_expression_from_str): Finished implementing.
17159 2008-12-07 Jeffrey Stedfast <fejj@novell.com>
17163 Patches by Argiris Kirtzidis
17165 * dependencyobject.h: Fix forward declarations of classes declared
17168 * multiscaleimage.cpp (MultiScaleImage::RenderLayer): Use floating
17169 point constant to make sure we get the correct overload in MSVC.
17171 * playlist.cpp (duration_from_asx_str): Same.
17173 * value.cpp (Value::FreeValue): Free corner radius.
17175 2008-12-05 Geoff Norton <gnorton@novell.com>
17177 * audio-pulse.cpp: PulseAudio sometimes gives us errors sync,
17178 and sometimes async. Lets ensure we can actually connect before
17181 2008-12-05 Jeffrey Stedfast <fejj@novell.com>
17183 * runtime.cpp (Surface::FocusElement): Removed #if SL_2_0 check.
17185 * dependencyobject.cpp (DependencyObject::IsValueValid): Removed
17188 * binding.h (class Binding): Added more bool members.
17190 * xaml.cpp (binding_expression_from_str): New method to
17191 parse {Binding} markup syntax into a BindingExpression.
17192 (handle_xaml_markup_extension): Parse Binding markup extensions.
17194 2008-12-05 Chris Toshok <toshok@ximian.com>
17196 * deepzoomimagetilesource.h (class DeepZoomImageTileSource): fix
17197 the GenerateAccessors thing the right way.
17199 * dependencyproperty.g.cpp: regen.
17201 2008-12-05 Jackson Harper <jackson@ximian.com>
17203 * xaml.cpp: Move the markup extension handler out of
17204 set_attributes, ideally each markup extension will get it's own
17205 function eventually.
17207 2008-12-05 Jeffrey Stedfast <fejj@novell.com>
17209 * binding.cpp (Binding::SetPropertyPath): Fixed to take a const
17212 * xaml.cpp: Conditionally define DEBUG, which I guess is a
17213 temporary thing, in a way which will not spew gcc warnings.
17215 2008-12-05 Jackson Harper <jackson@ximian.com>
17217 * xaml.cpp: Let managed code own it's Value pointers.
17219 2008-12-04 Jackson Harper <jackson@ximian.com>
17221 * xaml.cpp: We can store the Value* in the base element instance
17222 now, since they all use a Value.
17224 2008-12-05 Fernando Herrera <fherrera@novell.com>
17227 * playlist.h: Don't check duration at playlist level but let MediaPlayer
17228 handle it. Don't do a delayed element->Play() for repeats because that
17229 can broke js doing "e.Play();e.Stop()"
17231 2008-12-04 Fernando Herrera <fherrera@novell.com>
17233 * playlist.cpp (Playlist::Open): Check duration properly.
17235 2008-12-04 Jeffrey Stedfast <fejj@novell.com>
17237 * binding.cpp: Get rid of excessive use of 'this' keyword.
17239 2008-12-04 Geoff Norton <gnorton@novell.com>
17241 * playlist.cpp: 100ms not 10s should be when we start playing the
17244 2008-12-04 Larry Ewing <lewing@novell.com>
17246 * layout.cpp (RenderLine): do all the filling in one pass rather
17247 than adding a stroke at the end. Tidy up the path creation and
17248 modification logic.
17250 2008-12-04 Jeffrey Stedfast <fejj@novell.com>
17252 We only support vector fonts, so get rid of the TextFont::Render()
17253 API that is only useful as an abstraction over rendering as bitmap
17254 vs pathing. Leave the *Path() APIs which are the only ones
17257 * layout.cpp (RenderLine): Don't bother checking IsScalable(), all
17258 fonts are scalable for now.
17260 * font.cpp (TextFont::RenderGlyphPath): Removed.
17261 (TextFont::Render): Same.
17263 2008-12-04 Sebastien Pouliot <sebastien@ximian.com>
17265 * control.h: Changed my mind and moved DefaultStyleKeyProperty and
17266 IsEnabledProperty to the managed world
17267 * dependencyproperty.g.cpp: regenerated
17269 2008-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
17271 * pipeline.cpp: IMediaDemuxer::GetBufferedSize: Only calculate buffered
17272 size using video and audio streams. Fixes #456154.
17274 2008-12-04 Jackson Harper <jackson@ximian.com>
17276 * xaml.cpp: The element instance now has ownership of the Value
17279 2008-12-03 Jackson Harper <jackson@ximian.com>
17281 * xaml.cpp: Cleanup managed namespaces when we shutdown.
17282 - Reduce the number of Value's we are creating. These still aren't
17283 being freed properly, but at least there isn't as many of them.
17285 2008-12-03 Geoff Norton <gnorton at novell.com>
17287 * media.cpp: Ensure we null our reference to the image loader in
17288 all the failure cases to avoid a possible double free/unref.
17290 2008-12-03 Alan McGovern <amcgovern@novell.com>
17293 * frameworkelement.h:
17294 * frameworkelement.cpp: If a Binding has bound to a datacontext, refresh
17295 the binding when the context is altered.
17297 2008-12-03 Alan McGovern <amcgovern@novell.com>
17299 * frameworkelement.h:
17300 * dependencyproperty.g.cpp: DataContext should take 'object'
17302 2008-12-03 Jackson Harper <jackson@ximian.com>
17304 * xaml.cpp: Call setproperty for all the children in the property
17305 block, this is needed because we aren't doing as much magic
17306 collection handling in addchild anymore.
17308 2008-12-02 Sebastien Pouliot <sebastien@ximian.com>
17310 * control.h: Add DefaultStyleKeyProperty and IsEnabledProperty
17311 * dependencyproperty.g.cpp: regenerated
17313 2008-12-02 Jackson Harper <jackson@ximian.com>
17315 * xaml.cpp: Map in enumerations in 2.0. So you can do something
17316 like <Visibility>Collapsed</Visibility>
17317 * enums.h|cpp: Expose a function so we can check if a certain enum
17320 2008-12-02 Jackson Harper <jackson@ximian.com>
17322 * xaml.cpp: We can map in non-DO managed elements now, so check to
17323 make sure it's actually a dependency object.
17324 - Pass NULL for the property name if we weren't able to query for
17325 a content property name. The managed backing might be able to
17326 find a name some other way.
17328 2008-12-02 Jackson Harper <jackson@ximian.com>
17330 * xaml.cpp: Return false if the base content property setter didnt
17333 2008-12-02 Alan McGovern <amcgovern@novell.com>
17337 * dependencyproperty.h:
17338 * dependencyproperty.cpp: Ensure the default value of a CustomDP is
17339 propagated to the unmanaged
17341 2008-12-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
17343 * dependencyobject.cpp: We need to raise changed events when clearing
17345 * cbinding.cpp, cbinding.h: Regenerated.
17347 2008-12-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
17349 * dependencyproperty.h: Added a IsNullable setter (instead of adding
17350 yet another parameter to the Register methods).
17352 2008-12-02 Andreia Gaita <shana@jitted.com>
17354 * Makefile.am, stackpanel.cpp|h: Add StackPanel implementation
17356 2008-12-02 Andreia Gaita <shana@jitted.com>
17358 * panel.cpp: Fix debugging messages
17360 2008-12-01 Larry Ewing <lewing@novell.com>
17362 * brush.cpp, brush.h: add Fill and Stroke methods to brush so that
17363 we can handle image and video brush opacity properly.
17369 * src/text.cpp: use the new Fill and Stroke methods when using
17370 brushes. Fixes test-imagebrush-opacity* when the masters are
17373 2008-12-01 Chris Toshok <toshok@ximian.com>
17375 * frameworkelement.h: add decl for ClearBindingExpression.
17377 * frameworkelement.cpp (FrameworkElement::ClearBindingExpression):
17378 factor out the 2 operations (Detach + hash_remove) here since
17379 we'll be calling it in a couple places.
17380 (binding_destroy): this should delete value, not call ValueFree.
17381 (FrameworkElement::SetBindingExpression): call
17382 ClearBindingExpression if there's a current one, and don't ref the
17383 expression. Value will hold one.
17384 (FrameworkElement::ClearValue): a couple of changes.
17386 1. Call ClearBindingExpression instead of just removing the
17387 binding from the hash (and not detaching it...)
17389 2. don't remove the style value from the style has.
17391 3. instead of looping over all the setters in the style just set
17392 the value back to the value in the styles hash.
17394 4. if we're going to be resetting the value to the style, don't
17395 notify listeners in UIElement::ClearValue. it'll happen in
17398 2008-12-01 Geoff Norton <gnorton@novell.com>
17400 * audio.cpp: Fix a logic error that prevented falling back to alsa when
17401 built with both pulse and alsa support.
17405 2008-12-01 Chris Toshok <toshok@ximian.com>
17407 * template.cpp, template.h: when copying the tree over, register
17408 the template element names to their instantiated counterparts.
17409 and build up a NameScope object as we go.
17411 * frameworkelement.cpp: add a "template_namescope" which maps
17412 names that were registered in the template itself to elements in
17413 the instantiated visual tree.
17415 * control.cpp (Control::GetTemplateChild): look the child up in
17416 the template namescope, not against the visual tree.
17418 2008-12-01 Jackson Harper <jackson@ximian.com>
17420 * xaml.cpp: Value types can not have properties set on them.
17422 2008-12-01 Fernando Herrera <fherrera@novell.com>
17424 * mediaelement.cpp:
17428 * playlist.h: Implement Server side playlists. Still missing duration based
17431 2008-12-01 Alan McGovern <amcgovern@novell.com>
17433 * border.h: ChildProperty should not be exposed
17435 2008-12-01 Alan McGovern <amcgovern@novell.com>
17437 * frameworkelement.cpp: If a null value is being set to a DP when using
17438 databinding, clear the value instead. Makes test pass. (left this out
17439 of the last commit)
17441 2008-11-28 Alan McGovern <amcgovern@novell.com>
17447 * frameworkelement.cpp: DataBinding now works for one-way, one-time and
17448 two-way bindings with managed objects.
17450 2008-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
17452 * audio.cpp: Remove a print_stack_trace.
17454 2008-11-27 Andreia Gaita <shana@jitted.com>
17456 * runtime.cpp: enable debug #if that was disabling the D key.
17458 2008-11-27 Alan McGovern <amcgovern@novell.com>
17460 * frameworkelement.cpp: Fix some build breakage under the SL1 profile.
17462 2008-11-27 Alan McGovern <amcgovern@novell.com>
17468 * frameworkelement.cpp: Allow the Binding class to be mapped between
17469 managed and unmanaged code.
17471 2008-11-26 Larry Ewing <lewing@novell.com>
17473 * shape.cpp (Shape::IsCandidateForCaching): add more logic to
17474 avoid the cache in special cases.
17476 2008-11-26 Jackson Harper <jackson@ximian.com>
17478 * xaml.cpp|h: clean up the managed/plugin interface, use Values
17479 for most things instead of expected DependencyObjects.
17480 * deepzoomimagetilesource.h|cpp: Add the uri property and a public
17481 constructor so we can parse these from attributes.
17483 * dependencyproperty.g.cpp: regen
17485 2008-11-26 Alan McGovern <amcgovern@novell.com>
17487 * frameworkelement.cpp: Store a Value * rather than
17488 BindingExpressionBase in the bindings hashtable to allow
17489 GetLocalValue to work.
17491 2008-11-26 Alan McGovern <amcgovern@novell.com>
17493 * frameworkelement.h:
17494 * dependencyobject.h:
17495 * frameworkelement.cpp: Styles are now used/ignored correctly when local
17496 values are set/unset. Added tests for this.
17498 * dependencyobject.cpp: GetLocalValueWithError should call GetLocalValue
17500 * shape.cpp: args->new_value will be null if DO.ClearValue has been
17501 called. In this case use DP.DefaultValue
17503 2008-11-26 Alan McGovern <amcgovern@novell.com>
17509 * frameworkelement.h:
17510 * dependencyobject.h:
17511 * frameworkelement.cpp:
17512 * dependencyobject.cpp: Implement a basic ReadLocalValue equivalent for
17513 unmanaged code. Only handles databindings.
17515 2008-11-26 Alan McGovern <amcgovern@novell.com>
17521 * frameworkelement.cpp: Rename the members of BidningExpressionBase to
17522 better reflect their actual usage.
17524 2008-11-26 Alan McGovern <amcgovern@novell.com>
17529 * collection.cpp: InsertWithError should return a bool to match Insert
17532 * media.cpp: Fix regression introduced in r119963 when changing which
17533 collection functions were virtual
17535 2008-11-25 Larry Ewing <lewing@novell.com>
17537 * uielement.cpp (UIElement::FrontToBack): enable ftb on 90 degress
17540 * media.cpp (Image::GetCoverageBounds): be slightly smarter about
17541 computing coverage.
17543 2008-11-25 Geoff Norton <gnorton@novell.com>
17545 * cbinding.(cpp|h): Regenerate
17546 * downloader.h: Expose the status code and status text to the
17547 DownloaderResponse object.
17549 2008-11-25 Alan McGovern <amcgovern@novell.com>
17557 * dependencyproperty.g.cpp: Added full support for sealing styles.
17559 2008-11-25 Stephane Delcroix <sdelcroix@novell.com>
17561 * multiscaleimage.h: element_to_logical_point
17563 2008-11-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
17565 * cbinding.cpp, cbinding.h: Regenerated.
17567 2008-11-24 Larry Ewing <lewing@novell.com>
17569 * media.cpp (MediaBase::SetSource): only queue a tick if we need
17570 to, fixes regression on mediaelement downloaders.
17574 2008-11-24 Larry Ewing <lewing@novell.com>
17576 * mediaelement.cpp (MediaElement::GetCoverageBounds): be more
17577 precise about the coverage bounds. Use the coveragebounds when
17578 invalidating based on position so that we don't invalidate a lot
17579 more area than we need to. Only use CAIRO_FILTER_FAST when
17580 playing use the default when in other states.
17582 2008-11-24 Geoff Norton <gnorton@novell.com>
17584 * media.cpp: If we do a SetSource on a image element with a
17585 completed downloader, short circuit the async call, as the downloader
17586 theoretically can be immediately reused in javascript after the call.
17587 Also remove the internal completed event after its been fired, for the
17588 same reason (downloader reuse). Fixes halo3
17592 2008-11-24 Larry Ewing <lewing@novell.com>
17594 * media.cpp, media.h: hide USE_OPT_RGB24 inside MOON_FORMAT_* use
17595 them where appropriate.
17597 * mediaplayer.cpp: use MOON_FORMAT_RGB.
17599 2008-11-24 Larry Ewing <lewing@novell.com>
17601 * brush.cpp, brush.h: add IsAnimating member to indicate if the
17602 brush is expected to change each render tick.
17604 * shape.cpp: don't cache animating brushes.
17606 2008-11-22 Jeffrey Stedfast <fejj@novell.com>
17608 * frameworkelement.cpp (FrameworkElement::SetBindingExpression):
17609 Set the destination element and property on the binding expression
17610 so that we can easily get at them in the callback when the source
17611 property changes. Instead of passing 'this' as the user_data
17612 argument to the property change handler, pass the expression.
17613 (FrameworkElement::BoundPropertyChanged): No longer need to
17614 iterate thru the hash table, we now are able to get all the info
17615 we need from the binding expression.
17616 (FrameworkElement::bound_property_changed): Updated.
17618 2008-11-21 Jeffrey Stedfast <fejj@novell.com>
17620 * frameworkelement.cpp (FrameworkElement::BoundPropertyChanged):
17621 Implemented properly (I think/hope).
17623 2008-11-21 Jeffrey Stedfast <fejj@novell.com>
17625 * binding.cpp (BindingExpressionBase::AttachListener): Now takes a
17626 callback and user data.
17627 (BindingExpressionBase::DetachListener): Now takes a callback.
17629 * frameworkelement.cpp (FrameworkElement::BoundPropertyChanged):
17630 Moved here from binding.cpp.
17631 (FrameworkElement::SetBindingExpression): Made protected instead
17633 (FrameworkElement::GetBindingExpression): Same.
17635 2008-11-21 Jeffrey Stedfast <fejj@novell.com>
17637 * frameworkelement.cpp: Fixed to build w/o SL2 support.
17639 2008-11-21 Larry Ewing <lewing@novell.com>
17641 * brush.cpp (VideoBrush::SetupBrush): make sure we use the fast
17642 filter in videobrush when scaling.
17646 2008-11-21 Jeffrey Stedfast <fejj@novell.com>
17648 * binding.cpp (changed_cb): Implemented... but it's
17649 wrong. Committing anyay with a big FIXME explaining why it's
17652 * frameworkelement.cpp (FrameworkElement::SetBindingExpression):
17653 New method to set a binding expression for a property.
17654 (FrameworkElement::GetBindingExpression): Get the binding
17655 expression for a property.
17656 (FrameworkElement::SetValueWithErrorImpl): Cleaned up the binding
17657 stuff to make the logic a bit clearer.
17659 2008-11-21 Jeffrey Stedfast <fejj@novell.com>
17661 * binding.cpp (BindingExpressionBase::AttachListener): We want to
17662 use AddPropertyChangeHandler(), not AddPropertyChangeListener() -
17663 we want to provide our own callback, not re-use
17664 OnSubPropertyChanged() for a purpose it wasn't meant for.
17666 * frameworkelement.cpp (FrameworkElement::OnSubPropertyChanged):
17667 #if 0'd out, we might not need this afterall.
17669 * panel.cpp (Panel::OnSubPropertyChanged): Reverted back to only
17670 chaining up if the property change wasn't handled.
17672 * text.cpp (Inline::OnSubPropertyChanged): Same.
17673 (TextBlock::OnSubPropertyChanged): Same.
17674 (Glyphs::OnSubPropertyChanged): Same.
17676 2008-11-21 Larry Ewing <lewing@novell.com>
17678 * shape.cpp: disable custom layout code as it seems to have
17679 changed in 2.0 final.
17681 2008-11-21 Alan McGovern <amcgovern@novell.com>
17683 * frameworkelement.cpp: If a style is already set, you cannot set it
17686 2008-11-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
17688 * value.cpp, value.h, value.h.in: Added a npobj field and Value ctor to
17689 create such a Value.
17691 2008-11-21 Alan McGovern <amcgovern@novell.com>
17693 * frameworkelement.cpp: Implement initial support for using a Style when
17696 2008-11-20 Jeffrey Stedfast <fejj@novell.com>
17698 * text.cpp (Inline::OnSubPropertyChanged): Always chain up.
17699 (TextBlock::OnSubPropertyChanged): Always chain up.
17700 (Glyphs::OnSubPropertyChanged): Always chain up.
17702 * geometry.cpp (Geometry::OnSubPropertyChanged): Always chain up.
17704 * brush.cpp (Brush::OnSubPropertyChanged): Always chain up.
17706 * panel.cpp (Panel::OnSubPropertyChanged): Always chain up.
17708 * binding.cpp (BindingExpressionBase::GetValue): Implemented, but
17709 might not be correct.
17711 * frameworkelement.cpp (FrameworkElement::OnSubPropertyChanged):
17714 2008-11-20 Jeffrey Stedfast <fejj@novell.com>
17716 * binding.cpp (BindingExpressionBase::AttachListener): Now takes
17717 an FE argument as the listener.
17718 (BindingExpressionBase::DetachListener): Same.
17720 * frameworkelement.cpp (FrameworkElement::SetValueWithErrorImpl):
17723 2008-11-20 Alan McGovern <amcgovern@novell.com>
17728 * frameworkelement.cpp: Add more support code for databinding.
17730 2008-11-19 Geoff Norton <gnorton@novell.com>
17732 * audio.cpp: If we fail to initialize pulseaudio, lets try alsa before
17733 giving up on media entirely.
17737 2008-11-19 Jeffrey Stedfast <fejj@novell.com>
17739 Note: the way this is abstracted will probably go thru several
17740 iterations of change.
17742 * frameworkelement.cpp (FrameworkElement::SetValueWithErrorImpl):
17743 Do special handling if setting a binding expression or if the
17744 value is replacing a binding expression.
17746 * dependencyobject.cpp (DependencyObject::IsValueValid): Made
17747 protected, no reason for this to be public.
17748 (DependencyObject::SetValueWithErrorImpl): New virtual method, has
17749 all the code logic of the old SetValueWithError().
17750 (DependencyObject::SetValueWithError): Call IsValueValid() and
17751 then SetValueWithErrorImpl().
17753 2008-11-19 Jeffrey Stedfast <fejj@novell.com>
17755 * frameworkelement.cpp (FrameworkElement::IsValueValid):
17756 Overridden so that we can check if the Value is a
17757 BindingExpression. All DependencyProperties of FrameworkElements
17760 2008-11-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
17762 * mediaplayer.h, mediaplayer.cpp: Make MediaPlayer use MediaElement's
17763 Rendered/DroppedFramesPerSecond DP.
17764 * pipeline.cpp: Fix warning.
17766 2008-11-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
17768 * dependencyproperty.g.cpp: Regenerated.
17769 * grid.h: ColumnDefinitionCollection doesn't have a public ctor.
17770 * mediaelement.h: Add RenderedFramesPerSecond, DownloadProgressOffset
17771 and DroppedFramesPerSecond.
17773 2008-11-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
17775 * cbinding.cpp, cbinding.h, dependencyproperty.g.cpp, text.h, type.h,
17776 type-generated.cpp, value.h: Added InputMethod.
17778 2008-11-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
17780 * geometry.cpp: Fix breakage in r119300.
17782 2008-11-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
17784 * dependencyproperty.g.cpp, transform.h: Corcompare.
17785 * geometry.h: Move FillRule from Geometry to
17786 PathGeometry/GeometryGroup.
17788 2008-11-18 Jeffrey Stedfast <fejj@novell.com>
17790 * expression.h, binding.cpp|h: added to the build
17792 2008-11-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
17794 * animation2.h, dependencyproperty.g.cpp: Corcompare fixes.
17796 2008-11-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
17798 * uielement.h: Define UseLayoutRounding accessors to unbreak build.
17800 2008-11-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
17802 * dependencyproperty.g.cpp, frameworkelement.h, style.h, trigger.h,
17803 uielement.h: More corcompare work.
17805 2008-11-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
17807 * cbinding.cpp, cbinding.h, trigger.h, type.h, type-generated.cpp,
17808 value.h: Add TriggerBase, make EventTrigger inherit from it and
17811 2008-11-17 Jeffrey Stedfast <fejj@novell.com>
17813 * enums.cpp (initialize_enums): Map BindingMode in unmanaged land.
17815 2008-11-17 Michael Dominic K. <mdk@mdk.am>
17817 * clock.cpp: Fixing seek-test-multiple-repeat.html (a problem with multiple
17818 repeats when seeking anims with RepeatBehavior >= 2.0).
17820 2008-11-17 Michael Dominic K. <mdk@mdk.am>
17822 * clock.cpp: When running without idle hint (runtime init) do not apply it
17823 here. Makes the idle hint switch actually do something and makes debugging
17826 2008-11-14 Michael Dominic K. <mdk@mdk.am>
17829 * animation.h: The KeySpline quadratics used to generate interpolation
17830 values are generated dynamically = faster and less mem.
17832 2008-11-14 Michael Dominic K. <mdk@mdk.am>
17835 * animation.h: Slightly more nice value caching.
17837 2008-11-14 Geoff Norton <gnorton@novell.com>
17840 * codec-url.h: Update to the final URLs for beta 1
17844 2008-11-14 Geoff Norton <gnorton@novell.com>
17846 * pipeline-ui.(cpp|h): Rework the pipeline for codec installation to
17847 handle the pango markup we're using.
17851 2008-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
17853 * mediaelement.cpp: SetMedia: when getting the playlist for an
17854 asxdemuxer, set the media for it. Fixes a memory leak (the media
17855 should get disposed with the playlist gets disposed).
17856 * pipeline.cpp, pipeline.h: Implement ASXDemuxer::Dispose.
17857 * playlist.cpp, playlist.h: Implement Playlist[Entry]::GetTypeName, and
17858 add a parameter to PlaylistEntry::SetMedia to specify whether the
17859 entry should start playing the media or not.
17861 2008-11-13 Sebastien Pouliot <sebastien@ximian.com>
17863 * runtime.cpp (running_on_nvidia): Fix leak of Display
17866 2008-11-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
17868 * mediaelement.cpp: MediaElement::Play: we want to queue a PlayNow
17869 request even if we're currently playing, there might be a PauseNow
17870 request already queued.
17872 2008-11-11 Sebastien Pouliot <sebastien@ximian.com>
17874 * pipeline-asp.cpp: Fix case where get_audio_data returns NULL
17877 2008-11-11 Geoff Norton <gnorton@novell.com>
17879 * Makefile.am: Only build the appropriate pipeline-ui based on wether
17880 we're building on a os/arch combo that supports the SMP.
17881 * codec-url.h: Set the appropriate CODEC_URL for our target platform
17882 * pipline-nocodec-ui.(cpp|h): New UI for unsupported OS/Arch targets
17883 of the codec install pipeline.
17885 2008-11-11 Geoff Norton <gnorton@novell.com>
17887 * debug.h: Its unlikely that debug flags will be set.
17891 2008-11-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
17893 * pipeline.cpp: IMediaStream::Dispose: delete our queue of frames.
17894 Plugs a memory leak.
17896 2008-11-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
17898 * playlist.cpp: Playlist::Dispose: dispose all the items in our entries
17901 2008-11-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
17903 * pipeline.cpp, pipeline.h: Plug a memory leak.
17905 2008-11-10 Geoff Norton <gnorton@novell.com>
17907 * runtime.cpp: Do not enable debug features by default, and remove a
17908 superflous warning.
17911 2008-11-10 Geoff Norton <gnorton@novell.com>
17913 * runtime.cpp: Force NVIDIA binary driver to go to the image backend
17914 to work around serious performance problems when we use accelerated
17918 2008-11-10 Chris Toshok <toshok@ximian.com>
17920 * runtime.cpp (copy_input_list_from_node): rename
17921 copy_input_list_with_visibility_check to this method. the
17922 caller (HandleMouseEvent) already walks over the list to determine
17923 if an element has total render or hittest visibility == false. By
17924 definition, everything before that in the input list (the input
17925 list is ordered from most deeply nested to the root) also has
17926 those == false, so we can short circuit things by traversing from
17927 the tail of the list, and then only copying the nodes we've seen
17928 before (but which come after) the offending one.
17930 2008-11-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
17932 * mediaplayer.cpp, mediaelement.cpp, playlist.cpp, playlist.h,
17933 pipeline.cpp: Instead of calling Media::Dispose in MediaElement,
17934 move that to Playlist(Entry) and Dispose of the playlist instead.
17935 This makes re-playing already played content in playlists work
17938 2008-11-10 Michael Dominic K. <mdk@mdk.am>
17941 * animation.h: Cache some vals internally in *Animation for better
17942 performance in loop-called routines.
17944 2008-11-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
17946 * audio.cpp, audio.h, mediaelement.cpp, mediaplayer.cpp, mediaplayer.h:
17947 Implement MediaElement.AudioStreamIndex.
17949 2008-11-07 Michael Dominic K. <mdk@mdk.am>
17951 * clock.cpp: Fixing one broken block in the AnimationMatrix2 test.
17952 It was broken but diff was too small to be picked by the test runner.
17954 2008-11-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
17956 * pipeline-ffmpeg.cpp: FfmpegDecoder::DecodeFrame: for audio packets we
17957 need to keep decoding until the entire input has been consumed.
17959 2008-11-06 Geoff Norton <gnorton@novell.com>
17961 * pipline(-ui).cpp: Move the codec location on more time.
17964 2008-11-05 Michael Dominic K. <mdk@mdk.am>
17967 * animation.h: Fixing one more mem-leak case. Fixes #436068.
17969 2008-11-06 Stephane Delcroix <sdelcroix@novell.com>
17971 * downloader.h: change the signature of downloaderRequestFinishedHandler
17972 to pass the resulting uri.
17974 * downloader.cpp: validate the returned uri against redirection policies
17978 2008-11-05 Jeffrey Stedfast <fejj@novell.com>
17980 Patches by Argiris Kirtzidis to fix bug #441687
17982 * audio.cpp: Use g_alloca() to create dynamically sized arrays on
17983 the stack rather than relying on g++ features.
17985 * clock.cpp: Applied MSVC portability patch which implements
17988 2008-11-04 Fernando Herrera <fherrera@novell.com>
17990 * mediaplayer.cpp: Add logging information about selected streams
17993 2008-11-03 Jeffrey Stedfast <fejj@novell.com>
17995 See tests/xaml/test-textblock-actualheight.html and
17996 test-textblock-hittest.html as compared with Microsoft
17999 * layout.cpp (TextLayout::Layout*): trailing LineBreak elements
18000 actually do count toward ActualHeight metrics.
18002 2008-11-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
18004 * audio-pulse.cpp: OnContextStateChanged: always print an error message
18005 if we fail to connect to pa daemon.
18007 2008-11-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
18009 * mediaelement.h, mediaelement.cpp: Add a MissingCodecs flag and don't
18010 invalidate when that flag is set.
18012 2008-11-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
18014 * runtime.cpp: get_flags: take the default flags as an argument, this
18015 way the environment variables can disable flags which are enabled
18018 2008-11-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
18020 * pipeline-ui.cpp, runtime.h, runtime.cpp, pipeline.cpp: Only enable ms
18021 codecs by default for browsers.
18023 2008-11-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
18025 * mediaplayer.cpp: FrameCallback: If the frame couldn't be retrieved
18026 because of a buffer underflow and we're waiting for the initial
18027 frame, enqueue a request for another frame. Fixes #440317.
18029 2008-11-03 Larry Ewing <lewing@novell.com>
18031 * rect.h (struct Rect): clamp the intersection w/h to 0 fixes some
18032 extreme exposure issues in popfly.
18034 2008-11-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
18036 * runtime.h: Remove #include <config.h> from headers
18038 2008-11-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
18040 * mp3.h, mp3.cpp: Mp3FrameReader::TryReadFrame: if we don't succeed in
18041 reading a header, try to sync to one. FindMpegHeader: Return proper
18042 error code (MEDIA_NO_MORE_DATA) if we can't read more data. Fixes
18043 #426440 (slideshow doesn't go beyond the first slide).
18045 2008-11-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
18047 * mediaelement.h, mediaelement.cpp: When a AutoPlay=False media is
18048 opened, the final state is Stopped, not Paused. When media finish,
18049 the final state is Paused, not Stopped. Fixes #365827.
18051 2008-11-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
18053 * audio-alsa.cpp: Add another dlopened symbol, fixes an unresolved
18054 external reference.
18056 2008-11-03 Fernando Herrera <fherrera@novell.com>
18064 * dependencyobject.cpp:
18067 * http-streaming.cpp:
18070 * mediaelement.cpp:
18072 * mms-downloader.cpp:
18073 * pipeline-asf.cpp:
18074 * pipeline-ffmpeg.cpp:
18083 * yuv-converter.cpp: Change debug macros to runtime conditionals based
18084 on MOONLIGHT_DEBUG env variable of compile time. Checks are only
18085 enabled if configured with --with-debug=yes option.
18087 2008-11-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
18089 * debug.cpp: Don't dlopen mono, just link with it if -with-debug is
18092 2008-11-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
18094 * pipeline-ffmpeg.cpp: Revert r117547 and related.
18096 2008-11-02 Chris Toshok <toshok@ximian.com>
18098 * text.cpp (TextBlock::InsideObject): textblocks are hit only in
18099 their ActualWidth/ActualHeight, not in the full bounding
18100 rectangle. Fixes bug #434258.
18102 2008-10-31 Chris Toshok <toshok@ximian.com>
18104 * runtime.h, runtime.cpp: remove transparency from properties of
18106 (Surface::PaintToDrawable): add a @transparent argument to this
18109 * window-gtk.cpp (MoonWindowGtk::expose_event): pass the window's
18110 transparency to Surface::PaintToDrawable.
18112 * window.h: move the idea of transparency here from Surface.
18114 2008-10-31 Jeffrey Stedfast <fejj@novell.com>
18116 Portability patch by Argiris Kirtzidis.
18118 * *.cpp: s/#if false/#if 0/g and s/#if true/#if 1/g
18120 * xaml.cpp (start_element): strchr() returns const.
18121 (repeat_behavior_from_str): Same.
18123 2008-10-31 Larry Ewing <lewing@novell.com>
18125 * runtime.cpp (Surface::PaintToDrawable): instead of the content
18126 type check if active_window is fullscreen. This is uglier but the
18127 mozilla hands us rgb drawables not rgba drawables so until we have
18128 a better plan this will solve the problem.
18130 2008-10-31 Larry Ewing <lewing@novell.com>
18132 * runtime.cpp (Surface::PaintToDrawable): only follow the
18133 transparent path if our target supports it.
18135 2008-10-31 Sebastien Pouliot <sebastien@ximian.com>
18137 * pipeline-asp.cpp (ASFDemuxer::ReadHeader): Fix logic when skipping
18138 a bad stream so we dont include NULL holes streams[]
18140 2008-10-31 Michael Dominic K. <mdk@mdk.am>
18142 * runtime.cpp: Reverting for now the recent crossing events
18143 changes -- causes issues with Ink Journal.
18145 2008-10-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
18147 * pipeline.h, pipeline.cpp: Added IMediaStream::GetMediaTypeName.
18148 * mediaplayer.cpp: Use IMediaStream::GetMediaTypeName instead of
18149 complex ifs on the GetType return value.
18151 2008-10-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
18153 * debug.cpp: dlopen libmono too for our stack walking methods.
18155 2008-10-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
18157 * pipeline-ffmpeg.cpp: Don't use ffmpeg version defines which aren't
18158 present in older ffmpeg version (r10885).
18160 2008-10-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
18162 * pipeline-ffmpeg.cpp: DecodeFrame: free the frame after error
18165 2008-10-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
18167 * pipeline-ffmpeg.cpp: dlopen ffmpeg.
18169 2008-10-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
18171 * pipeline.cpp: Fix warning (variable might be used uninitialized).
18173 2008-10-30 Jeffrey Stedfast <fejj@novell.com>
18175 Fix for bug #435815.
18177 * stylus.cpp (StrokeCollection::AddedToCollection): Override so
18178 that we can avoid aborting if a stroke already has a logical
18179 parent (not an error for strokes).
18181 * error.h (MoonError::Clear): New convenience method.
18183 2008-10-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
18185 * libmoon.h: Fix build.
18187 2008-10-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
18189 * audio.cpp, brush.cpp, cbinding.h, dependencyproperty.g.cpp,
18190 Makefile.am, media.cpp, media.h, mediaelement.cpp, mediaelement.h,
18191 mediaplayer.cpp, mediaplayer.h, pipeline.cpp, type-generated.cpp,
18192 src.mdp, playlist.cpp: Split MediaElement out from media.[cpp|h]
18193 into its own mediaelement.[cpp|h].
18195 2008-10-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
18197 * type-generated.cpp, Makefile.am, media.h, mediaplayer.cpp,
18198 mediaplayer.h, mplayer.cpp, mplayer.h, src.mdp: Rename
18199 mplayer.[cpp|h] -> mediaplayer.[cpp|h].
18201 2008-10-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
18203 * cbinding.cpp, cbinding.h: Regenerated.
18205 2008-10-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
18207 * audio.cpp, audio-pulse.cpp, media.cpp, mms-downloader.h, mp3.cpp,
18208 mplayer.h, pipeline.cpp, pipeline.h, pipeline-asf.cpp,
18209 pipeline-asf.h, src.mdp, xaml.cpp: Move asf related bits from
18210 pipeline.[h|cpp] to pipeline-asf.[h|cpp].
18212 2008-10-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
18214 * pipeline.h: IMediaDemuxer: Add Source getter.
18215 * pipeline.cpp: IMediaDemuxer::GetLastAvailablePts: don't take into
18216 account streams which aren't selected. IMediaStream::AppendFrame:
18217 update last available pts with the frame's pts.
18218 * media.cpp: MediaElement::CalculateBufferingProgress: never use last
18219 available pts to calculate buffering progress for streams which can
18220 seek to directly to the requested pts. Fix math to check for
18221 negative values to avoid weird results.
18223 2008-10-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
18225 * media.cpp, media.h: MediaElement: fix buffering progress after
18226 seeking regression - don't only use the buffer level in the
18227 pipeline to report buffering progress, but take into accout the
18228 point from where we seek.
18229 * mp3.h, mp3.cpp: Store the AudioStream in the frame reader and update
18230 the stream's LatestAvailablePts field whenever we read a frame.
18231 Also rename the previous 'stream' (IMediaSource*) field to 'source'
18232 to avoid confusion with AudioStream.
18233 * pipeline.cpp, pipeline.h: Add a last_available_pts field to
18234 IMediaStream and the corresponding GetLastAvailablePts to
18235 IMediaDemuxer, enabling the calculation of correct buffering
18236 progress after a seek. This also requires a codec abi version bump.
18238 2008-10-29 Sebastien Pouliot <sebastien@ximian.com>
18240 * clock.h: Change MilliSeconds_[From|To]Pts to use the new
18241 PTS_PER_MILLISECOND define.
18242 * mplayer.cpp: Rework fix on GetTimeoutInterval to avoid a division
18243 resulting in zero (and the endless loop of #439631).
18245 2008-10-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
18247 * mplayer.cpp: GetTimeoutInterval: Calculate timeout correctly. Fixes
18250 2008-10-28 Jeffrey Stedfast <fejj@novell.com>
18252 * downloader.cpp (scheme_is): Check protocol non-null.
18253 (same_scheme): Same.
18255 * uri.cpp (Uri::Parse): If no protocol is found, init to NULL
18256 instead of file. Also make sure to parse the path in all valid
18259 2008-10-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
18261 * mplayer.cpp: LoadVideoFrame: if target_pts is invalid, set 0 as
18263 * media.cpp: AdvanceFrame: handle cases where position = -1 and don't
18266 2008-10-27 Jeffrey Stedfast <fejj@novell.com>
18268 * uri.cpp (Uri::Parse): Do a bit better than just strchr() for ':'
18269 to parse out the uri scheme.
18271 2008-10-27 Jeffrey Stedfast <fejj@novell.com>
18273 Performance optimization patch for bug #409793
18275 * stylus.cpp (Stroke::AddStylusPointToBounds): Modified to take a
18276 Rect bounds argument so that we can update a bounds of our
18278 (Stroke::ComputeBounds): Updated.
18279 (Stroke::OnCollectionChanged): Update our new 'dirty' bounds.
18280 (Stroke::OnCollectionItemChanged): Same.
18281 (InkPresenter::PostRender): Reset stroke dirty regions.
18282 (InkPresenter::OnCollectionItemChanged): Invalidate only the
18283 stroke's dirty region.
18285 2008-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
18287 * media.cpp: TryOpen: Don't try to open anything if downloaded_file is
18290 2008-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
18292 * mplayer.cpp: LoadVideoFrame: Don't check if buflen = 0, makes things
18294 * pipeline-ffmpeg.cpp, pipeline-ffmpeg.h: CleanState: Properly clean
18295 up/reset codec. DecodeFrame: ffmpeg might delay output one frame,
18296 i.e. the decoder output is the input of the previous time we called
18297 avcodec_decode_video, so keep track of pts from previous frame and
18298 properly set pts of the decoded frame.
18300 2008-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
18302 * mplayer.cpp: LoadVideoFrame: show the frame if the end pts of the
18303 frame is above the target pts (previously we only showed the frame
18304 if the start pts was above the target pts, causing us to show one
18305 frame too late). Fixes test-asf-demuxer-shuffled-payloads.html.
18307 2008-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
18309 * media.cpp: MediaElement::Play: Call Play when in Opening state too.
18311 2008-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
18313 * mplayer.cpp: AdvanceFrame/GetCurrentPts: if the audio isn't playing
18314 we should just work as if there's no audio at all. The video might
18315 play after the audio has stopped if the a/v streams have different
18318 2008-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
18320 * pipeline.cpp: Media::ClearQueue: delete the list nodes with the
18321 queue_mutex unlocked, since the node dtor may cause unrefs, causing
18322 other dtors to be called, and it may all end up in Media::Dispose
18323 which will then try to lock the mutex again (and deadlock).
18325 2008-10-24 Jeffrey Stedfast <fejj@novell.com>
18327 * font.cpp (style_info_parse): Tokenize the style string so that
18328 the individual sub-parsers can be a bit smarter than than
18330 (style_width_parse): Made smarter - now handles lwsp between
18331 multi-word width specifiers (or no lwsp at all).
18332 (style_weight_parse): Same.
18334 2008-10-23 Larry Ewing <lewing@novell.com>
18336 * media.cpp: remove compute bounds since it mirrors
18337 FrameworkElement now.
18339 2008-10-23 Larry Ewing <lewing@novell.com>
18341 * shape.cpp, shape.h: remove origin fixup GetOriginPoint and
18344 2008-10-23 Jeffrey Stedfast <fejj@novell.com>
18346 * textbox.cpp (TextBox::Paint): Updated.
18348 * text.cpp (TextBlock::Paint): Updated.
18350 * layout.cpp (TextLayout::Render): Swapped origin & offset
18351 arguments which feels more natural to me.
18353 2008-10-23 Sebastien Pouliot <sebastien@ximian.com>
18355 * pipeline.cpp: (ASFDemuxer::ReadHeader): Don't allow video height or
18356 width over 2048 pixels since this is likely to be corrupted values.
18357 * pipeline.h: Define MAX_VIDEO_[HEIGHT|WIDTH] to 2048 (I'm sure that
18358 someday people will laugh at me for proposing such a small value)
18360 2008-10-23 Larry Ewing <lewing@novell.com>
18362 * layout.cpp, layout.h: Change the Render api to drop the uielement argument.
18365 * text.cpp: call layout with the new arguments.
18367 2008-10-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
18369 * mplayer.cpp: Pause: Don't set the SeekSynched flag. This would cause
18370 fast-forwarding video when seeking to a position which hadn't been
18371 downloaded (since we automatically pause the video then). Fixes
18374 2008-10-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
18376 * mplayer.h, mplayer.cpp: Implement RenderedFramesPerSecond and
18377 DroppedFramesPerSecond. Only in SL 2.0, but very useful for
18380 2008-10-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
18382 * pipeline.h, pipeline.cpp: Increase codec ABI version (IMediaStream
18383 changed size). IMediaStream: Remove msec_per_frame, it's already in
18384 VideoStream. VideoStream: make msec_per_frame be pts_per_frame to
18385 loose less precision.
18386 * mplayer.cpp: Calculate advance frame timeout based on video fps.
18388 2008-10-22 Chris Toshok <toshok@ximian.com>
18390 * runtime.cpp (Surface::HandleUICrossing): disable the crossing
18391 check from r116528 in the case of a windowless plugin (where
18392 event->window == NULL). Also, active_window->GetGdkWindow should
18393 never be trusted to return the actual window - it's use is
18394 strictly to find the screen/monitor for full-screening. In the
18395 windowless case it returns the toplevel netscape window.
18397 2008-10-22 Larry Ewing <lewing@novell.com>
18399 * brush.cpp, brush.h: remove the uielement references from the api
18400 pass the required information as a rect to SetupBrush instead.
18402 * shape.cpp, shape.h:
18408 * broder.cpp: update SetupBrush callers for the new signature.
18410 2008-10-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
18412 * audio.h, audio.cpp: AudioSource: Initialize last_write_pts and
18413 last_current_pts to their max value, to detect when they haven't
18414 been set yet. Properly reinitialize these variables (to their max
18415 values) in Stop, and make GetCurrentPts return G_MAXUINT64 for this
18417 * mplayer.cpp: AdvanceFrame: the audio might return G_MAXUINT64 for
18418 current pts, handle this. Fixes fast-forwarding issue in #435908.
18420 2008-10-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
18422 * mp3.cpp: Mp3Demuxer::SeekInternal: Initialize result so that we don't
18423 use random memory if we don't have a reader.
18425 2008-10-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
18427 * mms-downloader.cpp: Add logging methods.
18429 2008-10-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
18431 * media.cpp: Sprinkle Dispose calls to plug leaks.
18433 2008-10-20 Chris Toshok <toshok@ximian.com>
18435 * pipeline.cpp (Media::RegisterMSCodecs): free libmscodecs_path
18436 before reassigning (and reallocating memory for) it.
18438 * dependencyobject.h, dependencyobject.cpp: add an optional
18439 argument to all the EventObject::AddHandler* overloads, called
18440 data_dtor, which is invoked just before the EventClosure is
18441 destroyed so that the data can be freed.
18443 2008-10-20 Chris Toshok <toshok@ximian.com>
18445 * window-gtk.h, window-gtk.cpp: move the Surface conversion from
18446 MouseCursor -> GtkCursor here.
18448 * runtime.h, runtime.cpp: surface only deals with MouseCursors
18449 anymore. the gtk support is in window-gtk now.
18451 * window.h: remove SetCursor (GdkCursor) and add
18452 SetCursor (MouseCursor), so subclasses of MoonWindow can do their
18455 2008-10-20 Jeffrey Stedfast <fejj@novell.com>
18457 * media.cpp (MediaElement::MediaOpened): If the stream decoder is
18458 null, use null for the decoder_name. Fixes a segfault.
18460 2008-10-20 Sebastien Pouliot <sebastien@ximian.com>
18462 * pipeline.cpp (ASFDemuxer::ReadHeader): Don't count invalid streams
18463 since a lot of loops don't handle NULL values.
18465 2008-10-20 Michael Dominic K. <mdk@mdk.am>
18467 * runtime.cpp: More fixes to crossing events: when entering fullscreen
18468 ignore the crossing events coming from previous window. Otherwise we get
18469 double enter/leave pair.
18471 2008-10-20 Michael Dominic K. <mdk@mdk.am>
18473 * window-gtk.cpp: GetGdkWindow () - handle the fullscreen window case
18474 correctly (no parent window).
18476 2008-10-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
18478 * debug.h, pipeline.cpp, audio.cpp: #define print_stack_trace to
18479 nothing if not DEBUG is set, removing the need for surrounding all
18480 print_stack_trace calls with #if DEBUG.
18482 2008-10-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
18484 * pipeline.cpp: Remove debugging code.
18486 2008-10-17 Michael Dominic K. <mdk@mdk.am>
18490 * applier.h: Fixing one more osbcure case of Storyboard transitions where
18491 stopping a prev sboard makes the next one starting from bad base value.
18493 2008-10-17 Michael Dominic K. <mdk@mdk.am>
18495 * runtime.cpp: Make sure we get the new pointer motion notify when
18496 entering/leaving fullscreen. This fixes the fullscreen-enter-leave test
18497 but interestingly doesn't fix the original problem of #434267.
18499 2008-10-17 Sebastien Pouliot <sebastien@ximian.com>
18501 * runtime.cpp (Surface::PaintToDrawable): Don't leak cairo context
18502 when using "backend=image".
18504 2008-10-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
18506 * pipeline.cpp: NullDecoder::OpenVideo: Fix comment (logo is centered
18507 now, not tiled), and fix inner loop, we were including one pixel
18508 too many for width and height.
18510 2008-10-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
18512 * pipeline.cpp: RegisterMSCodecs: if there's no codec in
18513 ~/.mozilla/plugins, use just the filename of the codec library and
18514 make dlopen search for it. This makes it easier to run parallell
18515 tests from different revisions without having the codecs from each
18516 revision overwrite eachother in user's home.
18518 2008-10-16 Geoff Norton <gnorton@novell.com>
18520 * pipeline.cpp: Dont tile our logo, it looks like ass. Lets
18521 center it in the available window instead.
18523 2008-10-16 Geoff Norton <gnorton@novell.com>
18525 * pipeline-ui.cpp: Avoid a resize when realizing which causes an
18526 annoying flicker in the codec window.
18528 2008-10-16 Geoff Norton <gnorton@novell.com>
18530 * pipeline.cpp: Unbreak the world.
18532 2008-10-16 Geoff Norton <gnorton@novell.com>
18534 * pipeline(-ui).cpp: Use the updated mscodec name and location.
18536 2008-10-16 Fernando Herrera <fherrera@novell.com>
18538 * playlist.cpp: Fix a segfault parsing ASX3 malformed files.
18540 2008-10-16 Sebastien Pouliot <sebastien@ximian.com>
18542 * text.cpp (TextBlock::Layout): Delay allocation of List so that we
18543 don't leak when TextBlock::TextProperty is NULL.
18545 2008-10-16 Sebastien Pouliot <sebastien@ximian.com>
18547 * runtime.cpp (Surface::SetCursor): Unref cursors once they are set
18548 on the window. Fix one more leak.
18550 2008-10-16 Jb Evain <jbevain@novell.com>
18552 * collection.cpp: TriggerCollection, UIElementCollection, InlineCollection:
18553 mark managed constructor internal.
18555 2008-10-16 Jb Evain <jbevain@novell.com>
18557 * collection.cpp (RemoveAtWithError): throw an ArgumentOutOfRangeException
18558 instead of an ArgumentException when providing an out of range index.
18560 2008-10-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
18562 * window-gtk.cpp, window.h: Add file header and fix copy-paste error.
18564 2008-10-15 Chris Toshok <toshok@ximian.com>
18566 * runtime.cpp (Surface::HandleUIKeyPress): check to see if the key
18567 is already down, and if so, don't emit another event. (really?
18568 there's a test for this? ugh.). also, let Keyboard know the key
18570 (Surface::HandleUIKeyRelease): let Keyboard know the key is up.
18572 * eventargs.h, eventargs.cpp (class Keyboard): augment Keyboard
18573 quite a bit -- it might soon deserve its own file. It now
18574 maintains a static hashtable of keys that are pressed/released
18575 inside the moonlight plugin, and has logic to map a gdk keyval to
18576 Key, and query if a particular key is pressed.
18578 2008-10-15 Larry Ewing <lewing@novell.com>
18580 * uielement.cpp: fix the transform ordering.
18582 * canvas.cpp, canvas.h: handle the toplevel canvas correctly.
18584 2008-10-15 Larry Ewing <lewing@novell.com>
18586 * uielement.cpp, uielement.h: remove UpdatePosition and
18587 ComputePosition, all transform changes are handled in
18588 ComputeTransform now.
18590 * shape.cpp, shape.h: update for the new transform api.
18592 * dirty.cpp, dirty.h: remove DirtyPostion is it no longer needed.
18594 * canvas.cpp: Use UpdateTransform.
18596 * point.h: add a (lame) == operator.
18598 2008-10-15 Larry Ewing <lewing@novell.com>
18600 * geometry.cpp, geometry.h: add shape bounds caching to all
18601 geometry classes apply the transform when retrieving the bounds.
18602 Make GetBounds the public bounds interface and make the
18603 computation interface protected.
18605 * shape.cpp, uielement.cpp: call use GetBounds not ComputeBounds.
18607 2008-10-14 Larry Ewing <lewing@novell.com>
18609 * geometry.cpp, geometry.h: remove unused arguments to
18610 ComputeBounds remove caching from PathGeometry.
18612 * uielement.cpp, shape.cpp: call with correct arguments.
18614 2008-10-14 Larry Ewing <lewing@novell.com>
18616 * uielement.cpp, uielement.h: make ComputeTransform virtual and
18617 have it return a bool.
18619 * shape.cpp, shape.h: override ComputeTransform and optimize the
18620 bounds computations. Use a general ComputeShapeBounds for actual
18621 drawn bounds compuations for now.
18623 * dirty.cpp (Surface::ProcessDownDirtyElements): add a short
18624 circuit path to DirtyTransform for elements that can recompute
18625 without updating bounds.
18627 2008-10-13 Larry Ewing <lewing@novell.com>
18629 * geometry.cpp, geometry.h: remove unused arguments from function
18632 * uielement.cpp, shape.cpp: update calls.
18634 2008-10-15 Jeffrey Stedfast <fejj@novell.com>
18636 Fix for bug #435798
18638 * text.cpp (TextBlock::TextBlock): Let OnPropertyChanged() know
18639 that we are setting the default brush/inlines.
18640 (TextBlock::Layout): If no Text value has yet been set, use 0.0 as
18643 2008-10-14 Chris Toshok <toshok@ximian.com>
18645 * window-gtk.h, window-gtk.cpp (MoonWindowGtk::GetGdkWindow): ref
18647 (MoonWindowGtk::InitializeFullScreen): unref the return value of
18650 * cbinding.h, cbinding.cpp: regen so we don't have to use void*
18651 for the parent parameter to MoonWindowGtk.
18653 2008-10-14 Sebastien Pouliot <sebastien@ximian.com>
18655 * applier.cpp|h: Add a readonly flag to ensure nothing gets added in
18656 the hashtable while we're flushing it on shutdown. Add a few more
18657 checks and avoid re-creating the hashtable on flush.
18659 2008-10-14 Geoff Norton <gnorton@novell.com>
18661 * pipeline-ffmpeg.cpp: FFMpeg changed the API with version #52, no
18662 longer requiring the bits_per_pixel.
18664 2008-10-14 Stephane Delcroix <sdelcroix@novell.com>
18666 * window.h: GetGdkWindow () method
18668 * window-gtk.h|.cpp: implement GetGdkWindow, new ctor signature
18669 taking the parent window reference. Only go fullscreen on the monitor
18670 moonlight is running on.
18672 * runtime.cpp: call the new MoonWindowGtk ctor
18674 2008-10-14 Fernando Herrera <fherrera@novell.com>
18676 * pipeline-ui.cpp: Override codecs download URL with
18677 MOONLIGHT_CODEC_URL env variable if present.
18679 2008-10-13 Jeffrey Stedfast <fejj@novell.com>
18681 * xaml.cpp (XamlLoader::CreateFromFile): Since we use the nread
18682 variable expecting it to be the value returned from read(), don't
18683 modify it inside the loop, use another variable for that. Before
18684 eating leading whitespace, make sure we have data.
18686 2008-10-13 Fernando Herrera <fherrera@novell.com>
18688 * audio.cpp: Fix AudioSources::GetNext iteration for next playing
18689 source logic. Fixes bug #433267
18691 2008-10-13 Jeffrey Stedfast <fejj@novell.com>
18693 * media.cpp (MediaElement::Play): Don't add a TickCall to start
18694 playing if we haven't even opened the media yet. Fixes bug
18697 2008-10-13 Michael Dominic K. <mdk@mdk.am>
18699 * dependencyproperty.cpp: Fixing a mem leak.
18701 2008-10-13 Michael Dominic K. <mdk@mdk.am>
18703 * animation.cpp: Reverting the whole attaching-to-prev storage in Begin.
18704 This fixes some recent problems in PopFly.
18706 2008-10-10 Jeffrey Stedfast <fejj@novell.com>
18708 * downloader.cpp (validate_policy): Made static so we don't export
18711 2008-10-10 Sebastien Pouliot <sebastien@ximian.com>
18713 * dependencyproperty.cpp (detach_target_func): Fix bad function
18714 signature for GHFunc.
18715 * dependencyobject.cpp (unref_object): Fix bad function signature
18718 2008-10-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
18720 * pipeline.h, pipeline.cpp: Media: Add a BufferingEnabled flag, don't
18721 start buffering until this is set to true (starts out as false).
18722 * media.cpp: Only enable buffering on the media after reading the
18723 markers, otherwise we may loose markers in the beginning of the
18724 media. Fixes test-asf-demuxer-big-markers.html. Also don't add a
18725 tick call to notify the MediaElement that a marker has been added,
18726 always check in AdvanceFrame.
18727 * mplayer.cpp: Add a null check in a printf.
18729 2008-10-10 Larry Ewing <lewing@novell.com>
18731 * media.cpp (Image::DownloaderComplete): handle the case where the
18732 sureface uri and the new uri are the same.
18734 2008-10-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
18736 * pipeline-logo.cpp: New logo.
18738 2008-10-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
18740 * media.cpp: MediaElement::Reinitialize: Dispose the media to break
18742 * mplayer.cpp: AdvanceFrame: don't decode here anymore, we shouldn't
18743 get non-decoded frames anymore. Open: Handle null demuxers,
18744 shouldn't happen, but at least we won't crash if it happens.
18745 * pipeline.cpp, pipeline.h: Media::~Media: move cleanup to Dispose.
18746 Media::Open: unref the decoder after giving it to the stream, the
18747 stream now take a ref on the decoder. Media::EnqueueWork:
18748 queued_requests might be nothing if we're disposed. IMediaStream:
18749 move cleanup to dispose and take a ref on the decoder. Add decoder
18750 getter/setters, and update code to use them.
18752 2008-10-10 Sebastien Pouliot <sebastien@ximian.com>
18754 * applier.cpp: Fix another bad function signatures for GFunc.
18756 2008-10-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
18758 * audio.cpp, pipeline-ffmpeg.cpp, pipeline.h, mplayer.cpp: Remove
18759 FRAME_COPY_DECODED_DATA and always copy decoded data. Fixes video
18760 stuttering when using ffmpeg.
18762 2008-10-09 Jackson Harper <jackson@ximian.com>
18764 * runtime.cpp: The resize event is only emitted when switching
18765 from fullscreen to non fullscreen.
18767 2008-10-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
18769 * pipeline.cpp, pipeline.h: Properly ref/unref MediaMarkers instead of
18772 2008-10-09 Jackson Harper <jackson@ximian.com>
18774 * runtime.cpp: When we change to/from fullscreen there should be a
18777 2008-10-09 Sebastien Pouliot <sebastien@ximian.com>
18779 * media.cpp (Image::CreateSurface): Protect against a NULL
18780 filename (valid value). This will avoid crash like bug #433810
18781 even if, in this case, the problem lies elsewhere (bad downloader
18782 which looks related to #433814).
18784 2008-10-09 Jeffrey Stedfast <fejj@novell.com>
18786 * font.cpp (FontFace::LoadDefaultFace): Pass the families to
18787 LoadDefaultFont() for font name comparison, we need to match the
18788 font names exactly or fall back to the next font.
18790 2008-10-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
18792 * audio.cpp: Add a nullcheck.
18794 2008-10-08 Sebastien Pouliot <sebastien@ximian.com>
18796 * media.cpp (Image::IsSurfaceCached): Don't leak (actually
18799 2008-10-08 Jeffrey Stedfast <fejj@novell.com>
18801 * font.cpp: Add fallback for Liberation fonts.
18803 * pipeline.cpp (Media::Warning): Replacement for both
18804 Media::AddMessage() methods.
18806 2008-10-08 Sebastien Pouliot <sebastien@ximian.com>
18808 * applier.cpp: Fix function signatures for GFunc and GHFunc.
18809 Fix random crash when closing silverlight world #433461
18811 2008-10-08 Larry Ewing <lewing@novell.com>
18812 * window-gtk.cpp (MoonWindowGtk::realized): make sure we remove
18813 any existing render_cb attachments before adding new ones in case
18814 our realize wordering is out of sync.
18816 Fixes the rest of b.n.c #432975
18818 2008-10-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
18820 * mp3.cpp: Fix boolean->MediaResult logic.
18822 2008-10-08 Jackson Harper <jackson@ximian.com>
18824 * playlist.cpp|h: When we encounter invalid characters in an
18825 attribute try to patch them and reparse the document.
18827 2008-10-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
18829 * mp3.h, mp3.cpp: Fix mpeg_frame_duration to use the static array of
18830 block sizes instead of hard-coded almost-matching values. Make
18831 mpeg_frame_length return a floating point value, and in ReadHeader
18832 calculate total duration using floating point. Fixes
18833 test-mp3-media-properties.html
18835 2008-10-08 Stephane Delcroix <stephane@delcroix.org>
18837 * runtime.cpp: CAIRO_VERSION_XXX symbols no longer available in cairo
18838 1.8.0, changing the error msg.
18840 2008-10-08 Sebastien Pouliot <sebastien@ximian.com>
18842 * xaml.cpp (XamlElementInstanceNative::SetProperty): Avoid SIGSEGV
18843 on bad XAML input when no (NULL) dependecy property is returned.
18845 2008-10-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
18847 * pipeline.h, pipeline.cpp: Add a marker field to MediaFrame and make
18848 MediaMarker refcounted. Fix a couple of crashing leakfixes, and
18849 simplify cleanup code a tiny bit.
18851 2008-10-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
18853 * audio-pulse.h: Remove unused method definition.
18855 2008-10-07 Jeffrey Stedfast <fejj@novell.com>
18857 * animation.cpp (AnimationStorage::AttachToPrevStorage): Delete
18858 the old baseValue before allocating a new one.
18860 * mms-downloader.cpp (MmsDownloader::ProcessHeaderPacket): Need to
18861 delete dx_info when we're done with it. Also get rid of the
18862 unneeded parser pointer since we're just using this->parser
18865 2008-10-07 Sebastien Pouliot <sebastien@ximian.com>
18867 * runtime.cpp (Surface::SetCursor): Don't create the GdkPixmap and
18868 GdkColor unless we need them. Unref the pixmap after the call to
18869 gdk_cursor_new_from_pixmap.
18871 2008-10-06 Jeffrey Stedfast <fejj@novell.com>
18873 * pipeline.h (IMediaStream::dtor): Delete the frame. This prevents
18874 a MediaFrame leak-per-node whenever the queue is cleared.
18876 * pipeline.cpp (ASFMarkerDecoder::DecodeFrame): Free the
18877 frame->bufefr before updating it to point to a new malloc'd
18879 (ASFDemuxer::TryReadFrame): Delete the frame on error.
18880 (IMediaStream::PopFrame): After getting the node's frame, set the
18881 node->frame to NULL.
18883 2008-10-06 Larry Ewing <lewing@novell.com>
18885 * media.cpp, media.h: rework image code to skip using a downloader
18886 when a cached image surface is available. Fix a crash where
18887 multiple loading errors occur for a single image. Rewrite
18888 existing SetSourceAsync ticks when the source changes again before
18889 the initial tick was processed.
18891 The goal here is to greatly reduce the work we do in cases where
18892 existing sources are moved between images. Future work should
18893 consist of moving things to the ImageSource model internally.
18895 2008-10-06 Sebastien Pouliot <sebastien@ximian.com>
18897 * text.cpp (Glyphs::Layout): Handle NULL values coming from
18898 GetGlyphInfo. Avoid crash in DRT #177 (not sure why it did
18899 not come up before today or why it now fails anyway).
18901 2008-10-06 Jeffrey Stedfast <fejj@novell.com>
18903 * brush.cpp (ImageBrush::TargetLoaded): Don't bother with g_atomic
18904 stuff, it's too expensive for what we need.
18905 (ImageBrush::TargetUnloaded): Same.
18907 2008-10-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
18909 * dependencyobject.h, dependencyobject.cpp: Fix SLED10.
18911 2008-10-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
18913 * pipeline.cpp: Reorganize some code.
18915 2008-10-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
18917 * audio.cpp, audio.h: Access the Media directly to enqueue frames,
18918 avoiding the need for a tick call on the main thread. If audio
18919 underflowed and we don't have more data available, set buffer
18920 underflow flag on the media player.
18921 * playlist.cpp, playlist.h: Playlist::Parse: until the source has all
18922 the data available, return MEDIA_NOT_ENOUGH_DATA.
18923 * downloader.cpp, downloader.h: Remove RequestPosition methods, no
18925 * mms-downloader.h, mms-downloader.cpp: Added Set|GetRequestedPts, and
18926 use that value to determine if we should seek or not.
18927 * mplayer.cpp, mplayer.h: Add a BufferUnderflow flag, set when
18928 audio/video needs more data, but the buffer is empty.
18929 * pipeline.cpp, pipeline.h: Media: Change how buffering works: we now
18930 have an in-memory buffer of demuxed frames (one queue for frames
18931 for each stream), and calculate buffer size from that.
18932 ProgressiveSource: open an additional file descriptor for writing,
18933 makes locking unnecessary. Change al io to return failure if there
18934 is not enough data, this allows us to remove all the
18935 blocking/waiting logic. MemoryQueueSource: push seeks to
18936 MmsDownloader, instead of waiting for MmsDownloader to check for
18937 pending seeks. FileSource: don't reinvent the wheel and use stdio
18938 to get buffered io instead of having buffering logic ourselves.
18939 * mp3.h, mp3.cpp: Implemented non-blocking reading to support buffer
18940 underruns correctly.
18941 * media.cpp: MediaElement: Retrieve buffer size from the demuxer
18942 instead of calculating it. Handle MEDIA_NOT_ENOUGH_DATA errors when
18943 trying to open media and retry later on.
18945 2008-10-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
18947 * src.mdp: Updated.
18949 2008-10-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
18951 * dependencyobject.cpp: Use atomic operations with
18952 objects_created|destroyed.
18954 2008-10-02 Chris Toshok <toshok@ximian.com>
18956 * resources.cpp (glib_is_stupid): we need to cast value in order
18959 2008-10-02 Geoff Norton <gnorton@novell.com>
18961 * media.cpp,pipeline-ffmpeg.cpp,yuv-converter.cpp,mplayer.cpp:
18962 Add some headers needed to compile when #undef DEBUG
18964 2008-10-02 Sebastien Pouliot <sebastien@ximian.com>
18966 * xaml.cpp: Fix mixup between delete and g_free
18968 2008-10-02 Sebastien Pouliot <sebastien@ximian.com>
18970 * value.cpp: Fix == for KeyTime (padding too). Add comments and
18971 indent method correctly.
18973 2008-10-02 Jeffrey Stedfast <fejj@novell.com>
18975 * xaml.cpp: Move the definition of XamlElementInfo to the top so
18976 that g++ doesn't complain about deleting an incomplete type inside
18977 the XamlElementInstance dtor. Also gets rid of other g++ compiler
18980 * list.cpp (List::InsertAfter): New convenience function to sort
18981 of balance the API.
18983 * font.cpp (FontFace::Load): Don't ref the default face, it is
18984 returned to us with a ref already.
18986 2008-10-02 Jackson Harper <jackson@ximian.com>
18988 * xaml.cpp: Now that Info's aren't shared, Instance's can free
18989 them. Also properties need to free their name.
18991 2008-10-02 Larry Ewing <lewing@novell.com>
18993 * geometry.cpp (Geometry::OnSubPropertyChanged): move
18994 OnSubPropertChanged to Geometry to pick up transform changes until
18995 a better solution is devised. Fixes updated
18996 test-clip-invalid-update.htm.
18998 2008-10-02 Sebastien Pouliot <sebastien@ximian.com>
19000 * value.cpp: Fix == for Duration and RepeatBehavior. We can't
19001 use memcmp to compare them since they include (unassigned)
19002 padding. Both structs overrides their == operator so we use that.
19004 2008-10-02 Sebastien Pouliot <sebastien@ximian.com>
19006 * resources.cpp: Free the values (not only their content) when
19007 the hash table is destroyed. Correctly (delete) free the value
19008 when compiled against glib < 2.12 (e.g. SLED10).
19010 2008-10-02 Sebastien Pouliot <sebastien@ximian.com>
19012 * geometry.cpp: Remove last patch to GeometryGroup::Draw as this
19013 mess clipping. Add similar fill rule setting code in Geometry::Draw
19014 because Shape::Fill is not called for clipping (but the fill rule
19015 still applies). Comment both so I don't mess with them again :)
19017 2008-10-01 Jeffrey Stedfast <fejj@novell.com>
19019 * font.cpp (FontFace::LoadGlyph): We need to force the font size
19020 if we don't own it, since we don't know what the current size is
19022 (FontFace::Kerning): Same.
19023 (FontFace::GetExtents): Here too.
19025 2008-10-01 Jeffrey Stedfast <fejj@novell.com>
19027 Attempt #2 at fixing bug #430766.
19029 * font.cpp (FontFace::LoadFontFace): Don't load non-scalable fonts
19030 - this helps us do better fallback for bug #430766.
19031 (FontFace::LoadDefaultFace): Do manual fallback of fonts. First
19032 try to use the Microsoft Lucida Sans font if available. If not,
19033 fall back to GNOME's Bitstream Vera Sans font. Then fallback to
19034 DejaVu Sans and finally to X.Org's Luxi Sans font (which doesn't
19035 render many of the glyphs in bug #430766, hence why it is last
19036 choice). If the user doesn't have the X.Org fonts, he's SOL.
19038 2008-10-01 Sebastien Pouliot <sebastien@ximian.com>
19040 * value.h[.in],value.cpp: Fix operator == to work for non-DO and
19041 non-string values. This fix the issue of removing stuff from a
19042 ResourceDictionary (while a copy still exists in the underlying
19045 2008-10-01 Jeffrey Stedfast <fejj@novell.com>
19047 Attempt #1 at fixing bug #430766.
19049 * font.cpp (FontFace::LoadDefaultFace): Pass NULL as the families
19050 argument to LoadFontFace() so that we don't fail when matching the
19051 loaded family name.
19053 2008-10-01 Jeffrey Stedfast <fejj@novell.com>
19055 * font.cpp (FontFace::OpenFontDirectory): Now a static class
19057 (FontFace::LoadFontFace): New static method which tries to load an
19058 FT_Face given an FcPattern and a list of families.
19059 (FontFace::FontFace): No longer tries to load an FT_Face, instead
19060 we have it passed to us as an argument.
19061 (FontFace::LoadDefaultFace): New static method to load a global
19062 FT_Face representing the default system font.
19063 (FontFace::GetDefault): Instantiates a new FontFace using the
19064 global system default FT_Face.
19065 (FontFace::Load): Now takes only a TextFontDescription (much
19066 cleaner/simpler). If we are loading the default system font or if
19067 loading the requested font fails, simply return a new FontFace
19068 based on the global system default FT_Face.
19069 (TextFont::TextFont): Now takes fewer arguments (cleaner API,
19071 (TextFont::Load): Now only takes a TextFontDescription argument to
19072 make the API simpler/cleaner.
19073 (TextFontDescription::CreatePattern): Now public and takes a
19074 'sized' argument specifying whether or not the created pattern
19075 should include the size field. This is needed because TextFont
19076 caches based on all attributes while FontFace caches on everything
19077 but size. Also, don't include weight, width, or slant if our font
19078 family is the default (Portable User Interface is not allowed to
19079 have any of those attributes).
19080 (TextFontDescription::IsDefault): New method to decide if our
19081 family is the default or not.
19082 (TextFontDescription::GetFamilies): New convenience method to
19083 strsplit the family string into an array.
19084 (TextFontDescription::SetFamily): If the value "Portable User
19085 Interface" is set, set our family to NULL instead.
19087 2008-10-01 Sebastien Pouliot <sebastien@ximian.com>
19089 * geometry.cpp (GeometryGroup::Draw): Make sure the original
19090 fill rule is still in effect at the end of drawing the group.
19092 2008-10-01 Chris Toshok <toshok@ximian.com>
19094 * geometry.cpp (GeometryGroup::Draw): reinstate the call to
19095 cairo_set_fill_rule removed in r105643. This fixes
19096 http://mapul.com/Tutorials.html.
19098 2008-10-01 Sebastien Pouliot <sebastien@ximian.com>
19100 * shape.cpp: (Shape::InsideObject) Move cairo_save after the
19101 extents.PointInside check since there was no cairo_restore
19102 if false was returned. Looks likely that false was not much
19103 returned (if ever).
19105 2008-09-30 Chris Toshok <toshok@ximian.com>
19107 * stylus.cpp (Stroke::OnCollectionItemChanged): we need to
19108 recompute our bounds when an item (can only be a stylus point)
19109 changes its properties. Fixes stroke bounds in the face of
19110 dragging text in inkjournal.
19112 2008-10-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
19114 * audio-pulse.cpp, audio-pulse.h: Don't use callbacks with
19115 pa_stream_[cork|trigger|flush|drain] since the audio source might
19116 have gotten deleted by the time the callback is called.
19118 2008-09-30 Chris Toshok <toshok@ximian.com>
19120 * dirty.cpp (Surface::ProcessDownDirtyElements): use
19121 AddDirtyElement instead of |= to set flags, since it might require
19122 dirty list manipulation.
19124 2008-09-30 Sebastien Pouliot <sebastien@ximian.com>
19126 * xaml.cpp: Fix (again) the leaks in dependency_object_add_child,
19127 this time with new/delete to make it work with non-DO.
19129 2008-09-30 Sebastien Pouliot <sebastien@ximian.com>
19131 * xaml.cpp: Better fix for the leaks in dependency_object_add_child.
19133 2008-09-30 Sebastien Pouliot <sebastien@ximian.com>
19135 * xaml.cpp: Fix leak in dependency_object_add_child when AddWithError
19138 2008-09-30 Stephane Delcroix <sdelcroix@novell.com>
19140 * downloader.cpp: fix the leak in validate_policy.
19142 2008-09-30 Sebastien Pouliot <sebastien@ximian.com>
19144 * debug.cpp: Make sure allocated 'binary' is freed in every case
19145 inside addr2line_offset.
19147 2008-09-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
19149 * audio-alsa.cpp: Close the pcm in the dtor, not in Close. Refcounting
19150 ensures that the dtor won't be called while playing or that we'll
19151 be playing destructed sources, but Close might be called at any
19154 2008-09-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
19156 * pipeline.cpp: NullDecoder::DecodeAudioFrame: protected against int
19157 underflows and /0 errors.
19159 2008-09-29 Chris Toshok <toshok@ximian.com>
19161 * dependencyobject.cpp (DependencyObject::RegisterAllNamesRootedAt):
19162 if during the course of traversing the tree, we come across a temp
19163 namescope, merge that up instead of recursing down even further.
19164 (DependencyObject::SetLogicalParent): only clear the namescope if
19165 we're merging ourselves into a parent namescope.
19167 * canvas.cpp (Canvas::Canvas): remove the temp namescope creation
19168 here. the parser does it for us if we're parsing an element, and
19169 programmatically created objects don't seem to have them.
19171 2008-09-29 Jeffrey Stedfast <fejj@novell.com>
19173 * media.cpp (MediaBase::GetDownloaderPolicy): New virtual method
19174 to get the download policy based on the uri. By default, returns
19176 (MediaElement::GetDownloaderPolicy): Return StreamingPolicy if
19178 (MediaBase::SetAllowDownloads): Use GetDownloaderPolicy() instead
19179 of hardcoding mms:// check.
19180 (MediaBase::OnPropertyChanged): Same.
19182 * brush.cpp (ImageBrush::SetSurface): Remove previous hack.
19183 (ImageBrush::TargetLoaded): Call SetAllowDOwnloads(true) on our
19184 image once we have at least 1 target which is loaded in the visual
19186 (ImageBrush::TargetUnloaded): Disallow image downloads once our
19187 loaded_count falls back to 0.
19188 (ImageBrush::AddTarget): Listen to the target's Loaded/Unloaded
19190 (ImageBrush::RemoveTarget): Remove our listeners for the Loaded
19191 and Unloaded events placed on the target object.
19193 * uielement.cpp (UIElement::ClearLoaded): Emit an UnloadedEvent.
19195 * dependencyobject.cpp (DependencyObject::SetValueWithError): Call
19196 AddTarget()/RemoveTarget() on DO property values as they are
19198 (DependencyObject::AddTarget): New virtual method which gets
19199 called on DependencyObject property values when they are set on a
19201 (DependencyObject::RemoveTarget): Same but when unset.
19203 * media.cpp (MediaBase::SetAllowDownloads): New method to handle a
19204 state-change of allowing new downloads vs not.
19205 (MediaBase::OnLoaded): Call SetAllowDownloads(true).
19207 2008-09-29 Jeffrey Stedfast <fejj@novell.com>
19209 * brush.cpp (ImageBrush::SetSurface): Update the image's Loaded
19210 state. Fixes some regressions introduced by moving the async
19211 downloading logic from MediaBase::SetSurface() into
19212 ImageBase::OnLoaded().
19214 2008-09-29 Sebastien Pouliot <sebastien@ximian.com>
19216 * pipeline-ffmpeg.cpp: Free extradata, if allocated, on failure.
19218 2008-09-28 Chris Toshok <toshok@ximian.com>
19220 * xaml.cpp (XNamespace::SetAttribute): don't both RegisterName and
19221 SetValue (NameProperty) - just set the NameProperty, it'll update
19222 the proper namescope automatically.
19223 (get_parent): remove.
19224 (set_parent): remove. we no longer need to maintain a temporary
19225 chain while parsing. there's also no need for set_parent(NULL)
19227 (XamlElementInstance::TrySetContentProperty): if there was an
19228 error in DependencyObject::SetValueWithError or
19229 Collection::AddWithError, raise a parser error.
19230 (dependency_object_add_child): call
19231 Collection/ResourceDictionary::AddWithError, and raise a
19232 parser_error if it fails. also, remove set_parent (NULL) calls.
19234 * dependencyobject.h,
19235 dependencyobject.cpp (DependencyObject::MergeNameScopes): remove.
19236 (DependencyObject::RegisterAllNamesRootedAt): this now takes a
19237 MoonError argument so we can signal when there's been a conflict.
19238 (DependencyObject::SetLogicalParent): this also now takes a
19239 MoonError argument, and this is where ALL the namescope merging
19240 code lives. It's been removed from everywhere else. Also, this
19241 change means we can no longer be setting/clearing the parent in
19242 xaml.cpp, as it destroys temp namescopes.
19244 * namescope.h, namescope.cpp (NameScope::MergeTemporaryScope): add
19245 a MoonError parameter, so we can communicate back an
19246 error (conflicting names) properly.
19247 (NameScope::Dump): new method.
19249 * collection.h, collection.cpp (Collection::AddWithError): new
19250 method, generate a binding for this instead of Add. This allows
19251 us to check for name conflicts when a DOCollection is updated.
19252 (Collection::InsertWithError): same. Also, this method has
19253 something quirky about it - it calls AddedToCollection *before*
19254 the collection is modified. suck, but the logic in that code
19255 needs to be run before the change occurs.
19256 (Collection::AddedToCollection): add a MoonError arg so we can
19257 properly pass errors back up.
19258 (DependencyObjectCollection::RegisterAllNamesRootedAt): add the
19260 (DependencyObjectCollection::AddedToCollection,
19261 DependencyObjectCollection::RemovedFromCollection): remove
19262 namescope handling from here.
19265 animation.cpp (KeyFrameCollection::AddedToCollection): track api
19266 change to Collection::AddedToCollection.
19268 * resources.h, resources.cpp: track changes to AddedToCollection,
19269 RegisterAllNamesRootedAt, and AddWithError. Also, remove
19270 namescope handling code from here.
19272 * cbinding.cpp, cbinding.h, type-generated.cpp: regen.
19274 2008-09-28 Chris Toshok <toshok@ximian.com>
19276 * geometry.cpp (Geometry::OnPropertyChanged): this method was
19277 never chaining up to DependencObject::OnPropertyChanged, which it
19278 must do for properties whose ownerType != Geometry.
19280 2008-09-28 Chris Toshok <toshok@ximian.com>
19282 * media.cpp (TimelineMarkerCollection::Add): no need to check the
19283 element type of the value, by the time it makes it here it should
19284 already be the right type.
19286 2008-09-26 Jeffrey Stedfast <fejj@novell.com>
19288 * media.cpp (MediaBase::OnLoaded): Logic moved here from
19290 (MediaBase::OnPropertyChanged): Check IsLoaded() to see if we
19291 should start the downloader yet.
19293 * xaml.cpp: Revert the hydrating check for SetSurface() from the
19294 previous commit. This is causing a bunch of failures :(
19296 2008-09-26 Jeffrey Stedfast <fejj@novell.com>
19298 * xaml.cpp (XamlLoader::HydrateFromString): Properly initialize
19299 parser_info->hydrating and parser_info->hydrate_expecting based on
19300 whether or not we are really doing a HydrateFromString() vs
19301 CreateFromString().
19302 (create_element_info_from_imported_managed_type): Only
19303 SetSurface() if we are hydrating.
19304 (XamlElementInstanceNative::CreateItem): Same.
19305 (XamlElementInfoManaged::CreateElementInstance): Here too.
19306 (XamlElementInfoManaged::CreateWrappedElementInstance): And here.
19307 (XamlElementInfoManaged::CreatePropertyElementInstance): And here...
19308 (XamlElementInfoImportedManaged::CreateElementInstance): Same.
19309 (XamlElementInfoImportedManaged::CreateWrappedElementInstance): And here.
19310 (XamlElementInfoImportedManaged::CreatePropertyElementInstance): Here too.
19312 2008-09-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
19314 * dependencyobject.cpp, dependencyobject.h: Make objects_created and
19315 objects_destroyed thread-safe. Added MOONLIGHT_OBJECT_TRACK_TYPE to
19316 track a specific type, might be useful when the id varies from run
19317 to run. Make Dispose public.
19318 * media.cpp: Reinitialize: Dispose the downloaded_file if we're being
19320 * pipeline.cpp, pipeline.h: Implement MemoryQueueSource::Dispose, and
19321 cleanup properly there instead of in the dtor. This breaks a
19322 circular reference between ASFPacket/ASFDemuxer/MemoryQueueSource.
19324 2008-09-26 Stephane Delcroix <sdelcroix@novell.com>
19326 * downloader.cpp: use StreamingPolicy for streaming
19328 2008-09-25 Jeffrey Stedfast <fejj@novell.com>
19330 * runtime.cpp (Surface::ShowFullScreenMessage): Don't use
19331 g_str_has_prefix() on NULL strings.
19333 2008-09-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
19335 * pipeline.cpp: RegisterMSCodecs: Don't duplicate that much code, and
19336 only print messages to stdout if MOONLIGHT_OVERRIDES=codecs=debug.
19338 2008-09-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
19340 * downloader.cpp: validate_policy: Fix boolean logic according to
19341 comment, fixes crash.
19343 2008-09-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
19345 * media.cpp: Plug one more leak.
19347 2008-09-25 Stephane Delcroix <sdelcroix@novell.com>
19349 * downloader.cpp: neforce security policies on Open ()
19351 2008-09-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
19353 * pipeline.cpp, pipeline.h: Added Media::IsMSCodecsInstalled, and look
19354 for the mp3 codecs in libmscodecs.so, libmscodecs-mp3.so doesn't
19357 2008-09-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
19359 * pipeline-ui.cpp: AdaptToParentWindow: free the toplevels list.
19361 2008-09-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
19363 * downloader.cpp: Fix a potential leak.
19365 2008-09-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
19367 * dependencyobject.cpp: DependencyObject::RemoveListener: We need to
19368 delete the listener link, not only remove it. Plugs a leak.
19370 2008-09-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
19372 * audio-pulse.h, clock.h, layout.h, pipeline.h, template.h,
19373 yuv-converter.h: Sprinkle virtual on some destructors.
19375 2008-09-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
19377 * internal-downloader.h, file-downloader.h, mms-downloader.h: Fix
19380 2008-09-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
19382 * audio-pulse.cpp: Another leak plugged.
19384 2008-09-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
19386 * debug.cpp: Fix stack traces.
19388 2008-09-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
19390 * audio-pulse.cpp: Add a missing unref.
19392 2008-09-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
19394 * pipeline-ui.cpp: Store libmscodecs.so in ~/.mozilla/plugins.
19396 2008-09-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
19398 * pipeline-ui.cpp: Hush.
19400 2008-09-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
19402 * pipeline.cpp, pipeline.h: Added an abi_version to codec registration
19405 2008-09-24 Aaron Bockover <abockover@novell.com>
19408 * pipeline-ui.h: Redesigned the dialog to conform to the GNOME HIG
19409 in regards to header messages, detail messages, spacing, padding, and
19410 button layout; use a GtkDialog instead of a GtkWindow, and take all
19411 input through the dialog's response signal; require the user to explicitly
19412 tell us that they never want to see the installer again instead of
19413 assuming on cancel; fix crash when cancelling while downloading
19415 2008-09-24 Jeffrey Stedfast <fejj@novell.com>
19417 * dependencyproperty.cpp (resolve_property_path): Fixicated.
19419 2008-09-24 Sebastien Pouliot <sebastien@ximian.com>
19421 * pipeline.cpp: Fix a valgrind complaint when a NULL parameter is
19422 given to g_file_test
19424 2008-09-24 Jeffrey Stedfast <fejj@novell.com>
19426 * dependencyproperty.cpp (resolve_property_path): Cleaned up the
19427 code, robustified, and fixed bug #429396.
19429 2008-09-24 Sebastien Pouliot <sebastien@ximian.com>
19431 * dependencyproperty.cpp: Fix SIGSEGV when parsing something that
19435 2008-09-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
19437 * pipeline-ui.cpp, pipeline-ui.h: UI to download and install codecs.
19438 * pipeline-logo.cpp, pipeline-logo.inc: Renamed pipeline-logo.inc to
19439 pipeline-logo.cpp and made it an extern variable to avoid
19440 duplicating the entire image in the binary for every time we want
19442 * pipeline.cpp, pipeline.h: RegisterMSCodecs: Read the path to ms
19443 codecs from our configuration, and always register ms codecs first
19444 in the list. NullDecoder: fix a buffer overrun and update according
19445 to pipeline-logo changes.
19446 * moonlightconfiguration.cpp, moonlightconfiguration.h: Added: a class
19447 to store our configuration.
19448 * media.cpp: MediaElement::MediaOpened: if any of the streams is
19449 handled by a nulldecoder, it means we don't have ms codecs
19450 installed. If so, show the codec downloader UI.
19451 * Makefile.am, src.mdp: Updated.
19453 2008-09-23 Chris Toshok <toshok@ximian.com>
19455 * dependencyobject.cpp (DependencyObject::MergeTemporaryNameScopes):
19456 back out (#if false) this change for now.
19458 2008-09-23 Stephane Delcroix <sdelcroix@novell.com>
19460 * runtime.h|cpp: Surface::GetSourceLocation()
19462 2008-09-23 Sebastien Pouliot <sebastien@ximian.com>
19464 * uielement.cpp: Delete the temporary region before returning on an
19465 invisible element (common in defiwind).
19467 2008-09-22 Chris Toshok <toshok@ximian.com>
19469 * dependencyobject.cpp (DependencyObject::MergeTemporaryNameScopes):
19470 another case we hadn't addressed - if the object we're merging
19471 *from* doesn't have a namescope, we iterate over the entire tree,
19472 registering names into our (possibly temporary, if it didn't exist
19473 before) namescope. Fixes firstfloorsoftware.com (bug #425268).
19475 * xaml.cpp (XamlElementInstanceNative::CreateItem): fix memory
19478 2008-09-22 Jeffrey Stedfast <fejj@novell.com>
19480 * dependencyobject.cpp (merge_namescope): Return the parent_ns so
19481 that our caller doesn't have to call FindNameScope() in case it
19483 (DependencyObject::MergeTemporaryNameScopes): Adjust for above API
19486 2008-09-22 Larry Ewing <lewing@novell.com>
19488 * geometry.cpp (Geometry::Draw): fix the transform brokeness that
19489 crept in. Fixes test-geometry-transform.xaml
19491 2008-09-22 Michael Dominic K. <mdk@mdk.am>
19495 * clock.h: 0-time animations are valid (as in: passing the timeline
19496 validation test) but do nothing. Fixes the clock11 test.
19498 2008-09-22 Michael Dominic K. <mdk@mdk.am>
19501 * animation.h: Attach storage only once. Fixes a crash in clock21.html.
19503 2008-09-19 Jeffrey Stedfast <fejj@novell.com>
19505 Fix for bug #427560
19507 * dependencyobject.cpp (DependencyObject::MergeTemporaryNameScopes):
19508 Use FindNameScope() to get the scope to merge into, and only call
19509 this once - don't re-get it ever loop.
19511 2008-09-19 Jeffrey Stedfast <fejj@novell.com>
19513 * dependencyobject.cpp (EventObject::AddXamlHandler): New method
19514 to add a handler from XAML so that we can force the listener token
19515 to be 0, like Silverlight does.
19517 2008-09-19 Michael Dominic K. <mdk@mdk.am>
19520 * animation.h: Attach the storage to the prev storage on the
19521 partuclar AnimationClock/Storage Begin, not when the parent
19522 storyboard begins. That fixes: #412074 .
19524 2008-09-19 Stephane Delcroix <sdelcroix@novell.com>
19526 * src/downloader.cpp:
19527 * src/downloader.h: DownloadAccessPolicy enum, used as dl.Open
19528 argument. Drop downloder_open method.
19530 * src/playlist.cpp:
19531 * src/deepzoomimagetilesource.cpp:
19532 * src/text.cpp: use the new Open with the corresponding policy.
19534 2008-09-19 Sebastien Pouliot <sebastien@ximian.com>
19536 * media.cpp: Reduce the pixbuffer leaks on popfly.com. The biggest
19537 offenders are gone now but it's still leaking in a few cases.
19539 2008-09-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
19541 * pipeline.cpp: MediaFrame::~MediaFrame: Free the buffer before calling
19542 any custom Cleanup methods (allowing the Cleanup method to free
19543 buffer if g_free isn't the way to do it).
19545 2008-09-18 Jeffrey Stedfast <fejj@novell.com>
19549 * dependencyobject.cpp (class EventLists): Init current_token to
19550 1. Popfly uses a token of 0 to mean no-listener (sorta like gtk
19551 apps use 0 to mean that a g_signal is not connected).
19553 2008-09-18 Geoff Norton <gnorton@novell.com>
19555 * media.cpp: Stop leaking pixbuf loaders.
19557 2008-09-18 Sebastien Pouliot <sebastien@ximian.com>
19559 * mp3.cpp: Need to g_strdup the "mp3" string or we could crash when
19560 g_free-ing it later.
19562 2008-09-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
19564 * pipeline.cpp: Check for register_mswmv in libmscodecs.so, and honor
19565 RUNTIME_INIT_CODECS_DEBUG.
19566 * runtime.h, runtime.cpp: Add a runtime init flag to print codec debug
19569 2008-09-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
19571 * src.mdp: Updated.
19572 * pipeline.cpp, pipeline.h: Add a generic null decoder, shows a
19573 moonlight logo for video and plays silence for audio.
19574 * mp3.cpp, mp3.h: Remove NullMp3Decoder, no longer needed.
19575 * mplayer.cpp: RenderFrame: take stride into account when blitting rgb
19577 * pipeline-logo.inc: Added.
19579 2008-09-17 Larry Ewing <lewing@novell.com>
19584 * frameworkelement.cpp: start filling in InvalidateArrange and
19585 InvalidateMeasure calls.
19590 * canvas.cpp (Canvas::OnCollectionItemChanged): move the ZIndex
19591 change handling here from panel since it is a Canvas property.
19593 2008-09-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
19595 * pipeline.h: Remove some dead code.
19597 2008-09-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
19599 * runtime.h, runtime.cpp: Instead of having a flag to enable ms codecs,
19600 add flags to disable both ffmpeg and ms codecs and include them by
19602 * pipeline.cpp: register_mscodecs: look for libmscodecsmp3.so too
19603 (until it gets integrated in libmscodecs.so), and register the mp3
19604 codec. Media::Initialize: Update according to runtime init flag
19605 changes, and always register null encoders.
19607 2008-09-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
19609 * pipeline.cpp, runtime.cpp, runtime.h: Add a runtime override to not
19610 delete downloaded media files.
19612 2008-09-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
19614 * dependencyobject.cpp: Add TODO.
19616 2008-09-17 Jackson Harper <jackson@ximian.com>
19618 * xaml.cpp: Don't try setting the content prop in managed if there
19619 is no cdata content (we're just dealing with spaces).
19621 2008-09-17 Larry Ewing <lewing@novell.com>
19623 * grid.cpp (Grid::MeasureOverride): fix the span accumulators to
19624 use the right index value.
19626 2008-09-17 Sebastien Pouliot <sebastien@ximian.com>
19628 * frameworkelement.cpp: Fix moon-unit SIGSEGV when unreferencing
19629 SizeChangedEventArgs.
19631 2008-09-17 Michael Dominic K. <mdk@mdk.am>
19634 * clock.h: Separate raising events from raising completed events.
19635 In certain clock hierarchies this would cause us to emit completed event
19636 before raising animation setter events.
19638 * applier.cpp: Enabling the applier again.
19639 * applier.h: Animation resets don't have INSTANT precedence. The just
19640 have higher precedence than normal animation setters.
19642 2008-09-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
19644 * audio-pulse.cpp: Remove stray characters.
19646 2008-09-16 Chris Toshok <toshok@ximian.com>
19648 * dirty.h, dirty.cpp: add DirtyMeasure/DirtyArrange.
19650 * frameworkelement.h, frameworkelement.cpp
19651 (FrameworkElement::UpdateLayout): override
19652 UIElement::UpdateLayout, and if that base class method returns
19653 true, emit LayoutUpdatedEvent.
19655 * uielement.h, uielement.cpp (UIElement::InvalidateMeasure): add
19657 (UIElement::InvalidateArrange): add DirtyArrange.
19658 (UIElement::DoMeasure): this should drive the measure process -
19659 needs filling in, though.
19660 (UIElement::DoArrange): this should drive the arrange
19662 (UIElement::UpdateLayout): change return type to bool. call
19663 DoMeasure and DoArrange synchronously, and return true if we
19666 * runtime.cpp (Surface::Attach): call InvalidateMeasure on the new
19669 * cbinding.h, cbinding.cpp: regen.
19671 2008-09-16 Larry Ewing <lewing@novell.com>
19673 * clock.cpp: make AddTimeout take a priority. Make the render
19674 timeout slightly lower than default so that we process gdk events
19677 * media.cpp: raise the priority of the media timeout so that it
19678 doesn't drop below default or the render tick.
19680 2008-09-16 Chris Toshok <toshok@ximian.com>
19682 * dirty.h, dirty.cpp: add a priority queue-like setup for the
19683 dirty lists, where priority == level in the visual hierarchy.
19684 Processing the down dirty list proceeds from lower "priority" to
19685 higher, and the up dirty list proceeds from higher to lower.
19686 * runtime.h, runtime.cpp: use the new dirty lists.
19688 * uielement.h, uielement.cpp: add a visual_level field, which is
19689 updated when the element is added to the
19690 hierarchy (this->visual_level = parent->visual_level + 1).
19692 2008-09-16 Jackson Harper <jackson@ximian.com>
19694 * xaml.cpp: keys should be a property of the instance.
19696 2008-09-16 Fernando Herrera <fherrera@novell.com>
19698 * pipeline.cpp: Register MS codecs if MOONLIGHT_OVERRIDES
19699 has codecs=microsoft.
19700 * runtime.h: Do not default to RUNTIME_INIT_MICROSOFT_CODECS
19701 in RUNTIME_INIT_BROWSER.
19703 2008-09-16 Jackson Harper <jackson@ximian.com>
19705 * xaml.cpp: Move cdata handling code into the content property
19706 setters, allow managed content property setters to set values from
19709 2008-09-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
19711 * audio-pulse.cpp: dlsym another method previously forgotten.
19713 2008-09-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
19715 * multiscaleimage.h, textbox.h: Use quotes to include our headers.
19717 2008-09-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
19719 * audio-alsa.cpp: Use dlopen/dlsym to access all alsa methods, and
19720 don't link with alsa anymore
19722 2008-09-16 Jb Evain <jbevain@novell.com>
19724 * template.h (TemplateBinding): decorate with a SLVersion=2.
19726 2008-09-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
19728 * audio-pulse.cpp: Use dlopen/dlsym to access all pa methods, and don't
19729 link with pulseaudio anymore. Hopefully fixes #425560.
19731 2008-09-16 Fernando Herrera <fherrera@novell.com>
19733 * asf/asf-structures.h:
19737 * pipeline.h: Don't use relative paths in #includes.
19738 * Makefile.am: Add -Iasf
19740 2008-09-15 Michael Dominic K. <mdk@mdk.am>
19742 * src/applier.cpp: Disabling the applier for now, it seems there are still
19743 some tiny 'issues' with it.
19745 2008-09-15 Chris Toshok <toshok@ximian.com>
19747 * dependencyobject.h, dependencyobject.cpp: add real
19748 PropertyChange callbacks (so we can implement listeners without
19749 the listener being a dependencyobject - which is nice for
19750 TemplateBindings, which don't need all that overhead.)
19752 * template.h, template.cpp: switch over to using this new listener
19755 2008-09-15 Chris Toshok <toshok@ximian.com>
19757 * xaml.cpp (dependency_object_set_attributes): add the
19758 TemplateBinding to the item, not the containing template.
19760 2008-09-15 Larry Ewing <lewing@novell.com>
19762 * applier.h: really disable the applier to make changes instant,
19763 fixes page turn and the test regressions.
19765 * applier.cpp: ref and unref the object to avoid crashes on
19768 2008-09-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
19770 * src.mdp: Updated with new files.
19772 2008-09-12 Larry Ewing <lewing@novell.com>
19774 * grid.cpp (Grid::Measure): accumulate colspan width and pass
19775 pixel size restrictions on to the children.
19777 2008-09-11 Michael Dominic K. <mdk@mdk.am>
19781 * applier.h: Adding some defines for applier precedences + a way
19782 to instant apply with precedence == 0.
19784 2008-09-10 Michael Dominic K. <mdk@mdk.am>
19786 * clock.cpp: Properly emit the Completed event after the properties have
19789 2008-09-09 Michael Dominic K. <mdk@mdk.am>
19792 * applier.cpp: Removing debug messages, adding proper free code.
19794 2008-09-08 Michael Dominic K. <mdk@mdk.am>
19798 * applier.cpp: Do not set the values, instead move them to applier.
19800 2008-09-08 Michael Dominic K. <mdk@mdk.am>
19806 * runtime.h: Moving the Applier instance to TimeManager.
19808 2008-09-08 Michael Dominic K. <mdk@mdk.am>
19811 * runtime.h: Adding Applier to Surface.
19813 2008-09-08 Michael Dominic K. <mdk@mdk.am>
19816 * applier.h: Adding a basic Flush method, totally bad for now.
19818 2008-09-08 Michael Dominic K. <mdk@mdk.am>
19821 * applier.h: Adding basic Apply function that applies all the changes
19824 2008-09-08 Michael Dominic K. <mdk@mdk.am>
19827 * applier.h: Adding basic method to add property to apply on object.
19829 2008-09-08 Michael Dominic K. <mdk@mdk.am>
19833 * applier.h: Introducing the applier helper class. Will be used
19834 to apply property changes in order.
19836 2008-09-11 Jackson Harper <jackson@ximian.com>
19838 * xaml.cpp: Move some of the content property setting logic into
19839 the XamlElementInstance's.
19841 2008-09-11 Stephane Delcroix <sdelcroix@novell.com>
19843 * multiscaleimage.cpp: draw a pattern that should look like
19844 a MSI (currently still wrong)
19846 2008-09-10 Jeffrey Stedfast <fejj@novell.com>
19848 * text.h (class Run): Apparently Run's TextProperty is internal in
19851 2008-09-10 Larry Ewing <lewing@novell.com>
19854 * frameworkelement.cpp:
19855 * shape.cpp, shape.h:
19856 * canvas.cpp: update to pass the new more extensive tests.
19858 2008-09-10 Larry Ewing <lewing@novell.com>
19860 * size.h: Tweak to match updated tests.
19862 2008-09-09 Chris Toshok <toshok@ximian.com>
19864 * style.h (class Setter): make ValueProperty's PropertyType
19865 'object' instead of 'Managed'.
19867 * template.cpp (FrameworkTemplate::AddXamlBinding): make this a
19868 little more bulletproof.
19869 (ControlTemplate::DuplicateObject): XamlTemplateBinding can return
19870 NULL, don't create a TemplateBindingNode (and add it to the list)
19873 * type.h.in (class Type): remove OBJECT - it gets autogenerated
19876 * xaml.cpp (start_element): we need to set inst->parent before
19877 setting the attributes, as the attributes might include a
19878 StaticResource (or TemplateBinding) that requires us to walk back
19880 (XamlElementInfoNative::CreateElementInstance): create a
19881 XamlElementInstanceTemplate if the type is a subclass of
19883 (dependency_object_set_attributes): return out of this after
19884 adding the templatebinding (so we don't end up in the managed xaml
19885 loader code trying to set properties to "{TemplateBinding ...}"
19886 Also, if the property type is OBJECT, call into the loader (like
19887 we do with MANAGED), and fix the logic check on
19888 p->loader->SetAttribute in that case.
19890 * type.h, type-generated.cpp: regen.
19892 2008-09-09 Sebastien Pouliot <sebastien@ximian.com>
19894 * xaml.cpp: Don't unref NULL collections. Fix regression when
19895 parsing invalid points (or doubles).
19897 2008-09-08 Chris Toshok <toshok@ximian.com>
19899 * xaml.h, xaml.cpp: stopgap before jackson gets the completely
19900 managed approach to managed object parsing going. a few key
19903 1) xaml_load_managed_object takes an out bool
19904 parameter (is_dependency_object) so the managed code can create
19905 non-DO subclasses, and then the parser will pass that GCHandle
19906 back to managed code in set_attribute.
19908 2) added an add_child callback to the loader so that managed DO
19909 subclasses (and non-subclasses) can deal with collection
19910 properties. theres no ContentProperty handled in managed code,
19913 2008-09-08 Geoff Norton <gnorton@novell.com>
19915 * audio-*.(cpp|h): The Alsa code requires us to join the play
19916 thread before we remove the audio sources otherwise we can
19917 end up in a race accessing closed pcm's when shutting down.
19919 2008-09-08 Geoff Norton <gnorton@novell.com>
19921 * audio.cpp: Ensure that we dont enter an infinite loop before
19922 we actually start playing a source.
19924 2008-09-08 Larry Ewing <lewing@novell.com>
19926 * frameworkelement.cpp: make things 1.0 safe.
19928 2008-09-08 Larry Ewing <lewing@novell.com>
19930 * frameworkelement.cpp (FrameworkElement::Arrange): rework to
19931 match some of the Measure logic
19934 * canvas.cpp, canvas.h:
19935 * control.cpp, control.h: rework arrange implementation to match
19936 the measure logic and the current thinking on arrange.
19938 * uielement.cpp, uielement.h: expose render_size accessor.
19940 2009-09-08 Stephane Delcroix <sdelcroix@novell.com>
19942 * tilesource.h|cpp: keep the source and tiles info on the c++ side
19944 * multiscaleimage.cpp: draw a cairo pattern instead of nothing
19946 2008-09-08 Larry Ewing <lewing@novell.com>
19948 * grid.cpp: Chain collection changed up properly.
19950 2008-09-07 Larry Ewing <lewing@novell.com>
19952 * thickness.h (struct Thickness): add +/-/- to thickness to clean
19953 up some of the other code.
19955 * rect.h: remove ShrinkBy now that we can negate thickness
19957 * size.h: clean things and make GrowBy stop at 0 now that we can
19958 deal with thickness addition outside of things.
19961 * frameworkelement.cpp:
19963 * border.cpp: subtract the padding and border thickness from
19964 available size before passing it to children. Handle some corner
19965 cases in measure with ugly hacks.
19967 2008-09-07 Larry Ewing <lewing@novell.com>
19969 * canvas.cpp, canvas.h:
19970 * control.cpp, control.h:
19973 * panel.cpp, panel.h: refactor MeasureOverride to return the size of the
19976 * frameworkelement.cpp: Make measure pre and post condition the
19977 output rather than doing it in the overrides themselves.
19979 * size.h: make sure min/max will never set a known size to NAN.
19981 2008-09-07 Chris Toshok <toshok@ximian.com>
19983 * type.h.in: add OBJECT kind.
19985 * type.h, cbinding.h, cbinding.cpp, type-generated.cpp: regen.
19987 2008-09-06 Chris Toshok <toshok@ximian.com>
19989 * value.cpp (Value::CreateUnref): don't use 'Foo foo = Foo(args);'
19990 - instead use 'Foo foo(args)'. the former creates 2 objects to
19993 * media.cpp (MediaElement::GetValue): same.
19995 * uielement.cpp: same.
19997 * error.h, error.cpp (class MoonError): make this a class instead
19998 of a struct, add a default ctor, remove Dispose and use ~MoonError
19999 instead, add FillIn methods that take a "code" as well as an
20000 ErrorType to support the parser.
20002 * dependencyobject.h, dependencyobject.cpp: some api cleanup - get
20003 rid of GError and use MonoError exclusively, move the internal
20004 EventLists/EventList types to the .cpp file. Also, remove a few
20005 redundant methods on DependencyObject. The hit at call sites is
20006 negligable (one additional line, perhaps), and the call sites are
20007 few and far between.
20009 * xaml.cpp (dependency_object_set_attributes)
20010 (dependency_object_set_property): call
20011 DependencyObject::SetValueWithError.
20013 * animation.cpp (KeyFrameCollection::GetKeyFrameForTime): look up
20014 the property here. the DO api is gone.
20016 2008-09-06 Chris Toshok <toshok@ximian.com>
20018 * grid.h, grid.cpp: flesh out some of the
20019 OnPropertyChanged/OnSubPropertyChanged/OnCollectionChanged stuff.
20020 Also add in a completely broken and unfinished MeasureOverride
20021 implementation. It passes some of the tests, but not for the
20022 right reasons :) Lastly, move the GridUnitType enum to enums.h
20024 * enums.h: move GridUnitType here, and rename its elements to have
20025 a "GridUnitType" prefix.
20027 * xaml.cpp: track GridUnitType enum references.
20029 * dependencyproperty.g.cpp: fix up attached properties getters to
20030 return default values if there is one.
20032 2008-09-05 Jeffrey Stedfast <fejj@novell.com>
20034 * text.cpp (TextBlock::OnPropertyChanged): TextAlignment doesn't
20035 actually change the lauout, so no need to set the dirty flag when
20037 (TextBlock::Layout): Updated to handle Silverlight 2.0 TextBlock's
20039 (TextBlock::Paint): Same.
20041 2008-09-05 Larry Ewing <lewing@novell.com>
20043 * uielement.cpp: use render bounds rather than bounds to determine
20044 if we have something to draw.
20046 * stylus.h, stylus.cpp: remove the EmptyBackground method.
20048 Fixes the annotation regression in page turn (again).
20050 2008-09-04 Larry Ewing <lewing@novell.com>
20052 * uielement.h (class UIElement): generate managed accessors for
20055 2008-09-04 Chris Toshok <toshok@ximian.com>
20057 * xaml.cpp (dependency_object_add_child): add code here for
20058 FrameworkTemplate, call SetVisualTree with the child.
20060 * control.cpp (Control::Control): init bindings.
20061 (Control::~Control): unref applied_template and delete bindings.
20062 (Control::ApplyTemplate): make sure we return false here from a
20063 few error places (NULL template, a template with a NULL
20066 * template.cpp (FrameworkTemplate::FrameworkTemplate): init
20067 visual_tree to NULL.
20068 (FrameworkTemplate::~FrameworkTemplate): unref visual_tree.
20069 (FrameworkTemplate::SetVisualTree): new method, set visual_tree
20071 (ControlTemplate::DuplicateObject): we need to special case a
20072 couple of classes (collections, templates) in order to traverse
20074 (ControlTemplate::Apply): if the visual_tree is null, don't try to
20077 * template.h (class FrameworkTemplate): add SetVisualTree method
20080 2008-09-04 Larry Ewing <lewing@novell.com>
20082 * uielement.cpp, uielement.h: new methods GetSubtreeObject and
20083 ElementAdded ElementRemoved.
20085 * dependencyobject.h: remove ContentAdded, ContentRemoved.
20087 * collection.cpp, collection.h: rename ContentWalker to
20088 VisualTreeWalker use GetSubtreeObject () rather than content for walking.
20090 * template.cpp, template.h: make Apply return the newly created
20093 * panel.cpp, panel.h:
20094 * control.cpp, control.h: add template_root child that isn't
20095 hooked into the normal tree. Start implementing ApplyTemplate and
20098 * usercontrol.cpp: mess around with Content a little in making it
20099 use the ElementAdded ElementRemoved logic since UserControl
20100 doesn't really support template changes.
20102 * border.h: implement GetSubtreeObject.
20106 * frameworkelement.cpp:
20107 * canvas.cpp, canvas.h: update for new treewalker.
20109 2008-09-04 Jeffrey Stedfast <fejj@novell.com>
20111 * layout.cpp (TextLayout::Render): Added some new arguments which
20112 aren't actually used yet but will be eventually (assuming I
20113 continue with this approach).
20115 * textbox.cpp (TextBox::Paint): Don't bother painting the
20116 background, control does this for us.
20118 2008-09-04 Stephane Delcroix <sdelcroix@novell.com>
20120 * tilesource.h, deepzoomimagetilesource.h|.cpp: move the dzits in its
20121 own file, implement the downloader.
20123 2008-09-03 Chris Toshok <toshok@ximian.com>
20125 * dependencyobject.h: as much as i hate this, add
20126 GetCurrentValues() for the template stuff.
20128 * xaml.cpp: add XamlElementInstanceTemplate and initial support
20129 for TemplateBindings.
20131 * template.h, template.cpp: add a bunch of stuff for templates.
20133 * control.h, control.cpp: add OnLoaded and OnPropertyChanged to
20134 watch for template property changes, and apply the template in
20135 OnLoaded (or if we're already loaded). Also, add accessors for
20138 * dependencyproperty.g.cpp: regen.
20140 2008-09-03 Larry Ewing <lewing@novell.com>
20142 * frameworkelement.cpp (FrameworkElement::MeasureOverride): use
20143 the new Size methods.
20145 * border.cpp, border.h: add some initial (broken) rendering
20146 support, rework measure to use some of the new rect and size
20149 2008-09-03 Jeffrey Stedfast <fejj@novell.com>
20151 * textbox.cpp (TextBox::OnPropertyChanged): When the AcceptsReturn
20152 property chanegs, no need to re-layout or invalidate - according
20153 to my little test program, Silverlight 2 Beta 2 does not change
20154 the rendered text when this property changes - any newlines in the
20155 input text stay there.
20157 2008-09-03 Sebastien Pouliot <sebastien@ximian.com>
20159 * resources.cpp: (ContainsKey) Don't crash if a null key is
20160 supplied. (Remove) same. (Add) same.
20162 2008-09-03 Jeffrey Stedfast <fejj@novell.com>
20164 * enums.cpp (initialize_enums): Map Horizontal and
20165 VerticalScrollBarVisibility properly.
20167 * textbox.cpp (TextBox::CalcActualWidthHeight): Removed, I don't
20168 think we need this for TextBox controls since their
20169 ActualWidth/Height aren't based on the text extents afaik.
20170 (TextBox::Paint): Implemented, sorta.
20172 2008-09-03 Chris Toshok <toshok@ximian.com>
20174 * resources.cpp (ResourceDictionary::Clear): add pre-glib 2.12
20177 2008-09-03 Larry Ewing <lewing@novell.com>
20179 * uielement.cpp, uielement.h:
20180 (UIElement::FrontToBack): Make FrontToBack non-virtual and move
20181 the generic logic here.
20183 * control.cpp, control.h:
20184 * panel.cpp, panel.h: Remove ftb logic, everything is handled in
20187 2008-09-03 Larry Ewing <lewing@novell.com>
20189 * uielement.cpp, uielement.h:
20190 * media.cpp, media.h:
20191 * panel.cpp, panel.h:
20192 * shape.cpp, shape.h: Add GetCoverageBounds virtual method
20193 to let elements compute their own opaque coverage.
20195 2008-09-03 Stephane Delcroix <sdelcroix@novell.com>
20197 * multiscaleimage.h|.cpp: new MultiScaleImage type
20199 2008-09-02 Chris Toshok <toshok@ximian.com>
20201 * resources.h, resources.cpp: constify this.
20202 (ResourceDictionary::Remove): fix g_hash_table_lookup_extended
20205 * xaml.cpp (XamlElementInstance::LookupNamedResource): implement
20207 (dependency_object_set_attributes): add support for StaticResource
20208 lookups. going to refactor all this to add support for
20211 2008-09-02 Jeffrey Stedfast <fejj@novell.com>
20213 * eventargs.h (class CollectionChangedEventArgs): Implemented
20214 accessor methods to get/set the event arg values.
20216 * trigger.cpp (EventTrigger::SetTarget): Fixed to not need to
20217 strdup the event_name string and also updated to use an accessor
20218 method to prevent a possible NULL dereference.
20220 2008-09-02 Michael Dominic K. <mdk@mdk.am>
20223 * animation2.h: Reworking the animation hookup storage fix. Checking for
20224 subclass is plain dumb. Just make an exception for ObjectAnimation.
20226 2008-09-02 Michael Dominic K. <mdk@mdk.am>
20228 * animation.cpp: Fixing a problem in animation hookup
20229 storage -- the type/kind that the animation generates has to be the subclass
20230 of the type/kind the target property is ready to accept.
20232 2008-09-01 Stephane Delcroix <sdelcroix@novell.com>
20234 * multiscalesubimage.h: fixing code generation decorators
20236 2008-09-01 Stephane Delcroix <sdelcroix@novell.com>
20238 * multiscalesubimage.h: new type
20240 2008-08-29 Jeffrey Stedfast <fejj@novell.com>
20242 * layout.cpp (TextLayout::LayoutWrap): Keep track of when 'words'
20243 end so that we can fall back to that position as the line
20244 width (we don't want to include trailing spaces unless
20246 (TextLayout::Render): If the line width is greater than the
20247 allowable width, keep the line left-aligned like Silverlight does.
20249 2008-08-29 Chris Toshok <toshok@ximian.com>
20251 * resources.cpp (ResourceDictionary::Clear): call
20252 Collection::Clear after we've cleared the hash so the hash will be
20253 empty in event handlers.
20255 2008-08-29 Jeffrey Stedfast <fejj@novell.com>
20257 * layout.cpp (TextLayout::Layout): Do a slightly better job of
20258 keeping track of line->width - still not 100% correct.
20260 2008-08-28 Chris Toshok <toshok@ximian.com>
20262 * Makefile.am: add resources.h and resources.cpp
20264 * xaml.cpp (class XamlElementInfo): add x:Key field (since this
20265 can't set a field on the object -- it might be a value type).
20266 (class XamlElementInstanceValueType): remove the empty
20267 implementation of SetAttributes. we'll define it later.
20268 (XNamespace::SetAttribute): handle name/key behavior here. Only
20269 allow one of them to be set on an object. Also, only attempt to
20270 set DependencyObject::NameProperty on an item if it's not a value
20272 (start_element): don't add value type children to their parent in
20273 start_element (as we haven't read the data that will allow us to
20274 create the value typed object.) we need to push this off to the
20275 end_element handler. also return early if there are problems
20276 setting attributes.
20277 (end_element_handler): if we're creating a value typed ELEMENT,
20278 add the child to the parent here.
20279 (dependency_object_add_child): add some ResourceDictionary
20280 validation here (if there's no key, etc), and actually call
20281 dict->Add(key, child).
20282 (XamlElementInstanceNative::CreateItem): don't crash if we failed
20283 to create an item. (fixes one of the crashes caused by the
20284 ResourceDictionaryTests - ParseDouble)
20285 (XamlElementInstanceValueType::SetAttributes): call
20286 value_type_set_attributes.
20287 (value_type_set_attributes): stripped down version of
20288 dependency_object_set_attributes, as there are only a handful (is
20289 it really only x:Name and x:Key?) attributes we handle on value
20291 (globally): always call set_parent as opposed to
20292 ->SetLogicalParent. we might not be dealing with a DO-subclass.
20294 * xaml.h (class XamlLoader): remove the explicit C api calls
20295 xaml_create_from_file, xaml_create_from_str, and
20296 xaml_hydrate_from_str. Replace them with instance methods on
20297 XamlLoader (CreateFromFile, CreateFromString, and
20298 HydrateFromString, respectively) Add WithError variants of the
20299 these, and have the generator generate bindings for them so we can
20300 throw parse exceptions into managed code.
20302 * error.h (struct MoonError): add XAML_PARSE_EXCEPTION.
20304 * value.h.in (struct Value): add Is overload with
20307 * uielement.h: include resources.h.
20309 * collection.h, collection.cpp: change the api in a few ways to
20310 make ResourceDictionary easier to write - make Count virtual,
20311 remove all the type checks for element type from methods, and add
20312 that check to Collection::CanAdd. ResourceDictionary overrides
20313 that and always returns true. Make Clear return a bool.
20315 * animation.h, animation.cpp: track collection changes.
20317 * stylus.h, stylus.cpp: track Collection::CanAdd change, and move
20318 implementations to the .cpp file.
20320 * resources.h, resources.cpp: split out the code for
20321 ResourceDictionary here. ResourceDictionary is an odd fish. In
20322 1.0 land, it provides the same api as a collection, and things can
20323 be looked up by name via findName. In 2.0 land, items in
20324 ResourceDictionaries have to have either an x:Key or x:Name
20325 attribute. If both are lacking it's an error. If the former is
20326 specified you can only get at it through Resources["name"]. If
20327 the latter is specified, you can use both Resources["name"] or
20330 * dependencyobject.cpp, dependencyobject.h: add Is and GetType
20331 overloads that take additional_types. Make IsValueValid take an
20332 additional_types parameter too. Expose ClearValue to managed code
20333 so we can actually clear the Value* to null without using
20334 the (unsupported from the generator) old method of passing
20335 IntPtr.Zero (Value* now maps to "ref Value" in generated
20336 pinvokes.) Lastly add a SetValueWithError method so we can throw
20337 exceptions in managed code.
20339 * border.h: add defaults for Padding and BorderThickness.
20341 * border.cpp: simplify things a bit since we don't have to worry
20342 about padding/border thickness being NULL.
20344 * depenencyproperty.g.cpp, value.h, type-generated.cpp: regen.
20346 2008-08-28 Jeffrey Stedfast <fejj@novell.com>
20348 * layout.cpp (TextLayout::Render): Respect TextAlignment.
20350 2008-08-26 Chris Toshok <toshok@ximian.com>
20352 * dependencyobject.cpp (DependencyObject::SetLogicalParent): get
20353 rid of this g_assert, it's crashing the moon-unit tests. just
20355 (DependencyObject::SetSurface): don't do anything if the surface
20356 is already set to the same value.
20358 * animation.cpp (Storyboard::SetSurface): don't do anything if
20359 GetSurface() == surface.
20361 * text.cpp (Glyphs::SetSurface): same.
20363 * uielement.cpp (UIElement::SetSurface): same.
20365 * brush.cpp (ImageBrush::SetSurface): same.
20369 * collection.cpp (DependencyObjectCollection::SetSurface): same.
20370 (Collection::RemoveAtWithError): this (against logic) raises
20371 ArgumentException, not ArgumentOutOfRangeException.
20373 2008-08-25 Chris Toshok <toshok@ximian.com>
20375 * rect.h, rect.cpp: rename the w/h fields to width/height, since
20376 every other instance of similar fields are named that.
20378 * value.cpp, border.cpp, window-gtk.cpp, control.cpp, runtime.cpp,
20379 uielement.cpp, geometry.cpp, shape.cpp, frameworkelement.cpp,
20380 brush.cpp: track rect change.
20382 2008-08-25 Chris Toshok <toshok@ximian.com>
20384 * border.h, border.cpp: implement ArrangeOverride, and fix up some
20385 test failures in MeasureOverride.
20387 * frameworkelement.cpp (FrameworkElement::Arrange): it seems we
20388 also set the desired size here (to the final size we get from
20391 2008-08-25 Michael Dominic K. <mdk@mdk.am>
20393 * animation2.h: Advertise self (ObjectAnimationUsingKeyFrames) as providing
20394 proper kinds of values (TYPE::DEPENDENCY_OBJECT).
20396 2008-08-25 Michael Dominic K. <mdk@mdk.am>
20399 * animation2.h: Properly guard 2.0 stuff with if SL_2_0 .
20400 Also adding validation methods.
20402 2008-08-25 Michael Dominic K. <mdk@mdk.am>
20405 * animation2.h: Base work for ObjectAnimationUsingKeyFrames
20408 2008-08-24 Geoff Norton <gnorton@novell.com>
20410 * media.h: Add a new overload to set the SourceProperty from managed land.
20411 * media.cpp: Support async source changing downloader creation for ImageSource
20412 * cbinding.(cpp|h): Regen
20414 2008-08-23 Geoff Norton <gnorton@novell.com>
20416 * mplayer.cpp: Only ref the audio if we have it as well.
20418 2008-08-23 Geoff Norton <gnorton@novell.com>
20420 * bitmapimage.h: Add to the build
20422 2008-08-23 Geoff Norton <gnorton@novell.com>
20424 * cbinding.cpp|h, dependencyproperty.g.cpp, type-generated.cpp,
20425 type.h, value.h: Regenerated
20426 * downloader.cpp|h: Return failure state for downloader->GetResponse
20427 * runtime.h: Generate C bindings for IsMainThread.
20429 2008-08-23 Larry Ewing <lewing@novell.com>
20431 * animation.cpp, animation.h: make ControlPoint1 and ControlPoint2
20432 properties. Move the quadratic generation into
20433 GenerateQuadratics.
20435 Regenrate and remove the managed wrappers.
20437 2008-08-23 Larry Ewing <lewing@novell.com>
20439 * xaml.cpp (value_from_str): fixed crossed commits with Auto
20442 * collection.cpp (ContentWalker::Step): add some debug logic to
20443 protect against an error case for now.
20445 2008-08-23 Chris Toshok <toshok@ximian.com>
20447 * Makefile.am (libmoon_la_SOURCES): add cornerradius.cpp
20449 * thickness.h, thickness.cpp: rename thickness_from_str to
20450 Thickness::FromStr, and make it return a bool instead of a
20451 pointer, as Point and Rect do.
20453 * cornerradius.h, cornerradius.cpp: add CornerRadius::FromStr.
20455 * xaml.cpp (value_from_str): use the CornerRadius parsing method,
20456 and track the change to the Thickness one.
20458 2008-08-23 Larry Ewing <lewing@novell.com>
20460 * xaml.cpp (value_from_str): quick auto hack so we can test
20463 * runtime.cpp (RenderNode::Render): fix typo in merge
20465 2008-08-23 Larry Ewing <lewing@novell.com>
20467 * uielement.cpp, uielement.h: move basic ftb logic here from
20468 panel. Start storing extents allong with bounds.
20470 * panel.cpp, panel.h: move most ftb logic to uielement.cpp. Use
20473 * stylus.cpp, stylus.h: rework the PostRender hack by chaining up
20474 to uielement in front_to_back mode unconditionaly.
20476 * runtime.cpp, runtime.h: make RenderNode members private and move
20477 the ftb override logic here and out of the PostRender call.
20479 * shape.cpp|h, frameworkelement.cpp|h, media.cpp, text.cpp: store
20482 * control.cpp, control.h: implement basic functionality.
20484 2008-08-22 Chris Toshok <toshok@ximian.com>
20486 * color.h, rect.h, point.h: remove the copy ctors. we don't need
20487 them, and they were causing crashes (!)
20489 2008-08-22 Chris Toshok <toshok@ximian.com>
20491 * frameworkelement.cpp (FrameworkElement::MeasureOverride): always
20492 take the margins into account, even when we're childless.
20494 * panel.h, panel.cpp: add MeasureOverride which always returns
20497 * border.h (class Border): add property accessors for everything.
20499 * border.cpp (Border::MeasureOverride): new implementation.
20501 * value.h.in, value.cpp: add CornerRadius support, and remove the
20502 unnecessary casts (and in the Rect/Point cases, calls to the copy
20505 * value.h, dependencyproperty.g.cpp: regenerate.
20507 2008-08-22 Jeffrey Stedfast <fejj@novell.com>
20509 * textbox.h (class SelectionChangedEventArgs): Added
20510 Text/SelectionChangedEventArgs.
20512 2008-08-22 Chris Toshok <toshok@ximian.com>
20514 * frameworkelement.cpp (FrameworkElement::Measure): instead of
20515 always calling MeasureOverride here, we call the registered manage
20516 callback if there is one. So, we proxy into managed code here,
20517 invoke the virtual method FWE.MeasureOverride, and if there's no
20518 subclass override (or if it chains up for some reason), we end up
20519 in MeasureOverride by virtue of the pinvoke in
20520 FrameworkElement.cs.
20521 (FrameworkElement::MeasureOverride): move all the logic for the
20522 default MeasureOverride implementation here. it's pretty
20523 braindead - takes margins into account, measures our child, makes
20524 sure our size is between Min/Max. That's about it.
20525 (FrameworkElement::Arrange): same drill as ::Measure.
20526 (FrameworkElement::ArrangeOverride): still (incorrectly) return
20529 2008-08-22 Jeffrey Stedfast <fejj@novell.com>
20531 * textbox.h: Made ArrangeOverride() virtual and added
20532 SelectionChangedEvent.
20534 2008-08-22 Chris Toshok <toshok@ximian.com>
20536 * dependencyobject.cpp (DependencyObject::GetContent): guard
20537 against the value being NULL.
20539 2008-08-22 Larry Ewing <lewing@novell.com>
20541 * collection.cpp (ContentWalker::ContentWalker): make
20542 ContentWalker understand directions (Logical, ZForward, ZReverse).
20544 2008-08-22 Larry Ewing <lewing@novell.com>
20546 * runtime.cpp (Surface::PaintToDrawable): restore the x/y offsets
20547 when drawing in the image backend.
20549 2008-08-22 Chris Toshok <toshok@ximian.com>
20551 * frameworkelement.h, frameworkelement.cpp: add in the layout foo
20552 - provide implementations of Measure and Arrange that just call
20553 MeasureOverride and ArrangeOverride. These are virtual and meant
20554 to be overridden either in unmanaged code (by simply overriding
20555 them), or in managed code (RegisterManagedOverrides is called in
20556 FWE.Initialize.) Decorate the class with @CallInitialize so the
20557 managed ctor calls it.
20559 * uielement.h, uielement.cpp: remove the PInvoke/CBinding for the
20560 ctor, and add the layout methods. Measure and Arrange are pure
20563 * cbinding.h, cbinding.cpp, type-generated.cpp: regen.
20565 2008-08-22 Jeffrey Stedfast <fejj@novell.com>
20567 * textbox.cpp (TextBox::Layout): Implemented rough layout.
20569 * layout.cpp (TextRun::TextRun): New ctor for use with TextBox.
20571 2008-08-22 Jeffrey Stedfast <fejj@novell.com>
20573 * textbox.cpp (TextBox::ArrangeOverride): Added.
20575 * frameworkelement.h (class FrameworkElement): Changed default
20576 Width/Height values to NAN.
20578 * textbox.cpp: Initial implementation of TextBox, Layout and
20579 Rendering logic still missing.
20581 2008-08-22 Larry Ewing <lewing@novell.com>
20583 * usercontrol.cpp (UserControl::OnPropertyChanged): make sure the
20586 2008-08-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
20588 * audio-alsa.cpp: Call Underflowed () when we run out of data.
20590 2008-08-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
20592 * mplayer.h, mplayer.cpp: Remove the Eof state and add two separate
20593 VideoEnded and AudioEnded states. Implement handling of VideoEnded
20594 state, and call MediaElement::MediaEnded when both states have been
20596 * media.h, media.cpp: Rename AudioFinished to MediaFinished and handle
20597 all media finished (both video and audio) logic there.
20599 2008-08-21 Larry Ewing <lewing@novell.com>
20601 * uielement.cpp (UIElement::ComputeLocalTransform): clean up
20602 accumulated transform logic. Keep the parent TransformFor out of
20603 the local_transform.
20605 2008-08-21 Larry Ewing <lewing@novell.com>
20607 * uielement.cpp (UIElement::Dispose): add logic removed from
20610 * dirty.cpp (Surface::PropagateDirtyFlagToChildren): use
20613 2008-08-21 Chris Toshok <toshok@ximian.com>
20615 [ fixes annotations not showing up in pageturn due to a NULL
20616 background on the ink presenter ]
20618 * stylus.h, stylus.cpp (class InkPresenter): add an override of
20619 EmptyBackground(). If we have a non-empty stroke bounding
20620 rectangle, return false. Otherwise fall back to
20621 Panel::EmptyBackground.
20623 * panel.h, panel.cpp (class Panel): add EmptyBackground() virtual
20624 method. the panel implementation returns true if GetBackground()
20625 returns NULL. Use this virtual method instead of an explicit
20626 GetBackground() call in Panel::FrontToBack.
20628 2008-08-21 Jeffrey Stedfast <fejj@novell.com>
20630 * enums.cpp: Added ScrollBarVisibility enum
20632 * text.cpp (TextBlock::OnPropertyChanged): Er... we need to
20633 invalidate if the TextWrappingProperty changes too.
20635 2008-08-21 Chris Toshok <toshok@ximian.com>
20637 * border.h, border.cpp, cornerradius.h: add new
20640 * Makefile.am: add border/cornerradius to the file list.
20642 * type.h, value.h, cbinding.cpp, cbinding.h, type-generated.cpp,
20643 dependencyproperty.g.cpp: regen.
20645 2008-08-21 Jeffrey Stedfast <fejj@novell.com>
20647 * textbox.h (class TextBox): The TextBox namespace should be
20648 System.Windows.Controls
20650 * stackpanel.h (class StackPanel): #include panel.h
20652 2008-08-21 Jeffrey Stedfast <fejj@novell.com>
20654 * textbox.h: Initial implementation of the TextBox class (just
20657 * value.h.in (struct Value): Don't use int32_t or uint64_t,
20658 etc. Be consistent and use the glib types.
20660 * layout.cpp (TextLayout::Layout): Fixed
20661 LineStackingStrategy/LineHeight issues. If we are using
20662 BlockLineHeight & the specified LineHeight is not Auto, then we
20663 need to use 0.0 as the descender.
20665 2008-08-21 Chris Toshok <toshok@ximian.com>
20667 * animation.h: make KeyFrame::Get/SetKeyTime pure virtual, and add
20668 accessors to all the subclasses. They're autogenerated from the
20669 respective class's DP's.
20671 * animation2.h: same.
20673 * animation.cpp: remove KeyFrame::Get/SetKeyTime implementations.
20675 * control.h (class Control): add some more GenerateAccessors.
20677 * control.cpp: and remove the manual implementations here.
20679 * dependencyproperty.g.cpp: regen.
20681 2008-08-21 Larry Ewing <lewing@novell.com>
20683 * animation.cpp (KeyFrameCollection::OnSubPropertyChanged): remove
20686 * xaml.cpp (value_from_str): unref the collections we create after
20689 2008-08-21 Jackson Harper <jackson@ximian.com>
20691 * xaml.cpp: Can't rely on the type for getting a managed element's
20692 name, we have to pull it from the element name provided to the
20695 2008-08-21 Chris Toshok <toshok@ximian.com>
20697 * dependencyobject.cpp (DependencyObject::HasProperty): pass
20698 additional_types to IsSubclassOf.
20700 * type.h, type.cpp: add IsSubclassOf variants that take
20701 additional_types. Fixes lookup problems of non-custom DP's on
20702 managed subclasses.
20704 2008-08-21 Chris Toshok <toshok@ximian.com>
20706 * value.h.in (struct Value): make all single arg primitive value
20707 typed ctors "explicit" so c++ won't do any magic implicit
20708 conversion from value type to Value.
20712 * runtime.cpp (Surface::ShowFullScreenMessage): need to create the
20713 Value()'s explicitly.
20715 * collection.cpp (DoubleCollection::FromStr): same.
20717 2008-08-20 Larry Ewing <lewing@novell.com>
20719 * dependencyobject.cpp (create_temp_namescope): don't leak the
20720 temporary namescope we create. Also don't create it over and over
20723 2008-08-20 Larry Ewing <lewing@novell.com>
20725 * dependencyobject.cpp|h: Add ContenAdded and ContentRemoved
20726 virtual methods so that we can begin to simplify content rules.
20728 * dirty.cpp (Surface::PropagateDirtyFlagToChildren): use
20729 GetContent to handle the children in a generic way.
20731 * uielement.cpp|h: start moving generic uielement content logic
20732 here. Implement OnLoaded and deal with content directly.
20734 * canvas.cpp|h: remove obsolete methods. Move most of zindex
20735 property logic from panel to here.
20737 * panel.cpp|h: move ZIndex logic to canvas and move OnLoaded logic
20740 * control.cpp|h: generate accessors, start remove OnLoaded and
20743 * dependencyproperty.g.cpp: regen.
20745 2008-08-20 Chris Toshok <toshok@ximian.com>
20747 * text.cpp, text.h: generate accessors for Glyph properties.
20749 * geometry.cpp, grid.cpp, media.cpp, panel.cpp, runtime.cpp,
20750 shape.cpp, stylus.cpp, transform.cpp, trigger.cpp, uielement.cpp,
20751 xaml.cpp: make another pass through files switching to C++
20752 accessors from GetValue(FooClass::FooProperty)->AsFoo().
20754 * dependencyproperty.g.cpp: regen.
20756 2008-08-20 Chris Toshok <toshok@ximian.com>
20758 * animation.cpp, animation.h, brush.cpp, brush.h, canvas.cpp,
20759 canvas.h, clock.cpp, clock.h, collection.cpp, collection.h,
20760 frameworkelement.cpp, frameworkelement.h, geometry.cpp,
20761 geometry.h, grid.h, media.cpp, media.h, namescope.cpp,
20762 namescope.h, panel.cpp, panel.h, playlist.cpp, shape.cpp,
20763 shape.h, stackpanel.h, style.h, stylus.cpp, stylus.h, text.cpp,
20764 text.h, transform.cpp, transform.h, trigger.h, uielement.cpp,
20765 uielement.h, xap.cpp, xap.h:
20767 mostly, decorate almost all DependencyProperties with
20768 @GenerateAccessors, add in lots of new ones that weren't present
20769 before (to the .h), and remove all those implementations from
20772 Also, don't use #if SL_2_0 in the headers. we can't depend on
20773 that being defined (especially once we install). Any
20774 2.0-specific behavior needs to be done in the .cpp files. There
20775 are still a few things that are wrong wrt
20776 this (dependencyproperty.g.cpp needs to define the DP's
20777 regardless of version, they can just be NULL in the 1.0 case for
20778 2.0 properties, for instance.)
20780 * cbinding.cpp, cbinding.h, dependencyproperty.g.cpp: regen
20782 2008-08-20 Chris Toshok <toshok@ximian.com>
20784 * uielement.h (ClearLoaded): use &=, not |=, here. fixes tests.
20786 2008-08-20 Jeffrey Stedfast <fejj@novell.com>
20788 * layout.cpp (TextLayout::Layout): Updated to take a
20789 TextLayoutHints argument for providing hints like text alignment
20790 and line stacking/height.
20792 * text.cpp (class TextBlock): Updated a bit for Silverlight
20793 2.0. All of the properties added in 2.0 are now there, although
20794 only 2 of them are respected at the moment (line stacking strategy
20797 * enums.cpp|h: Added LineStackingStrategy and TextAlignment enums.
20799 2008-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
20801 * audio.cpp: NULL out the player instance after deleting it.
20803 2008-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
20805 * audio-pulse.cpp, audio-pulse.h: Close: Detect if Close has been
20806 called and if so, do nothing.
20808 2008-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
20810 * audio.cpp: We only support 1 or 2 channels for the moment.
20812 2008-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
20814 * media.cpp, media.h: Fix buffering progress to take into account that
20815 the first pts isn't necessarily 0 (happens for live media).
20817 2008-08-20 Chris Toshok <toshok@ximian.com>
20819 * runtime.cpp (Surface::HandleMouseEvent): make sure not to emit
20820 Focus events on click in a 1.0 context.
20822 2008-08-20 Jackson Harper <jackson@ximian.com>
20824 * xaml.cpp|h: Setting properties requires the xaml namespace so it
20825 can lookup managed types. TODO: It also needs the default
20826 assembly, but I am thinking of moving that to the loader.
20828 2008-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
20830 * mplayer.cpp: Properly ref/unref the AudioSource.
20832 2008-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
20834 * media.h: Remove G_BEGIN/END_DECLS and two unnecessary #includes.
20836 2008-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
20838 * media.cpp, media.h, runtime.cpp: Remove media_init, just make
20839 runtime_init call Media::Initialize directly.
20841 2008-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
20843 * media.h, media.cpp: Remove media_element_advance_frame from header,
20844 no need to make it public.
20846 2008-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
20848 * mplayer.cpp: AdvanceFrame: only return true if we actually processed
20849 any frames. SeekCallback: clear the queue of audio frames as well.
20850 * media.h, media.cpp: Removed SetPreviousPosition, no longer needed.
20851 Don't change previous_position while we're seeking, and don't make
20853 * audio.cpp, audio.h: Added AudioSource::ClearFrames.
20855 2008-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
20857 * runtime.cpp: Fix 1.0 build. No idea if the fix is correct.
20859 2008-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
20861 * cbinding.cpp, cbinding.h, xap.h: Mark Xap as 2.0 only for the
20864 2008-08-20 Stephane Delcroix <sdelcroix@novell.com>
20866 * canvas.h, canvas.cpp:
20867 * uielement.h, uielement.cpp: move the ZIndexProperty and Get/Set-ers
20868 from uielement to Canvas. Drop the non-static Get/Set-Top/Left ()
20870 * panel.cpp, collection.cpp: related changes.
20872 2008-08-20 Stephane Delcroix <sdelcroix@novell.com>
20874 * uielement.h: change the generator instructions so the
20875 NameProperty is generated in FrameworkElement.
20877 2008-08-19 Chris Toshok <toshok@ximian.com>
20879 * dependencyobject.h,
20880 dependencyobject.cpp (DependencyObject::GetContent): ripped this
20881 out of a hack, should prove useful for the work coming up.
20883 2008-08-19 Chris Toshok <toshok@ximian.com>
20885 * runtime.cpp (Surface::FocusElement): fix the IsTabStop check.
20887 2008-08-19 Chris Toshok <toshok@ximian.com>
20889 * control.h, control.cpp (class Control): generate a binding for
20890 Control::InitializeFromXaml and drop the 2 manual C bindings.
20892 * cbinding.h, cbinding.cpp: regen.
20894 2008-08-19 Chris Toshok <toshok@ximian.com>
20896 * xap.h, xap.cpp (class Xap): rename xap_unpack to Xap::Unpack.
20897 autogenerate our binding for it.
20899 * cbinding.h, cbinding.cpp: regen.
20901 2008-08-19 Chris Toshok <toshok@ximian.com>
20903 * eventargs.h, eventargs.cpp (class Keyboard): make this more of a
20904 real class, and remove the implementation of
20905 keyboard_get_modifiers. instead, provide a c++ method (both a
20906 getter and setter) and annotate the Getter with
20907 GenerateCBinding/GeneratePInvoke.
20909 * collection.h, collection.cpp: reorder the class decls (why do
20910 people put private first?) and make CollectionIterator a real
20911 class, with annotated methods. Also, move
20912 double_collection_from_str and point_collection_from_str to
20913 DoubleCollection::FromStr and PointCollection::FromStr
20914 respectively. move double_garray_from_str out of here (to
20917 * utils.h, utils.cpp: new (hopefully last) home for
20918 double_garray_from_str.
20920 * point.h, point.cpp (struct Point): rename point_from_str to
20921 Point::FromStr. no reason to have a C method for that.
20923 * rect.h, rect.cpp (struct Rect): same thing with Rect::FromStr.
20925 * window-gtk.h (class MoonWindowGtk): mark the ctor and
20926 GetWidget() with GenerateCBinding/GeneratePInvoke.
20928 * window-gtk.cpp: and remove their implementations.
20930 * xaml.cpp: convert over to all the new ::FromStr methods.
20932 * thickness.cpp: track new home of double_garray_from_str.
20934 * cbinding.h, cbinding.cpp: regen.
20936 2008-08-19 Chris Toshok <toshok@ximian.com>
20938 * uielement.h, uielement.cpp: make almost all data
20939 private/protected. Add a couple of methods to aid in
20940 this (IsLoaded, ClearLoaded, TransformPoint). Get rid of the
20941 cbinding for transform_point - it's never used. Also, re-order
20942 the header to put public things first, then protected then
20945 * runtime.cpp: use IsLoaded.
20947 * panel.cpp: use ClearLoaded.
20949 * text.cpp, shape.cpp, eventargs.cpp, frameworkelement.cpp: use
20952 2008-08-19 Chris Toshok <toshok@ximian.com>
20954 * runtime.cpp (Surface::HandleMouseEvent): don't compare the input
20955 lists, as we will almost always have identical lists. compare the
20956 head of the new list to focused_element to determine if focus
20959 2008-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
20961 * pipeline.cpp: Beautify error messages.
20963 2008-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
20965 * media.cpp: test-inexistent-media(s) were failing due to ISP's
20966 tendency to return search pages for failed dns lookups. Fixed tests
20967 after testing with sane DNS settings and did the appropiate change
20968 in code (raise correct error message/number).
20970 2008-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
20972 * runtime.h: Make RUNTIME_INIT values sequential.
20974 2008-08-19 Chris Toshok <toshok@ximian.com>
20976 * xaml.cpp (xaml_hydrate_from_str): make sure to set the surface
20977 of the object before parsing so that objects don't switch from the
20978 loader's surface to NULL as they're added to the hierarchy while
20981 2008-08-19 Larry Ewing <lewing@novell.com>
20983 * shape.cpp (Shape::InsideObject): check the extents first, then
20984 reorder the stroke/fill tests to test for the most likely first.
20986 Helps speed up sliverlight.net/world a bit.
20988 2008-08-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
20990 * mplayer.h, pipeline.h: No need to surround GetTypeName with
20991 OBJECT_TRACKING anymore.
20993 2008-08-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
20995 * audio.cpp, audio.h, audio-alsa.cpp, audio-alsa.h, audio-pulse.cpp,
20996 audio-pulse.h: Added, our new audio abstraction/implementation.
20997 * Makefile.am, src.mdp, type-generated.cpp: Updated.
20998 * mplayer.cpp, mplayer.h: Moved audio code into its own file(s).
20999 * runtime.cpp, runtime.h: Add runtime overrides for audio.
21001 2008-08-19 Jeffrey Stedfast <fejj@novell.com>
21003 * xap.cpp (xap_unpack): Fixed compiler warning.
21005 2008-08-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
21007 * media.cpp: Include headers mplayer.h doesn't include anymore.
21008 MediaElement::SetMedia: only set audio data on the MediaPlayer if
21009 the media has audio. TImelineMarkerCollection::Add: don't call the
21010 base class' Add, call base's Insert instead. Fixes a stack overflow
21011 since base class' Add calls Insert, which TimelineMarkerCollection
21012 overrides to call Add.
21014 2008-08-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
21016 * enums.cpp: Wrap 2.0-only code in SL_2_0.
21018 2008-08-19 Jeffrey Stedfast <fejj@novell.com>
21020 * zip/unzip.c: Get rid of unused variable.
21022 * value.cpp (Value::ToString): Get rid of unused variable.
21024 2008-08-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
21026 * dependencyobject.h: EventObject::ref: print a stack trace before the
21027 abort if we can, and fix typo in the abort message.
21029 2008-08-19 Geoff Norton <gnorton@novell.com>
21031 * xap.cpp: Ensure we can actually enter the directory we're creating.
21033 2008-08-19 Jeffrey Stedfast <fejj@novell.com>
21035 * mplayer.cpp: Silence the compile warning.
21037 * color.cpp (color_from_str): Got rid of unused variable.
21039 * xaml.cpp (dependency_object_set_attributes): Don't need to use
21040 strlen(str) == 0 to figure out if the string is empty, just check
21042 (wrap_type): Removed. Doesn't seem to be used any longer.
21043 (get_type_for_property_name): Same.
21044 (panel_add_child): Same.
21045 (dependency_object_set_property): Made static.
21046 (dependency_object_set_attributes): Same.
21047 (dependency_object_hookup_event): Same.
21048 (dependency_object_missed_property): Same.
21050 * dependencyproperty.cpp (resolve_property_path): Use proper
21051 integer types and avoid calling strlen if all we care to know is
21052 if the string is empty.
21054 * runtime.cpp (Surface::Paint): Get rid of an annoying debug
21056 (Surface::HandleMouseEvent): Removed unused variable.
21058 2008-08-19 Chris Toshok <toshok@ximian.com>
21060 * trigger.cpp (EventTrigger::SetTarget): make the 2.0 case more
21061 robust - handle Type.Event notation, making sure that the type is
21062 valid for the target.
21064 2008-08-19 Larry Ewing <lewing@novell.com>
21066 * runtime.cpp|h: add override to use sofware fallbacks for
21069 2008-08-19 Chris Toshok <toshok@ximian.com>
21071 * trigger.cpp (EventTrigger::SetTarget): do the AddHandler in both
21072 1.0 and 2.0 cases. big oops.
21074 2008-08-19 Jeffrey Stedfast <fejj@novell.com>
21076 * dependencyobject.cpp (DependencyObject::GetObjectType): Get rid
21077 of a warning that is no longer valid.
21079 2008-08-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
21081 * downloader.h, downloader.cpp: Add a request field to
21082 DownloaderResponse, and a response field to DownloaderRequest. When
21083 a request is aborted, also abort the response. This fixes a crash
21084 when we aborted the request before receiving a response, the
21085 response had no idea the request had been aborted (since the
21086 request didn't store the response after creating it, it couldn't
21087 notify the response of the abort), and happily accessed deleted
21090 2008-08-18 Chris Toshok <toshok@ximian.com>
21092 * runtime.cpp (Surface::CreateArgsForEvent): new method, create
21093 the right kind of args for a given event. we should probably
21095 (Surface::EmitEventOnList): use CreateArgsForEvent. Only create
21096 one instance of the event args that we use to bubble along the
21097 element list. If it's a RoutedEventArgs subclass, set the source
21098 to be the first element in the list, and check the "Handled"
21099 attribute after every emit to see if we should finish early (this
21100 provides for 2.0 semantics).
21101 (Surface::FocusElement): unfortunately the event generation is
21102 async, so add a tick call if we need to. if we already have a
21103 tick call (meaning >= 1 focus change has happened already in this
21104 tick), we drop the intervening change(s). This is likely wrong.
21105 (Surface::GenerateFocusChangeEvents): emit GotFocus/LostFocus on
21106 the proper element lists.
21107 (Surface::HandleUIKeyPress, Surface::HandleUIKeyRelease): if we're
21108 silverlight2 (and we have a focused element), emit the event on
21109 the list of elements from the focused element back up to the root.
21110 Otherwise just emit it on the toplevel.
21112 * runtime.h (class Surface): add GetFocusedElement/FocusElement
21113 methods, which are used to implement
21114 FocusManager.GetFocusElement() and Control.Focus().
21116 * uielement.h, uielement.cpp (class UIElement): remove a bunch of
21117 Emit$Event() methods that were never used.
21119 * trigger.cpp: in 2.0, you can put other events in RoutedEvent,
21120 not just "Loaded". there are parsing rules that we can't make use
21121 of here, so more work will likely have to happen in the parser.
21123 * trigger.h (class EventTrigger): add registered_event_id.
21125 * cbinding.h, cbinding.cpp: regenerate.
21127 2008-08-18 Geoff Norton <gnorton@novell.com>
21129 * type-generated.cpp, cbinding.cpp|h: Rengerated
21130 * dependencyobject.h: Bind DependencyObject .ctor
21132 2008-08-18 Geoff Norton <gnorton@novell.com>
21134 * deployment.h: Move CrossDomainAccess to
21135 * enums.h|cpp: Register CrossDomainAccess so that AppMainfest
21136 can specify values from the enum.
21138 2008-08-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
21140 * cbinding.cpp, cbinding.h, uielement.h: Mark
21141 UIElement::GetTransformToUIElement as 2.0, fixes 1.0 build.
21143 2008-08-18 Larry Ewing <lewing@novell.com>
21145 * panel.cpp|h: remove SetSurface override, the
21146 DependencyObjectCollection::SetSurface does the work already.
21148 2008-08-18 Jeffrey Stedfast <fejj@novell.com>
21150 * uielement.cpp: Autogenerate more of the bindings, make
21151 desired_size private, etc.
21153 2008-08-18 Geoff Norton <gnorton@novell.com>
21155 * eventargs.cpp|h: Change the return type to int, fix the build.
21157 2008-08-18 Jeffrey Stedfast <fejj@novell.com>
21159 * uielement.cpp (uielement_get_surface): Removed.
21160 (uielement_invalidate): Removed.
21161 (uielement_set_transform_origin): Removed.
21163 * transform.cpp: Removed manual c-bindings.
21165 * text.cpp: Removed manual c-bindings for property accessors.
21167 2008-08-18 Geoff Norton <gnorton@novell.com>
21169 * type-generated.cpp, cbinding.cpp|h: Rengerated
21170 * uielement.cpp|h, type.h, value.h: Keyboard->Key
21171 * runtime.cpp|h: Move key translation to eventargs, and pass the
21172 raw GdkEventKey to KeyEventArgs.
21173 * eventargs.cpp|h: Implement KeyEventArgs bound to the managed stuff
21174 and remove the old KeyboardEventArgs.
21176 2008-08-18 Jeffrey Stedfast <fejj@novell.com>
21178 * stylus.h: Moved required manual c-bindings into G_*_DECLS block.
21180 * size.cpp: Removed manual ctor c-binding.
21182 * shape.cpp: Removed manual c-bindings for property accessors.
21184 2008-08-18 Geoff Norton <gnorton@novell.com>
21186 * media.cpp|h, cbinding.cpp|h: Implement support for generating Image's
21187 from managed Streams.
21189 2008-08-18 Jeffrey Stedfast <fejj@novell.com>
21191 * runtime.cpp: Removed manual c-bindings for Surface and renamed
21192 Get/SetTrans() to Get/SetTransparent().
21194 * panel.cpp: Removed manual c-bindings for property accessors.
21196 * media.cpp: Removed manual c-bindings for property accessors and
21197 other methods that are now autogenerated.
21199 2008-08-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
21201 * dependencyobject.h: Make the generator happy.
21203 2008-08-18 Jeffrey Stedfast <fejj@novell.com>
21205 * geometry.cpp: Removed manual c-bindings for property accessors.
21207 2008-08-18 Michael Dominic K. <mdk@mdk.am>
21209 * runtime.h: Caller is "in main thread" also when the main_thread
21210 pointer equals NULL (no surface has been created).
21212 2008-08-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
21214 * debug.cpp: Fix a leak found by valgrind.
21216 2008-08-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
21218 * dependencyobject.h: Make GetTypeName virtual if we're tracking
21219 objects, enables better output of lost objects.
21221 2008-08-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
21223 * dependencyobject.cpp: DrainUnrefs: since unreffing objects may cause
21224 more objects to be enqueued for unref, loop until there are none
21227 2008-08-17 Geoff Norton <gnorton@novell.com>
21229 * downloader.cpp|h: Add a method for DownloaderResponse to
21230 support a Header Visitor.
21232 2008-08-17 Geoff Norton <gnorton@novell.com>
21234 * uielement.h: Expose desired_size as public to fix the build.
21236 2008-08-17 Chris Toshok <toshok@ximian.com>
21238 * uielement.h, frameworkelement.h: can't use SL_2_0 in headers.
21240 2008-08-17 Chris Toshok <toshok@ximian.com>
21242 * Makefile.am (libmoon_include_HEADERS): INCLUDE_MONO_RUNTIME ->
21243 INCLUDE_MANAGED_CODE.
21245 2008-08-15 Larry Ewing <lewing@novell.com>
21247 * clock.cpp|h: add methods Jeff removed back.
21249 2008-08-15 Chris Toshok <toshok@ximian.com>
21251 * stylus.h (class DrawingAttributes): all managed DP fields are
21253 (class Stroke): DrawingAttributesProperty and StylusPointsProperty
21254 are private in managed-land.
21256 2008-08-15 Jeffrey Stedfast <fejj@novell.com>
21258 * grid.h: Autogenerate bindings for GetActualWidth/Height
21260 * grid.cpp: Removed manual c-bindings.
21262 * frameworkelement.cpp: Removed manual c-bindings.
21264 2008-08-15 Chris Toshok <toshok@ximian.com>
21266 * eventargs.h (enum CollectionChangedAction): change Reset to
21267 Cleared, and add Clearing to handle the old functionality in
21268 DependencyObject::OnCollectionClear.
21270 * dependencyobject.h (class DependencyObject): remove
21271 OnCollectionClear. we handle that case in OnCollectionChanged
21274 * panel.h, panel.cpp (Panel::OnCollectionChanged): move
21275 OnCollectionClear code to here.
21277 * uielement.cpp (UIElement::OnCollectionChanged): add
21278 ActionClearing code here.
21280 * stylus.cpp, text.cpp: track CollectionChangedAction enum change.
21282 * collection.cpp (Collection::Clear): use
21283 EmitChanged (CollectionChangedActionClearing,...) instead of
21286 2008-08-15 Jeffrey Stedfast <fejj@novell.com>
21288 * eventargs.cpp|h: Same.
21290 * control.cpp: Same.
21292 * contentcontrol.cpp: Removed manual property accessor c-bindings.
21294 * clock.cpp: Removed manual c-bindings for things that can be
21297 * brush.cpp|h: Removed manual c-bindings for property accessors.
21299 * animation.cpp|h: Added some convenience c++ property accessors and
21300 got rid of all of the manual c-bindings. Fixed them to be
21303 * stylus.cpp: Added c++ property accessors and updated the code to
21304 use them (cleans up some code) and also got rid of the c binding
21305 accessors. We'll autogenerate these.
21307 2008-08-15 Sebastien Pouliot <sebastien@ximian.com>
21309 * layout.cpp: Don't add kerning before a dot (.). This match SL
21310 behavior (i.e. it's not a "sliding dot" algorithm like I expected)
21311 and the effect is visible in a few DRT (like #184).
21313 2008-08-15 Jeffrey Stedfast <fejj@novell.com>
21315 * uielement.cpp (UIElement::GetTriggers): Added for convenience.
21316 (UIElement::Dispose): Use the new convenience method.
21318 2008-08-15 Chris Toshok <toshok@ximian.com>
21320 * panel.cpp (Panel::ChildRemoved): queue a ZIndex re-sort here.
21321 (Panel::ChildAdded): call item->OnLoaded if we're loaded, and
21323 (Panel::OnCollectionChanged): simplify this since the code moved
21324 to ChildAdded/ChildRemoved.
21326 * panel.h, panel.cpp (Panel::Dispose): loop over our children
21327 setting their visual parent to NULL.
21329 * uielement.h, uielement.cpp (UIElement::Dispose): loop over the
21330 trigger collection removing ourselves as the target.
21331 (UIElement::OnPropertyChanged): handle TriggersProperty here -
21332 remove target from the old triggers and set target on the new
21334 (UIElement::OnCollectionChanged): new method, handle
21335 TriggersCollection.
21337 * dependencyobject.cpp: be consistent in our treatment of
21338 LogicalParent - clear it in every place we're removing a DO. Warn
21339 if we're setting it again on the same DO.
21341 * collection.h, collection.cpp: remove triggercollection's
21342 added/removedfromcollection, adn remove uielementcollection's
21343 removedfromcollection. Also, stop using a separate closure. The
21344 collection's LogicalParent always has the same value - use that.
21346 2008-08-15 Jeffrey Stedfast <fejj@novell.com>
21348 * clock.cpp (TimeManager::SourceTick): Instead of always using up
21349 to 1/30 of a second for flushing the async queue, use only the
21350 time remaining in our render pass to flush it.
21352 2008-08-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
21354 * animation.h: KeyTimeProperty isn't nullable in managed code.
21356 2008-08-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
21358 * cbinding.cpp, cbinding.h: Regenerated.
21359 * media.cpp, media.h: Add a MediaElement::SetStreamSource, and hack it
21360 to at least open the source.
21361 * pipeline.cpp, pipeline.h: Added ManagedStreamSource.
21363 2008-08-15 Jackson Harper <jackson@ximian.com>
21365 * xaml.cpp: Need to advance after F.
21367 2008-08-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
21369 * animation.h, dependencyproperty.g.cpp: KeyTime is nullable. Fixes MS
21372 2008-08-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
21374 * dependencyproperty.g.cpp: Regenerated.
21376 2008-08-14 Larry Ewing <lewing@novell.com>
21378 * animation.h (class KeyFrame): remove the KeyTime DP and make
21379 the ctor private this is an abstract class.
21381 * animation.cpp: retrieve the property via name.
21383 2008-08-14 Jeffrey Stedfast <fejj@novell.com>
21385 * clock.cpp (TimeManager::SourceTick): Call InvokeTickCall() as
21386 many times as we can in 1/30th of a second. Major visual
21387 performance improvement for bug #395160.
21389 2008-08-14 Jackson Harper <jackson@ximian.com>
21391 * xaml.cpp|h: We need to pass a pointer to the top level control
21392 when hooking up a managed event, the managed code uses this to
21393 find the method to invoke.
21395 2008-08-14 Jeffrey Stedfast <fejj@novell.com>
21397 * uielement.cpp: Implemented property accessors for ZIndex
21399 * collection.cpp (UIElementZIndexComparer): Use
21400 UIElement::GetZIndex(). If, in the future, we make GetZIndex()
21401 return a cached value, now we'll automagically benefit from it.
21403 2008-08-14 Jeffrey Stedfast <fejj@novell.com>
21405 ZIndex sorting optimization for bug #395160
21407 * panel.cpp (Panel::UpdateTotalHitTestVisibility): Don't iterate
21408 over the z_sorted list, it might not yet be
21409 populated (e.g. ResortZIndex() may not have been called yet).
21410 (Panel::OnPropertyChanged): Set a DirtyChildrenZIndices bit if the
21411 new collection is non-null.
21412 (Panel::OnCollectionChanged): Queue ZIndex resorts as appropriate.
21413 (Panel::OnLoaded): Queue a resort here too.
21415 * collection.cpp (UIElementCollection::AddedToCollection):
21416 Removed. We don't want to do the zindex sortign here anymore. Too
21417 slow. Instead, we'll have Panel::OnCollectionChanged() set the
21418 DirtyChildrenZIndices dirty flag so that the renderer forces a
21420 (UIElementCollection::Insert): Removed, no need to override
21421 anymore since we won't be resorting by zindex here anymore.
21422 (UIElementCollection::ResortByZIndex): Now that z_sorted isn't
21423 maintained as items are added/inserted, we need to always init the
21424 z_sorted array here even if we only have 1 item.
21426 2008-08-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
21428 * xaml.cpp, pipeline.cpp: Don't use base_unref, call unref on the
21430 * playlist.cpp: Use DependencyObject::SetName instead of the C method.
21431 * dependencyobject.h, dependencyobject.cpp: Generate all c methods, as
21432 well as Name accessors.
21433 * cbinding.h, dependencyproperty.g.cpp, cbinding.cpp: Regenerated.
21434 * runtime.cpp: Updated according to new method names.
21436 2008-08-14 Jackson Harper <jackson@ximian.com>
21438 * xaml.cpp: We now create property instances from the property's
21439 type info not the property's parent type. This will allow us to
21440 have a managed attached property on a native object.
21442 2008-08-14 Chris Toshok <toshok@ximian.com>
21444 * Makefile.am (libmoon_la_SOURCES): add thickness.cpp
21446 * thickness.h, thickness.cpp: add thickness_from_str.
21448 * xaml.cpp: add thickness parsing.
21450 2008-08-14 Jackson Harper <jackson@ximian.com>
21452 * xaml.cpp: Need to lookup property element name's in their
21453 namespace so that managed attached properties can be set.
21455 2008-08-14 Jackson Harper <jackson@ximian.com>
21457 * xaml.cpp: If there is a dot in the element name we can assume
21458 it's a property (or at least not an element). This should prevent
21459 some extra calls into managed code to try to create types from
21462 2008-08-13 Geoff Norton <gnorton@novell.com>
21464 * runtime.cpp|h, clock.cpp|h: Move the g_idle_idd and g_timeout
21465 calls into the time manager.
21467 2008-08-13 Geoff Norton <gnorton@novell.com>
21469 * runtime.cpp|h: Add a binding for g_idle_add.
21471 2008-08-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
21473 * cbinding.cpp, cbinding.h, eventargs.cpp, eventargs.h: Generate two
21474 MouseEventArgs methods.
21476 2008-08-14 Jackson Harper <jackson@ximian.com>
21478 * type-generated.cpp: Value types.
21480 2008-08-13 Jackson Harper <jackson@ximian.com>
21482 * xaml.cpp: Make sure we set content properties.
21484 2008-08-13 Jackson Harper <jackson@ximian.com>
21486 * xaml.cpp: Add support for parsing value types.
21488 2008-08-13 Chris Toshok <toshok@ximian.com>
21490 * panel.cpp (Panel::OnCollectionChanged): we only need to call
21491 OnLoaded on the new child.
21493 2008-08-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
21495 * stylus.h: StylusInfo doesn't have a managed equivalent.
21497 2008-08-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
21499 * dependencyproperty.h: Generate CBinding and PInvoke for IsAttached.
21500 * cbinding.cpp, cbinding.h: Regenerated.
21502 2008-08-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
21504 * type.cpp: Remove spew.
21505 * dependencyobject.cpp: GetValue*WithError: Fix error messages to say
21506 we're trying to get values, not set them.
21508 2008-08-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
21510 * dependencyproperty.g.cpp: Regenerated.
21511 * geometry.h: Added IsFilled property.
21513 2008-08-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
21515 * brush.h: Set correct managed DP access and property types.
21517 2008-08-13 Jeffrey Stedfast <fejj@novell.com>
21519 * *.h: Added GeneratePInvoke attribute to each ctor
21521 2008-08-13 Jeffrey Stedfast <fejj@novell.com>
21523 * text.cpp: s/Inlines/InlineCollection/g
21525 * xaml.cpp: s/Inlines/InlineCollection/g
21527 * collection.h (class InlineCollection): Renamed from Inlines.
21529 * trigger.h (class TriggerAction): Generate C Binding for ::Fire()
21530 and also the ctor. Needed to prevent a crash in test-props.html
21532 2008-08-13 Geoff Norton <gnorton@novell.com>
21534 * runtime.cpp|h: Reuse the old html_timer infrastructure for the
21535 intial DispatcherTimer implementation.
21537 2008-08-13 Jeffrey Stedfast <fejj@novell.com>
21539 * media.h (class MediaElement): Make MarkersProperty internal for
21542 * grid.h (class Grid): Make Column/RowDefinitionsProperties
21543 internal for managed-side.
21545 * text.h (class TextBlock): Make InlinesProperty internal for
21548 * panel.h (class Panel): Update ChildrenProperty managed property
21551 Also added newlines to the end of some files to silence compile
21554 2008-08-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
21556 * dependencyproperty.g.cpp, type.h, type-generated.cpp, value.h,
21557 cbinding.cpp, cbinding.h: Regenerated.
21558 * geometry.h: Annotation fix.
21559 * Makefile.am, src.mdp: Added tilesource.h
21560 * tilesource.h: Added.
21562 2008-08-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
21564 * src.mdp, Makefile.am: Added animation2.h
21565 * type.h, type-generated.cpp, value.h, cbinding.cpp, cbinding.h,
21566 dependencyproperty.g.cpp: Regenerated.
21567 * animation.h: Added missing 2.0 DPs and more annotations.
21568 * animation2.h: Added, contains 2.0 animation classes.
21569 * clock.h: There are no managed equivalent of TimelineGroup and
21570 ParallelTimeline, remove their Namespace annotation.
21572 2008-08-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
21574 * shape.h: Fix warning.
21576 2008-08-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
21578 * shape.h: The managed Shape class must be constructable, so make all
21579 pure virtual methods from the native Shape class just virtual.
21580 * cbinding.cpp, cbinding.h, type-generated.cpp: Regenerated.
21582 2008-08-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
21584 * animation.h, brush.h, cbinding.cpp, cbinding.h, clock.h,
21585 dependencyproperty.g.cpp, frameworkelement.h, geometry.h, panel.h,
21586 text.h, transform.h, type-generated.cpp, usercontrol.h: Added more
21587 annotations to make gui-compare happier.
21589 2008-08-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
21591 * control.h, dependencyobject.h, deployment.h, frameworkelement.h,
21592 style.h, template.h, trigger.h, uielement.h: Gui-compare annotation
21595 2008-08-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
21597 * stackpanel.h, src.mdp, Makefile.am, cbinding.cpp, cbinding.h,
21598 dependencyproperty.g.cpp, enums.cpp, enums.h, type.h,
21599 type-generated.cpp, value.h: Added a native StackPanel class and
21600 generate the managed StackPanel.
21602 2008-08-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
21604 * brush.h, contentcontrol.h, deployment.h, downloader.h, media.h,
21605 namescope.h, stylus.h, transform.h: Tweak some annotations.
21607 2008-08-12 Chris Toshok <toshok@ximian.com>
21609 * style.h (class Style): make the "Setters DP" field private.
21611 * template.h (class ControlTemplate): add TargetType DP
21613 * dependencyproperty.g.cpp: regen.
21615 2008-08-12 Chris Toshok <toshok@ximian.com>
21617 * style.h (class Setter): hack for the DependencyProperty valued
21618 property. we need to parse a string DP name in a context where we
21619 don't know the type to apply to it, so we need to have a string
21622 * dependencyproperty.g.cpp: regen.
21624 2008-08-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
21626 * collection.h: Annotate Collection.
21628 2008-08-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
21630 * animation.h, clock.h, collection.h, error.h, eventargs.h, media.h,
21631 size.h, style.h, template.h, trigger.h: Add @Namespace annotations.
21633 2008-08-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
21635 * src.mdp: Updated.
21637 2008-08-12 Chris Toshok <toshok@ximian.com>
21639 * collection.cpp (Collection::Clear): make a temporary copy of the
21640 array so we can zero out the ptrarray before calling
21641 RemovedFromCollection.
21643 2008-08-12 Jackson Harper <jackson@ximian.com>
21646 * xaml.cpp: Hydrate now passes in the default assembly name and
21647 path (we can probably do away with path's I think that's just a
21648 holdover from 1.1). If no assembly name is specified in the
21649 custom xmlns, the default's are used.
21651 2008-08-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
21653 * trigger.h, control.h, deployment.h, text.h, dependencyproperty.g.cpp,
21654 style.h, uielement.h, grid.h, media.h: Tweaked annotations to
21655 support managed DP accessor generation.
21657 2008-08-12 Jeffrey Stedfast <fejj@novell.com>
21659 * collection.cpp (Collection::SetCount): Convenience function.
21660 (Collection::Clear): Use SetCount().
21661 (Collection::Insert): Same.
21662 (Collection::RemoveAt): Same.
21664 * media.cpp (TimelineMarkerCollection::Add): Chain up to direct
21665 parent class rather than base class - while the
21666 DependencyObjectCollection might not currently override Add/Insert
21667 methods, if at some later point overrides are added, then we need
21668 to do no work here.
21670 * collection.cpp (DependencyObjectCollection::SetValueAt):
21671 Removed (not used anywhere).
21672 (Collection::SetValueAtWithError): This needs to call
21673 SetValueAt(), not GetValueAt().
21674 (Collection::SetValueAt): Delete the removed Value after emitting
21675 the event so we don't leak it.
21677 2008-08-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
21679 * animation.h, brush.h, clock.h, control.h, dependencyobject.h,
21680 deployment.h, downloader.h, frameworkelement.h, media.h, text.h,
21681 trigger.h, uielement.h: Use string instead of char* as
21684 2008-08-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
21686 * animation.h, brush.h, canvas.h, clock.h, collection.h,
21687 contentcontrol.h, control.h, dependencyobject.h, deployment.h,
21688 downloader.h, frameworkelement.h, geometry.h, grid.h, media.h,
21689 namescope.h, panel.h, shape.h, style.h, stylus.h, text.h,
21690 transform.h, trigger.h, uielement.h, usercontrol.h: Added
21691 @Namespace annotations, and changed @PropertyType which were
21692 declared as gint32 (and are enums) to use the actual enum type.
21693 * dependencyproperty.g.cpp: Updated.
21695 2008-08-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
21697 * src.mdp: Updated.
21699 2008-08-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
21701 * dependencyproperty.h, type.h, type-generated.cpp, value.h: Added
21702 DependencyProperty to the Kind enum.
21704 2008-08-11 Chris Toshok <toshok@ximian.com>
21706 * deployment.h (class Application): add ResourceProperty.
21708 * style.h: add ValueProperty.
21710 * cbinding.h, cbinding.cpp: hm, looks like I forgot to regen these
21711 after adding the Version=2.0 stuff to the collection api.
21713 * dependencyproperty.g.cpp: regen.
21715 2008-08-11 Chris Toshok <toshok@ximian.com>
21717 * error.h, error.cpp: add an enum to MoonError that lets us
21718 specify which exception to raise.
21720 * collection.h, collection.cpp: a few changes:
21722 1. make most methods take Value* now instead of Value, to ease the
21723 autogenerated bindings. Leave in Add/Remove taking (Value v) so
21724 we can let c++ do some implicit conversion lifting for us. Leave
21725 the (Value) variants as non-virtual, and make the Value* ones
21728 2. Make ::Add call ::Insert, instead of duplicating all the code.
21730 3. Move all calls of AddedToCollection and RemovedFromCollection
21731 to *after* the work has been done (they're past-tense, so do what
21732 their name implies.) This means subclasses can assume the item is
21733 already in the array (or removed from it) when those methods are
21734 called. The one holdout to this utopian ideal is Clear(). we
21737 4. Switch from overriding GetValue to handle CountProperty (and
21738 leaking a Value* every time we get it) to setting the
21739 CountProperty whenever we need to (in Insert/RemoveAt).
21741 5. Add special GetValueAtWithError, SetValueAtWithError, and
21742 RemoveAtWithError methods, that allow us to effectively raise
21743 exceptions from the unmanaged code. Use the new
21744 MoonError::ErrorKind enum to specify which exception.
21746 6. remove a bunch of C api, which is now autogenerated.
21748 * dependencyproperty.g.cpp (dependency_property_g_init): regen to
21749 pick up Collection::CountProperty's default value.
21751 * cbinding.h, cbinding.cpp: autogen'ed collection api.
21753 * stylus.h, media.h, media.cpp: track collection changes.
21755 * dependencyobject.cpp: track MoonError enum change.
21757 2008-08-11 Chris Toshok <toshok@ximian.com>
21759 * dependencyproperty.g.cpp: regen.
21761 * control.h (class Control): add StyleProperty.
21763 2008-08-11 Sebastien Pouliot <sebastien@ximian.com>
21765 * layout.cpp: Compute line's height with more precision. This
21766 removes the cumulative difference (over multiple lines) with
21767 Silverlight implementation. Fix DRT#209 (enough to PASS) and
21768 improve several other ones (already passing but imperfect).
21770 2008-08-11 Chris Toshok <toshok@ximian.com>
21772 * style.h: comment out 2 problematic DP's for now.
21774 * dependencyproperty.g.cpp: regen
21776 2008-08-11 Chris Toshok <toshok@ximian.com>
21778 * style.h, style.cpp: add Style, SetterBase, Setter, and
21779 SetterBaseCollection unmanaged types.
21781 * Makefile.am: add them to the 2.0 build.
21783 * type.h, type-generated.cpp, value.h, cbinding.h, cbinding.cpp,
21784 dependencyproperty.g.cpp: regenerate from style.h/style.cpp.
21786 2008-08-11 Jeffrey Stedfast <fejj@novell.com>
21788 * shape.cpp (Polyline::OnCollectionChanged): Invalidate the path
21790 (Polygon::OnCollectionChanged): Same.
21792 * text.cpp (TextBlock::OnPropertyChanged): Set dirty to true when
21793 the TextDecorationsProperty changes too. Fixes the "underline
21794 hyperlinks" portion of bug #412986.
21796 2008-08-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
21798 * xaml.cpp: Remove debug spew.
21800 2008-08-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
21802 * array.cpp, array.h: Removed, no longer needed.
21803 * collection.cpp, collection.h: Moved double_garray_from_str to
21805 * geometry.cpp, libmoon.h, Makefile.am, point.cpp, point.h, rect.cpp,
21806 shape.cpp, src.mdp, type.h, value.cpp, value.h, value.h.in,
21807 xaml.cpp: Remove the double and point arrays, no longer needed.
21808 * type-generated.cpp: Remove the double and point arrays, no longer
21809 needed. Implement support for 2.0 events.
21811 2008-08-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
21813 * runtime.cpp: Fix a crash (xaml parser tries to access the NULL loader
21816 2008-08-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
21818 * dependencyproperty.g.cpp: Surround 2.0 DP declarations in #if SL_2_0.
21820 2008-08-09 Jeffrey Stedfast <fejj@novell.com>
21822 * *.h: Removed *_new() prototypes which are autogenerated in
21825 2008-08-08 Chris Toshok <toshok@ximian.com>
21827 * template.h, template.cpp: new file, stub implementations for
21828 FrameworkTemplate and ControlTemplate.
21830 * Makefile.am: add template.h/cpp.
21832 * control.h: add Template property.
21834 * frameworkelement.h: add some 2.0 events.
21836 * cbinding.h, cbinding.cpp, type.h, dependencyproperty.g.cpp,
21837 value.h, type-generated.cpp: regenerate.
21839 2008-08-08 Chris Toshok <toshok@ximian.com>
21841 * xaml.h, xaml.cpp: we need to propagate the 2.0-ness of the
21842 parser around in various methods (starting from the public
21843 xaml_set_property_from_str and value_from_str*) in order to get it
21844 down to where it's needed for the enum_* calls.
21846 * enums.h, enums.cpp: add a "sl2" argument so we can resolve
21847 sl1/sl2 specific enum values, and add the 2.0 specific
21848 Horizontal/VerticalAlignment mappings.
21850 2008-08-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
21852 * runtime.cpp: Remove comments to self :)
21854 2008-08-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
21856 * panel.cpp, stylus.cpp, trigger.h, usercontrol.cpp, canvas.h,
21857 control.h, deployment.h, text.h, trigger.cpp, dependencyobject.h,
21858 canvas.cpp, transform.h, downloader.cpp, transform.cpp,
21859 animation.h, grid.cpp, shape.h, animation.cpp, deployment.cpp,
21860 control.cpp, runtime.cpp, text.cpp, clock.h, contentcontrol.h,
21861 clock.cpp, uielement.h, collection.h, geometry.h,
21862 contentcontrol.cpp, frameworkelement.h, uielement.cpp, grid.h,
21863 collection.cpp, geometry.cpp, shape.cpp, dependencyobject.cpp,
21864 frameworkelement.cpp, namescope.cpp, brush.h, panel.h, stylus.h,
21865 namescope.h, media.cpp, brush.cpp, usercontrol.h: Remove DP
21866 registration from *_init methods, and remove *_init methods which
21867 turned out to be empty after that.
21869 2008-08-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
21871 * panel.cpp, stylus.cpp, trigger.h, usercontrol.cpp, canvas.h,
21872 control.h, deployment.h, text.h, trigger.cpp, dependencyobject.h,
21873 canvas.cpp, transform.h, downloader.cpp, transform.cpp,
21874 animation.h, grid.cpp, downloader.h, shape.h,
21875 dependencyproperty.g.cpp, animation.cpp, deployment.cpp,
21876 control.cpp, runtime.cpp, text.cpp, dependencyproperty.h,
21877 Makefile.am, clock.h, contentcontrol.h, dependencyproperty.cpp,
21878 clock.cpp, uielement.h, collection.h, geometry.h,
21879 contentcontrol.cpp, frameworkelement.h, src.mdp, uielement.cpp,
21880 grid.h, collection.cpp, geometry.cpp, shape.cpp,
21881 dependencyobject.cpp, frameworkelement.cpp, namescope.cpp, media.h,
21882 brush.h, panel.h, stylus.h, namescope.h, media.cpp, brush.cpp,
21883 usercontrol.h: Generate dependency property registration.
21885 2008-08-07 Chris Toshok <toshok@ximian.com>
21887 * collection.h, collection.cpp (double_collection_from_str): new
21889 (point_collection_from_str): new method.
21891 * xaml.cpp (value_from_str): add support for
21892 DoubleCollection/PointCollection properties. leave
21893 DoubleArray/PointArray in for now, although nothing should use it.
21895 * shape.h, shape.cpp, geometry.h, geometry.cpp: switch all
21896 PointArray/DoubleArray properties to using
21897 PointCollection/DoubleCollection. This is unfortunately a
21898 necessity due to the 2.0 changes, but it should be transparent for
21901 2008-08-07 Larry Ewing <lewing@novell.com>
21903 * shape.cpp (Shape::ShiftPosition): add an unfortunate restriction
21904 on ShiftPosition interaction with the shape cache to fix the
21905 droppings we were seeing in AnimationMatrix and
21906 StoryBoard_ModifyProperty.htm.
21908 2008-08-07 Geoff Norton <gnorton@novell.com>
21910 * media.cpp: When the MediaElement source changes set the
21911 BufferingProgress back to 0 otherwise we may never emit a
21912 BufferingProgressChangedEvent for the new source.
21914 2008-08-07 Sebastien Pouliot <sebastien@ximian.com>
21916 * layout.cpp: Handle negative horiBearingX correctly. This gives
21917 better visual results in DRT #47 (same width value, up to 2
21918 decimal) and #209 (not enough to make it PASS but I doubt the
21919 master is ok, since I can't duplicate its output).
21921 2008-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
21923 * dependencyobject.cpp: HasProperty: accept attached properties for
21926 2008-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
21928 * panel.cpp, stylus.cpp, trigger.h, usercontrol.cpp, canvas.h,
21929 control.h, deployment.h, text.h, thickness.h, trigger.cpp,
21930 canvas.cpp, transform.h, color.h, downloader.cpp, eventargs.cpp,
21931 transform.cpp, animation.h, grid.cpp, downloader.h, eventargs.h,
21932 shape.h, animation.cpp, size.h, deployment.cpp, control.cpp,
21933 text.cpp, clock.h, contentcontrol.h, clock.cpp, uielement.h,
21934 point.h, collection.h, geometry.h, contentcontrol.cpp,
21935 frameworkelement.h, uielement.cpp, grid.h, collection.cpp,
21936 geometry.cpp, shape.cpp, frameworkelement.cpp, media.h, brush.h,
21937 rect.h, panel.h, stylus.h, media.cpp, brush.cpp, usercontrol.h: Add
21938 instructions to generate c constructors in headers and remove *_new
21939 implementations from cpp files.
21940 * dependencyobject.h: Typedef function pointer to avoid making the
21941 generator understand function pointer syntax. Update comments to
21943 * cbinding.h, value.h, src.mdp, cbinding.cpp: Updated.
21944 * type.h, type.h.in: Updated comments to new syntax.
21945 * mms-downloader.h: Use C++ syntax.
21946 * dependencyproperty.h, dependencyproperty.cpp: Make
21947 dependency_property_register_managed_property a method on the type
21948 and update comments to new syntax.
21949 * type-generated.cpp: Updated by new generator, which did actually
21950 catch a few errors.
21952 2008-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
21954 * dependencyproperty.cpp: DP: Comment out the duplicate DP warning
21957 2008-08-06 Geoff Norton <gnorton@novell.com>
21959 * dependencyproperty.cpp: When registering a clashing DP
21960 return the original so that the code can act on it as it
21961 expects. Fixes about 18 DRT regressions.
21963 2008-08-06 Chris Toshok <toshok@ximian.com>
21965 * uielement.h, uielement.cpp: add GetTransformToUIElement, the
21966 unmanaged equivalent to the managed UIElement.TransformToVisual.
21968 Also change the signature of HitTest to take a Point, not two
21969 doubles. Add a HitTest overload that takes a Rect in
21970 preparation for 2.0.
21972 * panel.h, panel.cpp: track HitTest signature change.
21974 * control.h, control.cpp: track HitTest signature change.
21976 2008-08-06 Chris Toshok <toshok@ximian.com>
21978 * transform.h, transform.cpp: add a convenience ctor for Matrix
21979 that takes a cairo_matrix_t*.
21981 2008-08-06 Chris Toshok <toshok@ximian.com>
21983 * type-generated.cpp (type_infos): fix ctors for UIElement and
21984 UIElementCollection.
21986 2008-08-06 Chris Toshok <toshok@ximian.com>
21988 * frameworkelement.h, frameworkelement.cpp: add
21989 DataContextProperty.
21991 2008-08-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
21993 * type.cpp: Fix for old glib in sled.
21995 2008-08-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
21997 * dependencyproperty.cpp, type.cpp, type.h, type.h.in,
21998 type-generated.cpp: Add custom properties to a GSList instead of
21999 the hash table given that several custom properties can be
22000 registered on the same type with the same name.
22002 2008-08-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
22004 * src.mdp: Make src and plugin projects build.
22006 2008-08-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
22008 * src.mdp: Updated.
22010 2008-08-05 Chris Toshok <toshok@ximian.com>
22012 * transform.h, transform.cpp, brush.cpp: Add GeneralTransform as a
22013 superclass of Transform, and move all the current Transform stuff
22016 * type.h, type-generated.cpp, value.h: resync
22018 2008-08-05 Chris Toshok <toshok@ximian.com>
22020 * uielement.h, uielement.cpp, frameworkelement.h,
22021 frameworkelement.cpp: move the UIElement DPs back - the move to
22022 FrameworkElement breaks tests.
22024 * collection.cpp (TriggerCollection::AddedToCollection): quiet
22026 (TriggerCollection::RemovedFromCollection): same.
22028 2008-08-05 Chris Toshok <toshok@ximian.com>
22030 * frameworkelement.h, frameworkelement.cpp: add in the 2.0-only
22031 DependencyProperties. we need a way to limit access to these to
22034 * uielement.h, uielement.cpp: CursorProperty, ResourcesProperty,
22035 TagProperty, TriggersProperty are moved to
22036 frameworkelement.h/.cpp.
22038 * runtime.cpp (Surface::UpdateCursorFromInputList): CursorProperty
22039 moved from UIElement to FrameworkElement.
22041 * size.h, size.cpp: add SizeChangedEventArgs.
22043 * thickness.h: move this type here
22045 * control.h: #include thickness.h
22047 * type.h, value.h, type-generated.cpp: regenerate for
22048 SIZECHANGEDEVENTARGS.
22050 2008-08-05 Chris Toshok <toshok@ximian.com>
22052 * Makefile.am (libmoon_la_SOURCES): enums.c => enums.cpp
22054 * enums.h: add comment about keeping MouseCursors enum in sync
22057 * enums.cpp: make all the mappings use symbols instead of integer
22058 constants. Also, rename enums.c to enums.cpp so it can include
22059 the .h files for enums not in enums.h.
22061 2008-08-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
22063 * src.mdp: Remove visual.cpp|h from here too.
22065 2008-08-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
22067 * brush.cpp, brush.h, dirty.cpp, panel.cpp, panel.h, type.h,
22068 type-generated.cpp, uielement.cpp, uielement.h, value.h,
22069 visual.cpp, visual.h, collection.h, collection.cpp, Makefile.am,
22070 libmoon.h: Deleted Visual (moved content into UIElement), and
22071 renamed VisualCollection to UIElementCollection.
22073 2008-08-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
22075 * cbinding.cpp, cbinding.h, dependencyobject.cpp, dependencyobject.h:
22076 GetValueWithError: Add a parameter to specify the exact type
22077 (including managed subclassing) of the object. HasProperty: use
22078 that parameter to determine if the type has the specified property
22080 * dependencyproperty.cpp, dependencyproperty.h: DependencyProperty: Add
22081 a is_custom field to determine if the property is our own or not.
22083 2008-08-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
22085 * cbinding.cpp, cbinding.h: Updated.
22086 * dependencyobject.h, dependencyobject.cpp, dependencyproperty.cpp,
22087 dependencyproperty.h, runtime.cpp, runtime.h, type.cpp, type.h,
22088 type.h.in, type-generated.cpp: Create a Types class which may
22089 contain additional types. Change the DP/DO/Type overloads
22090 containing a Surface to take a Types argument instead.
22092 2008-08-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
22094 * dependencyobject.cpp: Implement Get[No[Default]]ValueWithError.
22096 2008-08-04 Michael Dominic K. <mdk@mdk.am>
22100 * clock.h: Adding method to store a manual target (instead of a named target)
22101 for a timeline. This will be used to bind a Storyboard.SetTarget 2.0 method.
22103 2008-08-04 Michael Dominic K. <mdk@mdk.am>
22106 * animation.h: A little bit of C API for KeySpline.
22108 2008-08-04 Michael Dominic K. <mdk@mdk.am>
22110 * runtime.cpp: _get_surface can only be called from the main thread.
22112 2008-08-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
22114 * src.mdp, cbinding.h, cbinding.cpp: Updated.
22115 * Makefile.am: Include error.cpp.
22116 * error.h, error.cpp: Added MoonError.
22117 * dependencyproperty.h: Make RegisterFull 2.0 only.
22118 * dependencyobject.h, dependencyobject.cpp: Added and implemented
22119 Get[[No]Default]ValueWithError and a HasProperty method which takes
22120 into account properties registered on a surface.
22122 2008-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
22124 * canvas.cpp, grid.cpp: Use C++ binding instead of C binding.
22125 * media.cpp: Use property accessors instead of GetValue.
22127 2008-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
22129 * cbinding.cpp, cbinding.h: Update.
22130 * dependencyproperty.cpp: RegisterFull: Only wrap method code in
22131 SL_2_0, fixed 1.0 build.
22133 2008-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
22135 * dependencyproperty.h: Make GetName return a const char*, and rename
22136 parameters from readonly to read_only (to not conflict with C#
22139 2008-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
22141 * src.mdp: Updated.
22142 * dependencyproperty.cpp, dependencyproperty.h, Makefile.am: Generate
22143 DependencyProperty's C methods.
22144 * cbinding.cpp, cbinding.h: Added.
22145 * typegen, typegen/typegen.cs, typegen/typegen.sh: Moved typegen to
22146 moon/generators, and add methodgen to generate pinvokes, and cgen
22147 to generate c bindings.
22149 2008-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
22151 * dependencyobject.cpp, dependencyproperty.cpp, dependencyproperty.h:
22152 Implement property changed callbacks.
22154 2008-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
22156 * contentcontrol.h, control.h: Fix includes.
22158 2008-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
22160 * pipeline-ffmpeg.cpp: Fix warning.
22162 2008-08-01 Jeffrey Stedfast <fejj@novell.com>
22164 * dependencyobject.cpp (EventObject::Dispose): Call
22166 (EventObject::unref): Don't call SetSurface() here anymore.
22168 2008-08-01 Michael Dominic K. <mdk@mdk.am>
22170 * runtime.cpp|h: Adding few utility functions to modify the flags
22171 at runtime -- provided that there are no surfaces currently
22172 present. Would be nice to be able to somehow do it before calling
22175 2008-08-01 Michael Dominic K. <mdk@mdk.am>
22177 * runtime.cpp|h: Adding an expose handoff custom
22178 function that can be set on surface. It's called just after
22179 render_cb when something has been updated on the screen.
22181 2008-08-01 Michael Dominic K. <mdk@mdk.am>
22183 * runtime.cpp|h: Adding a global surface list and an
22184 ability to access it. I have a bad feeling we need some locking
22185 in the _get_surface_list function.
22187 2008-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
22189 * src.mdp: Updated.
22191 2008-07-31 Jeffrey Stedfast <fejj@novell.com>
22193 This is the proper fix for bug #412443
22195 * visual.cpp (VisualCollection::Dispose): Implement Dispose()
22197 (VisualCollection::RemovedFromCollection): Now that we know we are
22198 disposing, we can unset VisualParent here instead of in our
22199 dtor/Dispose() method, saving us from having to interate over our
22202 * collection.cpp (Collection::Dispose): Implement a Dispose()
22203 method which does what the dtor used to do.
22205 * dependencyobject.cpp (EventObject::unref): Call Dispose() just
22206 before deleting the object.
22208 2008-07-31 Jeffrey Stedfast <fejj@novell.com>
22210 * dependencyobject.cpp (struct Listener): Comment out the listener
22211 reffing from previous commit. I don't think this is correct.
22213 * visual.cpp (VisualCollection): Set z_sorted to NULL after
22214 freeing it so that parent class dtor calling
22215 RemovedFromCollection() will not poke at free'd memory.
22217 2008-07-31 Geoff Norton <gnorton@novell.com>
22219 * Makefile.am: Undo part of the recent Makefile changes as they broke
22222 2008-07-31 Jeffrey Stedfast <fejj@novell.com>
22226 * dependencyobject.cpp (DependencyObject::AddPropertyChangeListener):
22228 (DependencyObject::RemovePropertyChangeListener): Unref the listener.
22230 2008-07-31 Jeffrey Stedfast <fejj@novell.com>
22232 * animation.cpp (KeyFrameCollection::RemovedFromCollection): Oops,
22233 this needs to chain up to
22234 DependencyObjectCollection::RemovedFromCollection() rather than
22235 AddedToCollection(). Duh.
22237 2008-07-30 Jeffrey Stedfast <fejj@novell.com>
22239 * contentcontrol.cpp|h: Added.
22241 * enums.h: Moved some font/text enums here from font.h
22243 2008-07-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
22245 * dependencyproperty.cpp: Fix build.
22247 2008-07-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
22249 * runtime.cpp: Fix 1.0 build.
22251 2008-07-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
22253 * dependencyproperty.cpp, dependencyproperty.h, runtime.cpp, runtime.h,
22254 type.cpp, type.h, type.h.in, typegen/typegen.cs,
22255 type-generated.cpp: Store DependencyProperties in the Type* instead
22256 of a hashtable keyed on the kind.
22258 2008-07-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
22260 * dependencyobject.cpp: IsValueValid: treat all MANAGED types as valid,
22261 given that since we might not have access to the surface where the
22262 type was registered, it's not possible to do any type checking
22263 * dependencyproperty.cpp, dependencyproperty.h, runtime.cpp, runtime.h:
22264 Implement registration of managed properties on a surface.
22265 * type.cpp, type.h, type.h.in: Implement a Type::Find which can look in
22266 types registered on a surface, added a Type::MANAGED enum value.
22267 * typegen/typegen.cs, type-generated.cpp, value.h, value.h.in: Add a
22270 2008-07-29 Jeffrey Stedfast <fejj@novell.com>
22272 * text.cpp (inline_new): Added.
22274 2008-07-29 Jackson Harper <jackson@ximian.com>
22276 * xaml.cpp: Add a set_parent call, I need to do some fanagling
22277 there so collection items don't have their parents set.
22278 - Managed items that are being hydrated or created using x:Class
22279 need to get content properties from the managed world.
22281 2008-07-28 Chris Toshok <toshok@ximian.com>
22283 * value.cpp, value.h.in, value.h, type.h, typegen/typegen.cs,
22284 type-generated.cpp: Add Size foo.
22286 2008-07-28 Jeffrey Stedfast <fejj@novell.com>
22288 * value.cpp (Value::FreeValue): Oops, free Thickness.
22290 2008-07-28 Chris Toshok <toshok@ximian.com>
22292 * control.h (struct Thickness): reorder fields to match managed
22295 2008-07-28 Jeffrey Stedfast <fejj@novell.com>
22297 * typegen/typegen.cs: Added Thickness.
22299 * value.h.in, type.h.in: Added Thickness.
22301 * value.cpp: Implemented Thickness value ctor/etc.
22303 * enums.h: Added more 2.0-specific enums.
22305 * control.cpp|h: Implemented property accessors/bindings and
22308 2008-07-28 Michael Dominic K. <mdk@mdk.am>
22310 * animation.cpp: When starting an SB that has been started already make sure to
22311 remove the Completed handler before the teardown. Fixes #405518.
22313 2008-07-28 Chris Toshok <toshok@ximian.com>
22315 * collection.cpp (collection_iterator_next): move the check for
22316 index-in-range to after the increment of it. that way managed
22317 code doesn't step off the end of the list.
22319 2008-07-26 Chris Toshok <toshok@ximian.com>
22321 * eventargs.h, eventargs.cpp: some 2.0 event stuff. Make the
22322 MouseEventArgs and KeyboardEventArgs classes subclasses of a new
22323 class - RoutedEventArgs. Also, add a "Handled" field to both
22324 MouseEventArgs and KeyboardEventArgs. Lastly add a "Keyboard"
22325 class to map to the 2.0 static Keyboard class. it exposes nothing
22326 but a Modifiers property, which isn't updated at present, but will
22327 be by the Surface code (in the key event handler).
22329 * type.h, value.h, type-generated.cpp: sync - new ROUTEDEVENTARGS
22332 2008-07-26 Chris Toshok <toshok@ximian.com>
22334 * enums.h (enum ModifierKey): 2.0 specific enum for use by the
22337 2008-07-26 Jackson Harper <jackson@ximian.com>
22339 * xaml.cpp: If there isn't a managed content property, try looking
22340 for an unmanaged one.
22342 2008-07-26 Jackson Harper <jackson@ximian.com>
22344 * xaml.h|cpp: Create elements for imported managed namespaces.
22346 2008-07-25 Chris Toshok <toshok@ximian.com>
22348 * runtime.h, runtime.cpp: reformat the class decl to put public:
22349 stuff first. add "bool silverlight2" to the surface ctor so we
22350 can start to use it for behavioral differences (routed event
22351 handlers, key events, focus, etc).
22353 2008-07-25 Jeffrey Stedfast <fejj@novell.com>
22355 * stylus.h (StrokeCollection::CanAdd): Strokes can exist in
22356 multiple StrokeCollections at a time but they cannot be added to
22357 the same collection multiple times. Do not default to
22358 DependencyObjectCollection::CanAdd()'s behavior because it checks
22359 that the logical parent is unset (which will not be accurate for
22361 (StylusPointCollection): Same as StrokeCollection.
22363 * xaml.cpp (dependency_object_add_child): Set the logical parent
22364 of items to NULL before adding them to a collection.
22366 * collection.h (class Collection): Removed 'unique' field, it's
22367 not necessary afterall.
22368 (Collection::CanAdd): New virtual method to check if the value can
22369 be added to the collection (by default always returns true).
22370 (DependencyObjectCollection::CanAdd): Override CanAdd() by
22371 checking if the object being added has a logical parent. If it
22372 already has a parent, it cannot be added (this is how Silverlight
22375 * collection.cpp (Collection::Add): There's no such thing as
22376 'unique' anymore. Don't check if the value is already contained
22377 within our collection like the old code used to do, instead call
22378 our new virtual method CanAdd() to see if we can add it.
22379 (Collection::Insert): Check CanAdd().
22380 (Collection::SetValueAt): Check CanAdd().
22382 2008-07-24 Jeffrey Stedfast <fejj@novell.com>
22384 * collection.cpp (collection_add): Fixed.
22386 * collection.h: Get rid of convenience wrappers that aren't even
22387 used. Also removes the need for previous commit.
22389 2008-07-24 Jeffrey Stedfast <fejj@novell.com>
22391 * collection.h (class DependencyObjectCollection): Add virtual
22392 Add(), Clear() and Insert(). This makes it possible for subclasses
22393 to chain up if they need to override any of these.
22394 (class DoubleCollection): Same.
22395 (class PointCollection): Here too.
22397 * visual.cpp (VisualCollection::Clear): Chain up to
22398 DependencyObjectCollection::Clear() rather than
22399 Collection::Clear().
22400 (VisualCollection::Insert): Don't bother resizing the z_sorted
22401 array here, it will be done inside ResortByZIndex() anyway.
22402 (VisualCollection::Insert): Chain up to
22403 DependencyObjectCollection::Insert() rather than
22404 Collection::Insert()
22406 2008-07-24 Geoff Norton <gnorton@novell.com>
22408 * downloader.cpp: When a downloader is reused reset the completed
22409 state when we get the new Open call.
22411 2008-07-24 Jeffrey Stedfast <fejj@novell.com>
22413 * text.cpp (inlines_simple_text_equal): Fixed a stupid typo.
22415 * collection.cpp (DependencyObjectCollection::RemovedFromCollection):
22416 Unregister the NameScope the same way the old Collection::Remove()
22417 way did it. This way seems the most correct (RemoveAt() was
22418 totally broken and SetVal() doesn't seem right afterall).
22420 2008-07-24 Jeffrey Stedfast <fejj@novell.com>
22422 * collection.cpp: Added c-wrappers for creating new
22423 collections. Also changed the c-bindings for
22424 setting/adding/inserting/etc items to the collection to take
22425 Value* instead of Value. Should make it simpler for the managed
22428 2008-07-24 Jeffrey Stedfast <fejj@novell.com>
22430 * collection.cpp (DependencyObjectCollection::RemovedFromCollection):
22431 Unregister the NameScope the same way it was done in the more
22432 common case in the old code (why were there different ways?).
22434 * text.cpp (TextBlock::OnCollectionChanged): Chain up.
22435 (TextBlock::OnCollectionItemChanged): Same.
22437 * brush.cpp (GradientBrush::OnCollectionChanged): Chain up.
22438 (GradientBrush::OnCollectionItemChanged): Chain up and notify
22441 * geometry.cpp (GeometryGroup::OnCollectionChanged): Chain up.
22442 (GeometryGroup::OnCollectionItemChanged): Chain up and notify
22444 (PathGeometry::OnCollectionChanged): Chain up.
22445 (PathGeometry::OnCollectionItemChanged): Chain up and notify
22447 (PathFigure::OnCollectionChanged): Chain up.
22448 (PathFigure::OnCollectionItemChanged): Chain up and notify
22451 * shape.cpp (Polygon::OnCollectionChanged): Chain up.
22452 (Polygon::OnCollectionItemChanged): Same.
22453 (Polyline::OnCollectionChanged): Same.
22454 (Polyline::OnCollectionItemChanged): Same.
22456 * stylus.cpp (Stroke::OnCollectionItemChanged): Need to
22457 call NotifyListersOfPropertyChange().
22459 * transform.cpp (TransformGroup::OnCollectionItemChanged): Need to
22460 call NotifyListersOfPropertyChange().
22462 2008-07-24 Jeffrey Stedfast <fejj@novell.com>
22464 * collection.cp|h: Reworked Collections a lot. Collection is now a
22465 generic collection of Values. Added 3 new collections:
22466 DependencyObjectCollection (which holds DO's like the old
22467 Collection class did), DoubleCollection and PointCollection.
22469 * dependencyobject.h (DependencyObject::OnCollectionChanged):
22470 Changed the way this works to reflect the managed API.
22472 *.cpp|h: Updated to reflect above changes.
22474 2008-07-24 Jeffrey Stedfast <fejj@novell.com>
22476 * utils.cpp (g_ptr_array_insert): New utility function.
22477 (g_ptr_array_insert_sorted): Call g_ptr_array_insert() once we
22478 find the index where we want to add the item.
22480 2008-07-23 Chris Toshok <toshok@ximian.com>
22482 * panel.cpp, xaml.cpp, stylus.cpp, usercontrol.cpp, canvas.cpp,
22483 transform.cpp, grid.cpp, animation.cpp, text.cpp,
22484 dependencyproperty.h, dependencyproperty.cpp, uielement.cpp,
22485 geometry.cpp, shape.cpp, dependencyobject.cpp,
22486 frameworkelement.cpp, media.cpp, brush.cpp: a couple of
22487 DependencyPropertyChanges:
22489 1. switch to the Silverlight/WPF naming of the two Types.
22490 type/value_type change to owner_type/property_type.
22492 2. go all gtk-3.0, and make things private with accessors.
22494 2008-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
22496 * animation.cpp, brush.cpp, canvas.cpp, clock.cpp, collection.cpp,
22497 dependencyobject.cpp, dependencyobject.h, dependencyproperty.cpp,
22498 dependencyproperty.h, deployment.cpp, downloader.cpp,
22499 frameworkelement.cpp, geometry.cpp, grid.cpp, media.cpp,
22500 namescope.cpp, panel.cpp, runtime.cpp, shape.cpp, stylus.cpp,
22501 text.cpp, transform.cpp, trigger.cpp, uielement.cpp,
22502 usercontrol.cpp, xaml.cpp: Move Register(Full|Nullable) and
22503 GetDependencyObject from DependencyObject to DependencyProperty.
22505 2008-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
22507 * dependencyobject.h, dependencyproperty.h, Makefile.am,
22508 dependencyproperty.cpp, src.mdp, dependencyobject.cpp: Move
22509 DependencyProperty to its own file before it grows bigger.
22511 2008-07-21 Jackson Harper <jackson@ximian.com>
22513 * xaml.cpp: Add back in the ability to create elements from
22514 managed elements using the x:Class syntax.
22516 2008-07-21 Jackson Harper <jackson@ximian.com>
22519 * type-generated.cpp: The UserControl's Content Property name is
22520 Content not ContentProperty.
22522 2008-07-21 Jeffrey Stedfast <fejj@novell.com>
22524 * collection.cpp (collection_add): Fixed to return int.
22526 2008-07-21 Jackson Harper <jackson@ximian.com>
22528 * xaml.cpp: Add support for parsing GridLength attribute values.
22530 2008-07-19 Geoff Norton <gnorton@novell.com>
22532 * mms-downloader.(cpp|h): Ensure that we always stream-select a marker
22533 stream when there is one available. Fixes drt #2.
22534 Refactor some code duplication into a utility method.
22536 2008-07-19 Jackson Harper <jackson@ximian.com>
22538 * xaml.cpp: We can't blindly assume an object has a content
22541 2008-07-19 Jackson Harper <jackson@ximian.com>
22543 * type-generated.cpp: UserControl has a content property.
22544 * value.h|.h.in|.cpp: Add GridLength to Value.
22546 2008-07-18 Geoff Norton <gnorton@novell.com>
22548 * media.cpp: Revert InitialBuffer work around as it has some unexpected
22551 2008-07-18 Geoff Norton <gnorton@novell.com>
22553 * media.cpp: Clear the InitialBuffer state when we seek as well, as that will
22554 get a new burst from the mms server with AccelBW.
22556 2008-07-18 Geoff Norton <gnorton@novell.com>
22558 * media.cpp: If we're using a mms source we can attempt to start playing the
22559 first time before the entire 5s buffer is full due to AccelBW/AccelDuration.
22560 Fixes c9 stream start lag.
22562 2008-07-18 Geoff Norton <gnorton@novell.com>
22564 * mms-downloader.cpp: Set LinkBW, AccelBW and AccelDuration so we can fill
22565 our initial buffer quickly.
22567 2008-07-18 Geoff Norton <gnorton@novell.com>
22569 * pipeline.(cpp|h), mp3.(cpp|h): Break mp3 out into its own files.
22570 * Makefile.am: Add mp3.(cpp|h) to the build.
22571 * pipeline-ffmpeg.cpp: MP3 streamed over asf will bunch multiple frames
22572 together, so we need to split them up and pass them to avcodec_decode_audio2
22573 one at a time. Its also possible that we could get a partial frame, so we need
22574 to buffer that data. Fixes mms+mp3.
22576 2008-07-18 Jeffrey Stedfast <fejj@novell.com>
22578 Fix for bug #410206
22580 * text.h (TextBlock::GetBoundingHeight): Return the larger of the
22582 (TextBlock::GetBoundingWidth): Same.
22584 2008-07-18 Chris Toshok <toshok@ximian.com>
22586 * Makefile.am (libmoon_include_HEADERS): add window.h and
22588 (libmoon_la_SOURCES): add window-gtk.cpp
22590 * window.h: abstract class for windows, that surface will use to
22591 deal with window/widget level operations.
22593 * window-gtk.h, window-gtk.cpp: MoonWindow implementation using
22596 * runtime.h, runtime.cpp: factor out all the widget stuff from
22597 this file, along with all "width" and "height" fields. now
22598 Surface knows nothing about widgets or windowless. It speaks to
22599 MoonWindow implementations instead. Add several public methods
22600 that the window implementations can call (anything HandleUI*) to
22601 communicate events back to the surface.
22603 * canvas.cpp: surface->Get{Width,Height} ==>
22604 surface->GetWindow()->Get{Width,Height}.
22606 2008-07-18 Michael Dominic K. <mdk@mdk.am>
22609 * media.cpp: Reverting prev change, different solution: process the tick calls
22610 before processing the render.
22612 2008-07-18 Michael Dominic K. <mdk@mdk.am>
22614 * media.cpp: If the downloader is already completed, don't do an extra async
22615 call when setting source. Fixes the downloader-set-source... testcase.
22617 2008-07-18 Michael Dominic K. <mdk@mdk.am>
22619 * media.cpp: Fixing a crasher in case bad parameters passed from js.
22621 2008-07-18 Jackson Harper <jackson@ximian.com>
22623 * xaml.h: New delegates and functions for the loader. We need to
22624 call back into managed code when we import a xaml namespace so
22625 that it knows which objects are available and we need a new
22626 function for creating those objects.
22628 2008-07-18 Jackson Harper <jackson@ximian.com>
22630 * usercontrol.cpp|h: Add C functions for accessing the Content
22633 2008-07-17 Jackson Harper <jackson@ximian.com>
22637 * type-generated.cpp:
22638 * deployment.cpp|h: Add an Application type. This doesnt directly
22639 map to the managed Application because it inherits from
22640 DependencyObject, but it allows us to parse Application XAML files
22641 and then we can pull the values we need.
22643 2008-07-17 Jackson Harper <jackson@ximian.com>
22645 * libmoon.h: Add usercontrol.h, I want access to this in the
22648 2008-07-17 Jackson Harper <jackson@ximian.com>
22650 * xaml.cpp: Had a backwards IsSubclassOf here causing
22651 UserControl's content property to not get set (and I imagine many
22652 other content properties).
22653 * usercontrol.h: Add the ContentProperty metadata.
22655 2008-07-17 Stephane Delcroix <sdelcroix@novell.com>
22657 * downloader.h|cpp: provide hooks for DownloadeRequest
22659 2008-07-17 Jeffrey Stedfast <fejj@novell.com>
22661 * pipeline.cpp (FileSource::ReadInternal): EOF isn't an error.
22663 * runtime.cpp (surface_create_downloader): We need to actually
22664 return the downloader here or our caller will just get garbage ;-)
22666 2008-07-17 Michael Dominic K. <mdk@mdk.am>
22668 * clock.cpp: When _USE_IDLE_HINT is not sent, don't do idle hinting.
22670 * runtime.h: On desktop and browser by default use idle hinting.
22672 2008-07-17 Michael Dominic K. <mdk@mdk.am>
22674 * runtime.cpp: Adding "idlehint" to moonlight overrides that will
22675 control the use of idle hint in the clocks.
22677 2008-07-17 Stephane Delcroix <sdelcroix@novell.com>
22679 * runtime.h|cpp: add surface_get_downloader
22681 2008-07-16 Larry Ewing <lewing@novell.com>
22683 * runtime.cpp: try to get the resize logic correct for all cases,
22684 including popfly, ControlState.htm and fullscreen tests.
22686 Fixes the (non)rendering issues in the popfly game creator.
22688 2008-07-16 Geoff Norton <gnorton@novell.com>
22690 * mplayer.cpp: Its possible that extremely small audio files will
22691 never fill the sound buffer enough causing us to never call snd_pcm_open.
22692 Ensure that we open the buffer to play the sound before shutting down
22695 2008-07-16 Geoff Norton <gnorton@novell.com>
22697 * pipeline.cpp: Update to be able to build with LOG_PIPELINE still
22699 2008-07-16 Sebastien Pouliot <sebastien@ximian.com>
22701 * layout.cpp: (TextLayout::LayoutWrap) Don't let actualWidth be
22702 greater than Width. Fix MS DRT#184 and #208. ALso makes #206
22703 looks better (but it already passed)
22705 2008-07-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
22707 * pipeline.cpp, pipeline.h: ProgressiveSource: clean up a bit, this
22708 class doesn't do anything live/mms anymore. LiveSource: removed
22709 completely, never used. Added MemoryNestedSource to wrap another
22710 MemorySource without messing with its current position pointer.
22711 MemoryQueueSource: store already parsed packets instead of
22712 MemorySources in the queue, saves a memory allocation and prevents
22713 parsing each packet twice when buffering (once for the code which
22714 determines the last available pts, and again for the normal
22715 demuxing code path).
22716 * mms-downloader.cpp: Updated to not delete asf parser, unref it
22718 * mplayer.cpp: Enqueue 3 audio frames instead of 10, makes the pipeline
22719 wait a bit longer before ending up waiting for more data (which
22720 causes the MediaElement to go into buffering mode).
22721 * media.cpp: ProgressiveSource ctor doesn't take any bool arguments
22724 2008-07-15 Larry Ewing <lewing@novell.com>
22726 * dirty.cpp (Surface::AddDirtyElement): quick patch from toshok to
22727 fix a regression in the fullscreen message code.
22729 2008-07-15 Jb Evain <jbevain@novell.com>
22731 * deployment.cpp|h: start updating Deployment to sl2b2.
22733 2008-07-15 Jb Evain <jbevain@novell.com>
22735 * deployment.h: remove SupportedCulture and SupportedCultureCollection
22736 as they no longer exist.
22737 * value.h, type.h, type-generated.cpp: regenerate.
22739 2008-07-15 Jb Evain <jbevain@novell.com>
22741 * deployment.cpp|h: rename RuntimeVersion DP to RuntimeVersionProperty.
22743 2008-07-15 Jb Evain <jbevain@novell.com>
22745 * list.cpp: set pointers to NULL instead of 0.
22747 2008-07-14 Geoff Norton <gnorton@novell.com>
22749 * mplayer.cpp: If we've already reached the EOF in the audio stream
22750 don't keep processing GetNextBuffer. This was causing us to emit
22751 MediaEnded more than once, causing failures in the test suite.
22753 2008-07-14 Geoff Norton <gnorton@novell.com>
22755 * downloader.cpp: Change completed to check a bool instead of
22756 filename, as filename can now be set before the downloader is in fact
22759 2008-07-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
22761 * media.cpp: Initialize Media with our downloader.
22762 * pipeline.cpp: Media::Open: Check if the source has ended while
22763 waiting for an asfparser. Remove print_stack_traces.
22765 2008-07-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
22767 * internal-downloader.h: Add InternalDownloader::GetType to allow the
22768 derived internal downloader to tell what kind of internal
22770 * file-downloader.h: Implement InternalDownloader::GetType.
22771 * downloader.h: Make the internal downloader publicly accessible. Add a
22772 Downloader::IsAborted method.
22773 * mms-downloader.h, mms-downloader.cpp: Implement
22774 InternalDownloader::GetType. Store the ASFParser we create in the
22775 class instance, so that the pipeline can get it. No need to write
22776 the header packet to the stream anymore.
22777 * media.cpp: Don't unref in AddTickCall callbacks anymore. Fix
22778 calculation of buffering progress to take into account that the
22779 currently available pts might be before the last played pts.
22780 * mplayer.cpp, mplayer.h, downloader.cpp: Don't unref in AddTickCall
22782 * pipeline.cpp, pipeline.h: Make the Media ctor take a Downloader
22783 argument and access the internal mms downloader on that Downloader
22784 to get the asf parser. Remove Read/Seek support from
22785 MemoryQueueSource, and just add a Pop method which returns a
22786 MemorySource for the next packet in the queue. Also add support to
22787 return all the packets in the queue as an array so that the
22788 ASFParser can easily determine the last pts available.
22789 * clock.cpp, clock.h: Use our own thread-safe Queue instead of GList +
22790 g_mutex. Also make TickCall take a ref to the data parameter until
22791 the tick call has been made. This also ensures that the data
22792 parameter gets unreffed correctly when the tick call is never made
22793 (such as when we skip calls due to the TimeManager getting shut
22795 * dependencyobject.cpp: Don't ref in AddTickCall anymore.
22797 2008-07-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
22799 * playlist.cpp: Fix warning.
22801 2008-07-11 Sebastien Pouliot <sebastien@ximian.com>
22803 * font.cpp: (FontFace::LoadGlyph) Use linearHoriAdvance instead
22804 of horiAdvance since the later is rounded to an integer. FixMS
22805 DRT#45 and get better results (less differences) on many font
22808 2008-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
22810 * http-streaming.cpp, playlist.cpp: Add missing #include <config.h>
22812 2008-07-11 Sebastien Pouliot <sebastien@ximian.com>
22814 * font.cpp: (font_conic_to) Directly use moon_quad_curve_to
22815 instead of doing it's own second to third order calculation.
22817 2008-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
22819 * mplayer.cpp: Don't store target pts from audio thread if we're paused
22820 (audio thread might not have gotten the pause request yet).
22822 2008-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
22824 * pipeline.cpp: Don't Signal more than once. I have no idea why the
22825 waiting thread doesn't wake up though.
22826 * mplayer.cpp: Comment out a printf, and always break the play loop
22827 when we're doing rw access.
22829 2008-07-10 Sebastien Pouliot <sebastien@ximian.com>
22831 * geometry.cpp|h: Remove useless code for computing bounds on
22832 PathFigure (now all handled at PathGeometry level).
22834 2008-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
22836 * mplayer.cpp: Fix a couple of leaks.
22838 2008-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
22840 * pipeline.cpp: There's no need to call AudioPlayer::Initialize
22842 * runtime.cpp, runtime.h: Added
22843 RUNTIME_INIT_AUDIO_NO_MMAP/audio=mmap|rw to runtime flags.
22844 * mplayer.cpp, mplayer.h: Implement support for using RW access mode in
22845 addition to the already supported MMAP access mode for alsa. This
22846 also required a major refactoring to only call alsa on the audio
22847 thread due to buggy pulseaudio hanging us (and the rest of the
22848 machine) otherwise.
22850 2008-07-10 Sebastien Pouliot <sebastien@ximian.com>
22852 * shape.cpp|h: (ComputeStretchBounds) Move shape-specific code
22853 inside each type (and out of the general case).
22855 2008-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
22857 * dependencyobject.cpp: Fix leak.
22859 2008-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
22861 * debug.cpp: Make valgrind happy.
22863 2008-07-09 Geoff Norton <gnorton@novell.com>
22865 * media.cpp: Ensure that we clear our old loader when we set
22868 2008-07-09 Fernando Herrera <fherrera@novell.com>
22870 * pipeline.cpp: Always set MemoryQueueSource element's size
22871 based to offset+n even for live sources.
22873 2008-07-09 Jeffrey Stedfast <fejj@novell.com>
22875 Fixes for bug #406934
22877 * text.cpp (Glyphs::SetSurface): Override so that we can start
22878 downloading the font as soon as the element gets (re)attached.
22879 (Glyphs::OnPropertyChanged): If we aren't attached, set
22880 uri_changed to true so that when we are (re)attached, we can start
22883 * media.cpp (MediaBase::MediaBase): Init new state variable
22884 'source_changed' to false.
22885 (MediaBase::SetSurface): If source_changed and we are being
22886 attached to a surface, initiate a download.
22887 (MediaBase::SetSource): Set source_changed to false.
22888 (MediaBase::OnPropertyChanged): Handle SourceProperty changes for
22890 (MediaElement::OnPropertyChanged): Don't handle SourceProperty
22891 changes anymore, let MediaBase do that for us.
22892 (Image::OnPropertyChanged): Same.
22894 2008-07-09 Geoff Norton <gnorton@novell.com>
22896 * mms-downloader.cpp: Remove the guard we had against copying
22897 random memory and provide the correct amount of data to the
22898 pipeline from each packet.
22900 2008-07-09 Geoff Norton <gnorton@novell.com>
22902 * downloader.(cpp|h): NotifyFinished is now the finished
22903 event. The filename will be set (if available) in SetFilename.
22904 * media.(cpp|h): Change to progressivly loading the image
22905 where available (fixes popfly). We still fallback to file loading
22906 for the JS downloader case for now.
22908 2008-07-09 Larry Ewing <lewing@novell.com>
22910 * runtime.cpp (Surface::motion_notify_callback): don't call
22911 get_pointer when in windowless mode, I don't think we can trust
22914 * runtime.h (class Surface): make widget public so that we can
22915 peek at it in windowless mode.
22917 2008-07-08 Sebastien Pouliot <sebastien@ximian.com>
22919 * xaml.cpp: Always do a move after closing a path. Fix DRT test
22920 #138 (even if it was passing too!) for a bad (extra) arc.
22922 2008-07-08 Larry Ewing <lewing@novell.com>
22924 * runtime.cpp, runtime.h: remove a bunch of code rot relating to
22925 temporary cairo surfaces that is no longer used.
22927 2008-07-08 Sebastien Pouliot <sebastien@ximian.com>
22929 * shape.cpp: Consider PenLineCap when computing bounds using
22930 cairo. Fix (even if it was passing) some corners in DRT test #7
22932 2008-07-08 Jeffrey Stedfast <fejj@novell.com>
22934 * xaml.h: Reorganized a bit.
22936 2008-07-07 Chris Toshok <toshok@ximian.com>
22938 * dirty.cpp (Surface::AddDirtyElement): don't add elements to the
22939 list if they lack a visual parent (and aren't the toplevel.)
22942 2008-07-07 Larry Ewing <lewing@novell.com>
22944 * shape.cpp (Rectangle::BuildPath): handle some special case
22945 degenerates slightly differently.
22947 Fixes most of test-shape-rectangle-matrix.xaml.
22949 2008-07-07 Larry Ewing <lewing@novell.com>
22951 * shape.cpp (Ellipse::BuildPath): a thickness equal to a width
22952 degenerates in drawing, use the workaround there too.
22954 Fixes shape #5 in test/xaml/assorted/stroke-thickness-test.html
22956 2008-07-03 Larry Ewing <lewing@novell.com>
22958 * geometry.cpp (RectangleGeometry::ComputeBounds): simplify the
22959 rectangle geometry computation. It matches in the sl
22960 implementation now.
22962 * shape.cpp: simplify rectangle and ellipse drawing and bounds so
22963 that they match the sl implementation and deal with degenerate
22964 cases better. Try to avoid setting up a clip rectangle when it
22967 2008-07-07 Chris Toshok <toshok@ximian.com>
22969 [ fixes the media element not showing up in flowers-for-you, bug
22971 * media.h, media.cpp: move Image::use_img_{width,height} and
22972 Image::updating into MediaBase and rename then
22973 use_media_{width,height} and updating_size_from_media.
22974 (MediaElement::OnPropertyChanged) duplicate the
22975 WidthProperty/HeightProperty stuff here (c&p from
22976 Image::OnPropertyChanged - this should probably just be refactored
22977 to MediaBase. will do this later).
22978 (MediaBase::ComputeBounds): we don't need the subclass
22979 ComputeBounds methods. Just put it here, as they share the same
22981 (MediaElement::SetMedia): remove the call to ComputeBounds here,
22982 since the new block of use_media_{width,height} checks will call
22983 UpdateBounds if they need to.
22985 2008-07-07 Fernando Herrera <fherrera@novell.com>
22989 * pipeline.h: Implement MemoryQueueSource::NotifyFinished so
22990 we don't wait for new packets when the downloader has finished.
22991 Also calculate size based on offset + n for mms streams, so the
22992 ASFReader can check Eof based on positions.
22994 2008-07-05 Chris Toshok <toshok@ximian.com>
22996 * dirty.cpp: remove the down_dirty_node_succ and
22997 up_dirty_node_pred code from here. it arguably helped speed up
22998 insertions into the dirty lists, but at the cost of lots of
22999 dangling pointers. we always walk up the tree looking for a
23000 down/up node. works, and is much simpler. and fixes bug #362561.
23002 * uielement.h, uielement.cpp: remove the down_dirty_node_succ and
23003 up_dirty_node_pred code.
23005 2008-07-04 Sebastien Pouliot <sebastien@ximian.com>
23007 * xaml.cpp: Avoid a SIGSEGV in dependency_object_set_attributes
23008 when the atchname is invalid.
23010 2008-07-04 Chris Toshok <toshok@ximian.com>
23012 * runtime.cpp (Surface::EmitEventOnList): don't leak the event
23015 2008-07-03 Chris Toshok <toshok@ximian.com>
23017 * animation.h, animation.cpp: the *KeyFrame KeySplineProperty
23018 values need to be initialized in the ctors, not in animation_init.
23020 2008-07-03 Sebastien Pouliot <sebastien@ximian.com>
23022 * shape.cpp: Add back the cairo_[save|restore] in ::Draw methods
23023 since they are needed for stretching.
23025 2008-07-03 Jeffrey Stedfast <fejj@novell.com>
23027 * text.cpp (TextBlock::Render): Check to see if we need to
23028 calculate layout before painting.
23030 2008-07-03 Sebastien Pouliot <sebastien@ximian.com>
23032 * moon-path.c|h: Draw ellipse clockwise to match Silverlight.
23033 Also remove the closing point since it's not needed (but that was
23034 not the problem, just a small memory saving).
23035 [Re-fix bug #391684]
23037 2008-07-02 Jeffrey Stedfast <fejj@novell.com>
23039 * text.h (TextBlock::GetBoundingWidth/Height): Use
23040 GetValueNoDefault() so we don't get 0.0 for the width/height if
23043 Fixes for bug #404858
23045 * runtime.cpp: Added SHOW_TEXTBOXES bit flag.
23047 * layout.cpp: Don't keep track of bbox_width and height anymore,
23048 it was never actually set to anything other than
23049 actual_width/height anyway.
23051 * text.cpp (TextBlock::Paint): If SHOW_TEXTBOXES, render a green
23052 bounding box around the text (this is to aid in debugging text
23053 which may have a transform applied to it).
23055 * text.h (class TextBlock): Removed bbox_width and
23056 bbox_height. These were never anything other than
23057 actual_width/height respectively anyway.
23058 (TextBlock::GetBoundingWidth): Return the FrameworkElement::Width
23059 if set, else the ActualWidth.
23060 (TextBlock::GetBoundingHeight): Same.
23062 2008-07-02 Sebastien Pouliot <sebastien@ximian.com>
23064 * shape.cpp: Remove cairo_save|restore from [Shape|Path]::Draw
23065 since their callers already do this. Simplify a bit Shape::
23066 InsideObject to check ret only if a Clip is present (instead of
23067 always checking it).
23069 2008-07-02 Chris Toshok <toshok@ximian.com>
23071 * runtime.h, runtime.cpp: get rid of the cursor_func,
23072 invalidate_func, render_func stuff. Instead use 3 virtual
23073 methods: SetCursor(GdkCursor*), Invalidate(Rect), and
23074 ProcessUpdates(). That way the plugin can instantiate a
23075 WindowlessSurface which overrides those methods instead of having
23076 the stupid callback mechanism we had.
23078 2008-07-02 Chris Toshok <toshok@ximian.com>
23080 * runtime.h, runtime.cpp: virtualize SetCursor so the plugin can
23081 override the behavior.
23083 2008-07-02 Sebastien Pouliot <sebastien@ximian.com>
23085 * moon-path.c: Revert ordering change I made in r105586 to fix
23086 a clipping issue (fillrule bug) as this breaks stroke dash (which
23087 confirm the original behaviour was the correct one).
23088 [Fix most of #404858]
23090 2008-07-01 Jeffrey Stedfast <fejj@novell.com>
23092 Fixes for bug #405514.
23094 * text.cpp (TextBlock::Layout): If the Text property is empty,
23095 default the actualHeight to the font's height.
23096 (TextBlock::OnPropertyChanged): If the FrameworkElement::Width
23097 property changes, we need to set dirty to true (in most cases) so
23098 that the actual width/height values are recalculated.
23100 2008-06-30 Sebastien Pouliot <sebastien@ximian.com>
23102 * shape.cpp|h: Use Cairo by default to ComputeBounds. In effect
23103 this change Polyline and Polygon to use Cairo instead of (faster
23104 but less acurate) custom code. In reality PathGeometry (PML) is
23105 much more used than those Poly[line|gon] and (upcoming) caching
23106 negate much of the impact.
23107 * geometry.cpp: Use the more precise (and surviving)
23108 calc_line_bounds function that accept PenLineCap.
23110 2008-06-30 Jeffrey Stedfast <fejj@novell.com>
23112 * shape.cpp (Shape::OnPropertyChanged): If the Stroke property
23113 chanegs between null and an actual brush (in either direction),
23114 invalidate the cached path because the shape may need to
23115 recalculate the stroke offsets.
23117 2008-06-30 Sebastien Pouliot <sebastien@ximian.com>
23119 * xaml.cpp: Move reading the first point of C|Q beziers into the
23120 loop. Fix quite a few misrendering for http://xmldocs.net/ball
23121 [Partial fix for #404858]
23123 2008-06-30 Chris Toshok <toshok@ximian.com>
23125 * dirty.cpp: add all the ordering smarts to keep the two dirty
23126 lists partially sorted. hopefully this won't be a huge
23129 * uielement.h, uielement.cpp: add 2 new dirty pointers. a "succ"
23130 pointer for the down dirty list, and a "pred" for the up dirty
23133 2008-06-30 Jeffrey Stedfast <fejj@novell.com>
23135 * list.cpp (List::InsertBefore): Handle a NULL @before.
23137 2008-06-30 Geoff Norton <gnorton@novell.com>
23139 * mms-downloader.cpp: Rework Fernando's incomplete packet guard to be a little
23140 more sane while we determine how to fix this properly.
23142 2008-06-30 Jeffrey Stedfast <fejj@novell.com>
23144 * shape.cpp (Shape::ComputeShapeBounds): Reverted my previous fix,
23146 (Ellipse::ComputeShapeBounds): Same.
23148 2008-06-30 Michael Dominic K. <mdk@mdk.am>
23150 * animation.cpp: Make sure our default KeySplines parameters are correct
23151 to generate a linear dynamics curve as Silverlight. Fixes #404850.
23153 2008-06-30 Fernando Herrera <fherrera@novell.com>
23155 * pipeline.cpp: don't use g_queue_clear as is present only in glib >= 2.14
23157 2008-06-30 Fernando Herrera <fherrera@novell.com>
23160 * pipeline.cpp: Implement the packet writer MemoryQueueSource.
23164 * media.cpp: Use MemoryQueueSource for all mms streams
23165 * mms-downloader.cpp: Don't try to parse/write incomplete data packets.
23167 2008-06-29 Chris Toshok <toshok@ximian.com>
23169 * panel.cpp (Panel::OnCollectionChanged): when the ZIndex of a
23170 child changes, invalidate them here.
23172 * dirty.cpp (Surface::ProcessDownDirtyElements): and remove the
23173 subtree invalidate from the zindex processing here.
23175 2008-06-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
23177 * pipeline-ffmpeg.cpp: Add debug spew.
23178 * media.cpp: Remove debug spew.
23180 2008-06-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
23182 * media.cpp, media.h: Add streamed markers to the media element on the
23185 2008-06-28 Geoff Norton <gnorton@novell.com>
23187 * downloader.h: The finished event raises a success condition now
23188 so that we can notify failure on unsuccessful downloads.
23190 2008-06-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
23192 * mplayer.h: Add AudioPlayer::Drain to drain whatever data the audio
23193 has stored, now called by the MediaPlayer when seeking. Execute the
23194 'seeking complete' logic on the main thread (marshalling
23195 SeekCallback to the main thread). Always use the thread-safe
23196 AddTickCallSafe instead of AddTickCall, and override
23197 EventSurface::SetSurface to lock/unlock the required locks.
23198 * mplayer.cpp: Add AudioPlayer::Drain to drain whatever data the audio
23199 has stored, now called by the MediaPlayer when seeking. Execute the
23200 'seeking complete' logic on the main thread (marshalling
23201 SeekCallback to the main thread), and set the previous_position on
23202 the MediaElement to the seeked-to position when the seek is
23203 finished. Always use the thread-safe AddTickCallSafe instead of
23204 AddTickCall, and override EventSurface::SetSurface to lock/unlock
23205 the required locks.
23206 * dependencyobject.cpp, dependencyobject.h: Split AddTickCall into a
23207 thread-safe version (AddTickCallSafe) and don't do any locking in
23208 AddTickCall. Add SetSurfaceLock/Unlock so that types overriding
23209 SetSurface can do the proper locking.
23210 * media.cpp, media.h: CheckMarkers: Don't try to detect seeking by
23211 comparing to/from pts, MediaPlayer will now set previous_position
23212 correctly when seeking. AdvanceFrame: only check markers if we
23213 advanced or if we're not seeking. SetSurface: add proper locking,
23214 and use AddTickCallSafe where appropiate.
23216 2008-06-27 Larry Ewing <lewing@novell.com>
23218 * uielement.cpp (UIElement::OnPropertyChanged): opcacity mask
23219 affects the subtree as well.
23221 2008-06-27 Larry Ewing <lewing@novell.com>
23223 * uielement.cpp (UIElement::OnPropertyChanged): on things that can
23224 potentially be trapped by the Invalidate visibility check we need
23225 to invalidate the whole subtree before we start processing the
23226 dirty lists to avoid ordering issues.
23228 Fixes test/xaml/assorted/rendering-glitches2.html.
23230 2008-06-27 Chris Toshok <toshok@ximian.com>
23232 * panel.cpp (Panel::FrontToBack): add a special case for
23233 non-translucent (but NULL background) panels - we don't render
23236 2008-06-27 Larry Ewing <lewing@novell.com>
23238 * panel.cpp (Panel::FrontToBack): treat opacity specially for
23239 panel since we need the right subtree render region in PreRender.
23241 2008-06-27 Jeffrey Stedfast <fejj@novell.com>
23243 * downloader.cpp (dummy_downloader_create_web_request): Return
23244 NULL to fix a compile warning about control reaching the end of a
23247 2008-06-27 Stephane Delcroix <sdelcroix@novell.com>
23249 * downloader.[h|cpp]: move browserrequest/response from the plugin
23250 as downloaderrequest/response.
23252 2008-06-26 Chris Toshok <toshok@ximian.com>
23254 * runtime.h (RUNTIME_INIT_DESKTOP, RUNTIME_INIT_BROWSER): enable
23257 * shape.h, shape.cpp (Shape::IsCandidateForCaching): remove the
23258 condition that was keeping small surfaces from being cached, so
23259 bubblemark gets a win from this (from ~38 to 70+ fps on my
23261 (Shape::ShiftPosition): if we have a cached surface, set the
23262 device offset to mirror the new bounds x/y.
23264 2008-06-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
23266 * clock.h, clock.cpp, dependencyobject.h, downloader.cpp,
23267 dependencyobject.cpp, mplayer.h, media.h, mplayer.cpp, media.cpp:
23268 Change AddTickCall to take a TickCallHandler (EventObject*)
23269 function pointer and a EventObject * tick_data instead of untyped
23270 function pointer/tick_data.
23272 2008-06-26 Chris Toshok <toshok@ximian.com>
23274 * dependencyobject.h,
23275 dependencyobject.cpp (DependencyProperty::DependencyProperty):
23276 convert the name to downcase prior to registering and prior to
23277 calling g_hash_table_lookup to remove the casecmp overhead from
23278 our key comparisons. store the converted name in DP::hash_key.
23280 * runtime.h, runtime.cpp: remove strcase_equal (use g_strcasecmp)
23283 * type.cpp: strcase_equal -> g_strcasecmp.
23285 * playlist.cpp (PlaylistParser::OnStartElement): same.
23287 2008-06-26 Jeffrey Stedfast <fejj@novell.com>
23289 * pipeline.cpp (ASXDemuxerInfo::Supports): Fix broken boolean
23290 logic/compiler warning and at the same time simplified.
23292 * shape.cpp (Shape::ComputeShapeBounds): Need to take stroke
23293 thickness into consideration. Fixes bug #400657.
23294 (Ellipse::ComputeShapeBounds): Same.
23296 2008-06-26 Chris Toshok <toshok@ximian.com>
23298 * dirty.cpp (Surface::ProcessDownDirtyElements): add code to
23299 re-sort the children by zindex.
23301 * dirty.h (enum DirtyType): add DirtyChildrenZIndices.
23303 * panel.cpp (Panel::OnCollectionChanged): don't resort-by-zindex
23304 here. just add it to the dirty list.
23306 * transform.h, transform.cpp: move the OnSubPropertyChanged method
23307 to MatrixTransform, so we can notify our listeners with the right
23310 2008-06-26 Chris Toshok <toshok@ximian.com>
23312 * transform.h, transform.cpp (Transform::OnSubPropertyChanged): we
23313 need this to deal with sub-dependencyobjects of transforms (in
23314 this case, MatrixTransform's Matrix object.) when you set
23315 properties on these subobjects, we need to update the transform.
23317 2008-06-26 Chris Toshok <toshok@ximian.com>
23319 * brush.h, brush.cpp (Brush::OnSubPropertyChanged): add this (i
23320 think it used to be there and was removed by me in a flurry of
23321 propertychanged event fixing way back) to take care of brushes
23322 properly causing the uielement to invalidate when the Brush's
23323 transform/relativetransform changes.
23325 2008-06-26 Sebastien Pouliot <sebastien@ximian.com>
23327 * geometry.h: #ifdef out GeometryFlags until we start using it.
23328 * shape.cpp: Remove unused global variable.
23330 2008-06-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
23332 * mplayer.cpp: AudioFinished: Check if we still have audio when the
23333 callback is reached. Fixes test-double-stop.html.
23335 2008-06-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
23337 * mplayer.cpp: When calculating start_time take into account current
23338 position. Fixes test-video-only-seek.html (and fox seeking without
23341 2008-06-25 Jeffrey Stedfast <fejj@novell.com>
23343 * mms-downloader.cpp: Got rid of overuse of this-> and some int vs
23346 2008-06-25 Sebastien Pouliot <sebastien@ximian.com>
23348 * geometry.cpp: Cache bounds, both logical and "physical" for
23349 PathFigure. This reduce the number of time we need to call
23350 cairo_[path|stroke|fill]_extents functions and speed up many
23352 * geometry.h: Add stuff needed for geometry.cpp changes.
23353 * xaml.cpp: Change geometry_from_str to directly create a
23354 moon_path and avoid the PathFigure[Collection] DO. This match
23355 how Silverlight handle Path Markup Language (PML) and reduce
23356 memory requirements when huge PML are used.
23358 2008-06-24 Chris Toshok <toshok@ximian.com>
23360 * shape.cpp (calc_offsets): we don't want to divide by the sin,
23361 because as angle approaches either 0, PI, or PI/2, the sin will
23362 approach 0, and therefore the deltas will grow very, very large.
23363 Turns out multiplying is what we want.
23365 2008-06-24 Larry Ewing <lewing@novell.com>
23367 * runtime.cpp (Surface::Resize): set the width and height properly
23368 in the windowless case, let the widget resize logic handle it
23370 (Surface:render_cb): don't process dirty elements if we are in a
23371 zombie state, just clear the dirty lists and move on. Fixes a
23372 crash we were seeing when calling ForceRender on a zombie plugin.
23374 2008-06-24 Chris Toshok <toshok@ximian.com>
23376 * runtime.cpp: in the switch from function pointer to integer in
23377 the HandleMouseEvent stuff, I didn't catch that C++ apparently
23378 doesn't flag NULL as different from 0. This was causing the
23379 "HandleMouseEvent (NULL" to become effectively become
23380 "HandleMouseEvent (UIElement::DestroyedEvent" which of course
23381 breaks all sorts of things. In bug 401884 it was causing the
23382 namescope to drop the named item from its hashtable, causing the
23383 tattoo needle to not move vertically.
23385 2008-06-23 Chris Toshok <toshok@ximian.com>
23387 * uielement.cpp (UIElement::PreRender): comment from the code is
23390 we need this check because ::PreRender can (and will) be called
23391 for elements with empty regions.
23393 The region passed in here is the redraw region intersected with
23394 the render bounds of a given element. For Panels with no
23395 width/height specified in the xaml, this region will be
23396 empty. (check panel.cpp::FrontToBack - we insert the ::PreRender
23397 calling node if either the panel background or any of the children
23398 intersect the redraw region.) We can't clip to the empty region,
23399 obviously, as it will keep all descendents from drawing to the
23402 2008-06-23 Chris Toshok <toshok@ximian.com>
23404 * uielement.h, uielement.cpp (UIElement::ShiftPosition): virtualize
23405 the "bounds.x = p.x; bounds.y = p.y" code, since subclasses have
23406 other, more specialized bounds that also need updating.
23408 * panel.h, panel.cpp (Panel::ShiftPosition): new method, chain up
23409 to UIElement::ShiftPosition and also update bounds_with_children.
23411 * stylus.h, stylus.cpp (InkPresenter::ShiftPosition): new method,
23412 chain up to Canvas::ShiftPosition, and also update render_bounds.
23414 2008-06-23 Chris Toshok <toshok@ximian.com>
23416 * canvas.cpp (Canvas::OnSubPropertyChanged): allow switching
23417 between UpdatePosition and UpdateTransform according to the
23418 updatepos=yes/no override.
23420 * runtime.h, runtime.cpp: add updatepos=yes/no override.
23422 2008-06-23 Michael Dominic K. <mdk@mdk.am>
23424 * clock.cpp: Fixing a problem with repeating animations. Fixes #401983.
23426 2008-06-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
23428 * media.cpp: Don't check markers if from > to, no markers will ever be
23429 found in that interval. Also detect forward seeks by checking the
23430 difference between from and to, if difference > 1s, behave as a
23431 seek (and don't emit markers in that interval).
23432 * pipeline-ffmpeg.cpp: Give more missing information to ffmpeg.
23434 2008-06-20 Jeffrey Stedfast <fejj@novell.com>
23436 * animation.h: Added "Property Accessor" comments and grouped the
23437 property accessors, etc.
23439 * dependencyobject.cpp (EventObject::SetSurface): Reworded debug
23441 (EventObject::AddTickCall): Same.
23443 * dependencyobject.h (EventObject::GetSurface): Don't amke this
23444 virtual, nothing overrides it currently.
23446 2008-06-20 Michael Dominic K. <mdk@mdk.am>
23451 * clock.h: When detaching/reattaching to Surface execute a special
23452 handler on clocks that (in case of animation clocks) removes the update
23453 property handler. This fixes the (regressed some time ago)
23454 StoryboardEnterLeave semantics test.
23456 2008-06-19 Jackson Harper <jackson@ximian.com>
23459 * type-generated.cpp: Make sure the content property is set.
23461 2008-06-19 Larry Ewing <lewing@novell.com>
23463 * uielement.cpp (UIElement::PreRender): work around what appears
23464 to be a bug in the ftb logic by not clipping to the render region.
23466 * clock.cpp (SystemTimeSource::Start): make the timer priority
23467 DEFAULT again since otherwise we can get into starvation
23470 * uielement.cpp (UIElement::PreRender): don't save/restore around
23471 the clip changes, they restrict the group bounds and speed up
23472 opacity related masking substantially. (See bubblemark).
23474 2008-06-19 Jeffrey Stedfast <fejj@novell.com>
23476 * font.cpp (FontFace::GetExtents): Only set face pixel size if the
23477 requested size is not what we already have set.
23478 (FontFace::LoadGlyph): Same.
23479 (FontFace::Kerning): Need to set pixel sizes here or our kerning
23482 2008-06-19 Chris Toshok <toshok@ximian.com>
23484 * canvas.cpp (Canvas::OnSubPropertyChanged): call
23485 ui->UpdatePosition instead of UpdateTransform. Since
23486 UpdateTransform calls UpdateBounds, this should save us a
23487 sometimes costly (in the case of Shape's) trip through
23490 * uielement.h, uielement.cpp: Add UpdatePosition (adds the dirty
23491 node) and ComputePosition (called from ProcessDownDirtyElements.)
23492 (UIElement::ComputePosition): Apply the inverse absolute transform
23493 to the bounds x/y, compute the new transform, then reapply it to
23494 the bounds x/y to compute our new position.
23495 (UIElement::UpdateTransform): clear the DirtyPosition flag.
23496 (UIElement::UpdatePosition): only add the DirtyPosition flag if
23497 the Dirty*Transform flags aren't already set.
23500 * dirty.cpp (Surface::ProcessDownDirtyElements): add blocks for
23501 Clip, LocalClip, and Position (only Position is implemented).
23503 * dirty.h: clean up the enum some, and add 3 new passes (only one
23504 of which, DirtyPosition, is implemented).
23506 2008-06-19 Jeffrey Stedfast <fejj@novell.com>
23508 * transform.cpp: Started adding property accessor methods.
23510 * canvas.cpp (Canvas::[G,S]etLeft): Implemented.
23511 (Canvas::[G,S]etTop): Same.
23513 * uielement.cpp (UIElement::[G,S]etLeft): Moved to Canvas.
23514 (UIElement::[G,S]etTop): Same.
23516 2008-06-19 Chris Toshok <toshok@ximian.com>
23518 * rect.h: add Get{Top,Bottom}{Left,Right} methods.
23520 * point.h, point.cpp: add Transform method.
23522 2008-06-19 Michael Dominic K. <mdk@mdk.am>
23524 * animation.cpp: In a *AnimationUsingKeyFrames if we don't have any
23525 keyframes specified the duration is 0, not Automatic. This fixes the
23526 http://www.etonline.com/silverlight/grammys50/ website.
23528 2008-06-18 Sebastien Pouliot <sebastien@ximian.com>
23530 * geometry.cpp: Use the new moon-path functions for ArcSegment
23531 and QuadraticBezierSegment
23532 * moon-path.c: Change some validation to use g_return_if_fail
23534 2008-06-18 Jeffrey Stedfast <fejj@novell.com>
23536 * runtime.cpp (Surface::ShowFullScreenMessage): Simplified to use
23539 * control.cpp (Control::GetTransformFor): Simplified.
23541 * uielement.cpp (UIElement::SetLeft): Added for setting
23542 Canvas.Left property.
23543 (UIElement::GetLeft): Same.
23544 (UIElement::SetTop): Same.
23545 (UIElement::GetTop): Same.
23547 * canvas.cpp (Canvas::GetTransformFor): Simplified.
23549 2008-06-18 Sebastien Pouliot <sebastien@ximian.com>
23551 * shape.cpp: When possible (i.e. if we won't change the bounds
23552 anyway) avoid the second pass inside Shape::ComputeStretchBounds.
23553 This reduce (but does not eliminate) a BIG bottleneck for SL
23554 applications with many path using stretch (e.g. SL world).
23556 2008-06-18 Geoff Norton <gnorton@novell.com>
23558 * media.cpp: The state when Seeking should not be changed to Stopped.
23559 Fixes another test.
23561 2008-06-17 Jeffrey Stedfast <fejj@novell.com>
23563 Partial fix for bug #400657.
23565 * dependencyobject.cpp (DependencyObject::IsValueValid): If the
23566 value is a null dependency object, don't check that the types
23567 match - it doesn't matter.
23569 * color.cpp (color_to_string): New convenience utility function to
23570 aid in debugging. Returns a pointer to a static string buffer, so
23573 2008-06-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
23575 * playlist.cpp, playlist.h: Only unref/null out the media in
23576 PlaylistEntry::Stop if we're a playlist and not if we're a single
23579 2008-06-17 Sebastien Pouliot <sebastien@ximian.com>
23581 * moon-path.c|h: Add moon_quad_curve_to and moon_arc_to so they
23582 can be reused without a PathFigure-derived instance. Refactor
23583 code to expand/realloc paths to reduce duplication.
23585 2008-06-16 Chris Toshok <toshok@ximian.com>
23587 * uielement.cpp (UIElement::OnPropertyChanged): call
23588 Invalidate(GetSubtreeBounds()) and UpdateBounds() directly instead
23590 (UIElement::OnSubPropertyChanged): same.
23592 2008-06-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
23594 * playlist.cpp: When Merging items only merge duration if the source
23596 * media.cpp: MediaElement::MediaOpened: when setting the media on the
23597 current item in the playlist, make sure we set the media on a
23598 PlaylistEntry, not on a (nested) Playlist.
23600 2008-06-16 Jeffrey Stedfast <fejj@novell.com>
23602 * yuv-converter.cpp (YUVConverter::YUVConverter): Replace
23603 g_error() with g_warning(). There's really nothing else we can do
23605 (YUVConverter::Convert): Check if rgb_uv is NULL, if it is try
23606 allocating it again? Maybe some resources have been released since
23607 the ctor was called?
23609 * pipeline-ffmpeg.cpp (FfmpegDecoder::DecodeFrame): Replace
23610 g_error() with a g_warning() and return MEDIA_OUT_OF_MEMORY error.
23612 * mplayer.cpp (MediaPlayer::Open): Change g_error() into a
23613 g_warning() and return fail.
23615 2008-06-16 Michael Dominic K. <mdk@mdk.am>
23617 * clock.cpp: Don't do the ExtraRepeat action when seeking.
23619 2008-06-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
23621 * media.cpp, media.h: Move Play/Pause due to AutoPlay logic into one
23623 * playlist.cpp: When we stop, clear out our media. This fixes an issue
23624 where we didn't correctly download a file if it was stopped after
23625 it was opened, but before fully downloaded, and then restarted.
23627 2008-06-13 Jeffrey Stedfast <fejj@novell.com>
23629 * dependencyobject.cpp (include): stdlib.h for strtol()
23631 Fix for jumping to the last page in PageTurn.
23633 * uielement.cpp (UIElement::OnSubPropertyChanged): Need to call
23634 UpdateTotalRenderVisibility() when the clip changes.
23636 2008-06-13 Michael Dominic K. <mdk@mdk.am>
23640 * moon-curves.h: Cleaning up the KeySpline curve implementation a bit.
23642 2008-06-13 Michael Dominic K. <mdk@mdk.am>
23648 * moon-curves.h: First version of the new algho for calculating the "y
23649 at x" for KeySplines, now with 200% more accuracy guaranteed! Fixes the
23650 AnimationMatrix2 test.
23652 2008-06-12 Jackson Harper <jackson@ximian.com>
23654 * xaml.cpp: Remove some cruft.
23655 - Rename Custom to Managed
23656 - We don't need element maps for the namespaces anymore
23657 - Deploy can go into the default list of namespaces.
23659 2008-06-12 Fernando Herrera <fherrera@novell.com>
23661 * playlist.cpp: Parse ASX2 files using GKeyFile API to have sane NULL
23662 terminated strings. Also keep any uri paramson the mms Ref.
23664 2008-06-12 Jackson Harper <jackson@ximian.com>
23666 * xaml.cpp: Use the new stuff for creating wrapped types.
23667 - make XamlElementInstance pure virtual.
23669 2008-06-12 Jackson Harper <jackson@ximian.com>
23671 * xaml.cpp: Clean up API for creating wrapped dependency objects.
23673 2008-06-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
23675 * type.cpp: Fix type verification to not check 2.0 types for 1.0
23678 2008-06-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
23680 * media.cpp, media.h: Don't AutoPlay playlists which have already been
23681 autoplayed. Make Play/Pause/Stop/Seek async.
23682 * playlist.cpp, playlist.h: Add a AutoPlayed field to Playlist.
23684 2008-06-12 Chris Toshok <toshok@ximian.com>
23686 * control.cpp, control.h, deployment.h, frameworkelement.h,
23687 grid.h, runtime.cpp, size.h, type-generated.cpp, type.h,
23688 uielement.h, value.h, xaml.cpp: I was a little too aggressive. we
23689 can't use SL_2_0 in most places in headers (or rather, shouldn't).
23690 It might be a good idea to remove all references to it, but this
23691 at least gets the ms-tests running and passing again --with-mono.
23692 Switch to using SL_2_0 around the #includes in the .cpp files, and
23693 in value.h/type.h just include the 2.0 types.
23695 * usercontrol.h, usercontrol.cpp: split out the code from
23696 control.h, control.cpp here.
23698 * Makefile.am: add usercontrol.[h,cpp]
23700 * typegen/typegen.cs: fix up the header emission.
23702 2008-06-12 Sebastien Pouliot <sebastien@ximian.com>
23704 * geometry.cpp|h: Refactor work between PathGeometry and PathFigure
23705 ComputeBounds to avoid creating/destroying a new cairo context for
23706 each figure (it's now shared). Refactor PathFigure::Build not to scan
23707 the path list twice and rely on moon-path automatic size increase.
23708 Also avoid cairo_fill_extents if the path can't be filled or no fill
23711 2008-06-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
23713 * runtime.cpp: CreateDownloader: don't allow creating downloaders if we
23714 can't get a surface, nor if the surface is a zombie.
23715 * text.cpp, playlist.cpp, media.cpp: Surface::CreateDownloader may
23716 return NULL now, add a null check.
23718 2008-06-11 Jackson Harper <jackson@ximian.com>
23720 * xaml.cpp: Move GetKind to the info. Doesn't make sense for
23721 Instances to have a kind (they can access their kind from their
23724 2008-06-11 Sebastien Pouliot <sebastien@ximian.com>
23726 * geometry.cpp: Remove unneeded cairo_save|restore inside Draw
23727 methods (since Shape::Draw already does it) and remove
23728 cairo_set_fill_rule (since Shape::Fill does it).
23730 2008-06-11 Jackson Harper <jackson@ximian.com>
23732 * xaml.cpp: Clean up the namespace map when destroying the parser.
23734 2008-06-11 Sebastien Pouliot <sebastien@ximian.com>
23736 * geometry.h: Fix GeometryGround::ComputeBounds so it does
23737 not always returns 0,0,0,0 (from Geometry).
23739 2008-06-11 Geoff Norton <gnorton@novell.com>
23741 * downloader.cpp: Only Abort if we have a surface.
23742 * runtime.cpp: Detach the downloaders when we zombify.
23744 2008-06-11 Sebastien Pouliot <sebastien@ximian.com>
23746 * moon-path.c: Reorder ellipse points so the fill rule can be
23747 applied correcly (e.g. filling or clipping).
23749 2008-06-11 Michael Dominic K. <mdk@mdk.am>
23751 * clock.cpp: Fixing seeking on nested storyboards. Fixes
23752 seek-test-nested-storyboard.xaml in assorted and one more
23753 AnimationMatrix2 block. Now only one left to fix...
23755 2008-06-10 Geoff Norton <gnorton@novell.com>
23757 * mms-downloader.cpp: Reset our internal state after seeking so
23758 we can resume the stream in the right place.
23760 2008-06-10 Geoff Norton <gnorton@novell.com>
23762 * mms-downlodaer.cpp: Remove some improperly commited debug code
23764 2008-06-10 Chris Toshok <toshok@ximian.com>
23766 * control.h, control.cpp, deployment.h, uielement.h,
23767 uielement.cpp, frameworkelement.h, value.h, grid.h, size.h, xap.h,
23768 runtime.cpp: wrap everything SL2.0 with INCLUDE_MONO_RUNTIME (for
23769 now. I'll be changing that ifdef soon.) Also, mark all 2.0
23770 specific types with the following typegen pragma: /*
23771 @SilverlightVersion="2" */ so that the generated files contain the
23772 proper ifdefs as well.
23774 * type-generated.cpp, type.h, value.h: resync with new ifdefs.
23776 2008-06-10 Jackson Harper <jackson@ximian.com>
23778 * dependencyobject.cpp: Add todo for Name validation.
23780 2008-06-11 Fernando Herrera <fherrera@novell.com>
23782 * xaml.cpp: Accept numbers and strings representing numbers as
23783 values for BOOL properties. Also accept "true" and "false" case
23785 * playlist.cpp: ASX2 files can use ?MSWMExt=.asf and &MSWMExt=.asf
23786 ending uris, so just check for "MSWMExt=.asf".
23787 Fixes hsn.tv, bug #362328.
23789 2008-06-10 Jackson Harper <jackson@ximian.com>
23791 * xaml.cpp: ContentProperty should be on the ElementInfo not the
23792 ElementInstance, since you can only have one content property per
23795 2008-06-10 Geoff Norton <gnorton@novell.com>
23797 * mms-downloader.cpp: Fix some looping logic when seeking (partially
23798 fixed). Fix a typo when enumerating the streams array to not exceed
23801 2008-06-10 Jackson Harper <jackson@ximian.com>
23803 * xaml.cpp: Remove default prefix override check. This must have
23804 only been in one of the early versions of SL because I can't get
23805 SL to do it anymore. This helps fix video page turn.
23807 2008-06-10 Jackson Harper <jackson@ximian.com>
23809 * xaml.cpp: Remove x:Code since this isn't used in SL 2.0.
23811 2008-06-10 Chris Toshok <toshok@ximian.com>
23813 * dependencyobject.h, dependencyobject.cpp: split the Emit()
23814 machinery up into 3 methods. StartEmit, DoEmit, and FinishEmit.
23815 StartEmit returns a context object passed to the other two
23818 * runtime.h, runtime.cpp: use the new
23819 EventObject::{Start,Do,Finish}Emit methods to make event bubbling
23820 more transactional - any changes made to the listener list for the
23821 event we're bubbling up, for any element in our input list, are
23822 delayed until after the event has propagated. Fixes our test id
23823 191 (test-bubbling.html) as well as bug #351568.
23825 2008-06-10 Sebastien Pouliot <sebastien@ximian.com>
23827 * shape.cpp|h: Don't call ComputeShapeBounds(true) unless we need
23828 its value (i.e. Stretch != None). Make Shape::ComputeShapeBounds
23829 reuse it's physical bounds for logical instead of computing it
23832 2008-06-10 Michael Dominic K. <mdk@mdk.am>
23837 * clock.h: Replacing CreateClock with AllocateClock implementation and
23838 making sure the latter is called for Storyboards. That fixes the nested
23839 storyboards inside other storyboards...
23840 test-animation-nested-storyboard.xaml and one step more for
23843 2008-06-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
23845 * dependencyobject.h: Another greppable comment.
23847 2008-06-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
23849 * dependencyobject.cpp: Add comment to assert which shows up while
23852 2008-06-06 Geoff Norton <gnorton@novell.com>
23854 * file-downloader.h: Fix a bug between argument sending and class
23855 variables that was causing us to free and strdup the free'd pointer.
23857 2008-06-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
23859 * mms-downloader.cpp: Return NULL from GetDownloadedFilename and
23862 2008-06-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
23864 * src.mdp: Updated.
23866 2008-06-06 Jeffrey Stedfast <fejj@novell.com>
23868 * xaml.cpp: Don't use the c++ ctor initializer stuff, it breaks if
23869 members change order (like it did recently).
23870 (wrap_dependency_object): Get rid of unused variables.
23872 * media.cpp (Image): Made bools share a single int.
23874 2008-06-06 Jackson Harper <jackson@ximian.com>
23876 * xaml.cpp: Use the Type system for looking up elements, make
23877 things a little more OOP so we can easily add some of the 2.0
23878 features. Note: This is going to break x:Code and deployment
23881 2008-06-05 Geoff Norton <gnorton@novell.com>
23883 * downloader.cpp, downloader.h: More refactoring to hide the zip related
23884 details in the FileDownloader. NOTE: The exposure of the file downloader
23885 to the Text side is ugly and should be cleaned up.
23886 * text.cpp: Access obfuscated font details thru the FileDownloader API.
23887 * file-downloader.cpp, mms-downloader.cpp, internal-downloader.h: Expose
23888 the filename thru the downlodaer api.
23889 * downloader.cpp: No longer leak InternalDownloaders.
23891 2008-06-05 Geoff Norton <gnorton@novell.com>
23893 * mms-downloader.cpp, mms-downloade.h: Implement time measuring of
23894 the $P packet pair, and implement and initial algorithm to do proper
23895 bandwidth stream selection.
23897 2008-06-05 Geoff Norton <gnorton@novell.com>
23899 * downloader.cpp: Remove some left over unused variables, and the
23900 is_valid_mms_type inline.
23902 2008-06-05 Geoff Norton <gnorton@novell.com>
23904 * Makefile.am: Add file-downloader and mms-downloader to the build.
23905 * file-downloader.(cpp|h): This class is a implementation of the new
23906 InternalDownloader class utilized by the downloader to differentiate
23907 between MMS and regular requests. We should move the zip logic here.
23908 * mms-downloader.(cpp|h): This class is the MMS implementation of the
23909 InternalDownloader class.
23910 * internal-downloader.h: Route callbacks from the plugin thru this class
23911 to their appropriate file (NPStream) / MMS based implementations.
23912 * downloader.cpp: Update the API to call the InternalDownloader based
23913 representation instead of large if (mms) branches.
23915 2008-06-05 Geoff Norton <gnorton@novell.com>
23917 * downloader.cpp, downloader.h: Initial implementation of MMS inside
23918 libmoon. The API has been extended to register two additional callbacks
23919 to set HTTP headers, and the HTTP body.
23921 2008-06-05 Michael Dominic K. <mdk@mdk.am>
23923 * xaml.cpp: Removing the "broken parsing" of RepeatBehavior in
23924 --with-compatibility-bugs mode. It looks like the parsing is fine. The
23925 bug is now "implemented" in clock.cpp.
23927 2008-06-05 Michael Dominic K. <mdk@mdk.am>
23929 * clock.cpp: In ComputeNewTime when we're going over our duration time
23930 and we're AutoReversed, check actually how big the diff is cause it
23931 might be that we need to "wrap around self" and switch to forward time
23932 direction anyways (such is the case with seeking).
23934 In other words, allow to seek into particular interation of
23935 RepeatBehavior="XXXx", not only the first one. Fixes one more
23936 AnimationMatrix2 block and seek-test-multiple-repeat.xaml in assorted.
23938 This prolly needs a littlbe bit more work still, similiar mechanism
23939 needs to be present in DoRepeat etc.
23941 2008-06-05 Stephane Delcroix <sdelcroix@novell.com>
23943 * stylus.cpp: fixing a bug. stupid me.
23945 2008-06-05 Stephane Delcroix <sdelcroix@novell.com>
23947 * rect.h: new Rect (Point, Point) ctor, new ExtendTo (point) and
23948 ExtendTo (double, double) methods.
23950 * stylus.h|cpp: new StylusPointCollection::GetBounds (), check for
23951 intersection of bounds and StylusPointCollection::GetBounds in HitTest
23952 to avoid checking for stroke intersection in most of the cases. Speed
23953 up erasing in inkJournal.
23955 2008-06-04 Michael Dominic K. <mdk@mdk.am>
23957 * clock.cpp: Interesting -- looks like in SL the timespan-based
23958 RepeatBehavior is scaled by the SpeedRatio. Ie. 00:00:10 with SpeedRatio
23959 0.5 becomes 00:00:05. I wonder if it's a bug or intended feature?
23960 Anyways, implementing this and fixing two more blocks in
23963 2008-06-04 Michael Dominic K. <mdk@mdk.am>
23965 * clock.cpp: Slightly reworking the seek offsett calculations to include
23966 the SpeeRatio multiplier but do not apply it to BeginTime. Fixes one
23967 more block in AnimationMatrix2 and the test-seek-spee-ratio-begin.xaml
23970 2008-06-04 Michael Dominic K. <mdk@mdk.am>
23972 * clock.cpp: When seeking include the SpeedRatio calculations. Fixes the
23973 test-seeking-speed-ratio.xaml from assorted tests and one more block in
23974 the AnimationMatrix2 test.
23976 2008-06-03 Jeffrey Stedfast <fejj@novell.com>
23978 * control.cpp (user_control_new): %p does what %x was trying to do
23979 in this case, but without compile warnings :)
23981 2008-06-03 Jeffrey Stedfast <fejj@novell.com>
23983 Glyphs rendering optimization.
23985 * text.cpp (Glyphs::Layout): Accumulate the glyph paths here
23986 instead of re-looping this logic again in Glyphs::Render().
23987 (Glyphs::Render): Just blit the path.
23989 2008-06-03 Chris Toshok <toshok@ximian.com>
23991 * dependencyobject.cpp (DependencyObject::SetValue): Simplify this
23992 a bunch and remove all the redundant checks.
23994 (DependencyObject::MergeTemporaryNameScopes): merge both DO and
23995 Collection versions into the same method to reduce code
23998 * dependencyobject.h: no need to provide multiple overloads for
23999 MergeTemporaryNameScopes.
24001 2008-06-03 Jeffrey Stedfast <fejj@novell.com>
24003 Text rendering optimization via reduction of font loading.
24005 * font.cpp (FontFace): A new abstraction for FT_Face which is
24006 meant to prevent Moonlight from ahving to load the same font face
24007 multiple times just because the FontSize attributes don't match.
24008 (TextFont): Greatly simplified this class by using FontFace.
24010 2008-06-02 Jackson Harper <jackson@ximian.com>
24012 * xaml.cpp: Make sure we don't try to look up Content Properties
24013 on anything but elments. Property elements are given the
24014 XamlElementInfo of their parent so GetContentProperty on a
24015 PROPERTY element will return the parent's content property.
24017 2008-06-02 Michael Dominic K. <mdk@mdk.am>
24019 * clock.cpp: If we have duration-based RepeatBehavior set the
24020 repeat_count to 1 in bug-mode (--with-compatibility-bugs).
24022 2008-06-02 Michael Dominic K. <mdk@mdk.am>
24024 * xaml.cpp: SL seems to correctly parse 0:0:0 TimeSpans in "bug-mode"
24027 * clock.cpp: Remove the RepeatBehavior=1.0 forcing in Validate when
24028 RepeatBehavior=0:0:0.
24030 2008-06-02 Michael Dominic K. <mdk@mdk.am>
24032 * clock.cpp: Even more timeline validation rules.
24034 2008-06-02 Sebastien Pouliot <sebastien@ximian.com>
24036 * font.cpp: Use the existing DOUBLE_FROM_26_6 instead of dividing
24037 by 64.0 since this makes it clear why we're doing it.
24039 2008-05-30 Michael Dominic K. <mdk@mdk.am>
24041 * clock.cpp: Don't validate animations that have Duration of "00:00:00"
24042 and RepeatBehavior="Stop". That is what SL does. Fixes the clock41.xaml
24045 2008-05-30 Michael Dominic K. <mdk@mdk.am>
24047 * xaml.cpp: Adding a compatibility option
24048 (--with-compatibility-bugs=yes) that introduces a Silverlight 1.0
24049 RepeatBehavior bug.
24051 2008-05-30 Michael Dominic K. <mdk@mdk.am>
24053 * clock.cpp: Ceil the delta and ret_time. This is a very poor-man's
24054 protection against the desync's coming from integers (TimeSpan) being
24055 multiplied by floating values (SpeedRatio). Better to be non-precise
24056 forward than backward.
24058 2008-05-30 Michael Dominic K. <mdk@mdk.am>
24060 * clock.cpp: The initial ticking difference needs to be multiplied by
24061 the SpeedRatio as well. This fixes few timing desyncs. Fixes
24062 clock40.xaml, test-animation-hold-stop-speed.xaml and the RoyalBlue
24063 block from the AnimationMatrix2.
24065 2008-05-29 Jeffrey Stedfast <fejj@novell.com>
24067 * media.cpp (Image::OnPropertyChanged): Just like MediaElement, if
24068 you set an Image's Source property to an empty string (or null),
24069 it stops rendering the image.
24071 2008-05-29 Stephane Delcroix <sdelcroix@novell.com>
24073 * stylus.cpp: fix intersect_line_2d to fix the inkJournal thing.
24075 2008-05-29 Jeffrey Stedfast <fejj@novell.com>
24077 * layout.cpp|h (TextRun::IsUnderlined): Replacement for
24078 TextLayout::IsUnderline().
24079 (TextLayout::IsUnderline): Removed.
24081 * font.h (enum TextDecorations): Add a comment explaining that
24082 this is meant to be used as bit flags and not a normal
24085 2008-05-29 Sebastien Pouliot <sebastien@ximian.com>
24087 * font.h: Revert TextWrapping change as it regress DRT tests
24088 (it's possible that the value were right, but did not match
24089 the managed value used by Silverlight 1.1).
24091 2008-05-29 Jackson Harper <jackson@ximian.com>
24093 * type.cpp: INVALID types don't have content properties.
24094 * dependencyobject.h: Content properties are stored on the Type so
24095 we don't need to store them here.
24096 * xaml.cpp: Get content properties from the Type system instead of
24097 the parser's internal type map.
24098 - We don't need to do any special handling in the start_element
24099 handler for content properties anymore.
24100 * control.cpp|h: We don't need to expose the content property
24102 - Mark the content property for controls.
24104 2008-05-29 Sebastien Pouliot <sebastien@ximian.com>
24106 * font.h: Fix enum values for TextWrapping
24107 * layout.cpp: Fix regression (in earlier commit) for wrapping.
24109 2008-05-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
24111 * debug.cpp: Fix an invalid read issue found with valgrind.
24113 2008-05-29 Sebastien Pouliot <sebastien@ximian.com>
24115 * layout.h|cpp: Handle invalid values for TextDecorations and
24116 TextWrapping like Silverlight does.
24118 2008-05-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
24120 * runtime.cpp: When setting the background color delete any previoys
24123 2008-05-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
24125 * uielement.cpp: Fix minor leak.
24127 2008-05-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
24129 * src.mdp: Updated.
24131 2008-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
24133 * http-streaming.cpp: Handle quoted feature strings.
24135 2008-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
24137 * downloader.cpp: Null out request_position in the ctor.
24139 2008-05-28 Michael Dominic K. <mdk@mdk.am>
24141 * clock.cpp: Reverting the change that invalidates the timelines which
24142 have 00:00:00 duration. It is actually supported by SL.
24144 2008-05-28 Michael Dominic K. <mdk@mdk.am>
24146 * clock.cpp: In Clock::ComputeNewTime all those checks are useless.
24147 Multiply always instead of recursing down into properties.
24149 2008-05-28 Michael Dominic K. <mdk@mdk.am>
24151 * animation.cpp: If "To" and "By" are not specified use the
24152 defaultOriginValue always instead of "start" (which might be "From").
24153 Fixes the test-animation-only-from.xaml and the green block in
24156 2008-05-28 Michael Dominic K. <mdk@mdk.am>
24158 * clock.cpp: When Validating the timeline, if RepeatBehavior is
24159 incorrect make it 1.0 instead of marking the timeline as invalid.
24161 2008-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
24163 * downloader.cpp: Fix typo.
24165 2008-05-28 Sebastien Pouliot <sebastien@ximian.com>
24167 * enums.c: Fix None value in style_simulations_map and remove
24168 unneeded one (they exists only in WPF but SL parser does not like
24170 * font.cpp|h: Fix FontStyle and FontWeigth properties when the
24171 supplied value are invalid. Add new constants specific to SL.
24172 * text.h: Add simulation_none. Share an integer between all bool
24174 * text.cpp: Invalid values for StyleSimulation does not render
24176 * runtime.cpp: Invalid MouseCursor values hides the cursor.
24178 2008-05-27 Jeffrey Stedfast <fejj@novell.com>
24180 Fixes the Legend (Space Invaders) demo without breaking
24181 storyboard_EnterLeaveSemantics.htm.
24183 * clock.cpp|h (Clock::Completed): New virtual method which gets
24184 called when a clock completes.
24185 (Clock::ComputeNewTime): If a clock completes (has no more
24186 repeats, etc) then call ::Complete().
24187 (ClockGroup::ClockGroup): Changed the name of emitted_complete to
24188 emit_completed which has also changed the meaning a bit.
24189 (ClockGroup::Begin): Updated.
24190 (ClockGroup::RaiseAccumulatedEvents): If emit_completed is true,
24191 then emit the Completed event and reset emit_completed back to
24192 false so we don't re-emit.
24193 (ClockGroup::Completed): Set emit_completed to true.
24195 2008-05-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
24197 * media.cpp: MediaElement: Fix refcounting for our 'media' field. In
24198 DownloaderComplete only emit DownloadProgressChangedEvent if we
24201 2008-05-27 Michael Dominic K. <mdk@mdk.am>
24203 * xaml.cpp: Adding a comment/explanation about the RepeatBehavior and
24204 Silverlight 1.0/2.0 situation.
24206 2008-05-26 Michael Dominic K. <mdk@mdk.am>
24208 * clock.cpp: Don't validate timelines that have specified duration of
24209 00:00:00. Fixes the test-animation-zero-duration test.xaml.
24211 2008-05-26 Michael Dominic K. <mdk@mdk.am>
24214 * clock.h: When Validating the Timeline also make sure that the
24215 RepeatBehavior is correct, otherwise don't start the anim. Fixes the
24216 test-animation-zero-repeat-behavior test and brings us closer with
24217 AnimationMatrix2 test.
24219 2008-05-26 Michael Dominic K. <mdk@mdk.am>
24221 * clock.cpp: When Validating TimelineGroup don't forget to call parent's
24222 base validation method.
24224 2008-05-26 Michael Dominic K. <mdk@mdk.am>
24226 * xaml.cpp: Reverting spouliot's commit from 2008-05-08. It looks like
24227 SL supports the RepeatBehavior="XX:XX:XX" just fine. This fixes the
24228 test-aniamtion-repeat-behavior.xaml test.
24230 2008-05-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
24232 * src.mdp: Updated.
24234 2008-05-23 Sebastien Pouliot <sebastien@ximian.com>
24236 * text.cpp: (Glyphs::InsideObject) Avoid expensive, and unneeded,
24237 cairo_save/cairo_restore since we don't use the context.
24239 2008-05-23 Stephane Delcroix <sdelcroix@novell.com>
24241 * dependencyobject.[h|cpp]: merge namescopes on SetValue.
24243 2008-05-23 Jeffrey Stedfast <fejj@novell.com>
24245 * font.cpp (TextFont::PixelsPerEM): Removed, the logic was broken.
24247 * text.cpp (Glyphs::Layout): Reverted previous commit and go back
24249 (Glyphs::Render): Same.
24251 2008-05-22 Chris Toshok <toshok@ximian.com>
24253 * stylus.h, stylus.cpp (Stroke::HitTest): correct our width/height
24254 code. Only include the +2 to each side if the outline color is
24256 (Stroke::AddStylusPointToBounds): same.
24257 (Stroke::OnPropertyChanged): new method. we need to recompute the
24258 bounds if our DrawingAttributes change.
24259 (Stroke::OnSubPropertyChanged): same, if width/height/online-color
24260 of the drawing attributes change.
24262 2008-05-22 Sebastien Pouliot <sebastien@ximian.com>
24264 * brush.cpp: Fix defaults when wrong values are being used for
24265 enumerations from Javascript.
24266 [Fix part of #340799]
24268 2008-05-22 Jackson Harper <jackson@ximian.com>
24270 * dependencyobject.cpp: Only merge temp namescopes.
24272 2008-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
24274 * dependencyobject.cpp, dependencyobject.h: EventObject: instead of
24275 surrounding event emission with ref/unref, set a flag specifying
24276 that we're doing event emission, and catch unrefs which would cause
24277 object destruction replacing them with a delayed unref.
24279 2008-05-21 Chris Toshok <toshok@ximian.com>
24281 * collection.cpp (Collection::Add): remove the check for AddToList
24282 returning -1. It never will. Also, call SetSurface() on the new
24283 child *before* we create the Collection::Node for it, so we can
24284 tell (in SetSurface) if it's being added individually to the
24285 surface, or as part of a subtree. This is required to fix
24286 storyboard_EnterLeaveSemantics.
24288 * animation.cpp (Storyboard::SetSurface): resume the clock when
24289 we're reattached to the surface, but *only* if we're being added
24290 as part of a subtree (that is, we already have a logical parent
24291 when we hit this method.)
24293 * clock.cpp (Clock::Begin): revert the previous
24294 change (has_started needs to be initialized to false). Required
24295 to fix storyboard_EnterLeaveSemantics.htm. We'll need to figure
24296 out another way to fix the site (or a better way that fixes one
24297 without breaking the other.)
24299 2008-05-21 Jeffrey Stedfast <fejj@novell.com>
24301 * text.cpp (Glyphs::Layout): Use PixelsPerEM() instead of
24302 hard-coding the EM units ourselves.
24303 (Glyphs::Render): Same.
24305 * font.cpp (TextFont::PixelsPerEM): New convenience function.
24307 * clock.cpp (Clock::Begin): Init has_started to true. Fixes
24308 http://www.tek.co.jp/Legend
24310 * animation.cpp (Storyboard::storyboard_completed): Merged
24311 teardown_clockgroup() and invoke_completed() into a single
24312 callback. Also makes it so that we don't have to remove 2
24313 CompletedEvent handlers (which we were not doing properly afaict
24314 in Storyboard::Stop).
24315 (Storyboard::Stop): After unregistering the CompletedEvent handler
24316 and stopping the root_clock, tear down the clock group.
24318 2008-05-21 Larry Ewing <lewing@novell.com>
24320 * shape.cpp (Ellipse::BuildPath): try to shape our degenerate
24321 ellipses a little better.
24322 (Shape::ComputeStretchBounds): modify the needs_clip logic a
24323 little to catch the degenerate ellipse cases we were running into.
24325 Fixes test-shape-ellipse-stroke*.xaml.
24327 2008-05-21 Michael Dominic K. <mdk@mdk.am>
24329 * clock.cpp: Include the offsett coming from the BeginTime in the
24330 seek_time calculations. Fixes seek-test-begin-time and
24331 seek-test-wrapping-set tests. Brings us closer with AnimationMatrix2.
24333 2008-05-21 Michael Dominic K. <mdk@mdk.am>
24335 * clock.cpp: Actually do set the seek_time before using it.
24337 2008-05-21 Michael Dominic K. <mdk@mdk.am>
24339 * clock.cpp: When seeking ClockGroup, don't seek children as weel
24340 (results in cumulative behavior).
24342 2008-05-21 Sebastien Pouliot <sebastien@ximian.com>
24344 * font.cpp: (TextFont::Path) Avoid expensive save of cairo
24345 context since only the transform is changed (current point
24346 location is not part of the context).
24348 2008-05-20 Larry Ewing <lewing@novell.com>
24350 * runtime.cpp (Surface::motion_notify_callback): always return
24351 true in the windowed motion handler otherwise we something steals
24352 mouse events from us.
24354 Fixes most of MouseInput.htm
24356 2008-05-20 Michael Dominic K. <mdk@mdk.am>
24358 * clock.cpp: Fixing a problem where timeline with BeginTime set do not
24359 respond at all to Seek. Brings us closer with AnimationMatrix2.
24361 2008-05-19 Jackson Harper <jackson@ximian.com>
24363 * xaml.cpp: Only do the type wrapping if we are dealing with
24364 collection types, otherwise we just ignore the property decl.
24366 2008-05-19 Jackson Harper <jackson@ximian.com>
24368 * xaml.cpp: When we wrap a property we need to ignore the property
24369 element so that the children get added to the wrapped object
24371 * dependencyobject.cpp: We also need to merge the collection's
24372 namescope because collections can be created with their own temp
24373 namescope using createFromXaml.
24375 2008-05-19 Michael Dominic K. <mdk@mdk.am>
24380 * clock.h: Changing ExtraRepeatHandler to ExtraRepeatAction to avoid
24383 2008-05-19 Michael Dominic K. <mdk@mdk.am>
24386 * animation.h: Adding an implementation for ExtraRepeatHandler to
24387 AnimationClock that fetches target value and sets it on
24388 AnimationStorage. Fixes clock37.xaml test.
24390 2008-05-19 Michael Dominic K. <mdk@mdk.am>
24393 * animation.h: Adding helper methods to get target value out of the
24394 given AnimationTimeline. We're still missing implementations for
24395 keyframe-based anims. Coming soon.
24397 2008-05-19 Michael Dominic K. <mdk@mdk.am>
24400 * animation.h: Adding two helper methods to AnimationStorage:
24401 GetStopValue (get's current base or (if set) stop value) and
24402 UpdatePropertyWithValue to manually force prop to a given state.
24404 2008-05-19 Michael Dominic K. <mdk@mdk.am>
24407 * clock.h: Addin a virtual ExtraRepeatHandler to Clock class fired on
24408 repeat. By default does nothing.
24410 2008-05-19 Jackson Harper <jackson@ximian.com>
24412 * xaml.cpp: When createFromXaml ('<some property>...</property>')
24413 is called, we need to create and return an object that represents
24414 that property. ie createFromXaml ('<Canvas.Triggers>...); should
24415 return a ResourceDictionary object.
24417 2008-05-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
24419 * downloader.cpp: Fix warnings.
24421 2008-05-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
24423 * clock.cpp: Added comment.
24425 2008-05-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
24427 * runtime.cpp: Destroy EventObject::objects_alive upon runtime
24430 2008-05-16 Miguel de Icaza <miguel@novell.com>
24432 * dependencyobject.h (DependencyObject::GetContentProperty):
24433 returns a DependencyProperty that is the target for the content of
24434 a XAML content assignment.
24436 * xaml.cpp (XNamespace::SetAttribute): while hydrating, ignore the
24437 Class attribute as the object has already been created.
24439 (start_element): Add support for the ContentPropertyAttribute on
24440 DependencyObjects to the XAML parser. This is very primitive
24441 support at this point, and does not support collections, or type
24442 conversions as specified on the docs.
24444 * control.cpp (Control::SetContent): Refactor setting the
24445 real_object into its own routine. Currently takes a Surface
24446 parameter, not clear that this is even needed, but kept for
24447 compatibility with the old code.
24449 (UserControl::OnPropertyChanged): Hook up setting the Content
24452 * runtime.cpp (Surface::Attach): Let the widget be UIElement.
24454 2008-05-16 Larry Ewing <lewing@novell.com>
24456 * shape.cpp: draw ellipses with no width/height specified as the
24459 Fixes StretchAndShapes.xaml.
24461 2008-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
24463 * media.cpp: Abort the downloader when we emit MediaFailed, and always
24464 emit a DownloadProgressChangedEvent with 1.0 when we're finished
24465 downloading (we won't get any writes if the file has already been
24466 downloaded and mozilla just gives us the filename).
24468 2008-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
24470 * src.mdp: Updated.
24472 2008-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
24474 * downloader.cpp: Don't emit any events if we don't have a surface. Add
24475 warnings to Send(Internal) when we have no surface (the plugin is
24476 already checking for it, so if the warning is printed we're doing
24477 something else wrong).
24478 * runtime.h, runtime.cpp: Surface: keep a list of the downloaders we
24479 create, and when the toplevel canvas changes or the surface is
24480 destroyed clear the downloader's surface pointer.
24482 2008-05-16 Jeffrey Stedfast <fejj@novell.com>
24484 * downloader.cpp (Downloader::Abort): Set download progress to 0.
24486 2008-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
24488 * downloader.cpp: Don't emit nor set DownloadProgress(ChangedEvent) in
24489 NotifySize, mozilla calls NotifySize for every write.
24491 2008-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
24493 * type.cpp, type.h, type.h.in: Added Type::LookupEventName.
24495 2008-05-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
24497 * playlist.cpp: If we're stopping a playlist, reopen the first entry.
24498 * media.h: MediaElement: Make EmitMediaOpened and Reinitialize public
24499 so that Playlist can call them.
24501 2008-05-15 Larry Ewing <lewing@novell.com>
24503 * runtime.cpp (Surface::button_press_callback): stop firefox from
24504 stealing our focus in the widget case by always returning true on
24505 button press events. There may be a better way to handle this by
24506 only returning true if the press lands on and element but this at
24507 least improves the situation.
24509 Fixes FullScreenKey.htm.
24511 2008-05-15 Michael Dominic K. <mdk@mdk.am>
24513 * clock.cpp: Also apply the idle_hint when the ClockGroup itself goes to
24514 Filling state, this makes the idle optimization cover all the cases. Big
24515 perf boost expected.
24517 2008-05-14 Jeffrey Stedfast <fejj@novell.com>
24519 Fix for tests/xaml/test-directory-in-zip.html
24521 * media.cpp (Image::Image): Initialize some new state variables to
24522 keep track of whether or not the FrameworkElement::Width and
24523 Height values are ever manually set.
24524 (Image::DownloaderComplete): Properly set the Width/Height
24525 property values based on whether a particular Width/Height have
24526 been requested. Use the image's native width/height if not.
24527 (Image::OnPropertyChanged): Listen for changes to Width/Height
24530 2008-05-14 Larry Ewing <lewing@novell.com>
24532 * src/uielement.cpp (UIElement::PostRender): clear any existing
24533 paths when rendering the bounds rectangle.
24535 2008-05-14 Jeffrey Stedfast <fejj@novell.com>
24537 * media.cpp (MediaElement::MediaOpened): Use GetAutoPlay() instead
24538 of the more complex GetValue API.
24540 * pipeline.cpp (IMediaSource::ReadSome): Don't return false on
24541 error, return -1 (since this is an int32 return value, not bool).
24543 2008-05-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
24545 * media.cpp, media.h: Added MediaElement::IsLive, and move
24546 initialization of this field to before our MediaPlayer is opened.
24547 * mplayer.cpp, mplayer.h: For live sources the first frame might not
24548 come with pts = 0, so store that pts so that later we can correctly
24549 calculate how much we've actually played.
24551 2008-05-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
24553 * mplayer.cpp, mplayer.h: Add support for Duration tags in ASX files.
24554 * playlist.h, playlist.cpp: Added a PlaylistEntry::HasDuration method,
24555 and skip entries with zero duration.
24557 2008-05-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
24559 * dependencyobject.cpp: EventObject::AddTickCall: make sure we release
24560 the read lock if don't have a surface or timemanager.
24562 2008-05-14 Michael Dominic K. <mdk@mdk.am>
24564 * clock.cpp: No need to SoftStop the ClockGroup itself (unlike the
24565 children) on DoRepeat (). Fixes a small regression in clock21.xaml
24566 introduced with last commit.
24568 2008-05-14 Michael Dominic K. <mdk@mdk.am>
24571 * clock.h: Fixing a case for Clock when the clock has RepeatBehavior but
24572 it doesn't start from 00:00:00. Fixes #388745 (clock22.xaml test).
24574 2008-05-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
24576 * runtime.cpp: Don't call Attach (NULL) in Surface::Zombify, it causes
24577 crashes when javascript removes the plugin in an eventhandler.
24579 2008-05-13 Jeffrey Stedfast <fejj@novell.com>
24581 * media.cpp (MediaElement::DownloaderFailed): Make this more
24584 2008-05-13 Fernando Herrera <fherrera@novell.com>
24586 * media.cpp: Fix mms:// and rtsp:// fallback uri rewrite.
24588 2008-05-13 Jeffrey Stedfast <fejj@novell.com>
24590 * media.cpp (MediaBase::SetSourceAsyncCallback): Prevent memory
24591 corruption of the source.* variables by creating local references
24592 to them and setting source.* to NULL before calling
24593 SetSourceInternal().
24595 2008-05-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
24597 * clock.cpp, clock.h: Remove InvokeOnMainThread.
24598 * dependencyobject.cpp, dependencyobject.h: EventObject: added
24599 AddTickCall. Requred when adding ticks from other than the
24601 * downloader.cpp: Send: use a TimeManager to add the timeout.
24602 * media.cpp, media.h, mplayer.h, mplayer.cpp: Don't use
24603 TimeManager::InvokeOnMainThread anymore, add the timeouts using a
24604 TimeManager instance.
24606 2008-05-12 Jeffrey Stedfast <fejj@novell.com>
24608 * list.cpp (List::List): Init length to 0.
24609 (List::Clear): Reset length to 0.
24610 (List::Append): length++
24611 (List::Prepend): length++
24612 (List::Insert): length++
24613 (List::InsertBefore): length++
24614 (List::Unlink): length--
24615 (List::Length): Fixed to be O(0) instead of O(n)
24617 * stylus.cpp (StrokeCollection::HitTest): Use List::IsEmpty()
24618 instead of comparing List::Length() to 0.
24619 (Stroke::HitTest): Same.
24621 2008-05-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
24623 * media.cpp: Set the MediaOpenedEmitted flag before emitting the event,
24624 prevents us from emitting the event again as a consequence of what
24625 any of the event handlers do.
24627 2008-05-12 Michael Dominic K. <mdk@mdk.am>
24630 * dependencyobject.cpp: Fix a crash due to bad destroy recursion.
24632 2008-05-12 Michael Dominic K. <mdk@mdk.am>
24636 * dependencyobject.cpp:
24637 * dependencyobject.h: Float the AnimationStorage only when it's the
24640 2008-05-12 Michael Dominic K. <mdk@mdk.am>
24643 * animation.h: Introduce floating state for animation storage that has
24644 it's clock destroyed but it hasn't been stopped before. We need to keep the
24645 animation storage (reffed from the DependencyProperty hash) around to be
24646 able to get proper value for the next (continous) Storyboard on same
24647 property. Fixes #383879 and #375275.
24649 2008-05-09 Geoff Norton <gnorton@novell.com>
24651 * mplayer.cpp, pipeline.cpp, pipeline.h: When iterating streams
24652 ensure that we select the stream with the highest available bit
24653 rate, opposed to the first stream that we come across.
24655 2008-05-09 Jeffrey Stedfast <fejj@novell.com>
24657 * dependencyobject.cpp (DependencyObject::FindName): Don't need
24660 * namescope.cpp (NameScope::FindName): Simplify.
24662 2008-05-08 Larry Ewing <lewing@novell.com>
24664 * shape.cpp: silence some warnings.
24666 2008-05-08 Larry Ewing <lewing@novell.com>
24668 * shape.h: remove ClipOnWidthAndHeight method, replace with
24669 needs_clip variable.
24671 * shape.cpp (Shape::ComputeStretchBounds): set needs_clip based on
24672 the actual size of the object before and after the stretch and the
24675 Speeds up Sprawl and a lot of other applications that use stretch
24678 2008-05-08 Larry Ewing <lewing@novell.com>
24680 * runtime.cpp (Surface::expose_to_drawable): fill the background
24681 instead of painting and don't create the clip until the rendering
24683 2008-05-08 Miguel de Icaza <miguel@novell.com>
24685 * xaml.cpp (xaml_hydrate_from_str): New method to hydrate an
24686 existing DependencyObject with the contents of a XAML string.
24688 Needed for Silverlight 2.0 support, for the new model:
24689 create object then do LoadComponent on it.
24691 2008-05-08 Sebastien Pouliot <sebastien@ximian.com>
24693 * xaml.cpp: RepeatBehavior does not use the (documented) 0:0:0
24696 2008-05-07 Jeffrey Stedfast <fejj@novell.com>
24698 * font.cpp: Removed old layout code.
24699 (TextFont::GetGlyphInfo): Updated to use some handy Fixed->Double
24700 conversion macros to make understanding the code easier. Also,
24701 added FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH bit flag to fix layout
24702 of broken fixed-width CJK fonts.
24704 * clock.cpp (TimeManager::Stop): Added for convenience.
24705 (SystemTimeSource::SystemTimeSource): Init frequency to -1 so we
24706 can make sure it is init'd properly via SetTimerFrequency() before
24709 * runtime.cpp (Surface::Attach): Call our time_manager's Start(),
24710 not it's source's Start(). We need things like frequency to be
24711 setup and other values to be initialized properly.
24712 (Surface::Attach): After calling canvas->OnLoaded(), check that we
24713 are not zombied - if we are, return.
24715 2008-05-07 Larry Ewing <lewing@novell.com>
24717 * runtime.cpp (Surface::Zombify): call Attach (NULL) to notify the
24718 objects that the surface is undead.
24720 2008-05-06 Jeffrey Stedfast <fejj@novell.com>
24722 * animation.cpp (animation_shutdown): Renamed from
24723 animation_destroy().
24725 * text.cpp (text_shutdown): Renamed from text_destroy().
24727 * clock.cpp: Don't include gtk.h for just gtk_timeout_add(),
24728 include glib.h and use g_timeout_add() instead.
24729 (SystemTimeSource::SystemTimeSource): Init the timeout_id to 0,
24730 not -1 (the timeout ids are uint, not int).
24731 (SystemTimeSource::SetTimerFrequency): Updated.
24732 (SystemTimeSource::Start): Updated.
24733 (SystemTimeSource::Stop): Updated.
24735 * list.cpp (List::Remove): Don't need to search for the node, we
24736 already have a pointer to it.
24738 2008-05-07 Larry Ewing <lewing@novell.com>
24740 * runtime.cpp (Surface::Resize): handle a resize in windowless mode
24743 Fixes part of windowless resizing.
24745 2008-05-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
24747 * media.cpp: Handle the rtsp protocol too.
24748 * playlist.cpp, playlist.h: Store base and source_name as Uris.
24749 Implement GetFullSourceName better, and do some uri validation.
24750 * uri.h, uri.cpp: Added a allow_trailing_sep flag to Uri::Parse,
24751 disables canonicalization of trailing directory separators since
24752 asx playlists may treat urls differently depending on the presence
24753 or absence of any trailing directory separators. Added Clone ().
24755 2008-05-06 Michael Dominic K. <mdk@mdk.am>
24758 * animation.h: When attaching new animation storage and previous storage
24759 exist, flag it as non-resetable (meaning that the storage will never
24760 reset animated property to base/stop value). This fixes the
24761 storyboard-stopping-two.html test.
24763 2008-05-06 Michael Dominic K. <mdk@mdk.am>
24765 * dependencyobject.cpp:
24766 * dependencyobject.h: DependencyProperty::AttachAnimationStorage now
24767 returns the previously attached AnimationStorage.
24770 * animation.h: When attaching new animation storage try to inherit the
24771 resetValue from the previously attached storage. Reset value is the
24772 value that we reset to when storyboard is stopped (originally it always
24773 used to be the base value of the current AnimationStorage).
24775 This replicates the bahavior of SL where starting a new (second)
24776 storyboard on a property renders the prev storyboard useless
24777 (non updating the prop) but keeps it's "starting value" for storyboard
24778 reset. In other words we can say that starting a new storyboard on a
24779 prop makes this new storyboard a "continuation" of the prev storyboard.
24781 2008-05-05 Larry Ewing <lewing@novell.com>
24783 * runtime.cpp (Surface::render_cb): only call ForceRender if we
24786 2008-05-05 Larry Ewing <lewing@novell.com>
24788 * runtime.cpp: update the (almost unused) frame count where it can
24789 get hit in windowless. Clear existing paths before rendering the
24792 Minor cleanups to help with debugging the expose regions.
24794 2008-05-05 Jeffrey Stedfast <fejj@novell.com>
24796 * clock.cpp (TimeManager::Shutdown): Renamed from
24797 TimeManager::Stop() and also updated to remove all registered
24800 * runtime.cpp (Surface): We no longer keep track of signal ids, we
24801 simply remove all signals on the widgets with 'this' as the user
24804 * clock.cpp (TimeManager::Stop): Added. New method to stop the
24807 * runtime.cpp (Surface::Zombify): Stop the time manager, prevents
24808 emission of timeout events.
24810 2008-05-05 Michael Dominic K. <mdk@mdk.am>
24812 * src/shape.cpp: Reverting sde's stretch thing for now, breaks a lot of
24815 2008-05-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
24817 * media.cpp, media.h, playlist.cpp, playlist.h: MediaElement: when
24818 playing playlists, we only emit MediaEnded if we're playing the
24819 last entry in the playlist. Call Playlist::OnEntryEnded manually
24820 instead of letting the playlist rely on the MediaEnded event, since
24821 the MediaEnded event isn't raised for all entries. Playlist: Added
24822 IsCurrentEntryLastEntry.
24824 2008-05-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
24826 * media.cpp: MediaElement::UpdateProgress: Don't call BufferingComplete
24827 until the pipeline got all the data it was waiting for.
24829 2008-05-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
24831 * media.cpp, media.h: Add an EmitMediaOpened method and emit
24832 MediaOpened somewhat more aggressively, but only once.
24834 2008-05-05 Jeffrey Stedfast <fejj@novell.com>
24836 * text.cpp (Glyphs::GetSizeForBrush): Use this->width and
24837 this->height for the brush size - fixes TextTransforms.xaml once
24840 2008-05-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
24842 * media.cpp: Don't emit any BufferingProgressChanged events in
24845 2008-05-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
24847 * pipeline-ffmpeg.cpp: Give more information to ffmpeg, otherwise
24848 ffmpeg won't decode any wma audio.
24850 2008-05-05 Stephane Delcroix <sdelcroix@novell.com>
24852 * shape.cpp: draw the line caps with the stretch_transform matrix.
24853 Finetune the stretch computation again.
24855 2008-05-05 Miguel de Icaza <miguel@novell.com>
24857 * src/control.cpp: Add a skeleton UserControl, to get a bit
24858 further on the loading of a Silverlight 2 application.
24860 See the TODO, there are still many limitations.
24862 2008-05-04 Larry Ewing <lewing@novell.com>
24864 * runtime.cpp: restrict invalidations to the active windowless
24867 Fixes massive drawing issues on http://my.liveatedu.com/ where
24868 were creating invalidations with a negative coords.
24870 2008-05-04 Miguel de Icaza <miguel@novell.com>
24872 * xap.cpp: Expose xap_unpack, include when Mono runtime is
24875 * deployment.cpp: Small fixups.
24877 * xaml.cpp (deploy_namespace): New namespace used to parse
24878 AppManifest.xaml files that start with a <Deployment> tag on the
24879 http://schemas.microsoft.com/client/2007/deployment namespace.
24881 (xaml_init): Register the deployment classes.
24883 * type.cpp (type_is_dependency_object): Add new helper method
24884 to determine if a Kind is a DEPENDENCYOBJECT, the list is no
24885 longer separated in value-types and DependencyObjects, so its not
24886 possible to do a fast lookup from managed code.
24888 2008-05-04 Chris Toshok <toshok@ximian.com>
24890 [ fixes #361906, while simultaneously keeping halo3,
24891 ControlLife.htm, and ControlState.htm happy ]
24893 * runtime.h, runtime.cpp, type-generated.cpp: move back to the
24894 LoadEvent instead of the broken Attaching event, reverting
24897 * panel.h, panel.cpp: add a "emitting_loaded" guard around the
24898 body of OnLoaded so we don't end up re-entering this method.
24899 Also, revert r102196 as the ordering of parent-to-child was
24900 correct originally, there were just other ordering constraints we
24903 * control.h, control.cpp: same.
24905 * dependencyobject.h, dependencyobject.cpp: add a count field to
24906 EventClosure so we can support the "only_unemitted" arg in
24907 EventObject::Emit. The idea is that the Loaded event seems to
24908 only be emitted on those events that haven't yet been emitted.
24909 This may also be implemented just by making Loaded event handlers
24910 one-shot (removing themselves after they fire), but this is easy
24911 enough and works. The only event with this odd behavior (that I
24912 know of) is Loaded.
24914 * uielement.cpp (UIElement::OnLoaded): set the IS_LOADED
24915 flag (which may actually be useless now, given the Emit change)
24916 but don't emit Loaded only when the flag is unset.
24918 * collection.cpp: remove the last bit of closure access from
24919 VisualCollection. The OnLoaded call now happens in
24920 Panel::OnCollectionChanged, in 1 spot as opposed to 3 different
24921 spots in VisualCollection.
24923 2008-05-02 Sebastien Pouliot <sebastien@ximian.com>
24925 * text.cpp|h: Adjust Glyphs::InsideObject with bounds changes.
24926 [Complete the fix for #383870]
24928 2008-05-02 Jeffrey Stedfast <fejj@novell.com>
24930 * text.cpp (Glyphs::Layout): Take negative vOffset attr's for
24931 glyphs into account when calculating extents. Fix usage of OriginX
24932 and OriginY as far as extents goes.
24933 (Glyphs::GetOriginPoint): Don't leak the TextFont.
24934 (Glyphs::GetTransformOrigin): Always use 0.0,0.0 as the
24935 RenderTransformOrigin, Microsoft's implementation for Glyphs
24936 doesn't seem to take into account the width/height of the bounding
24938 (Glyphs::Layout): Use OriginX,OriginY as the bounding box origin
24939 rather than MIN (OriginX, 0), Min (OriginY, 0)
24941 2008-05-02 Sebastien Pouliot <sebastien@ximian.com>
24943 * text.cpp|h: Add Glyphs::InsideObject so Mouse events will work.
24944 [Partial fix for #383870, bounds are not always correct]
24946 2008-05-02 Jeffrey Stedfast <fejj@novell.com>
24948 * text.cpp (Glyphs::Render): Cache the glyph string in a moon-path
24949 rather than copying it from the cairo context for the same reason
24950 we did this for TextBlock segment path caching.
24952 2008-05-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
24954 * playlist.h, playlist.cpp: Implemented ClientSkip.
24955 * media.cpp: Handle playlists entry with ClientSkip set correctly.
24957 2008-05-02 Michael Dominic K. <mdk@mdk.am>
24960 * animation.h: For the KeySpline: getting rid of the ugly lookup-table
24961 with x -> y values and instead using a two-way curve approximation
24962 methodology for calculating the Spline progress. This is not 100% accurate
24963 (same as original bezier) for fine-grained values but removes all the
24964 precision problems and greatly improves the quality for long KeySpline
24965 animations (no more jags).
24967 2008-05-01 Larry Ewing <lewing@novell.com>
24969 * uielement.cpp (UIElement::OnPropertyChanged): go ahead and
24970 invalidate here as changes in the upstream opacity could make us
24971 unable to invalidate later.
24973 Fixes invalidation of last hex in a sprawl run.
24975 2008-05-01 Larry Ewing <lewing@novell.com>
24977 * runtime.cpp: Fix a bunch of rendering bugs in windowless mode.
24978 Previously there were no time manager handlers listening to events
24979 in windowless mode so we were missing expose events. Make all
24980 invalidations go throw Invalidate so that they get picked up in
24981 windowless. Take into account that exposes go to a full size
24982 window in windowless mode so we don't need to subtract the device
24985 Fixes most of the issues with
24986 http://silverlight.r2musings.com/weatherwidget/default.aspx and
24987 fixes the harness failure on ZIndex.htm.
24989 2008-05-01 Chris Toshok <toshok@ximian.com>
24991 * runtime.h, runtime.cpp: remove the LoadEvent and instead add an
24992 AttachingEvent, which is emitted after the toplevel control is set
24993 on the surface, but before UIElement::LoadedEvent is emitted on
24994 it. Used by the plugin for hooking up the plugin onLoad handler.
24996 2008-05-01 Jeffrey Stedfast <fejj@novell.com>
24998 * layout.cpp (RenderLine): Instead of grabbing the cairo_path_t
24999 from the cairo_t after pathing out all of the glyphs for a segment
25000 of text, keep our own moon_path for caching. Apparently the path
25001 gotten from cairo_copy_path() has whatever transforms are on the
25002 context pre-applied which is the cause for the breakage in bug
25005 * font.cpp (TextFont::AppendPath): New method to append a glyph's
25006 path to a moon_path for caching purposes.
25008 2008-04-30 Fernando Herrera <fherrera@novell.com>
25010 * media.cpp: at MediaElement::DownloaderFailed if the uri was a mms://
25011 stream, fallback to http:// uri
25013 2008-04-30 Michael Dominic K. <mdk@mdk.am>
25016 * panel.h: Adding the panel_add_child helper method used by the ancient
25017 demo. It actually makes sense.
25019 2008-04-30 Michael Dominic K. <mdk@mdk.am>
25024 * xaml.cpp: Include the utils.h locally in .cpp file and remove it from
25025 the install. This way we don't need to bundle the zip includes.
25027 2008-04-30 Stephane Delcroix <sdelcroix@novell.com>
25029 * shape.cpp: calc_line_bounds: compute the start|end caps in the
25032 2008-04-30 Sebastien Pouliot <sebastien@ximian.com>
25034 * panel.cpp: Emit Loaded on Canvas before it's child.
25035 [Fix part #361906 - i.e. back to original issue]
25037 2008-04-30 Fernando Herrera <fherrera@novell.com>
25040 * downloader.h: export downloader_get_downloaded_file without the
25043 2008-04-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
25045 * pipeline.cpp: Mp3FrameReader/Demuxer: Calculate frame duration
25046 correctly, and calculate file duration as MS seems to be doing it.
25047 SkipFrame: when seeking don't take into account the size of the
25048 mpeg header, since we only peaked it.
25050 2008-04-29 Michael Dominic K. <mdk@mdk.am>
25052 * shape.cpp: Clipping is not taken into account with cairo_in_*
25053 functions therefore do the hit-test in two steps -- first check if
25054 within clipping bounds and then check if within shape bounds. Fixes
25055 #383894 and test-shape-cursor-clipping.xaml test.
25057 2008-04-28 Chris Toshok <toshok@ximian.com>
25059 * runtime.cpp (Surface::Attach): emit the canvas's Loaded event
25060 before we emit our own Load event (and trigger the plugin's onLoad
25063 2008-04-28 Chris Toshok <toshok@ximian.com>
25065 * runtime.cpp (Surface::Attach): always emit Resize on Attach.
25066 fixes ControlState.htm.
25068 2008-04-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
25070 * typegen/typegen.cs: Minor fix to support C constructors immediately
25072 * type-generated.cpp: Regenerated (includes a lot more C constructors
25075 2008-04-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
25077 * geometry.h: Include glib.h before using glib macros.
25079 2008-04-28 Michael Dominic K. <mdk@mdk.am>
25081 * xaml.cpp: Silently skip the attributes that are empty instead of
25082 throwing an error. Fixes the test-parser-empty-property.xaml and
25085 2008-04-28 Michael Dominic K. <mdk@mdk.am>
25087 * brush.cpp: Make sure to use proper width for image stretching params.
25088 Fixes the image-brush-stretch-set.html and bug #383938.
25090 2008-04-25 Jeffrey Stedfast <fejj@novell.com>
25092 * shape.cpp: Added property accessors.
25094 2008-04-25 Chris Toshok <toshok@ximian.com>
25096 * type-generated.cpp: add the Surface Loaded event.
25098 * runtime.cpp (Surface::widget_destroyed): null out s->widget if
25099 it matches too. no more dangling pointers.
25101 * runtime.h, runtime.cpp: give the Surface class a Load
25102 event (used to run the JS OnLoad event in the plugin) and an
25105 * xaml.cpp (dependency_object_hookup_event): raise a parser error
25106 if an event is specified with a javascript: prefix.
25108 2008-04-25 Larry Ewing <lewing@novell.com>
25110 * stylus.cpp (InkPresenter::OnCollectionChanged): wrap the stroke
25111 changed logic inside a type check.
25113 2008-04-25 Jeffrey Stedfast <fejj@novell.com>
25115 * xaml.cpp (geometry_from_str): Use the new gemoetry property
25118 * geometry.cpp: Added property accessor methods
25120 2008-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
25122 * media.cpp: Always emit DownloadProgressEvents, even if we're
25125 2008-04-25 Stephane Delcroix <sdelcroix@novell.com>
25127 * stylus.cpp: InkPresenter::OnCollectionChanged: call the parent
25128 method, so the Canvas.Top, Canvas.Left properties are read. Fixes
25131 2008-04-25 Geoff Norton <gnorton@novell.com>
25133 * pipeline-ffmpeg.cpp, pipeline-ffmpeg.h: Support using ffmpeg's
25134 new libavcodec/avcodec.h
25136 2008-04-25 Jeffrey Stedfast <fejj@novell.com>
25138 * runtime.cpp (runtime_init): No longer need to call
25139 assembly_part_init().
25141 * deployment.cpp (assembly_part_init): Moved into
25144 * deployment.h: Added missing virtual dtors.
25146 * collection.cpp (Collection::GetCount): Added.
25148 2008-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
25150 * media.cpp: Set DownloadProgress to 0 when media fails to load.
25152 2008-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
25154 * media.cpp: MediaElement::CheckMarkers: if the marker is from a live
25155 stream, emit it even if we missed it by up to 0.1 s. Refactored
25156 parts of UpdateProgress into GetBufferedSize. Emit MediaOpened only
25157 after we've either started playing or finished buffering. Emit
25158 MediaFailed/InvalidFileFormat if we failed to initialize the media.
25159 Reinitialize the media synchronously in SetSource.
25162 2008-04-25 Michael Dominic K. <mdk@mdk.am>
25166 * uielement.h: Also include the IsHitTestVisible status when checking
25167 our input_list after handling the mouse event. This fixes the
25168 mouse-enter-leave-hit-test-visibility.html test.
25170 2008-04-25 Stephane Delcroix <sdelcroix@novell.com>
25172 * runtime.cpp: move the hotspot for the eraser, Fixes bnc 375213.
25174 2008-04-24 Jeffrey Stedfast <fejj@novell.com>
25176 * clock.cpp: Added property accessor methods for TimelineMarker
25177 and added c-bindings.
25179 * downloader.cpp: Same.
25181 * media.cpp: Added property accessors so that it isn't
25182 necessary to use long-winded c-function names to get property
25183 values. Also made all c-wrappers call the c++ property accessor
25186 2008-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
25188 * mplayer.cpp: When a video-only media reaches its end, set target_pts
25189 to the last rendered pts, since that's what is reported as our
25192 2008-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
25194 * mplayer.cpp: When a video-only media reaches its end, set target_pts
25195 to the last rendered pts, since that's what is reported as our
25198 2008-04-24 Michael Dominic K. <mdk@mdk.am>
25202 * uielement.h: Renaming UIElement::GetActualRenderVisibility to
25203 UIElement::GetActualTotalRenderVisibility for better name matching.
25205 2008-04-24 Michael Dominic K. <mdk@mdk.am>
25207 * runtime.cpp: Another perf fix for the fix -- make it a corner case
25208 when the new_input_list needs to be copied. In most cases we can just
25211 2008-04-24 Michael Dominic K. <mdk@mdk.am>
25215 * uielement.h: Ooops, so my prev fix was correct but *totally* dumb from
25216 the perf/sanity point of view. Here goes a better refactor.
25218 Adding UIElement::GetActualRenderVisibility which returns the visibility
25219 (like UIElement::ComputeTotalRenderVisibility) without setting the
25222 2008-04-24 Michael Dominic K. <mdk@mdk.am>
25224 * runtime.cpp: After emitting the events make sure to update our
25225 input_list since it can be changed -- as a result of somebody ie.
25226 changing element's visibility in the enter/leave callback. Fixes the
25227 #375220 (Microsoft downloads index chars).
25229 2008-04-24 Michael Dominic K. <mdk@mdk.am>
25231 * animation.cpp: Do a slightly more precise generation of key-spline
25232 tables. Improves smoothness ie. in test-animation-slow-keyspline.xaml.
25234 2008-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
25236 * media.cpp, media.h: MediaElement: add a handler for DownloaderFailed
25237 and raise MediaFailed.
25239 2008-04-24 Stephane Delcroix <sdelcroix@novell.com>
25244 * shape.h: override some Compute[Shape]Bounds method to pass a matrix
25245 argument. Allows measuration of transformed Pathes and a 2nd pass to
25246 refines the guesses we're doing for Stretches.
25248 2008-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
25250 * src.mdp: Updated.
25252 2008-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
25254 * media.cpp, pipeline.cpp, pipeline.h: Addded
25255 ProgressiveSource::NotifyFinished to notify that the download has
25256 finished. This is required for streaming downloads which download 0
25257 bytes, otherwise the pipeline will hang waiting for data.
25259 2008-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
25261 * collection.cpp, collection.h: TimelineMarkerCollection needs to be
25262 sorted at all times, added a virtual Collection::AddToList method
25263 which appends the item to the list (and overriden by
25264 TimelineMarkerCollection to add it in the correct position to keep
25265 the collection ordered).
25267 2008-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
25269 * clock.cpp, clock.h: Added property accessors to TimelineMarker.
25271 2008-04-23 Jeffrey Stedfast <fejj@novell.com>
25273 * panel.cpp: Add property accessors and added c-bindings.
25275 2008-04-23 Geoff Norton <gnorton@novell.com>
25277 * Makefile.am: Fix make dist when building with ffmpeg.
25279 2008-04-23 Jeffrey Stedfast <fejj@novell.com>
25281 * frameworkelement.cpp: Added property accessors so that it isn't
25282 necessary to use long-winded c-function names to get property
25283 values. Also made all c-wrappers call the c++ property accessor
25286 * text.cpp: Added property accessors to all text classes so that
25287 it isn't necessary to use long-winded c-function names to get
25288 property values. Also made all c-wrappers call the c++ property
25290 (TextBlock::LayoutSilverlight): Removed, logic moved into
25293 * animation.h: Make sure all c-API _new() functions take void as
25296 * uielement.cpp: Added some property accessors.
25298 * text.cpp: Use the new SolidColorBrush ctor.
25300 * brush.cpp: Added property accessors to all brush classes so that
25301 it isn't encessary to use long-winded c-function names to get
25302 property values. Also made all c-wrappers call the c++ property
25304 (SolidColorBrush::SolidColorBrush): New .ctor to make life
25307 2008-04-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
25309 * mplayer.cpp: AudioPlayer: prevent calling SetTargetPts on the
25310 MediaPlayer with a negative pts.
25312 2008-04-23 Geoff Norton <gnorton@novell.com>
25314 * libmoon.h: Drop mango.h
25316 2008-04-23 Geoff Norton <gnorton@novell.com>
25318 * runtime.cpp: Remove pango support.
25320 2008-04-23 Geoff Norton <gnorton@novell.com>
25322 * Makefile.h, text.cpp, text.h, mango.cpp, mango.h: Remove pango
25325 2008-04-23 Geoff Norton <gnorton@novell.com>
25327 * swscale-converter.cpp, pipeline-ffmpeg.cpp, Makefile.am: Only
25328 include swscale and ffmpeg cpp files in the build if their configure
25331 2008-04-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
25333 * type.cpp: When looking for types use case-insensitive type
25334 comparison. Fixes #375230 and #375231.
25336 2008-04-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
25338 * pipeline.cpp, pipeline.h: MediaClosure: add SetContextUnsafe which
25339 don't take a ref to the context, and add a context_refcounted field
25340 to keep track of refcounting. This is required for long-living
25341 closures which would otherwise cause circular references. Add and
25342 implemetn a ASFMarkerDecoderInfo class, and implement notification
25343 of found markers back to listeners.
25344 * src.mdp: Updated.
25345 * downloader.cpp, downloader.h: Downloader: Add a streaming_features
25346 field, so that the plugin can return information about mms streams.
25347 * http-streaming.cpp, http-streaming.h: Added
25348 parse_http_streaming_features.
25349 * mplayer.h: Add property accessors for CanSeek and CanPause, and
25350 implement them. Select any marker streams.
25351 * media.h, media.cpp: MediaElement: store the marker closure in the
25352 instance, so that we can delete it upon destruction. Read the
25353 streaming features from the downloader in order to set
25354 CanSeek/CanPause properly. TryOpen: if we don't have a filename,
25355 but we do have a downloaded file, use the downloaded file as the
25356 source (might happen if streaming stops before TryOpen is called).
25357 * mplayer.cpp: Add property accessors for CanSeek and CanPause, and
25358 implement them. Select any marker streams. Don't check if we can
25359 pause in Pause (), since MediaElement implements Buffering calling
25360 Pause on us. MediaElement is already checking if media can be
25362 * Makefile.am: Added http-streaming.h|cpp.
25364 2008-04-22 Stephane Delcroix <sdelcroix@novell.com>
25366 * rect.h: overrides for Union and IsEmpty to take a logical bool,
25367 allowing logical bounds computation.
25368 * geometry.cpp: use the overrided Union () in Computebounds
25369 * shape.cpp: This is the stretches' Holy Grail !
25371 2008-04-22 Jeffrey Stedfast <fejj@novell.com>
25373 * eventargs.cpp (MouseEventArgs::GetStylusPoints): Make sure
25374 event->device non-NULL.
25376 2008-04-22 Larry Ewing <lewing@novell.com>
25378 * playlist.h: remove expat references from public symbols.
25379 * playlist.cpp: Wrap XML_Parser in simple class to hide the symbol
25380 from the plublic headers.
25382 Start cleaning things up for ff3.
25384 2008-04-22 Chris Toshok <toshok@ximian.com>
25386 * runtime.h, runtime.cpp: add Zombify() which sets the zombie
25387 flag. basically this allows us to unwind gracefully from an event
25388 that has caused the surface to be destroyed. when the flag is
25389 set, we basically stop emitting UI events that we're in the
25390 process of emitting.
25391 (Surface::widget_destroyed) simplify this, and zero out the
25392 widgets here so we don't destroy them again in ~Surface().
25394 * dependencyobject.h, dependencyobject.cpp: make unref_delayed
25395 public again, and don't warn about calling it on the main thread.
25396 we need it in the plugin.
25398 2008-04-22 Jeffrey Stedfast <fejj@novell.com>
25400 * shape.cpp (Shape::DoDraw): Cast extents to int for
25401 AddToCacheSizeCounter().
25402 (Shape::IsCandidateForCaching): Same for
25403 VerifyWithCacheSizeCounter().
25405 2008-04-22 Michael Dominic K. <mdk@mdk.am>
25407 * animation.cpp: Safely allow now the KeyTime property to be nullable.
25408 Fixes the Animation_NegativeTst.htm test.
25410 2008-04-22 Michael Dominic K. <mdk@mdk.am>
25413 * animation.h: Making the Storyboard::Begin return bool (true if
25414 storyboard started correctly, false otherwise).
25416 2008-04-22 Michael Dominic K. <mdk@mdk.am>
25421 * clock.h: Adding a 'bool Validate ()' virtual to Timeline which is used
25422 to validate the Timeline before starting it. Timelines are always valid
25423 by default except for KeyFrame-based animations where we perform a
25424 check on the keyframes.
25426 Storyboard doesn't start if any of it's timelines are not valid. This
25427 fixes the test-animation-invalid-keyframe-keytime.xaml test.
25429 2008-04-22 Michael Dominic K. <mdk@mdk.am>
25431 * animation.cpp: Don't initialize the KeyTime for KeyFrame to a default
25432 value, make it be NULL by default. This currently causes a segfault in
25433 the just-added test-animation-invalid-keyframe-keytime.xaml which is
25436 2008-04-22 Fernando Herrera <fherrera@novell.com>
25439 * pipeline.cpp: set the new read position after Seeking to pts.
25440 Added ProgressiveSource::SeekInternal that refuses to Seek to a
25441 non-filled position.
25443 2008-04-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
25445 * dependencyobject.cpp, dependencyobject.h: Added another SetValue
25446 overload, to enable calling all SetValues with stack objects.
25447 * xaml.cpp: Fix a Value leak.
25449 2008-04-21 Jeffrey Stedfast <fejj@novell.com>
25451 Fixes a double-destroy bug in FullScreen.htm
25453 * runtime.cpp (Surface::Surface): Initialize normal_widget - never
25454 let it be NULL unless we are in windowless mode.
25455 (Surface::.dtor): Don't call DestroyWidget on 'widget', call it on
25456 'widget_normal' instead, this way we can't accidently destroy the
25457 fullscreen widget twice (e.g. if we are in fullscreen mode).
25458 (Surface::ConnectEvents): Record the unrealize signal id so that
25459 we can later disconnect from it.
25460 (Surface::DestroyWidget): Now takes a SignalIds argument so that
25461 we can disconnect from unrealize/destroy signals which may fire in
25462 response to destroying the widget.
25463 (Surface::InitializeWidget): Now takes a SignalIds argument so
25464 that we can save the destroy signal id.
25466 2008-04-21 Geoff Norton <gnorton@novell.com>
25468 * runtime.cpp: Guard against freeing a list in a sub-event
25469 loop when crossings are invoked. Fixes bug#378902
25471 2008-04-20 Miguel de Icaza <miguel@roxanne.site>
25473 * deployment.cpp: new dependency property objects for the
25476 * xap.cpp: XAP loader, unpacks and instantiates deployment, but
25477 does not load assemblies in VM. Not sure if this should be done
25478 here (and add a VM dependency) or in the plugin and later as well
25481 * runtime.cpp: Deployment initialization.
25483 * downloader.cpp Moved some code from here into utils.cpp: Expose
25484 CreateTempDir instead of MakeTempDir that takes care of creating
25485 the directory with a unique signature.
25487 2008-04-21 Geoff Norton <gnorton@novell.com>
25489 * yuv-converter.cpp: Emit a warning on unaliged memory and fall back
25490 to the C implementation.
25492 2008-04-18 Larry Ewing <lewing@novell.com>
25494 * dirty.cpp (Surface::ProcessDownDirtyElements): When visibility
25495 changes invalidate our parents bounds to notify them that their
25496 subtree may have changed.
25498 Fixes the status boxes on MouseInput.htm
25500 2008-04-18 Jeffrey Stedfast <fejj@novell.com>
25502 * runtime.cpp (Surface::ConnectEvents): Connect to focus-in-event
25503 and focus-out-event.
25504 (Surface::focus_in_callback): If we have a toplevel canvas, emit a
25505 GotFocus event on it.
25506 (Surface::focus_out_callback): If we have a toplevel canvas, emit
25507 a LostFocus event on it.
25508 (Surface::Attach): If our widget has focus, emit GotFocus event on
25509 our canvas right after we emit the Loaded event.
25511 * uielement.cpp (UIElement::EmitGotFocus): New method.
25512 (UIElement::EmitLostFocus): New method.
25514 2008-04-18 Geoff Norton <gnorton@novell.com>
25516 * yuv-converter.cpp: It seems that ffmpeg will occasionally
25517 over-pad the YUV buffers with a SIMD aligned amount (see
25520 2008-04-18 Michael Dominic K. <mdk@mdk.am>
25522 * animation.cpp: Make sure we always return targetValue when
25523 progress >= 1.0 for Spline*KeyFrame's.
25525 This fixes the clock36.xaml test and PopFly bug of "line dirt
25526 leftovers" when collapsing block list or tutorial list.
25528 2008-04-17 Larry Ewing <lewing@novell.com>
25530 * xaml.cpp (xaml_init): register MouseEventArgs as a dependency object.
25532 2008-04-17 Larry Ewing <lewing@novell.com>
25534 * src/eventargs.cpp:
25536 * src/type-generated.cpp:
25537 * src/value.h: add a default ctor for MouseEventArgs.
25539 2008-04-17 Larry Ewing <lewing@novell.com>
25541 * typegen/typegen.cs: don't require an svn repo for proper
25542 functioning, try to make the error messages functional still.
25544 2008-04-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
25546 * media.cpp: MediaElement::MediaOpened: Advance state to Buffering
25547 before trying to play/pause, otherwise nothing will happen (if
25548 coming from the Opening state). Fix printf.
25550 2008-04-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
25552 * dependencyobject.cpp, dependencyobject.h: Add an always_change flag
25553 for DependencyProperty, if a property has this flag, it will always
25554 be changed, even if the new value is the same as the old value.
25555 DependencyObject::SetValue: honor the new always_change flag.
25556 * media.cpp: Set the always_change flag to true for
25557 MediaBase::SourceProperty.
25559 2008-04-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
25561 * media.cpp: MediaElement: Move the Play/Pause/AutoPlay logic to
25562 MediaOpened, so that it also happens when TryLoadFinished opens the
25563 media. Fixes media not starting to play when the media was
25564 downloaded between the moment we tried to open it and it was
25565 successfully opened.
25567 2008-04-17 Jeffrey Stedfast <fejj@novell.com>
25569 * color.cpp (color_from_str): Handle uint32 color values that are
25572 2008-04-17 Larry Ewing <lewing@novell.com>
25574 * dependencyobject.cpp (DependencyProperty::DependencyProperty):
25575 initialize is_nullable.
25577 Fixes random failure of ParserErrors.htm.
25579 2008-04-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
25581 * media.cpp: MediaElement::TryOpen: always unref the FileSource we
25582 create when we're done with it.
25584 2008-04-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
25586 * dependencyobject.cpp, dependencyobject.h: EventObject: we need to
25587 remember how many events the current type has, since in our
25588 destructor we can't get that information anymore. Add a new
25589 EventLists class which does the book-keeping.
25591 2008-04-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
25593 * media.cpp: MediaElement::Reinitialize: don't call SetValue if we're
25594 in the destructor. MediaElement::SetMedia: call ComputeBounds at
25595 the end. Fixes xaml/test-canvas-no-size.html
25597 2008-04-17 Michael Dominic K. <mdk@mdk.am>
25599 * animation.cpp: It turns out that KeyFrames doesn't have default Value
25600 of NULL but rather 0/Black/etc.
25602 This fixes the the test-animation-null-defaults-*.xaml tests and the bug
25603 in PopFly where clicking the block list collapser wouldn't do anything
25604 (it collapses now properly like the tutorial right pane).
25606 2008-04-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
25608 * src.mdp: Updated.
25610 2008-04-16 Larry Ewing <lewing@novell.com>
25612 * type.cpp: avoid an infinite recursion in LookupEvent.
25614 Fixes a crash in RuntimeErrors.htm.
25616 2008-04-16 Larry Ewing <lewing@novell.com>
25618 * shape.cpp (Shape::ComputeStretchBounds): get another test working.
25620 2008-04-16 Larry Ewing <lewing@novell.com>
25622 * shape.cpp (Shape::ComputeStretchBounds): an incomplete fix to
25623 try to resolve the regression in stretch that had crept in. Still
25624 working on a more complete patch.
25626 2008-04-16 Larry Ewing <lewing@novell.com>
25628 * geometry.cpp (RectangleGeometry::ComputeBounds): rectangles have
25631 2008-04-16 Jeffrey Stedfast <fejj@novell.com>
25633 * dependencyobject.cpp (free_value): value argument may be NULL.
25635 2008-04-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
25637 * dependencyobject.cpp: DependencyObject: Emit DestroyedEvent before
25638 decreasing refcount, so that ref in event emission doesn't abort.
25639 Reenable ref/unref in event emission.
25641 2008-04-16 Jeffrey Stedfast <fejj@novell.com>
25643 * dependencyobject.cpp (set_surface): value argument can be NULL.
25644 (DependencyObject::IsValueValid): Fixed compile warnings.
25646 * downloader.cpp: Properly set/reset Status and StatusText
25648 (Downloader::Open): Properly reinitialize all state.
25649 (Downloader::Write): Clamp progress to 1.0 (altho it should never
25650 go above, especially not that I've fixed resetting 'total' state).
25652 * enums.c (initialize_enums): Don't cast arrays using
25653 GINT_TO_POINTER(), doesn't make any sense.
25655 2008-04-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
25657 * collection.cpp: Collection::EmitChanged: don't create a
25658 ChangeEventArgs if we don't need one, and unref it when we're
25661 2008-04-16 Michael Dominic K. <mdk@mdk.am>
25663 * clock.cpp: Add protection against division by 0.
25665 2008-04-16 Michael Dominic K. <mdk@mdk.am>
25668 * animation.h: Don't detach the ClockGroup from parent on the Completed
25669 event. This is now finally no longer needed. While keeping the
25670 clockgroup means little perf difference it makes the whole thing much
25671 more simple to read (there is just one place that explains why Filling
25672 groups are no longer processed after Completed).
25674 2008-04-16 Larry Ewing <lewing@novell.com>
25676 * shape.cpp: tweak the origin tweak again. This should pass
25677 test-shape-path-stretch[34].xaml.
25679 2008-04-16 Jeffrey Stedfast <fejj@novell.com>
25681 Fix for OMPackagingSource.htm
25683 * media.cpp (MediaElement::OnPropertyChanged): If the new source
25684 is empty, Invalidate().
25685 (MediaElement::Render): Render nothing if our downloader is NULL.
25687 2008-04-16 Larry Ewing <lewing@novell.com>
25689 * shape.cpp: don't adjust the origin unless we are adjusting that
25692 2008-04-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
25694 * playlist.cpp: Simplify printf.
25696 2008-04-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
25698 * src.mdp: Updated to (mostly) compile.
25700 2008-04-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
25702 * src.mdp: Updated.
25704 2008-04-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
25706 * typegen/typegen.sh: Updated to work correctly independently of
25707 the current directory when executed.
25709 2008-04-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
25711 * animation.cpp, animation.h, brush.cpp, brush.h, clock.cpp, clock.h,
25712 collection.cpp, collection.h, dependencyobject.h, downloader.cpp,
25713 downloader.h, Makefile.am, media.cpp, media.h, runtime.cpp, runtime.h,
25714 type.cpp, type.h, type.h.in, typegen/typegen.cs, type-generated.cpp,
25715 uielement.cpp, uielement.h: Initialize our type system statically.
25716 * dependencyobject.cpp: Initialize our type system statically. Comparing a
25717 Kind value to another to determine type hierarchy isn't supported
25718 anymore, use Value::Is or Type::IsSubclassOf, which are doing the right
25720 * src.mdp: Updated.
25721 * type.cpp.in: Removed, no longer required.
25722 * value.cpp, value.h, value.h.in: Comparing a Kind value to another to
25723 determine type hierarchy isn't supported anymore, use Value::Is or
25724 Type::IsSubclassOf, which are doing the right thing.
25726 2008-04-16 Larry Ewing <lewing@novell.com>
25728 * shape.cpp (Shape::ComputeStretchBounds): fix typo.
25730 2008-04-16 Larry Ewing <lewing@novell.com>
25732 * shape.cpp (Shape::ComputeStretchBounds): fix the centering logic
25733 that got accidentally lost when fixing other bits.
25735 Fixes regression in StretchAndShapes.xaml.
25737 2008-04-16 Jackson Harper <jackson@ximian.com>
25739 * xaml.cpp: {x:Null} evaluates to NULL, if we encounter this value
25740 we need to check if the property is Nullable and raise an error if
25743 2008-04-16 Jackson Harper <jackson@ximian.com>
25745 * dependencyobject.h|cpp: SetValue now validates values and
25746 returns false with a GError when invalid values are used.
25747 Subclasses can (and should) override IsValidValue to do their own
25749 * xaml.cpp: Use new SetValue that returns errors.
25751 2008-04-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
25753 * media.cpp: MediaBase::SetSourceAsyncCallback: don't do anything if we
25754 don't have a surface anymore. We're probably executing after the surface
25755 has been destroyed.
25757 2008-04-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
25759 * src.mdp: Updated to include typegen/*.
25760 * type.cpp, type.cpp.in, type.h, type.h.in: Added type_get_name, and fix
25761 Behaviour/Behavior inconsistency.
25763 2008-04-15 Jeffrey Stedfast <fejj@novell.com>
25765 * media.cpp (MediaElement::OnPropertyChanged): Moved the
25766 PositionProperty seek logic into here so we could get rid of
25767 MediaElement::SetValue() overload.
25769 * dependencyobject.h (class DependencyObject): SetValue() is no
25770 longer a virtual method.
25772 2008-04-15 Michael Dominic K. <mdk@mdk.am>
25774 * clock.cpp: ret_time is 0 when reaching repeat_count == 0. Fixes the
25777 2008-04-15 Michael Dominic K. <mdk@mdk.am>
25779 * clock.cpp: Clock::ComputeNewTime - make sure to take the speed ratio
25780 into account also when moving back in time.
25782 Fixes the clock34.xaml test.
25784 2008-04-15 Michael Dominic K. <mdk@mdk.am>
25786 * animation.cpp: Make sure to clamp the progress to 0.0 - 1.0 when we're
25787 calculating it ourselves (instead of using the CalcProgress). Otherwise
25788 we're bypassing the clamping and extending animations/values beyond
25791 This is a real fix for the Popfly #378390 (cannot configure the box in
25792 Popfly). Also fixes the clock34.xaml test-case.
25794 2008-04-15 Michael Dominic K. <mdk@mdk.am>
25796 * clock.cpp: Since we're at it, small fix in Clock::Tick -- Clamp time
25797 when previous OR current state is Clock::Active.
25799 2008-04-15 Michael Dominic K. <mdk@mdk.am>
25801 * clock.cpp: Reverting the change that was supposed to fix popfly. It's
25802 actually totally bad. I knew I was too fast with this one.
25804 2008-04-15 Michael Dominic K. <mdk@mdk.am>
25806 * clock.cpp: The time needs to be clamped always. Fixes #378390 (cannot
25807 configure the box in Popfly). Whoah, that was a nasty one.
25809 2008-04-14 Chris Toshok <toshok@ximian.com>
25811 * runtime.cpp (Surface::Attach): don't clear the up/down dirty
25812 lists here. Calling toplevel->SetSurface(NULL) ensures that all
25813 elements from the previous tree have their dirty elements removed,
25814 so what's left will correspond to 1) things that are about replace
25815 the current hierarchy, or 2) things that haven't actually been
25816 added to the hierarchy yet, but need to be associated with a
25819 * collection.cpp (Collection::Clear): emit
25820 CollectionChangeTypeChanging event before we do the actual change
25821 so the owner can do something with the children if it needs to.
25822 (VisualCollection::VisualAdded, VisualCollection::VisualRemoved):
25824 (VisualCollection::Add): remove call to VisualAdded. that
25825 behavior will be handled by Panel in its OnCollectionChanged
25827 (VisualCollection::SetVal): same.
25828 (VisualCollection::Insert): same.
25829 (VisualCollection::Remove): same, but with VisualRemoved.
25830 (VisualCollection::RemoveAt): same.
25831 (VisualCollection::Clear): remove the loop calling VisualRemoved.
25832 this will be handled by the additional
25833 CollectionChangeTypeChanging handling in panel.cpp.
25835 * enums.h (enum CollectionChangeType): add
25836 CollectionChangeTypeChanging.
25838 * panel.h, panel.cpp (Panel::OnPropertyChanged): handle the case
25839 where the ChildrenProperty is changed, by calling ChildRemoved on
25840 all the old children, and ChildAdded on all the new ones.
25841 (Panel::ChildAdded): new home for VisualCollection::VisualAdded.
25842 (Panel::ChildRemoved): new home for
25843 VisualCollection::VisualRemoved.
25844 (Panel::OnCollectionChanged): add support for
25845 CollectionChangeTypeChanging, so we can remove all children. this
25846 change type is generated by Collection::Clear.
25848 * stylus.cpp (Stroke::OnCollectionChanged): add empty handler for
25849 CollectionChangeTypeChanging.
25850 (InkPresenter::OnCollectionChanged): same.
25852 2008-04-14 Jeffrey Stedfast <fejj@novell.com>
25854 * media.cpp (Image::CreateSurface): Robustification of image
25857 2008-04-14 Michael Dominic K. <mdk@mdk.am>
25860 * clock.h: When calculating the new time in DoRepeat use modulo on new
25861 value. Otherwise we're 'losing' a little bit of time on every repeat and
25862 end time doesn't match with parent. This fixes a few more "jags" on
25863 animations ie. clock13.xaml.
25865 2008-04-11 Larry Ewing <lewing@novell.com>
25867 * xaml.cpp (value_from_str): make sure we propogate the error if
25868 color_from_string returns NULL.
25870 * color.cpp (color_from_str): return NULL on invalid color values
25871 rather than simply returning black.
25873 Add an error condition to color_from_string so that we pass the
25874 color tests in ParserErrors test.
25876 2008-04-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
25878 * dependencyobject.cpp: Surround event emission with ref/unref of ourselves.
25880 2008-04-11 Jeffrey Stedfast <fejj@novell.com>
25882 * playlist.cpp: Disable debugging spew unless DEBUG_PLAYLISTS is
25885 * downloader.cpp (Downloader::Send): Use
25886 TimeManager::InvokeOnMainThread() here like Rolf did in
25887 MediaBase. Simplifies things by not needing a surface.
25889 * text.cpp (TextBlock::SetFontSource): Now takes a Downloader
25890 object as opposed to a DependencyObject.
25892 2008-04-11 Michael Dominic K. <mdk@mdk.am>
25894 * clock.cpp: in Clock, make sure we CalcProgress on the last tick before
25895 we go Filling/Stopped. Without this we never "finish off" our animations
25896 and depending on the framerate we get "jags". Fixes the clock32.xaml
25899 2008-04-11 Jeffrey Stedfast <fejj@novell.com>
25901 * runtime.cpp: Make the dot and eraser cursors const to avoid
25904 2008-04-11 Michael Dominic K. <mdk@mdk.am>
25906 * enums.c: Removing bolox comment and behavior. Always return -1 on
25909 * xaml.cpp: Push a g_warning when we're hitting bad enums on bad props.
25910 Should make it a little bit easier to spot problems.
25912 2008-04-11 Michael Dominic K. <mdk@mdk.am>
25914 * dependencyobject.cpp: When calling RegisterAllNamesRootedAt be
25915 actually recursive (I'm not sure why this was commented out? Toshok?).
25916 Fixes the sprawl end-game animation, #378748.
25918 2008-04-11 Stephane Delcroix <sdelcroix@novell.com>
25920 * runtime.cpp: create the stylus and eraser cursors from xpm. Fixes
25921 bnc #375213. Implemented the MouseCursorNone too.
25923 2008-04-10 Larry Ewing <lewing@novell.com>
25925 * xaml.cpp (start_element): throw an error if there is an xml
25926 attribute on a dependency property.
25928 2008-04-10 Larry Ewing <lewing@novell.com>
25930 * enums.c (enum_from_str): return -1 on an invalid enum string so
25931 that we can catch it as a ParserError fixes
25932 Parser_Invalid_Enum.xaml.
25934 2008-04-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
25936 * media.cpp: MediaBase::SetSource: no need to get a
25937 Surface/TimeManager instance to do an asynchronous call, just
25938 call TimeManager::InvokeOnMainThread.
25940 2008-04-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
25942 * mplayer.h, mplayer.cpp: Added MediaPlayer::AudioFinished, called
25943 by the audio thread when the audio finishes.
25945 * media.h, media.cpp: Added MediaElement::AudioFinished, called by
25946 the media player when the audio finishes. Enables us to raise
25947 MediaEnded for audio-only media.
25949 2008-04-10 Jeffrey Stedfast <fejj@novell.com>
25951 * brush.cpp|media.cpp: All SetSource() entry points now take
25952 Downloader objects rather than DependencyObject arguments - the
25953 same as MSDN defines.
25955 * media.cpp (SetSourceInternal): More cleanup /
25956 simplification. Since *::SetSource() already takes steps to be
25957 async, no need to use Downloader::Send() which would introduce
25958 another delay in downloading. It should be plenty safe to call
25959 Downloader::SendNow() in all ::SetSourceInternal()
25960 implementations. Also, we now need to handle NULL downloader which
25961 we get called with if the original SetSource() was passed a NULL
25963 (Image::SetSource): Don't cleanup the surface here, do that in
25964 SetSourceInternal() so that we delay until appropriate.
25965 (Image::SetSourceInternal): If there is a downloader, delay
25966 CleanupSurface() even longer until the new image has been
25968 (Image::DownloaderComplete): Call CleanupSurface() here.
25970 2008-04-10 Jeffrey Stedfast <fejj@novell.com>
25972 * media.cpp: Consolidated Image and MediaElement downloader bits
25973 by putting them into MediaBase.
25975 2008-04-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
25977 * dependencyobject.cpp: Guard against calling closures which have
25978 been removed during emission of previous events in the same
25979 event list: when we're emitting and a closure is removed, mark
25980 the closure as pending removal, don't call it anymore, and only
25981 remove it when we're finished emitting.
25983 * dependencyobject.h: Guard against calling closures which have
25984 been removed during emission of previous events in the same
25987 2008-04-10 Michael Dominic K. <mdk@mdk.am>
25991 * media.cpp: A straight-forward fix for "gray flashes" in comic and
25992 slideshow (#375275). It's circumventing a change to make downloaders
25993 async for Image. Jeff, maybe you can figure more?
25995 (The commit that broke the the slideshow was r99065, Jeff from
25998 2008-04-10 Michael Dominic K. <mdk@mdk.am>
26000 * shape.cpp: Little fix for new stretching algho by Stephane. Fixes the
26001 Showcase and test-shape-path-stretch2.xaml.
26003 2008-04-09 Chris Toshok <toshok@ximian.com>
26005 * stylus.cpp (Stroke::HitTestEndcapSegment): don't fail if root_1
26006 is invalid, as root_2 might be.
26008 2008-04-09 Chris Toshok <toshok@ximian.com>
26010 [ Fixes some odd behavior in
26011 http://www.thedatafarm.com/silverink/, and also fixes bug
26014 * panel.cpp (Panel::FrontToBack): Kind of a screwy change - we
26015 intersect the expose region with our RenderBounds, not our normal
26016 Bounds. This forces us to add the ink presenter to the render
26017 list even when the exposed area is just going to redraw a stroke,
26018 not the actual canvas rectangle. When we go to subtract, however,
26019 we still only subtract the canvas rectangle.
26021 * stylus.cpp (InkPresenter::OnPropertyChanged): invalidate the old
26022 stroke collection's bounds as well as the new stroke collection's
26024 (InkPresenter::OnCollectionChanged): when the collection has
26025 changed, we can't just use Invalidate() since that only
26026 invalidates the canvas bounds. We need to invalidate our render
26027 bounds to get rid of strokes that are outside the canvas bounds.
26028 Also, make sure to also invalidate the new bounds of the stroke
26029 collection (it will usually be empty, but do it anyway).
26030 (InkPresenter::ComputeBounds): add logic to compute the
26031 render_bounds here.
26032 (InkPresenter::GetRenderBounds): new method.
26034 * stylus.h (class InkPresenter): add GetRenderBounds, and also add
26035 an OnPropertyChanged method so we can deal with the stroke
26036 collection being assigned to something else.
26038 * uielement.h (class UIElement): as much as I hate to do this, add
26039 yet another type of bounds (RenderBounds). this is only here for
26040 the special case of the inkpresenter, which has the normal canvas
26041 bounds (the rectangle), the subtree bounds (which unions the
26042 canvas bounds with the bounds of strokes and children) and render
26043 bounds (which unions canvas bounds and stroke bounds.)
26045 2008-04-09 Jeffrey Stedfast <fejj@novell.com>
26047 * dependencyobject.cpp (resolve_property_path): Alias TextElement
26048 to TextBlock to work around some buggy beta versions of Blend.
26050 2008-04-09 Stephane Delcroix <sdelcroix@novell.com>
26052 * shape.cpp: Shape::ComputeStretchBounds: compute the stretch assuming
26053 the logical/shape bounds diff stays the same. It's IMHO as close as we
26054 can go without drawing and recalculating.
26056 2008-04-08 Jeffrey Stedfast <fejj@novell.com>
26058 * xaml.cpp: Cleaned up some of the debugging printf's and and
26059 wrapped them in d() to declutter console spewage when unneeded.
26060 (xaml_create_from_str): ctype functions take int arguments, where
26061 normal char values are in the range 0-255 - in order to work with
26062 non-GNU, need to cast from char to unsigned char.
26064 * error.h (class ParserErrorEventArgs): Avoid using the c++ ctor
26065 initializer stuff to be consistent with other classes.
26067 2008-04-08 Sebastien Pouliot <sebastien@ximian.com>
26069 * xaml.cpp: Fix (yesterday's fix) on parsing properties. Thanks
26072 2008-04-08 Michael Dominic K. <mdk@mdk.am>
26075 * clock.h: SkipToFill the automatic duration clock groups except if
26076 this is the root of all roots clock (the TimeManager's clock). Due to
26077 the idle_hint optimization, we don't process those clocks anyways.
26079 2008-04-08 Michael Dominic K. <mdk@mdk.am>
26084 * dependencyobject.cpp:
26085 * dependencyobject.h: Making sure that each property is animated only by
26086 a single animation at a time (the last one started).
26087 From Silverlight forums:
26089 "Keep in mind Silverlight only supports a single animation on a
26090 property at a time, so if you begin multiple animations on the same
26091 property, the last one will prevail."
26093 This prevents us from overriding Filling/HoldEnd animations by sb's
26096 The implementation is: for each prop we create a hash table (when
26097 needed) which stores objects (keys) + last AnimationStorage attached
26098 (values). When new AnimationStorage is attached to a prop, the last one
26099 is notified to stop updating the target (we don't touch the clock
26100 structure). And then there is some magic to handle destroy's etc.
26102 This fixes PopFly mouse enter/leave problems in the toolbox and the
26103 http://www.designwithsilverlight.com/tutorials/photoGallery/gallery.html
26104 problems. Fixes #375231, #362363.
26106 2008-04-07 Jeffrey Stedfast <fejj@novell.com>
26108 Fixes needed for Zombomatic
26110 * downloader.cpp (Downloader::GetDownloadedFilePart): When
26111 creating the full pathname for parts we are extracting, convert
26112 everything to lowercase since we need to treat archived filenames
26113 case-insensitively.
26114 (Downloader::GetUnzippedPath): Convert filenames from the zip
26115 archive to lowercase so that it is easier for us to find them
26116 case-insensitively on the filesystem once they are extracted.
26118 2008-04-07 Sebastien Pouliot <sebastien@ximian.com>
26120 * xaml.cpp: Fix parsing properties by ensure they start with the
26121 element name (and not something else). Fix crasher.
26123 2008-04-07 Michael Dominic K. <mdk@mdk.am>
26126 * src/shape.h: Compute the origin point as a separate step after
26127 computing the shape bounds and the stretch bounds. This fixes the
26128 recently broken sprawl.
26130 I think it also fixes other things. Before, given the way code was,
26131 the stretch_bounds would affect the origin *only* in the case of Path,
26132 in other cases (Line, Polygon, Polyline...) they would be ignored.
26134 2008-04-04 Chris Toshok <toshok@ximian.com>
26136 * stylus.cpp (Stroke::HitTestEndcapSegment): fix this method. it
26137 was missing a bunch of tests (basically it was intersecting
26138 infinite lines with ellipses, not segments), and some of the math
26141 2008-04-04 Jeffrey Stedfast <fejj@novell.com>
26143 Intended to fix bug #373462, but something else is preventing that
26144 site from working now...
26146 * media.cpp (MediaElement::SetSourceInternal): PartName is no
26147 longer a const char * argument, which means we take ownership of
26148 the PartName string.
26149 (MediaElement::SetSourceAsyncCallback): New method which is the
26150 async callback for SetSource().
26151 (MediaElement::SetSource): Reinitialize() right away.
26152 (MediaElement::SetSource): Clear out any pending SetSource async
26153 data, replacing it with the new downloader/part name info.
26154 (MediaElement::SetSource): Allow a NULL downloader object but make
26155 sure we don't crash in that case either.
26157 2008-04-04 Sebastien Pouliot <sebastien@ximian.com>
26159 * dependencyobject.cpp (resolve_property_path): Avoid crash on
26160 invalid syntax and leaks in other error cases. Fix #377039 (more
26161 test cases coming soon).
26163 2008-04-04 Jeffrey Stedfast <fejj@novell.com>
26165 * animation.cpp (KeyFrameCollection::GetKeyFrameForTime): Return
26166 immediately if the array len is 0, prevents a crash accessing
26167 sorted_list->pdata[0] when working backwards in the second
26168 for-loop. Fixes one of the crashes I found while investigating bug
26171 2008-04-04 Sebastien Pouliot <sebastien@ximian.com>
26173 * runtime.cpp: Don't crash in strcase_hash if the hashtable
26174 contains NULL values.
26176 2008-04-03 Chris Toshok <toshok@ximian.com>
26178 * runtime.cpp (Surface::InitializeWidget): disable the
26179 GDK_POINTER_MOTION_HINT_MASK stuff for now. we're not passing
26180 tests with it enabled.
26181 (Surface::motion_notify_callback): force the emission of a motion
26184 2008-04-03 Jeffrey Stedfast <fejj@novell.com>
26186 * runtime.cpp (Surface::SetCursor): Stylus cursor should map to
26187 the pencil cursor. Also updated Hand (which should be a
26188 left-pointing hand, not right-pointing) and also Eraser (we need
26189 to make our own icon for this, but I suck at art so I'll pass for
26192 2008-04-03 Michael Dominic K. <mdk@mdk.am>
26195 * shape.h: Calculate the logical extents when computing the shape bounds
26196 and pass them to the ComputeStretchBounds. They're currently not used in
26199 2008-04-03 Michael Dominic K. <mdk@mdk.am>
26201 * shape.cpp: Don't init the stretch matrix to identity on each
26202 Shape::ComputeShapeBounds. We want to be able to call it freely.
26204 2008-04-02 Michael Dominic K. <mdk@mdk.am>
26206 * geometry.cpp: Use the cairo_path_extents to calculate the logical
26207 bounds instead of faking small stroke.
26209 2008-04-02 Michael Dominic K. <mdk@mdk.am>
26212 * shape.h: Adding new parameter (bool logical) to all the
26213 Shape::ComputeShapeBounds functions and overrides. See prev commit for
26214 explanation of what is logical bounds.
26216 Currently all clients use logical == false. Just adding this
26219 2008-04-02 Michael Dominic K. <mdk@mdk.am>
26224 * uielement.cpp: Adding new parameter (bool logical) to all the
26225 Geometry::ComputeBounds functions and overrides. Calculating logical
26226 bounds means calculating bounds without stroke included. Ie. a line
26227 (0,0) - (100, 0) has logical bounds of width=100, height=0, no matter
26228 what the stroke is.
26230 Not used right now, will be used in just a few commits (all current
26231 ComputeBounds clients call it will logical == false).
26233 2008-04-02 Michael Dominic K. <mdk@mdk.am>
26235 * shape.cpp: Don't automatically compute the stretch bounds when
26236 computing shape bounds. Instead, compute it as a separate step in
26237 Shape::ComputeBounds.
26239 2008-04-03 Chris Toshok <toshok@ximian.com>
26241 * uielement.cpp (UIElement::EmitMouseLeave): turns out that,
26242 contrary to msdn2, MS *is* indeed emitting this event with
26243 non-null eventargs. it's just an EventArgs object, not a
26246 2008-04-03 Jeffrey Stedfast <fejj@novell.com>
26248 * dependencyobject.cpp (EventObject::Emit): Unref the calldata
26249 even in the "no such event" exception case.
26251 2008-04-03 Larry Ewing <lewing@novell.com>
26253 * xaml.cpp: (expat_parser_error): translate XML_ERROR_NO_ELEMENTS
26254 into appropriate error code.
26256 2008-04-03 Larry Ewing <lewing@novell.com>
26258 * xaml.cpp: Generate errors when trying to set readonly properties.
26260 2008-04-03 Larry Ewing <lewing@novell.com>
26262 * xaml.cpp: make sure we set an error if the property name isn't
26265 * runtime.cpp: make it legal to attach to a NULL toplevel, hook up
26268 2008-04-03 Larry Ewing <lewing@novell.com>
26270 * runtime.cpp (Surface::expose_to_drawable): make sure we take
26271 allocation.x and allocation.y into account when deciding not to
26272 draw. Should fix the disappearing gtksilver widget reported on irc.
26274 2008-04-02 Larry Ewing <lewing@novell.com>
26276 * xaml.cpp: flush character data at the end of property elements
26279 2008-04-02 Jackson Harper <jackson@ximian.com>
26281 * xaml.cpp: Add the element name for this error.
26283 2008-04-02 Chris Toshok <toshok@ximian.com>
26285 * stylus.cpp (Stroke::HitTestEndcapSegment): fix up some math.
26286 (Stroke::HitTestEndcapPoint): same.
26287 (point_gte_line): new method.
26288 (point_lte_line): new method.
26289 (Stroke::HitTestSegmentPoint): use point_gte_line and
26290 point_lte_line to determine if the point is inside the segment.
26291 (global): wrap all spew in DEBUG_HITTEST.
26293 2008-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
26295 * pipeline.cpp, mplayer.cpp, pipeline.h: Remove SeekToStart completely, it's
26298 2008-04-02 Jeffrey Stedfast <fejj@novell.com>
26300 * media.cpp (MediaElement::UpdatePlayerPosition): Cast to same
26301 integer type when comparing.
26303 * playlist.cpp (Playlist::OnMediaEnded): Prevent a segfault in the
26304 debugging printfs. Fixes bug #375273.
26306 2008-04-01 Chris Toshok <toshok@ximian.com>
26308 * xaml.cpp: back out the SetSurface call removal.
26310 * dependencyobject.cpp (EventObject::unref): instead,
26311 SetSurface(NULL) here before we delete the object.
26313 2008-04-01 Chris Toshok <toshok@ximian.com>
26315 * control.cpp (Control::InitializeFromXaml): make sure to call
26316 SetSurface(NULL) on the old real_object since we're detaching it
26317 from the tree. Call SetSurface on ourselves (really, should just
26318 be the real_object, right?) before calling the real_object methods
26319 that would cause dirty stuff to happen.
26321 * xaml.cpp (create_custom_element): don't call SetSurface here, it
26322 will cause problems if there's a parser error (since elements
26323 can/will be on the surface's dirty list after they're destroyed.)
26324 (default_create_element_instance): same.
26326 2008-04-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
26328 * playlist.cpp, playlist.h: A lot of fixes according to the tests.
26329 * mplayer.h, mplayer.cpp: Initialize the rgb buffer. Add a start_pts to
26330 specify where in the stream we start and (playlists can specify a
26331 starting point which isn't in the beginning), and set the duration from
26332 the playlist (if the playlist has it).
26333 * media.cpp: MediaElement::SetMedia: Handle the case if mplayer returns
26334 false from MediaPlayer::Open. MediaElement::MediaOpened: Handle the case
26335 if the recursive playlist couldn't be replaced.
26337 2008-04-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
26339 * media.h: Added MediaElement::GetPlaylist.
26341 2008-04-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
26343 * type.cpp, type.cpp.in, type.h, type.h.in, value.cpp, value.h, value.h.in:
26344 Remove Type::NPOBJ, it's not needed.
26346 2008-04-01 Michael Dominic K. <mdk@mdk.am>
26348 * animation.cpp: Since now the clocks are synced we don't need to
26349 recursively check the states in the teardown on completed.
26351 2008-04-01 Michael Dominic K. <mdk@mdk.am>
26354 * clock.h: Getting rid of the nasty clock desyncing (setting ClockGroup
26355 manually to Stopped but not touching the state of children).
26357 We do this by introducing a new idle_hint on ClockGroup. If idle_hint is
26358 set, we don't tick the ClockGroup no matter what the state is. Idle_hint
26359 is set when all children of ClockGroup have state != Active (ie. are
26360 filling). This can be seen as "optimization" -- not to dumbly process
26361 filling clocks which keep setting same value all the time (it creates
26362 insane recursion ie. in Showcase making it unusable). Silverlight seems
26363 to do something very similiar.
26365 Before this commit a same effect was achieved by the said "desyncing" --
26366 forcing the ClockGroup to Stopped. This approach however is a bit more
26369 2008-04-01 Michael Dominic K. <mdk@mdk.am>
26371 * animation.cpp: Chain to parent's Clock::Stop in AnimationClock::Stop.
26373 2008-04-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
26375 * pipeline.cpp: Use base_unref, base_unref_delayed doesn't exist anymore.
26377 2008-04-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
26379 * value.cpp: Remove a few warnings which might give false positives now.
26381 2008-04-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
26383 * dependencyobject.h, dependencyobject.cpp: EventObject::unref: check if
26384 we're being unreffed on the main thread, if not, call unref_delayed.
26386 2008-04-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
26388 * runtime.cpp, runtime.h: Added a Surface::InMainThread.
26390 2008-04-01 Fernando Herrera <fherrera@novell.com>
26392 * media.cpp: Remove the request position function when aborting the
26395 2008-04-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
26397 * media.cpp, media.h, mplayer.cpp, mplayer.h: Add a dtor parameter to
26398 MediaElement::Reinitialize and MediaPlayer::Close to specify if we're
26399 being called from the destructor, and if so, null out the element field
26400 of the MediaPlayer, so that we don't access a destructed media element.
26401 Add an async version of MediaPlayer::EnqueueFrames, so that the audio
26402 threads can request more data in a thread-safe manner.
26404 2008-04-01 Fernando Herrera <fherrera@novell.com>
26407 * pipeline.h: Support for live mms streams, that have packet_count as
26408 0 and return false for CanSeekToPts.
26410 2008-03-31 Chris Toshok <toshok@ximian.com>
26412 * namescope.h, namescope.cpp: make no semblance of having a
26413 superior namescope implementation (where they get transported
26414 around with the subtree they're attached to when it's
26415 removed/re-added to the hierarchy.) Instead follow MS's broken
26416 implementation where temporary namescopes are completely removed
26417 when merged into another one.
26419 * collection.h, collection.cpp (Collection::MergeNames): factor
26420 out some common code from Add, Insert, and SetVal. Also, deal with
26421 the fact that merging namescopes now really adds all the names to
26422 the parent namescope, so clear the old namescope.
26423 (Collection::SetVal): don't just unregister the old toplevel name,
26424 but all the names in the subtree.
26425 (Collection::Remove): same.
26426 (Collection::Clear): same.
26427 (Collection::UnregisterAllNamesRootedAt): override DO's method,
26428 recursing into all our children.
26429 (Collection::RegisterAllNamesRootedAt): same.
26430 (VisualCollection::VisualRemoved): clear the IS_LOADED flag so
26431 UIElement::OnLoaded is called again, and <BeginStoryboard>
26432 elements restart when the subtree is added to the hierarchy again.
26434 * control.h, control.cpp (Control::UnregisterAllNamesRootedAt):
26435 override and forward onto real_object.
26436 (Control::RegisterAllNamesRootedAt): same.
26438 * dependencyobject.cpp (DependencyObject::ClearValue): add a
26439 parameter to allow us to specify *not* to notify listeners of the
26440 property change. we do this with the NameScope property, which
26441 noone should be listening too. It was causing a tremendous
26442 performance hit when merging a lot of namescopes (as we do in
26443 inkStylusPointCount.htm)
26444 (DependencyObject::UnregisterAllNamesRootedAt): used when a DO is
26445 removed from the hierarchy, we need to unregister all the names
26447 (DependencyObject::RegisterAllNamesRootedAt): used when a DO is
26448 added to the hierarchy, if it doesn't have a temporary
26449 namescope (in which case we just merge it).
26451 2008-03-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
26453 * pipeline.cpp, pipeline.h: MemorySource: Add a value specifying if the
26454 MemorySource owns the memory or not (if it will be freed upon
26455 destruction or not).
26457 2008-03-31 Jeffrey Stedfast <fejj@novell.com>
26459 * stylus.cpp (Stroke::HitTestEndcap): Fixed a bug where the
26460 for-loop would only use every other point as a starting point for
26461 a segment. E.g. if you had points a, b, c, d and e - the code only
26462 checked segments ab, cd, and e when it should have been checking
26463 ab, bc, cd, and de.
26465 2008-03-31 Fernando Herrera <fherrera@novell.com>
26467 * downloader.cpp: Check if aborted before cheking for requested
26470 2008-03-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
26472 * pipeline.cpp, pipeline.h: Moved locking down to IMediaSource from
26474 * playlist.cpp: Updated according to pipeline changes.
26475 * mplayer.h: Fix SetState to not overwrite current bits, only current state.
26476 * media.h, media.cpp: Rework buffering progress to use the available time of
26477 media available (pts) instead of doing some funny math on file
26479 * mplayer.cpp: Don't allow SetTargetPts if we're waiting for a seek.
26481 2008-03-31 Michael Dominic K. <mdk@mdk.am>
26483 * animation.cpp: Don't Stop the Storyboard root_clock before begining
26484 the Storyboard again, just silently tear it down.
26486 Calling Stop resets the property values to base which is something we
26487 don't want. When Begin () is called on Sb in SL, the last animated
26490 2008-03-31 Michael Dominic K. <mdk@mdk.am>
26493 * animation.h: Adding Storyboard::DetachClockGroupFromParent () that
26494 works similar to Teardown but doesn't destroy the clock/animation
26495 hierarchy. We need this hierarchy to ie. reset prop values to base when
26496 Storyboard::Stop is called manually.
26498 When Storyboard is completed, call DetachClockGroupFromParent (if not
26499 Teardown). Otherwise the Storyboard will ghostly change state with parent
26502 2008-03-31 Michael Dominic K. <mdk@mdk.am>
26504 * animation.cpp: Slightly reworking the clock_is_fully_stopped_recursive
26505 to check for NULL and report stopped == true when both ClockGroup state
26506 is Stopped and all children are Stopped.
26508 To be honest, this never currently reports Stopped == true as we do
26509 intentional state desync when storyboard reaches end -- setting the
26510 ClockGroup state to Stopped but keeping the children in Active/Filling.
26511 This *has* to go away.
26513 2008-03-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
26515 * src.mdp: Updated.
26517 2008-03-28 Jeffrey Stedfast <fejj@novell.com>
26519 * utils.cpp (TextStream::Read): Better handling of iconv() failure
26522 2008-03-28 Chris Toshok <toshok@ximian.com>
26524 * animation.cpp, animation.h: remove Storyboard::FindSurface -
26525 EventObject::GetSurface() always returns the right thing.
26526 Override SetSurface to check whether we're being detached from or
26527 attached to a surface, and pause or resume the clock in response.
26528 This fixes some issues in storyboard_EnterLeaveSemantics.
26530 2008-03-28 Chris Toshok <toshok@ximian.com>
26532 * dependencyobject.h,
26533 dependencyobject.cpp (DependencyObject::SetSurface): new method,
26534 set the surface for all our DependencyObject subclassed property
26537 * collection.h, collection.cpp (Collection::Add): SetSurface work.
26538 (Collection::Insert): same.
26539 (Collection::SetVal): same.
26540 (Collection::Remove): same.
26541 (Collection::RemoveAt): same.
26542 (Collection::Clear): same.
26543 (Collection::SetSurface): new method, iterate over all children
26544 setting the surface.
26545 (VisualCollection): remove surface logic here.
26546 (VisualCollection::VisualAdded): same.
26547 (VisualCollection::VisualRemoved): same.
26549 2008-03-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
26551 * mplayer.cpp: Clear all queues after a seek has completed.
26553 2008-03-28 Jeffrey Stedfast <fejj@novell.com>
26555 * text.cpp (deobfuscate_font): Updated for CopyFileTo() rename.
26557 * downloader.cpp (Downloader::CleanupUnzipDir): Updated for
26558 RemoveDir() rename.
26559 (create_unzipdir): Updated for MakeTempDir() rename.
26561 * utils.cpp (MakeTempDir): Renamed from make_tmpdir() to try and
26562 be more consistent with moonlight API naming convensions.
26563 (RemoveDir): Renamed from moon_rmdir().
26564 (CopyFileTo): Renamed from moon_copy_file()
26566 2008-03-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
26568 * debug.cpp: Fix warning.
26570 2008-03-28 Michael Dominic K. <mdk@mdk.am>
26572 * clock.cpp: Fixing the clock repeat for duration-based
26575 Fixes the clock14.xaml and clock31.xaml tests. All 31 clock tests are
26576 passing now (same behavior as in SL).
26578 2008-03-28 Michael Dominic K. <mdk@mdk.am>
26580 * clock.cpp: In ComputeNewTime: when we're moving backward and hitting
26581 the bound decrease the repeat_count no matter what (if auto-reversed or
26582 not). This makes the auto-reversed storyboard work.
26584 Fixes the clock7.xaml and clock30.xaml. The only clock test broken now
26587 2008-03-28 Michael Dominic K. <mdk@mdk.am>
26589 * animation.cpp: Teardown the storyboard in Completed only if the root
26590 clock is stopped AND all the children are stopped too. After teardown we
26591 loose the ability to reset-back the values and Completed is
26592 fired always, even if the clock is filling (a filling clock should reset
26595 This ie. fixes http://www.idcorporate.com.ar/ and other sites that use
26596 the popular methodology of beginning a filling Storyboard on MouseEnter
26597 and stopping it on MouseLeave.
26599 2008-03-27 Michael Dominic K. <mdk@mdk.am>
26601 * runtime.cpp: Ignore the enter/leave crossing events coming as a
26602 result of grab/press started/finished.
26604 2008-03-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
26606 * uielement.cpp, pipeline.h, media.cpp, brush.cpp: Update according to
26607 MediaPlayer changes.
26608 * mplayer.cpp, mplayer.h: Major cleanup in MediaPlayer: make all fields
26609 private, and add public accessors when required. Remove all boolean
26610 fields and add a single bit/state field with its corresponding enum and
26611 public accessors. Removed IncTargetPts, StopThreads and PauseInternal,
26612 no longer used. Removed unused defines. Made video and audio structures
26613 nested inside MediaPlayer instead of pointers (and queue inside
26614 video/audio), avoids pointer accesses and additional malloc/frees, since
26615 they were always created anyways. Don't seek to anywhere in Stop if
26616 we're stopping because we're closing, since it may cause crashes if
26617 we're closing because the MediaElement is being destructed (it may cause
26618 the MediaElement to be resurrected). Made public methods private
26621 2008-03-28 Fernando Herrera <fherrera@novell.com>
26623 * asf/asf.cpp: Use the pts == 0 optimization before trying to
26627 * downloader.h: Add functions to allow request a remote postition.
26632 * pipeline.h: Implement SeekToPts for mms:// sources.
26634 2008-03-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
26636 * dependencyobject.h: Detect an unrecoverable error condition with
26637 refcounting (reffing an object with refcount of 0), and abort instead of
26638 crashing randomly and insecurely later on.
26640 2008-03-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
26642 * mplayer.h, mplayer.cpp: Remove more unused fields in MediaPlayer.
26644 2008-03-27 Jeffrey Stedfast <fejj@novell.com>
26646 * downloader.cpp (Downloader::GetResponseText): Use the new
26649 * utils.cpp (TextStream::Open): Fixed the BOM checking, had LE/BE
26652 * xaml.cpp (xaml_create_from_file): Oops, if we read 0 bytes, make
26653 sure to exit the loop ;-)
26655 2008-03-27 Jeffrey Stedfast <fejj@novell.com>
26657 * xaml.cpp (xaml_create_from_file): Use the new TextStream class
26658 instead of doing things the hard way. Might be more performant,
26659 definitely won't malloc/free nearly as much. Also fixed a bug
26660 where leading lwsp might be larger than our read buffer.
26662 * utils.cpp (TextStream): New class for reading text input
26663 streams, converting them to UTF-8 as they are read.
26665 * downloader.cpp (Downloader::Send): Handle the case where the
26666 attached surface is NULL.
26667 (Downloader::GetResponseText): Handle zero-length files. Also,
26668 nul-terminate the returned buffer (which is now a char* rather
26669 than a void*) since it is clear that the javascript expects to be
26670 able to use this value as a string buffer.
26672 2008-03-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
26674 * mplayer.h, mplayer.cpp: Don't create any audio threads until we're
26675 requested to play audio. Don't hold the lock when polling.
26677 2008-03-26 Jeffrey Stedfast <fejj@novell.com>
26679 * downloader.cpp (Downloader::SendInternal): New method that is
26680 basically the same as the old ::Send().
26681 (Downloader::Send): Queue the SendInternal() call via
26682 TimeManager's TickCall API.
26684 2008-03-26 Chris Toshok <toshok@ximian.com>
26686 * dependencyobject.h, dependencyobject.cpp (class EventObject):
26687 add RemoveMatchingHandlers variants that let you pass in a
26688 predicate to test event handlers with.
26690 2008-03-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
26692 * pipeline.cpp, pipeline.h: ASFDemuxer: updated according to asf
26693 changes. Added a MemoryStream.
26695 * media.cpp: Updated according to API changes.
26697 2008-03-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
26699 * mplayer.cpp, mplayer.h: Add a new state to the audio:
26700 WaitingForData, in which case we don't poll on that audio
26701 node (since the hardware will just tell us it's ready to recieve
26702 data). Fixes audio using 100% cpu after when it runs out of
26703 data (either because of network hiccup or the stream finished).
26705 2008-03-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
26707 * pipeline.cpp, mplayer.cpp, pipeline.h: Made
26708 IMediaStream::selected private and add accessors.
26710 2008-03-26 Stephane Delcroix <sdelcroix@novell.com>
26713 * shape.cpp: set the dash caps for all the shapes, draw start/end caps
26714 on line and polylines.
26716 2008-03-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
26718 * mplayer.cpp: Remove unused fields.
26720 2008-03-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
26722 * debug.cpp: Correctly compute base addresses of libraries, and use a
26723 thread-safe version of strtok.
26725 2008-03-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
26727 * runtime.h, runtime.cpp, pipeline.cpp: Reverse the meaning of our YUV flag
26728 - it's now necessary to explicitly disable it in order to get rid of it
26729 instead of relying on a default flag to have the right value in order to
26730 get it. Makes video work with mopen again.
26732 2008-03-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
26734 * pipeline.cpp: Fix a crash.
26736 2008-03-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
26738 * mplayer.cpp: Remove Instance (), it's redundant.
26739 * mplayer.h: AudioPlayer: Remove Instance (), it's redundant. Synchronize
26740 everything in the audio player with one semaphore, it simplifies things
26741 and removes a couple of problems helgrind found.
26742 * pipeline.cpp: ~Media: Add a nullcheck. Media::Initialize: Initialize the
26743 audio player as well. Use delayed unreffing in destructors which may be
26744 called on worker threads.
26746 2008-03-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
26748 * runtime.cpp, runtime.h: Remove the pending unref stuff from Surface.
26749 * dependencyobject.cpp: Remove the surface-based delayed unloading, it's not
26750 thread-safe and making it thread-safe isn't worth it. Also use a pthread
26751 mutex instead of a glib mutex, since helgrind reports a lot of false
26752 positives for glib mutexes. Hold the mutex for the smallest amount of
26753 time possible, making it unnecessary to use a recursive mutex.
26755 2008-03-26 Michael Dominic K. <mdk@mdk.am>
26757 * shape.cpp: Reverting the clip changes, it was bolox.
26759 2008-03-25 Jeffrey Stedfast <fejj@novell.com>
26761 * pipeline.cpp (Mp3FrameReader::EstimatePtsPosition): Get rid of
26762 the assert - it was only needed during implementation to make sure
26763 the bsearch worked correctly.
26764 (Mp3FrameReader::Seek): Same.
26766 2008-03-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
26768 * media.cpp: Don't access any TimeManager instance from another thread, just
26769 call the static TimeManager::InvokeOnMainThread.
26771 2008-03-25 Michael Dominic K. <mdk@mdk.am>
26773 * src/shape.cpp: Shape is empty always when it's bounds are <= 0.0, even
26774 if Width/Height was specified. Fixes a bogus warning about infinity
26777 2008-03-25 Michael Dominic K. <mdk@mdk.am>
26779 * src/shape.cpp: When setting the clipping for the shape also include
26780 the transformations coming from stretching. This fixes
26781 test-shape-line-stretch3 test and the missing stripes on Silverlight
26784 2008-03-24 Chris Toshok <toshok@ximian.com>
26786 * runtime.h (class Surface): add
26787 Surface::PropagateDirtyFlagToChildren.
26789 * dirty.cpp (Surface::PropagateDirtyFlagToChildren): factor this
26790 duplicated code out of ProcessDownDirtyElements.
26792 2008-03-24 Chris Toshok <toshok@ximian.com>
26794 * panel.cpp (Panel::FrontToBack): remove the tree walking
26795 code (where we walked up the hierarchy looking for cases where we
26796 shouldn't subtract.) Instead, we always subtract if the local
26797 state says we can. Instead of forcing all leaf elements to walk
26798 up to their parent panel, we assume they'll operate on local state
26799 as well, and give them a copy of the region to subtract their
26800 bounds from, instead of the real region. We are sneaky.
26802 * uielement.cpp (UIElement::FrontToBack): Operate on our local
26803 state only, no walking up the tree.
26805 2008-03-24 Jeffrey Stedfast <fejj@novell.com>
26807 * pipeline.cpp (mpeg_parse_header): Fix the MPEG layer parsing, it
26808 was seemingly getting layer 1 and layer 2 backwards.
26809 (mpeg_frame_length): Seems like we are never supposed to add 2
26810 bytes for 16bit crc?
26812 * layout.cpp (TextLayout::LayoutWrap): If the glyph advance is 0,
26813 then don't bother applying kerning. Fixes 2 cases in
26814 LineBreakClasses.htm
26815 (TextLayout::LayoutWrap): Disable breaking after a
26816 G_UNICODE_BREAK_AFTER if we can break before the word as this
26817 seems to fix the last test case in LineBreakBasic1.htm
26818 (TextLayout::LayoutWrap): Reverted a fix that introduced a
26819 regression but didn't fix any known test cases.
26821 2008-03-21 Michael Dominic K. <mdk@mdk.am>
26823 * src/runtime.cpp: When calling gdk_window_get_pointer in
26824 motion_notify_ to pop more hints actually use the results as they're
26825 more valid than x,y in the event passed. Without doing so, we're not
26826 getting the last mouse coords.
26828 Fixes the nasty problem that MouseEnter/Leave is not called once in a
26831 2008-03-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
26833 * brush.cpp, media.cpp, mplayer.cpp, mplayer.h: Refcount MediaPlayer. Rename
26834 MediaPlayer::GetSurface to GetCairoSurface so that it doesn't conflict
26835 with EventObject::GetSurface.
26837 2008-03-20 Jeffrey Stedfast <fejj@novell.com>
26839 * font.cpp (TextFont::GetGlyphInfo): Comment out the fixed-width
26842 * text.cpp (deobfuscate_font): New helper function used by
26843 TextBlock and Glyphs.
26844 (TextBlock::DownloaderComplete): Check for obfuscated fonts.
26845 (Glyphs::DownloaderComplete): Same.
26847 * font.cpp (DecodeObfuscatedFontGUID): New function to decode the
26848 GUID from a string.
26849 (DeobfuscateFontFileWithGUID): Deobfuscate a font file in-place.
26850 (TextFont::OpenFontDirectory): Renamed from OpenZipArchiveFont()
26851 since we no longer get passed zip files. Instead of extracting
26852 fonts from a zip archive, we now index the fonts in the
26853 directory (if they haven't already been indexed) and then try to
26854 find the best matching font from the indexed fonts.
26855 (IndexFontDirectory): New function to index all fonts in a
26856 directory (and all subdirs).
26857 (TextFont::TextFont): Changed for other API changes.
26859 2008-03-20 Jeffrey Stedfast <fejj@novell.com>
26861 * downloader.cpp (Downloader::IsDeobfuscated)
26862 (Downloader::SetDeobfuscated, Downloader::SetDeobfuscatedFile):
26863 Some new methods for replacing the original downloaded file with
26864 another tmp file that will need to be unlinked when the downloader
26865 is destroyed or a new file is requested.
26867 * utils.cpp (moon_copy_file): New convenience function.
26869 2008-03-20 Jeffrey Stedfast <fejj@novell.com>
26871 * downloader.cpp (Downloader::Downloader): Initialize the unzipdir
26872 and unzipped state variables. Get rid of part_hash, no longer
26874 (Downloader::CleanupUnzipDir): New method to cleanup the files
26875 extracted from any zip files we downloaded.
26876 (Downloader): Call CleanupUnzipDir ().
26877 (Downloader::GetDownloadedFile): New method that gets the original
26878 untouched downloaded file path.
26879 (Downloader::DownloadedFileIsZipped): New method to check to see
26880 if the downloaded file is a zip archive.
26881 (Downloader::GetDownloadedFilePart): A new method that replaces
26882 the old GetResponseFile() API, behaves the same as the old API.
26883 (Downloader::GetUnzippedPath): New method to get the unzip
26884 directory path (and unzip the downloaded file if it hasn't already
26886 (Downloader::Open): Cleanup any extracted zip files.
26888 * utils.cpp (moon_rmdir): New convenience function.
26890 2008-03-20 Larry Ewing <lewing@novell.com>
26892 * runtime.cpp (Surface::ShowFullScreenMessage): make sure we set
26893 the surface first so that the changes to the properties cause
26896 2008-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
26898 * src.mdp: Added new files.
26900 2008-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
26902 * pipeline.h: Added CanSeekToPts and SeekToPts to IMediaStream.
26904 2008-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
26906 * pipeline.h: Added two more error conditions.
26908 2008-03-19 Jeffrey Stedfast <fejj@novell.com>
26910 * font.cpp (TextFont::GetGlyphInfo): Use a different approach to
26911 caching glyphs. Try to take full advantage of the pre-allocated
26912 glyphs array before clobbering previously loaded glyphs.
26914 2008-03-19 Michael Dominic K. <mdk@mdk.am>
26916 * src/dependencyobject.cpp: Making the prop resolving a bit more
26917 gracefull (smart) in case of common mistakes.
26919 Solves test-crash-gracefull-prop-resolving.xaml.
26921 2008-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
26923 * pipeline.cpp: We need to unlock the mutex before joining the
26924 thread. Fixes a dead-lock.
26926 2008-03-19 Geoff Norton <gnorton@novell.com>
26928 * yuv-converter.cpp: Use xmm0 to store a load value to avoid a
26931 2008-03-19 Geoff Norton <gnorton@novell.com>
26933 * yuv-converter.cpp: More 64-bit fixes
26935 2008-03-19 Geoff Norton <gnorton@novell.com>
26937 * yuv-converter.cpp: Fix the test/cmp on x86-64
26939 2008-03-18 Geoff Norton <gnorton@novell.com>
26941 * yuv-converter.cpp: Fold RESTORE_COLOR_MODIFIERS into
26942 CALC_COLOR_MODIFIERS and prepare our own branches rather than trusting
26943 gcc. The aligned load/store version of CALC_COLOR_MODIFIERS was
26944 clobbering (x)mm3 (green coefficient) when processing the high order
26945 pels. I've reordered the method to remove some useless load/calc
26946 patterns that were there simply for readability and fixed the
26949 2008-03-18 Jeffrey Stedfast <fejj@novell.com>
26951 * font.cpp (TextFontDescription::CreatePattern): Always return the
26953 (TextFont::Load): No longer takes a fromFile argument.
26954 (TextFont::TextFont): Cache using the original pattern (which is
26955 what we really wanted to do originally, but were caching the
26956 "closest-match" pattern before which was wrong).
26957 (TextFont::GetGlyphInfo): Use FT_Get_Char_Index() rather than
26958 FcFreeTypeCharIndex(). Doesn't fix any bugs, just avoids use of
26959 wrapper API that is unnecessary.
26960 (TextFont::GetGlyphInfo): Added a gross hack for *Che fonts.
26962 2008-03-18 Geoff Norton <gnorton@novell.com>
26964 * yuv-converter.cpp: 768bits != 768bytes. Implement prefetching the
26965 cache lines for the Y plane.
26967 2008-03-18 Andrew Jorgensen <ajorgensen@novell.com>
26969 * plugin-ffmpeg.cpp: Remove avformat dependency (not needed anymore)
26970 * plugin-ffmpeg.h: Fix conditional swscale inclusion
26972 2008-03-18 Michael Dominic K. <mdk@mdk.am>
26975 * animation.h: Adding a new virtual method GetValueKind to Animation
26976 that returns the kind/type of values that given animation generates
26977 (doubles, points, etc.).
26979 Modyfying the HookupStorage to check if the animation type matches the
26980 type that the animated property expects. If it doesn't, bail out with a
26981 helpfull warning in the style of:
26983 "Ellipse.Fill property value type is 'Brush' but animation type is
26986 This fixes a crash in test-crash-color-anim-on-solid.xaml and all
26987 crashes where we try to animate ie. a color property using doubles.
26989 2008-03-18 Michael Dominic K. <mdk@mdk.am>
26991 * animation.cpp: Even more smoothing for KeySpline.
26993 2008-03-18 Michael Dominic K. <mdk@mdk.am>
26995 * dependencyobject.cpp: Enabling back the inheritance test for property
26996 resolving but only when dealing with non-attached properties.
26998 2008-03-17 Geoff Norton <gnorton@novell.com>
27001 * pipeline-ffmpeg.cpp:
27002 * pipeline-ffmpeg.h:
27003 * swscale-converter.cpp:
27004 * swscale-converter.h: Refactor the swscale based yuv2rgb converter
27005 out to a seperate file so it can be included optionally in the build.
27007 2008-03-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
27009 * mplayer.cpp: Show error message, not only error number, upon thread
27012 2008-03-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
27014 * playlist.cpp, playlist.h: Add a way to determine if the playlist was
27015 created to play a single file, or if it was created from an asx file
27018 2008-03-17 Chris Toshok <toshok@ximian.com>
27020 * dependencyobject.cpp (EventObject::EventObject): reorder things
27023 2008-03-17 Geoff Norton <gnorton@novell.com>
27025 * yuv-converter.cpp: __attribute ((aligned ())) can be ignored
27026 for locals. Use posix_memalign and share the instance for the
27027 lifespan of the converter.
27029 2008-03-17 Jeffrey Stedfast <fejj@novell.com>
27031 * font.cpp (FontPackFileFace::FontPackFileFace): Now takes an
27032 index argument, apparently FreeType2 always set face->face_index
27033 to 0 for these type fonts, so don't rely on it being accurate.
27034 (FontPack::CacheFileInfo): Pass the index value as an argument to
27035 FontPackFileFace's ctor.
27036 (TextFont::TextFont): Do hash lookups based on the matched
27037 pattern, not the original pattern passed in.
27039 2008-03-17 Jeffrey Stedfast <fejj@novell.com>
27041 * text.h: Added #include "layout.h"
27043 * font.cpp: Removed font.cpp's layout logic which has been
27044 rewritten in layout.cpp.
27045 (TextFont::HasGlyph): It seems that Silverlight may wrap text
27046 differently depending on whether the glyph is in the font?
27048 * layout.cpp (TextLayout::LayoutWrap): More tweaking action...
27050 2008-03-17 Geoff Norton <gnorton@novell.com>
27052 * yuv-converter.cpp: Ensure that our pointer alignment checks are
27055 2008-03-17 Michael Dominic K. <mdk@mdk.am>
27057 * animation.cpp: Interpolate linearly between keyspline values. This
27058 fixes the jags in test-animation-slow-keyspline.xaml.
27060 2008-03-17 Michael Dominic K. <mdk@mdk.am>
27062 * animation.cpp: Fixes to the way we generate the KeySpline values to be
27063 more smooth an precise.
27065 2008-03-17 Larry Ewing <lewing@novell.com>
27067 * runtime.cpp: go ahead and invalidate the toplevel before
27068 cleaning everything up. remove the disconnect call in
27069 DestroyWidget, all the handlers should be ok with getting called
27070 on fullscreen or the normal widget.
27072 2008-03-14 Jeffrey Stedfast <fejj@novell.com>
27074 * layout.cpp (TextLayout::LayoutWrap): Added some improved unicode
27075 line breaking logic.
27077 2008-03-14 Geoff Norton <gnorton@novell.com>
27079 * yuv-converter.cpp: Remove some dead code.
27081 2008-03-14 Geoff Norton <gnorton@novell.com>
27083 * mplayer.cpp: We actually need to align % 64 bytes on a 16 byte
27084 bounary. Each pel will expand to 4 bytes. Since we process 16
27085 pels at a time in SSE2 we need 64 output bytes per iteration.
27087 * yuv-converter.cpp: Remove the rest of the unaligned move/stores
27089 2008-03-14 Sebastien Pouliot <sebastien@ximian.com>
27091 * xaml.cpp: (flush_char_data) free data inside GString since the
27092 Value constructed around it creates it's own copy.
27094 2008-03-14 Geoff Norton <gnorton@novell.com>
27096 * pipeline-ffmpeg.cpp: Use posix_memalign for the YUV data buffers
27097 to get a 16byte alignment for SSE2.
27098 * yuv-converter.cpp: Remove most of our unaligned load/stores.
27100 2008-03-14 Larry Ewing <lewing@novell.com>
27104 * eventargs.h, enventargs.cpp:
27105 * type.h, type.cpp: make EventArgs a subclass of DependencyObject
27106 and all that entails. Still need to look over the properties.
27108 * runtime.cpp, runtime.h: expose EmitError for now.
27110 2008-03-14 Larry Ewing <lewing@novell.com>
27112 * mplayer.cpp (MediaPlayer::Open): use posix_memalign to allocate
27113 with a a 16bit alignment for the yuv converter.
27115 2008-03-14 Sebastien Pouliot <sebastien@ximian.com>
27117 * xaml.cpp: (expat_parser_error) ParserErrorEventArgs free it's
27118 own copy of the message.
27120 2008-03-14 Jeffrey Stedfast <fejj@novell.com>
27122 * font.cpp (TextRun::TextRun): Can't drop non-printable chars
27123 because soft-hyphen is apparently non-printable.
27125 2008-03-14 Jeffrey Stedfast <fejj@novell.com>
27127 * text.cpp (Glyphs::Layout): Check for NULL glyphs (which can
27128 happen now if the glyph does not exist in the font).
27129 (Glyphs::Render): Same.
27131 * font.cpp (TextFont::GetGlyphInfo): Added a new GetGlyphInfo
27132 which takes a unichar and index. This is now the main
27133 implementation that the other GetGlyphInfo() and
27134 GetGlyphInfoByIndex() use. The glyph table is now indexed by index
27135 rather than unichar.
27137 2008-03-14 Jeffrey Stedfast <fejj@novell.com>
27139 * text.cpp (Glyphs::Layout): Don't error out on (1:1) clusters
27140 without a specified index, these are ok.
27142 2008-03-14 Michael Dominic K. <mdk@mdk.am>
27144 * brush.cpp: In ImageBrush, if the image has not been downloaded
27145 yet, draw nothing like SL does -- instead of the grayish shadow.
27147 2008-03-14 Michael Dominic K. <mdk@mdk.am>
27149 * dependencyobject.cpp: Check the types of objects when
27150 resolving_property_paths and some more verbosity to the error
27151 reporting. Now test-crash-non-existing-animation-target-prop3
27152 fails with the proper warning.
27154 Also, terminate first on first error found.
27156 2008-03-14 Michael Dominic K. <mdk@mdk.am>
27158 * dependencyobject.cpp: Even more verbose error reporting in the
27159 resolve_property_path ().
27161 2008-03-14 Michael Dominic K. <mdk@mdk.am>
27163 * animation.cpp: Making the warning report proper error when can't
27164 resolve property on object. Now we're getting:
27167 (UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)
27168 on object ball, which has type Ellipse!"
27170 2008-03-14 Michael Dominic K. <mdk@mdk.am>
27172 * animation.cpp: Check correctly if we have object and property
27173 before trying to hookup storage.
27175 Fixes the crash in test-crash-non-existing-animation-target-prop.xaml
27176 but the warning message is still incorrect:
27178 "No object named ball!"
27180 The object named "ball" exists but it doesn't have the requested
27183 2008-03-14 Michael Dominic K. <mdk@mdk.am>
27185 * animation.cpp: Changing few printf's to g_warnings.
27187 2008-03-14 Stephane Delcroix <sdelcroix@novell.com>
27189 * shape.cpp: Deal with different [start|end|dash] caps for lines
27192 2008-03-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
27194 * mplayer.cpp: Comment out printf.
27196 2008-03-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
27198 * mplayer.cpp: AudioNode::Play: property calculate the delay between the
27199 play position in the hardware and the pts we just sent to alsa, and
27200 subtract it from that pts.
27202 Thu Mar 13 23:25:41 CET 2008 Paolo Molaro <lupus@ximian.com>
27204 * clock.cpp: use a monotonic clock if available to avoid issues with
27205 the system time changing.
27207 2008-03-13 Jeffrey Stedfast <fejj@novell.com>
27209 * layout.cpp (TextRun::TextRun): Don't drop non-printable
27210 chars... somehow soft-hyphen (0xAD) is non-printable according to
27211 glib and so breaks the LineBreakBasic1.htm test.
27212 (TextLayout::LayoutNoWrap): Keep appending words to the line until
27213 a line ends beyond max_width, we don't care where it begins (it
27214 could begin way beyond max_width for all we care).
27216 2008-03-13 Chris Toshok <toshok@ximian.com>
27218 * text.cpp (~Glyphs): don't unref the fill, since we don't take a
27221 2008-03-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
27223 * mplayer.cpp: Make this build on SLED until I find a proper workaround.
27225 2008-03-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
27227 * media.cpp: Update according to MediaPlayer changes.
27229 2008-03-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
27231 * mplayer.cpp, mplayer.h, pipeline.cpp: Play audio on a single
27232 thread. Fixes #326902.
27234 2008-03-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
27236 * Makefile.am: Set our G_LOG_DOMAIN.
27238 2008-03-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
27240 * xaml.cpp: default_create_element_instance: Set the surface as soon as
27243 2008-03-13 Michael Dominic K. <mdk@mdk.am>
27245 * animation.cpp: Modyfying the KeyFrameCollection::GetKeyFrameForTime
27246 behavior. When getting the keyframe for time additionally crawl back (if
27247 needed) to find the last non-null keyframe and non-null previous
27248 keyframe. By doing so we silently ignore the frames without values set
27249 and don't crash on nullable types.
27251 Fixes the crash in AnimationMatrix2.html/xaml and in the
27252 test-animation-null-keyframe.xaml test.
27254 Remving the XXX warnings about nullabled types from file since they
27255 don't apply anymore.
27257 2008-03-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
27259 * visual.h, uielement.cpp, visual.cpp: Remove the 'surface' field from
27260 Visual, we're already storing the surface in the EventObject.
27261 * dependencyobject.cpp: EventObject::unref_delayed: remove the #if false,
27262 and comment out the warning, since with the current code it's entirely
27263 possible to unref a dependecyobject with no surface.
27265 2008-03-13 Stephane Delcroix <sdelcroix@novell.com>
27267 * brush.cpp: compute relative transform as it's done in SL. We used to
27268 derelativize transform to match the absolute ones. Now we map the brush
27269 to a 1x1 square, apply the transform, and unmap back. It simplify the
27270 computation a lot too. Fixes bnc #354892 and a bad gradient in
27273 2008-03-12 Chris Toshok <toshok@ximian.com>
27275 * media.cpp (expand_rgb_to_argb): use a different codepath if the
27276 rowstride isn't padded out to be divisible by 4 (or else we read
27277 off the end by a byte).
27279 2008-03-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
27281 * pipeline.cpp: ASFDemuxer: Only seek in the selected streams.
27283 2008-03-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
27285 * pipeline.cpp, pipeline.h: Break all media threads upon media shutdown.
27286 * pipeline-ffmpeg.cpp: Don't check if we've been registered before, the
27287 pipeline correctly removes registered infos upon shutdown, so if we're
27288 initialized again we should also register again.
27289 * runtime.cpp: Call Media::Shutdown do shut down the media threads before
27290 doing anything else.
27292 2008-03-12 Jeffrey Stedfast <fejj@novell.com>
27294 * font.cpp (TextRun::TextRun): Fixed canonicalization logic.
27296 * text.cpp (TextBlock::LayoutSilverlight): When creating a list of
27297 TextRun's, if the Run contains \n's, break the text into
27298 non-linebreak and linebreak TextRun elements. Allows the
27299 TextLayout::Layout() logic to be simplified considerably.
27301 2008-03-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
27303 * dependencyobject.cpp: DependencyObject: Initialize our surface field to
27306 2008-03-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
27308 * pipeline.h, pipeline.cpp: Add logging macros. Use ErrorEventArgs for error
27309 reporting so that the errors can easily be bubbled up the pipeline. Add
27310 a 'selected' field to IMediaStream, whether the media player is using
27311 that stream or not.
27312 * error.h: Add a MediaErrorEventArgs class.
27314 2008-03-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
27316 * pipeline.cpp: Propagate the surface from the media element to the media.
27318 2008-03-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
27320 * mplayer.cpp, pipeline.cpp, pipeline.h: Add a 'selected' field to the
27321 IMediaStream, indicates whether the stream is being played or not.
27323 2008-03-12 Sebastien Pouliot <sebastien@ximian.com>
27325 * dependencyobject.cpp: Add NULL check in method
27326 RemovePropertyChangeListener since a bad XAML input can cause a
27327 NULL entry in the list.
27329 2008-03-12 Michael Dominic K. <mdk@mdk.am>
27333 * shape.cpp: Properly calculate the shape cache depending on our bpp etc.
27335 2008-03-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
27337 * xaml.cpp: xaml_create_from_file: if there was some error loading the file,
27338 don't crash, print an error message. Dup all strings put into
27339 namespace_map, and free them all upon its destruction.
27341 2008-03-11 Larry Ewing <lewing@novell.com>
27343 * collection.cpp (VisualCollection::VisualAdded): make sure we set
27344 the surface as the first step, dirty processing depends on it.
27345 Fixes OM_RemoveClearRemoveAt.htm regression.
27347 2008-03-11 Larry Ewing <lewing@novell.com>
27350 * canvas.cpp (Canvas::OnPropertyChanged): listen to changes on Top
27351 and Left when we are toplevel so that we can recompute our
27354 * uielement.cpp: if we don't have a parent call GetTransformFor on
27355 ourself so that Top and Left are taken into account on toplevel
27356 canvases. Fixes test-canvas-toplevel.xaml
27358 2008-03-11 Chris Toshok <toshok@ximian.com>
27360 * clock.h, clock.cpp: a few changes, the most important
27361 being (ifdefed for now) code to put the timemanager to sleep when
27362 it's not needed for animations, rendering, or tick calls. To do
27363 this we need a couple of changes to the clock code. 1) propagate
27364 the time_manager out to all clocks, so we can force it to tick the
27365 clock hierarchy the first time whenever a storyboard is started.
27366 2) make Clock/ClockGroup::Tick return a bool, which means "i'll be
27367 in need of another tick." Do the same for the tick call stuff,
27368 where the bool return value means "we have more tick calls
27369 pending." Also, add a couple of methods to the
27370 TimeManager (NeedRedraw, NeedClockTick) which will start up the
27371 timemanager if it's asleep, and set the proper flag so it'll do
27372 the right work on the next tick.
27375 * uielement.cpp: notify the timemanager that we have a redraw to
27378 * runtime.cpp (Surface::realized_callback): tell the time manager
27379 to redraw us to get the process moving.
27381 2008-03-11 Sebastien Pouliot <sebastien@ximian.com>
27383 * xaml.cpp: Work around the fact that it's not always safe to
27384 call some expat functions, like XML_GetCurrentLineNumber, if the
27385 parsing failed early.
27387 2008-03-11 Chris Toshok <toshok@ximian.com>
27389 * namescope.h, namescope.cpp: switch from reffing the objects to
27390 using the DestroyedEvent. Otherwise our toplevel canvas has a ref
27391 cycle with its namescope. Also, short circuit out if we're
27392 registering the same object twice. keeps us from having too many
27393 DestroyedEvents (since RemoveHandler only removes one).
27395 * dependencyobject.h, dependencyobject.cpp: move
27396 GetSurface/SetSurface to EventObject, and add unref_delayed as a
27397 method. If the event object has a surface associated with it, add
27398 it to the surface's pending list of unrefs. otherwise warn us and
27399 add it to the global list. The warnings should be fixed as the
27400 global list really should go away.
27402 Also, before we free a value, make sure to remove our handler and
27405 Also, get rid of OBJECT_TRACK_ID. use an environment variable for
27406 this. So if you compile with OBJECT_TRACKING on, nothing new
27407 happens unless you set the "MOONLIGHT_OBJECT_TRACK_ID" environment
27408 variable to the id of the object you want to track. Makes the
27409 turnaround time a little quicker.
27411 shift some things around in the header file while I'm making this
27414 * runtime.h, runtime.cpp: move some more methods to the .cpp from
27415 the .h, and also add the per-surface pending unrefs list. This is
27416 basically a c&p of the global list from dependency.cpp.
27418 * downloader.h, downloader.cpp: remove Get/Set Surface in favor of
27419 using EventObject's.
27421 2008-03-11 Sebastien Pouliot <sebastien@ximian.com>
27423 * xaml.cpp: Add NULL check in dependency_object_add_child since
27424 parent->parent->item may be NULL in malformed XAML files.
27426 2008-03-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
27428 * pipeline.h, media.cpp, pipeline.cpp: Rename GetPositionOfPts to
27429 EstimatePtsPosition and remove the estimate parameter, it's never used.
27431 2008-03-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
27433 * runtime.cpp: No need to scream in printfs.
27435 2008-03-11 Jeffrey Stedfast <fejj@novell.com>
27437 * font.cpp (TextLayout::Layout): More fixes, this is getting
27440 2008-03-11 Sebastien Pouliot <sebastien@ximian.com>
27442 * xaml.cpp: Avoid crashing if the PML does not start with a
27443 M(ove) instruction.
27445 2008-03-11 Michael Dominic K. <mdk@mdk.am>
27447 * src/: Moving implementations from .h to .cpp, leaving only
27448 setters/getters + simple constructors in .h.
27450 2008-03-11 Larry Ewing <lewing@novell.com>
27452 * xaml.cpp (dependency_object_set_property): throw an error if we
27453 get here without a DependencyObject. Fixes
27454 test-property-parsing.xaml
27456 2008-03-10 Larry Ewing <lewing@novell.com>
27459 * uielement.cpp: add more checks to the parent tree.
27461 2008-03-10 Chris Toshok <toshok@ximian.com>
27463 * dependencyobject.cpp (~DependencyObject): use
27464 g_hash_table_foreach_remove, so the dtor of one value can't access
27465 an already destroyed DO from another value.
27467 2008-03-10 Chris Toshok <toshok@ximian.com>
27469 * namescope.cpp: don't explicitly unref the object when removing
27470 it. instead use base_unref as the value-dtor for the GHashTable.
27471 This will cause unrefs when the hash table is destroyed in the
27472 dtor (a case we were missing before.)
27474 * collection.h, collection.cpp (class Collection): factor out the
27475 body of Collection::Clear into a non-virtual method that we can
27476 call from the dtor.
27478 2008-03-10 Larry Ewing <lewing@novell.com>
27481 * panel.cpp: make sure we don't subtract the region unless non of
27482 our anscestors have a slip mask. This should be implemented in a
27483 more efficient way.
27485 2008-03-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
27487 * playlist.cpp, playlist.h: Move PlaylistContent info PlaylistEntry.
27489 2008-03-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
27491 * dependencyobject.h, dependencyobject.cpp: Enable object counting when
27493 * runtime.cpp: Show a message if we leak objects and DEBUG is defined.
27494 * pipeline.cpp: Remove printfs.
27496 2008-03-10 Larry Ewing <lewing@novell.com>
27499 * geometry.cpp: make IsBuilt check for actual path data as well
27500 then use it everywhere we need it. Invalidate the path if the
27501 figures change. Fixes test-transform-clip.htm.
27503 2008-03-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
27505 * playlist.cpp: Playlist::AddEntry: unref the entry after adding it.
27507 2008-03-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
27509 * mplayer.cpp: When stopping, we need to seek to the beginning again. Fixes
27512 2008-03-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
27514 * media.cpp: Update according to pipeline changes. TryOpen: our
27515 downloaded_file field may change when we call MediaOpened, so save a
27516 local copy before calling MediaOpened. Unref our playlist upon
27518 * mplayer.cpp: Update according to changes in the pipeline.
27519 * pipeline.cpp, pipeline.h: Delete all but one of GetNextFrameAsync, the
27520 rest aren't used. Make the remaining method take the stream as a
27521 parameter, and the resulting frame will be put in the closure. Also
27522 handle the case when the codec returns MEDIA_CODEC_DELAYED, in which
27523 case just try again with the next frame. Make MediaWork ref/unref the
27524 fields that can be ref counted.
27526 2008-03-10 Chris Toshok <toshok@ximian.com>
27528 [ Fixes bug #368460 ]
27529 * collection.cpp (Collection::SetVal): make sure to unregister the
27530 name of the object(s) we remove from the collection.
27531 (Collection::Remove): same.
27532 (Collection::RemoveAt): same.
27533 (Collection::Clear): same.
27535 * namescope.cpp (NameScope::RegisterName): ref the object.
27536 (NameScope::UnregisterName): unref the object.
27538 2008-03-10 Jeffrey Stedfast <fejj@novell.com>
27540 * font.cpp (TextLayout::Layout): More line-wrap fixes - implement
27541 Silverlights TextWrapping="Wrap" bug where it doesn't ever break
27544 2008-03-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
27546 * src.mdp: Updated.
27548 2008-03-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
27550 * dependencyobject.h: Make the OBJECT_TRACKING stuff public.
27551 * runtime.cpp: Use GetRefCount, not refcount.
27553 2008-03-10 Chris Toshok <toshok@ximian.com>
27555 * runtime.h, runtime.cpp: add surface_get_time_manager.
27557 * downloader.h, downloader.cpp: add downloader_get_surface.
27559 2008-03-10 Michael Dominic K. <mdk@mdk.am>
27563 * shape.cpp: Making the shape-caching a runtime parameter
27564 (shapecache=yes). Turned off right now.
27566 2008-03-10 Michael Dominic K. <mdk@mdk.am>
27568 * shape.cpp: Tiny refactoring to the surface-size calculation code.
27570 2008-03-10 Michael Dominic K. <mdk@mdk.am>
27573 * shape.cpp: Adding functionality to limit the amount of caching
27574 happening on one surface. Currently set to ~6mb.
27576 2008-03-09 Larry Ewing <lewing@novell.com>
27578 * mplayer.cpp: fix another place that used the wrong stride.
27580 2008-03-09 Geoff Norton <gnorton@novell.com>
27582 * yuv-converter.cpp: Make sure we emms after finishing sse/mmx
27585 2008-03-09 Geoff Norton <gnorton@novell.com>
27587 * yuv-converter.cpp: Detect the CPU features at runtime. We
27588 should now be able to distribute a 32-bit SSE2/MMX build to
27589 non SSE2/MMX machines
27591 2008-03-09 Geoff Norton <gnorton@novell.com>
27593 * yuv-converter.cpp: Implement runtime fallbacks in the Convert
27594 function (TODO: Still need to runtime detect SSE2/MMX)
27596 2008-03-09 Larry Ewing <lewing@novell.com>
27598 * mplayer.cpp (MediaPlayer::Open): make the stride % 16 for now.
27600 2008-03-09 Larry Ewing <lewing@novell.com>
27602 * mplayer.cpp (MediaPlayer::Open): use the proper stride
27603 calculation functions.
27605 2008-03-08 Geoff Norton <gnorton@novell.com>
27607 * yuv-converter.cpp: Implement a SSE2 version of the YUV2RGB
27608 codepath along with some code cleanup. Still some more cleanup
27609 to do for runtime detection of CPU features.
27611 2008-03-08 Geoff Norton <gnorton@novell.com>
27613 * yuv-converter.cpp: Fix some erroneous math. U' != U.
27614 These coefficients are far more sane now and our lum change is
27615 reflected properly.
27617 2008-03-08 Chris Toshok <toshok@ximian.com>
27619 * clock.cpp (TimeManager::SourceTick): larry gets credit for
27620 spotting this problem and suggesting the fix. remove the
27621 hysteresis code, and *always* set a new timeout, based on what our
27622 idea of the timeout and the amount of time we spent rendering the
27623 previous frame. This smooths things out immensely, removes (for
27624 me) the animation stutters induced by audio in sprawl, and results
27625 in fewer dropped frames.
27627 2008-03-08 Geoff Norton <gnorton@novell.com>
27629 * yuv-converter.cpp: Fix the luminance problem (Y needs shift;
27630 and b was pulling the wrong l/h value.
27632 2008-03-08 Chris Toshok <toshok@ximian.com>
27634 * value.cpp (Value::CreateUnrefPtr): use GetRefCount() instead of
27635 accessing dob->refcount.
27636 (Value::CreateUnref): same.
27638 * dependencyobject.h, dependency.cpp (class EventObject): reorder
27639 this class definition so that we don't have multiple
27640 public/protected/private areas. confusing as hell :) Also, move
27641 the implementations of the non-performance critical things into
27642 the .cpp file, as they were making the .h rather cluttered (ctor,
27643 dtor, weak ref/unref.) Lastly, make almost everything private
27644 instead of public (most importantly the refcount.)
27646 * debug.h, debug.cpp: random code cleanup. we don't need to be
27647 concerned with adding some additional stack methods to the plugin
27648 in the DEBUG case, so go ahead and just use DEBUG here instead of
27651 2008-03-08 Chris Toshok <toshok@ximian.com>
27653 * uielement.cpp, text.cpp, clock.cpp, mplayer.cpp: remove the
27654 extern guint32 moonlight_flags.
27656 * pipeline.cpp: if RUNTIME_INIT_CONVERTER_YUV, use the yuv
27657 converter, otherwise use ffmpeg.
27659 * runtime.h: add RUNTIME_INIT_CONVERTER_YUV to the list of init
27660 flags, and (my god) put the extern moonlight_flags here.
27662 * runtime.cpp: add yuv converter options. use
27663 MOONLIGHT_OVERRIDES=converter=yuv to enable it. default is
27664 "converter=ffmpeg".
27666 2008-03-08 Geoff Norton <gnorton@novell.com>
27668 * yuv-converter.cpp: Clear the mmx state when we're done
27669 processing. Fixes most problems on x86_32.
27671 2008-03-08 Geoff Norton <gnorton@novell.com>
27673 * pipeline.cpp: Disable YUV converter, its crashing on x86_32
27676 2008-03-08 Geoff Norton <gnorton@novell.com>
27678 * pipeline-ffmpeg.cpp: Dont register YUV converter here.
27679 * pipeline.cpp: Register YUV converter here.
27681 2008-03-08 Geoff Norton <gnorton@novell.com>
27683 * yuv-converter.cpp: Remove some code duplication and refactor
27684 to support register starved implementations.
27686 2008-03-08 Geoff Norton <gnorton@novell.com>
27688 * Makefile.am: Add yuv-converter.cpp to the build
27689 * yuv-conveter.*: Our YUV2RGB 420P converter. Replaces
27691 * pipeline-ffmpeg.cpp: Use YUVConverter instead of libswscale.
27693 2008-03-08 Chris Toshok <toshok@ximian.com>
27695 * clock.h, clock.cpp, animation.cpp: a few clock related changes.
27697 1. Revert the change that uses "forward" to tell if we're moving
27698 forward or not. This isn't the only indicator, as a parent clock
27699 might be ticking backward, so we really do need to use "our_delta"
27701 2. Also, we need to not clamp the time of the clock (on either
27702 end) when we're filling, as if the parent's duration is longer
27703 than ours and they autoreverse, there needs to be some padding in
27704 the reverse direction before we start again.
27706 3. Only call ComputeBeginTime() on a newly created clock if the
27707 timeline has a begin time specified. Otherwise, use
27708 BeginOnTick/GetBeginOnTick to make it begin on the next tick.
27709 This fixes the chess animation breakage. The problem was caused
27710 by us computing the begin time immediately in Storyboard::Begin,
27711 which would calculate the clock's begin time relative to the
27712 *previous* tick. on the next tick, the clock was almost always at
27713 1.0 progress, which caused the animations to skip directly to the
27716 2008-03-08 Chris Toshok <toshok@ximian.com>
27718 * value.cpp, type.cpp, type.cpp.in, trigger.cpp, runtime.cpp,
27719 dirty.cpp, dependencyobject.cpp: more assert removal. we can't
27720 assert in a plugin (even if people are running a debug build it's
27721 not exactly nice to bring down their browser.)
27723 2008-03-07 Chris Toshok <toshok@ximian.com>
27725 * value.cpp (Value::CreateUnrefPtr): don't assert here.
27726 (Value::CreateUnref): same.
27728 2008-03-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
27730 * type.cpp.in, typegen.cs, type.cpp: If the type system is accessed when
27731 it's not initialized, print a warning and re-initialize it.
27733 2008-03-08 Fernando Herrera <fherrera@novell.com>
27737 * playlist.h: Add support for ASX2 playlist files returned by
27738 mediaservers when requesting a mmsh file over plain http. Fixes
27739 http://channel9.msdn.com.
27741 2008-03-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
27743 * pipeline.cpp: Add a couple of null checks in ~Media. Detect ASX files
27744 case-insensitively.
27746 2008-03-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
27748 * pipeline.h, pipeline.cpp: Refcount IMediaObject, and make dtors in all
27749 derived classes protected.
27750 * media.cpp: Update according to pipeline changes. TryOpen: our
27751 downloaded_file field may change when we call MediaOpened, so save a
27752 local copy before calling MediaOpened.
27754 2008-03-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
27756 * clock.cpp, clock.h: Added TimeManager::InvokeOnMainThread.
27757 * mplayer.cpp: Use TimeManager::InvokeOnMainThread instead of finding a
27758 TimeManager instance to add the timeout to.
27760 2008-03-07 Sebastien Pouliot <sebastien@ximian.com>
27762 * downloader.cpp: Fix access to Status from JScript.
27764 2008-03-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
27766 * mplayer.cpp: LoadVideoFrame: if we got the last frame, don't request any
27769 2008-03-07 Sebastien Pouliot <sebastien@ximian.com>
27771 * brush.cpp: Fix default value for ColorInterpolationMode (js
27773 * parsertest.cpp: Adapt to API change.
27774 * xaml.cpp|h: Change value_from_str[_with_typename] to return a
27775 bool since NULL can be a valid Value in some cases (e.g. empty
27776 stuff that should not reset the DO default values).
27778 2008-03-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
27780 * mplayer.cpp: Add a null check before accessing any time managers.
27782 2008-03-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
27784 * brush.cpp, uielement.cpp: Use MediaElement::GetMediaPlayer instead of
27785 accessing the field.
27786 * media.cpp, media.h: Use MediaElement::GetMediaPlayer instead of accessing
27787 the field. Update according to pipeline changes.
27788 * mplayer.cpp, mplayer.h: Update according to pipeline changes.
27789 * pipeline.cpp, pipeline.h: Make Media inherit from EventObject so that it
27790 can be ref counted. Make MediaClosure more intelligent by ref/unreffing
27791 the context and media fields. All variations of MediaWork has a closure,
27792 so move the closure field out of the union. This simplifies
27793 Media::WorkerLoop a bit. Add a Media::SeekToStart, which is required to
27794 not cause any reads/seeks which may block. Remove SetQueueCallback, the
27795 request takes a closure now. Implement an ASXDemuxer to read ASX files.
27796 * sizes.cpp: Updated.
27797 * playlist.h, playlist.cpp: First part of the new playlist support.
27799 2008-03-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
27801 * dependencyobject.cpp: Make the output in EventObject::Track print
27802 atomically. Really avoids a lot of confusion if several threads are
27803 printfing at the same time.
27805 2008-03-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
27807 * debug.cpp: Add a couple of null checks.
27809 2008-03-06 Jeffrey Stedfast <fejj@novell.com>
27811 * font.cpp (TextLayout::Layout): Don't wrap on a space char, ever.
27812 (TextLayout::Layout): Don't include trailing lwsp in the line
27813 width calculation unless it is the last line.
27814 (TextLayout::Layout): Don't include trailing empty lines in the
27815 height calculation.
27817 2008-03-06 Chris Toshok <toshok@ximian.com>
27819 * clock.h, clock.cpp: some changes to make TimeManager a
27820 per-surface item, instead of a singleton/global. The time manager
27821 creates a root clock group, just like Surface used to, which is
27822 the parent of all storyboards for a surface.
27824 * dirty.h, dirty.cpp: remove the method prototypes and globals -
27825 switch everything to be Surface:: methods.
27827 * runtime.h, runtime.cpp: get rid of our ClockGroup and Timeline
27828 for the root clock, and create a TimeManager instead. Also, add
27829 the dirty methods/fields to Surface, even though the
27830 implementation still lives in dirty.cpp. Also, call
27831 toplevel->SetSurface(NULL) early in our dtor so that elements can
27832 react before, e.g., the time manager has been destroyed.
27834 * media.h, media.cpp: use the surface's TimeManager instead of a
27835 global one. Also override SetSurface so we can tell if we're
27836 losing access to it, and remove our timeout accordingly.
27838 * mplayer.cpp: use the media element's TimeManager.
27840 * visual.h, visual.cpp: add GetTimeManager() method, which just
27841 does GetSurface()->GetTimeManager().
27843 * dependencyobject.cpp (base_unref_delayed): as much as I hate to
27844 do this, use a g_idle instead of a tick call here, since we have
27845 no access to the surface.
27847 * animation.cpp (Storyboard::Begin): the surface no longer has the
27848 root clock group, the surface's TimeManager does.
27850 * panel.h, panel.cpp (SetSurface): recursively call SetSurface on
27853 * uielement.h, uielement.cpp: translate global dirty calls into
27854 surface calls, and override SetSurface to remove ourselves from
27855 the dirty list if we're losing our surface.
27857 * eventargs.cpp: translate global dirty calls into surface calls.
27859 2008-03-06 Michael Dominic K. <mdk@mdk.am>
27861 * src/clock.cpp: In ClockGroup Clamp the time *before* ticking on
27862 child clocks. Othewise children always get a small delta and keep
27863 going beyond the parent Duration bounds. Fixes the contrained
27864 storyboard examples.
27866 Also making the forward/backward ComputeNewTime behavior depend on
27867 'forward' instead of out_delta (which can be 0 if hitting bounds).
27869 2008-03-06 Sebastien Pouliot <sebastien@ximian.com>
27871 * transform.cpp: Fix Matrix default values to match identity
27872 matrix (and fix one js unit test).
27874 2008-03-05 Larry Ewing <lewing@novell.com>
27876 * shape.cpp: drop the code that checks stretch when building the
27877 paths for polyline and polygon. Fix the condition for translation.
27879 2008-03-05 Larry Ewing <lewing@novell.com>
27882 * shape.cpp: refactor the stretch code slightly and fix the
27883 original stretch tests (that passed the harness but are clearly
27886 2008-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
27888 * media.h: Made destructors in objects deriving from EventObject protected,
27889 preventing 'delete obj' and stack-allocation for these objects.
27891 * playlist.cpp: Can't delete downloaders anymore, unref it.
27893 2008-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
27895 * animation.h, brush.h, canvas.h, clock.h, collection.h, control.h,
27896 dependencyobject.h, downloader.h, frameworkelement.h, geometry.h,
27897 namescope.h, panel.h, runtime.h, shape.h, stylus.h, text.h, transform.h,
27898 trigger.h, uielement.h, visual.h: Made destructors in objects deriving
27899 from EventObject protected, preventing 'delete obj' and stack-allocation
27901 * demo.cpp, runtime.cpp: Can't delete a surface anymore, unref it.
27902 * dirty.h: Added header.
27904 2008-03-05 Chris Toshok <toshok@ximian.com>
27906 * runtime.h (RUNTIME_INIT_DESKTOP, RUNTIME_INIT_BROWSER): make
27907 front-to-back rendering the default.
27909 2008-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
27911 * clock.h, playlist.h, trigger.h, text.h, clock.cpp, playlist.cpp,
27912 trigger.cpp, dependencyobject.h, downloader.cpp, dependencyobject.cpp,
27913 media.h, animation.h, brush.h, runtime.h, media.cpp, animation.cpp,
27914 runtime.cpp, text.cpp: Updated event handling to take an EventArgs*
27915 calldata instead of a gpointer.
27916 * error.h: Added EventArgs, a base class for all *EventArgs.
27917 * collection.h: Make ChangeEventArgs inherit from EventArgs.
27918 * uielement.cpp: Create all *EventArgs on the heap and simply the code a
27920 * collection.cpp: Don't allocate Collection::ChangeEventArgs on the stack.
27921 * eventargs.cpp, eventargs.h: Added EventArgs, a base class for all
27922 *EventArgs. Added MarkerReachedEventArgs.
27923 * brush.cpp: Updated event handling to take an EventArgs* calldata instead
27924 of a gpointer. ~ImageBrush: don't delete, unref.
27926 2008-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
27928 * value.cpp: Fix warning.
27930 2008-03-05 Larry Ewing <lewing@novell.com>
27932 * shape.cpp: Fix line, polyline and polygon to apply stretches
27933 properly (modulo pesimistic shape bounds bugs). Mostly fixes
27934 test-shape-line-stretch2.xaml, test-shape-polyline-stretch2.xaml
27935 and test-shape-polygon-stretch2.xaml.
27937 * shape.h: move stretch transform out of Path and into Shape.
27940 * stylus.cpp: include the strokes in the subtree bounds so that we
27941 will get invalidations and update bounds when the collection
27942 changes. There are still potential bounds issues point changes,
27943 those are being looked into. Fixes invalidation issues in
27944 test-inkpresenter-position and test-inkpresenter-scale.
27946 2008-03-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
27948 * xaml.cpp: Add a null at the end of the namespace array.
27950 2008-03-05 Jeffrey Stedfast <fejj@novell.com>
27952 * font.cpp (TextRun::TextRun): Drop \r's and convert non-new-line
27953 white space into a simple space.
27954 (TextLayout::Layout): Treat embedded \n's as LineBreaks
27955 (TextLayout::Layout): When calculating the width of a line that
27956 ends in a space, don't include the width of the space char -
27957 Silverlight doesn't seem to.
27958 (TextLayout::Layout): Don't pad the height. Don't pad the width
27959 either, altho it seems like a padding of +2.0 is about right but
27960 ONLY if the text is in a canvas? See OMTextInline.htm's
27961 actualWidth/Height measurements as well as the out-of-tree
27964 * xaml.cpp (char_data_handler): Always create the GString cdata,
27965 we need to note leading lwsp which the old implementation didn't.
27966 (flush_char_data): Try to emulate Silverlight's chug/chomp
27967 behavior more closely.
27969 2008-03-05 Chris Toshok <toshok@ximian.com>
27971 * canvas.cpp (Canvas::OnSubPropertyChanged): make sure to chain up
27972 to panel's OnSubPropertyChanged if we don't handle it.
27974 * dependencyobject.cpp (DependencyObject::NotifyListenersOfPropertyChange):
27975 make sure we don't call this method with NULL args. Also, remove
27976 larry's g_warning (which wasn't the case, i tested with sprawl!),
27977 and also remove the check for matching property/parent type for
27978 attached properties. this will break controls.
27980 * transform.h, transform.cpp: it used to be that logical parents
27981 of children could rely on OnSubPropertyChanged being invoked for
27982 any property change. This is no longer the case - the only
27983 instance where it still happens is if there's an attached property
27984 involved. All other cases have to use OnCollectionChanged. So,
27985 switch OnSubPropertyChanged to OnCollectionChanged here.
27987 2008-03-05 Jeffrey Stedfast <fejj@novell.com>
27989 * text.cpp (TextBlock::OnCollectionChanged): We need to update
27990 bounds/text even if element_args is NULL (because adding/removing
27991 an item still changes our text).
27992 (Inline::OnPropertyChanged): Use args->new_value.
27994 2008-03-05 Chris Toshok <toshok@ximian.com>
27996 * transform.h, transform.cpp: remove
27997 TransformCollection::OnSubPropertyChanged. it was gumming up the
28000 2008-03-05 Larry Ewing <lewing@novell.com>
28002 * shape.cpp: disable the shape caching code for now unless
28003 USE_OPT_SHAPE_SURFACE_CACHING=1.
28005 2008-03-05 Michael Dominic K. <mdk@mdk.am>
28010 * xaml.cpp: Taking out all the enum->str (and vice versa) code from
28011 xaml.cpp and putting it into a new file -> enum.c + some utilities.
28013 The enum<->str code is not specific to xaml and is usefull from plugin as
28016 2008-03-05 Stephane Delcroix <sdelcroix@novell.com>
28018 * media.cpp: close the pixbuf_loader to load the small images too.
28020 2008-03-04 Chris Toshok <toshok@ximian.com>
28022 * runtime.cpp (Surface::expose_to_drawable): re-enable the
28023 clearing of the cairo surface, but only if we have a
28024 widget (i.e. not in the windowless plugin case.) Should fix
28025 translucent desklets without breaking the plugin.
28027 2008-03-04 Chris Toshok <toshok@ximian.com>
28029 [ rather large change, reworking much of the property change event
28030 system to be a little smaller api surface-wise, and also cleaning
28031 up uses of it to remove some of the accumulated cruft that we'd
28032 developed over the past 10 months.]
28034 * dependencyobject.h, dependencyobject.cpp: A few key changes:
28036 1. Attach -> AddPropertyChangeListener
28037 Detach -> RemovePropertyChangeListener
28038 NotifyAttachersOfPropertyChange -> NotifyListenersOfPropertyChange
28040 This was done to remove the confusion between "attached"
28041 properties and our use of the word "attach" to mean "listen for
28042 property changes". Attached properties are those which
28043 implicitly notify the parent when they're changed.
28045 OnChildPropertyChanged is gone. Canvas (the only user of it)
28046 now uses OnSubPropertyChanged to deal with child property
28049 2. *PropertyChanged methods take a
28050 structure (PropertyChangedEventArgs) that contains the
28051 DependencyProperty, as well as the old and new values of it.
28052 This was to remove the need for almost every
28053 OnPropertyChangedMethod to immediately call GetValue on the
28054 property. Passing the old value requires changing the
28055 current_values hash to not have a value destructor, so we have
28056 to manually delete values again.
28058 3. Reordered the args for
28059 AddPropertyChangeListener/RemovePropertyChangeListener so that
28060 the listener comes first and the second arg defaults to NULL.
28061 Cleans up a bit of the use of this method globally.
28063 * animation.h, animation.cpp: track OnSubPropertyChanged changes.
28065 * brush.h, brush.cpp (SolidColorBrush::OnPropertyChanged,
28066 LinearGradientBrush::OnPropertyChanged,
28067 RadialGradientBrush::OnPropertyChanged): remove, unnecessary.
28069 also lots of changes to use args->new_value instead of calling
28070 GetValue(property).
28072 Clear up confusion regarding the meaning of the property passed to
28073 AddPropertyChangeListener.
28075 * canvas.h, canvas.cpp: switch OnChildPropertyChanged to
28076 OnSubPropertyChanged.
28078 * collection.h, collection.cpp (Node::Node): don't add parent as a
28079 listener for every property change here. We handle this
28080 specifically (and automatically) in
28081 DependencyObject::NotifyListenersOfPropertyChange, but only for
28082 attached properties.
28083 (Node::~Node): don't remove the listener here either.
28085 lots of tracking the DO api changes here too.
28087 * control.h, control.cpp: track On*PropertyChanged changes.
28089 * font.cpp: fix some warnings
28091 * frameworkelement.h, frameworkelement.cpp: track
28092 On*PropertyChanged changes.
28094 * geometry.h, geometry.cpp: track On*PropertyChanged changes.
28096 * media.h, media.cpp (MediaElement::OnPropertyChanged): remove a
28097 lot of the empty blocks here - there's nothing to do for these
28098 properties, so we might as well not bloat the code. Also, use
28099 new_value when we can.
28100 (Image::DownloaderComplete): add a (I hope) suitably nasty comment
28101 about calling brush->OnPropertyChanged directly. code shouldn't
28102 do this, we should figure out if we can just set the property, and
28103 if so, do that. otherwise something else is broken.
28104 (Image::OnPropertyChanged): use new_value where we can.
28106 * panel.h, panel.cpp: remove the cached background field. It
28107 wasn't used except to Attach/ref + Detach/unref it, and that's
28108 handled automatically by the DependencyProperty machinery.
28109 Otherwise just track the On*PropertyChanged api changes.
28111 * shape.h, shape.cpp: similarly, we don't need to ref/attach our
28112 cached stroke and fill fields. They're populated for us (and
28113 ref'ed/unref'ed as needed), so we don't need anything additional
28114 here. Use new_value instead of GetValue in OnPropertyChanged.
28115 Also, factor out some redundant code from all the subclass
28116 OnPropertyChanged methods that was nearly the same as the
28117 Shape::OnPropertyChanged code for it.
28119 * stylus.h, stylus.cpp: On*PropertyChanged api changes.
28121 * text.h, text.cpp: mostly On*PropertyChanged api changes, and
28122 lots of using new_value instead of GetValue, but also get rid of
28123 the cached TextBlock foreground instance field. It's easy enough
28124 to fetch when we need it in the ::Paint method, and the
28125 dependencyobject stuff already refs and attaches to it.
28127 * transform.h, transform.cpp: lots of On*PropertyChanged api
28128 changes, and using new_value instead of GetValue.
28130 * uielement.h, uielement.cpp: remove the cached opacityMask
28131 field (it wasn't used except for attach/detach, which is handled
28132 for us.) The usual On*PropertyChanged changes as well as using
28133 new_value instead of GetValue.
28135 2008-03-04 Jeffrey Stedfast <fejj@novell.com>
28137 * xaml.cpp (style_simulations_map): There's only one
28138 StyleSimulation value, and that is None.
28140 * font.cpp (TextLayout::Layout): In Wrap mode, if we overflow the
28141 width and the text is not part of the first run on a line, break
28142 at the beginning of the Run. This seems to be what Silverlight
28143 does in OMTextInline.htm.
28145 2008-03-04 Larry Ewing <lewing@novell.com>
28147 * eventargs.cpp: update the dirty list before trying calculating
28148 relative locations.
28150 * runtime.cpp (Surface::HandleMouseEvent): process dirty elements
28151 here so that our hit testing has up to date bounds.
28154 * dirty.h: remove the prototypes for up/down since it isn't safe
28155 to split the up/down passes.
28157 * src/uielement.cpp: remove dirty processing.
28159 2008-03-04 Stephane Delcroix <sdelcroix@novell.com>
28161 * media.cpp: use a pixbuf_loader instead of the pixbuf_new_from_file to
28162 create the pixbuf from a file, allowing partial rendering of broken
28163 imagefiles, like in Image.htm
28165 2008-03-04 Jeffrey Stedfast <fejj@novell.com>
28167 * text.cpp (Inline::GetDefaultValue): Implemented.
28169 2008-03-04 Michael Dominic K. <mdk@mdk.am>
28171 * src/uielement.cpp: When calling uielement_transform_point, make sure our
28172 transforms are up-to-date (not dirty).
28174 Since we're updating the transform matrices only in the expose (dirty)
28175 callback it can happen that two ie. mouse events arrive before we get to
28176 the expose. If the first mouse event invalidated the transform and the
28177 second one relies on the transform (ie. tries to obtain relative mouse
28178 position) it'd get bogus values since the transform has not been
28181 Fixes the drag & drop behaviour in SL ink journal (the selection tool).
28184 2008-03-04 Michael Dominic K. <mdk@mdk.am>
28187 * src/dirty.h: Splitting the process_dirty_elements () into two individual
28188 chunks -- process_down_dirty_elements () and process_up_dirty_elements ().
28189 process_dirty_elements () now calls both.
28191 The point here is that we need to process down dirty elements (call
28192 process_down_dirty_elements ()) from other contextes as well.
28194 2008-03-03 Larry Ewing <lewing@novell.com>
28196 * uielement.cpp: Call FullInvalidate when clip changes so that
28197 our subtree bounds are updated and invalidated. Make sure we
28198 don't reset the forced invalidate flag.
28200 * dirty.cpp: invalidate subtree bounds on forced invalidations.
28201 Fixes test-clip-invalid-update.htm.
28203 2008-03-03 Jeffrey Stedfast <fejj@novell.com>
28205 * text.cpp (TextBlock::GetText): New method to generate a string
28206 representing the Text property from the inlines.
28207 (TextBlock::SetText): New method (split out from the old
28208 ::SetValue code) to parse the newly set text string into a list of
28209 Inlines and update out InlinesProperty if changed. Returns whether
28210 or not the inlines property changed.
28211 (TextBlock::OnPropertyChanged): Call SetText() to update out
28212 Inlines if the TextProperty value was changed by an outside
28213 source. If the InlinesProperty was changed by an outside source,
28214 update our TextProperty.
28215 (TextBlock::OnCollectionChanged): Update our TextProperty if an
28216 Inline was added or removed or if a Run element had its
28217 TextProperty changed.
28219 2008-03-03 Chris Toshok <toshok@ximian.com>
28221 * animation.cpp: plug a memory leak in the 3
28222 UsingKeyFrames::GetCurrentValue methods.
28224 2008-03-03 Chris Toshok <toshok@ximian.com>
28226 * transform.h, transform.cpp: Make Matrix::GetUnderlyingMatrix
28227 return a cairo_matrix_t instead of a pointer to the
28228 internal (mutable) field, and update its only use.
28230 2008-03-03 Jeffrey Stedfast <fejj@novell.com>
28232 * media.cpp (media_element_get_audio_stream_index): Fixed to
28233 handle nullable value.
28234 (media_element_set_audio_stream_index): Same.
28235 (media_init): Register the AudioStreamIndex property as being
28237 (MediaElement::Reinitialize): Set the CurrentStateProperty to
28240 2008-03-03 Jeffrey Stedfast <fejj@novell.com>
28242 * media.cpp (media_init): Register AudioStreamCount,
28243 BufferingProgress, CanPause, CanSeek, CurrentState,
28244 NaturalDuration, NaturalVideoWidth, NaturalVideoHeight properties
28245 as being read-only.
28247 * text.cpp (text_init): Register ActualWidth and ActualHeight
28248 properties as ReadOnly.
28250 * transform.cpp (Matrix::GetValue): Removed.
28251 (Matrix::SetValue): Removed.
28252 (Matrix::OnPropertyChanged): Implemented.
28254 2008-03-01 Larry Ewing <lewing@novell.com>
28256 * shape.cpp (Shape::DoDraw): refactor slightly.
28258 * geometry.cpp: fix extents calculation when there is only a fill
28259 on the shape. Fixes test-path-stretch-fill-extents.xaml.
28261 * shape.cpp (Shape::ComputeShapeBounds): make sure shapes with
28262 negative widths or heights have no bounds.
28263 (Shape::DoDraw): Silence warning.
28265 2008-02-29 Larry Ewing <lewing@novell.com>
28267 * shape.cpp (Shape::ComputeShapeBounds): tweak shape bounds to
28268 match StretchAndShapes.xaml.
28270 * collection.cpp (VisualCollection::Remove): don't fire
28271 VisualRemoved unless we are going to actually remove the item.
28272 Fixes OM_RemoveClearRemoveAt.htm.
28274 2008-02-29 Jeffrey Stedfast <fejj@novell.com>
28276 * collection.cpp (VisualCollection::ResortByZIndex): Reinitialize
28277 the z_sorted array before sorting so that we can be sure the end
28278 result will be a stable sort.
28279 (VisualCollection::Insert): Don't use g_ptr_array_insert_sorted()
28280 because we need to take index into account. Instead, grow our
28281 array and call ResortByZIndex().
28283 2008-02-29 Jeffrey Stedfast <fejj@novell.com>
28285 * text.cpp (TextBlock::GetValue): Revert memleak fix, it created
28286 an even more fun memory corruption bug.
28288 2008-02-29 Larry Ewing <lewing@novell.com>
28291 src/frameworkelement.cpp:
28298 src/uielement.cpp: Fix Rect::Transform, replace all occurances of
28299 bounding_rect_for_transformed_rect with Rect::Transform.
28301 2008-02-29 Larry Ewing <lewing@novell.com>
28303 * geometry.cpp: apply transform to all bounds calculations. Fixes
28304 test-geometry-bounds.xaml.
28306 2008-02-29 Larry Ewing <lewing@novell.com>
28308 * geometry.cpp: Make sure geometry groups draw their children
28309 rather than just copying the paths so that local transforms are
28312 2008-02-29 Jeffrey Stedfast <fejj@novell.com>
28314 * text.cpp (TextBlock::GetValue): Fixed memory leak.
28316 * media.cpp (MediaElement::GetValue): Fixed compile warning.
28318 * text.cpp (Inline::OnPropertyChanged): Use GetValueNoDefault()
28319 rather than calling inline_get_*() which use GetValue().
28321 * font.cpp (TextFont::TextFont): Don't let the underline thickness
28324 * dependencyobject.cpp (DependencyObject::GetValueNoDefault):
28326 (DependencyObject::GetValue): Simplified.
28327 (DependencyObject::GetDefaultValue): New method to get the default
28328 value for a property (now used by GetValue()).
28330 2008-02-29 Larry Ewing <lewing@novell.com>
28332 * geometry.cpp (PathGeometry::ComputeBounds): take the geometry
28333 transform into account when computing bounds. Fixes
28334 CGeometry_AddToRenderList.xaml
28336 2008-02-29 Larry Ewing <lewing@novell.com>
28339 * shape.cpp: export calc_line_bounds.
28341 * geometry.cpp: use calc_line_bounds from shape.h. Fixes bounds
28342 problems on Animation_TargetingAndHandoff.xaml.
28344 2008-02-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
28346 * pipeline.cpp: Add a missing const modifier.
28348 2008-02-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
28350 * mplayer.cpp: Use the first streams found in the media, not the last.
28352 2008-02-28 Stephane Delcroix <sdelcroix@novell.com>
28354 * stylus.cpp: if there's an outline, draw a line of at least 2px.
28356 2008-02-28 Stephane Delcroix <sdelcroix@novell.com>
28358 * brush.cpp: No longer ignore out-of-bounds offest in
28359 SetupGradient. Add the bounds stop with linearinterpolation
28360 between the nearest stop and the outofbounds one. Handle the
28361 degenerated case with only outofbounds stops.
28363 2008-02-28 Michael Dominic K. <mdk@mdk.am>
28365 * shape.cpp: Commenting a left-over debug g_warning.
28367 Additionally adding a protection against NULL in cache-size reporting (as
28368 experienced by rolf). However, if GetSurface () returns NULL in the Render
28369 callback... I guess we're screwed anyways.
28371 2008-02-28 Michael Dominic K. <mdk@mdk.am>
28374 * xaml.h: Adding convert_property_value_to_enum_str function to
28375 check/convert if the value for the given property can be represented by an
28378 It would be nicer to mover all the enums tables/resolving to a separate
28379 place in future instead of gluing it to xaml.cpp.
28381 2008-02-28 Stephane Delcroix <sdelcroix@novell.com>
28383 * shape.h|cpp: override GetSizeForBrush for Rectangle to honor the
28386 2008-02-27 Jeffrey Stedfast <fejj@novell.com>
28388 * text.cpp (Glyphs::Render): Use horiBearingX for the first char
28389 in the Glyphs string just like we do for TextBlock rendering.
28391 2008-02-27 Jeffrey Stedfast <fejj@novell.com>
28393 Fixes the last remaining issue in the TextRegressions.htm test.
28395 * xaml.cpp (flush_char_data): Only preserve LWSP in CDATA between
28396 non-autogenerated <Run>'s.
28398 * text.cpp (TextBlock::SetValue): Mark the Inlines auto-generated
28399 from the TextBlock's Text property as being auto-generated.
28401 2008-02-27 Larry Ewing <lewing@novell.com>
28403 * shape.cpp: change the shape surface cache to cache in device
28404 coordinates and rework the candidate restrictions to reject
28405 huge shapes and allow scaled caches.
28407 2008-02-27 Larry Ewing <lewing@novell.com>
28409 * shape.cpp: center the filled image within the new bounds.
28411 2008-02-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
28413 * media.h, media.cpp: When a media is opened, seek to the current
28416 * value.cpp: ToString: Return 'NULL' if we're null.
28418 2008-02-27 Michael Dominic K. <mdk@mdk.am>
28420 * src/animation.cpp: When storyboard is completed, Teardown the clocks
28421 only if we're realling stopping (not holding). Fixes the
28422 StoryBoard_ModifyProperty test.
28424 2008-02-27 Michael Dominic K. <mdk@mdk.am>
28426 * clock.cpp: Make sure we actually hit the our_delta < 0 code
28427 path. Fixes the AutoReversed/Repeated animations.
28429 2008-02-27 Michael Dominic K. <mdk@mdk.am>
28431 * shape.cpp: More cases to invalidate (free mem) of the surface cache.
28433 2008-02-26 Jeffrey Stedfast <fejj@novell.com>
28435 * font.cpp (TextFont::TextFont): Precalculate underline position
28436 and thickness. Also, we need to adjust the position based on 1/2
28437 the underline thickness.
28438 (TextLayout::Layout): Only adjust by the horiBearingX if < 0.
28439 (TextLayout::RenderLine): Same.
28441 2008-02-26 Chris Toshok <toshok@ximian.com>
28443 * runtime.cpp (runtime_cairo_create): take the visual too, so the
28444 plugin can send ours in - we can't rely on the pixmap having a
28445 visual associated with it, because it's initialized with the
28446 _foreign api which doesn't fill in the colormap. yay.
28447 (Surface::Surface): if we're windowless don't create the widget.
28448 also, init render/render_data and invalidate/invalidate_data to
28450 (Surface::ConnectEvents): exit early if we're windowless.
28451 (Surface::Invalidate): call through the invalidate function if
28452 there is one. otherwise, default behavior (if we have a widget).
28453 (Surface::Paint): exit early if no toplevel.
28454 (Surface::render_cb): call through the render function if there is
28456 (Surface::expose_to_drawable): this is most of the guts of
28457 expose_callback, changed to handle the case where we're already
28458 drawing to the backbuffer (in the windowless case) and therefore
28459 don't need the temporary pixmap. Also, commented out some code
28460 that clears the contents - do we actually need this? The comment
28461 for it is enormous...
28462 (Surface::expose_event_callback): just call expose_to_drawable
28463 with the widget's window.
28465 * runtime.h (class Surface): we need to make the gtk callbacks
28466 public since the plugin will be invoking them directly. Also,
28467 switch the event methods to returning bools, and add a new method
28468 called expose_to_drawable, so the plugin can direct rendering to a
28469 pixmap in the windowless case.
28471 * uielement.h, uielement.cpp: change all the Emit* methods to
28474 * dependencyobject.h, dependency.cpp: make EventObject::Emit
28475 return true if there were handlers for the event, and false
28478 2008-02-26 Jeffrey Stedfast <fejj@novell.com>
28480 * text.cpp (TextBlock::TextBlock): Removed the useless
28481 text_block_set_text() call. This was just a broken hack meant to
28482 do what MDK's previous commit fixed the right way.
28484 * font.cpp (TextFont::UnderlinePosition): Fixed to take font
28485 y_scale metrics into consideration.
28486 (TextFont::UnderlineThickness): Same.
28488 2008-02-26 Michael Dominic K. <mdk@mdk.am>
28490 * src/text.cpp: TextBlock when constructed by default has an empty
28491 Inlines collection instead of NULL. Along with all the previous
28492 commits fixes the OM_CreateAddInsert.htm test.
28494 2008-02-26 Michael Dominic K. <mdk@mdk.am>
28496 * src/collection.cpp: Don't allow collection insert at negative
28499 2008-02-26 Michael Dominic K. <mdk@mdk.am>
28501 * src/collection.cpp: Don't add the object to the collection if it
28502 already contains the object (return -1 instead).
28504 2008-02-26 Michael Dominic K. <mdk@mdk.am>
28506 * src/animation.cpp:
28508 * src/collection.cpp:
28509 * src/collection.h: The "Add" method of collections returns int (index of
28510 the element added), not bool. As explained in:
28512 http://msdn2.microsoft.com/en-us/library/system.windows.media.visualcollection.add.aspx
28514 2008-02-25 Jeffrey Stedfast <fejj@novell.com>
28516 * font.cpp (TextFont::OpenZipArchiveFont): Since we aren't going
28517 through FontConfig, we need to parse the font's family name to
28518 extract styleistic info so we can do proper font name matching and
28519 style matching (e.g. "Myriad Pro Cond Black Italic" should match
28520 "Myriad Pro, Condensed Black Italic").
28522 2008-02-25 Chris Toshok <toshok@ximian.com>
28524 * runtime.h, runtime.cpp: s/drawing_area/widget and
28525 s/DrawingArea/Widget
28529 2008-02-25 Michael Dominic K. <mdk@mdk.am>
28531 * src/uielement.h: Adding a virtual CacheInvalidateHint () function that
28532 can be called on the element to give it a hint that it should free it's
28533 cache for the time being.
28535 * src/collection.cpp:
28537 * src/panel.h: Forward CacheInvalidateHint to all children.
28540 * src/shape.h: Destroy the surface and path cache when hinted.
28542 In total improves our memory usage with surface/path caching, ie. in the
28545 2008-02-22 Michael Dominic K. <mdk@mdk.am>
28550 * src/shape.h: Adding functionality to report the cache size usage. By
28551 default it's turned off. MOONLIGHT_OVERRIDES="cache=show" to turn it on.
28553 2008-02-22 Michael Dominic K. <mdk@mdk.am>
28555 * src/shape.cpp: RoundOut to pixels the extents of the shapes. Causes us
28556 to expose a few more pixels but helps with surface caching.
28558 2008-02-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
28560 * downloader.cpp: downloader_get_response_file: remove any directory
28561 components from the part name, otherwise the creation of the tmp file
28562 fails. If we're aborted, don't call any callbacks.
28563 * media.cpp: If we have a downloader and SetSource is called with a new
28564 downloader, abort the previous download, not only unref it, otherwise
28565 our callbacks and events may still get called from the old downloader.
28567 2008-02-21 Jeffrey Stedfast <fejj@novell.com>
28569 * font.cpp (TextFont::TextFont): Simplified the fallback code.
28571 2008-02-21 Jeffrey Stedfast <fejj@novell.com>
28575 * text.cpp (Glyphs::SetIndices): Fixed to properly parse glyph
28577 (Glyphs::Layout): Properly handle glyph clusters.
28578 (Glyphs::Render): Same.
28580 2008-02-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
28582 * media.cpp: When aborting a downloader, null out the write
28585 2008-02-21 Michael Dominic K. <mdk@mdk.am>
28587 * src/clock.cpp: Emit the Completed event when Filling as
28588 well. Together with prev commit fixes: #359024 and #324935.
28590 2008-02-21 Michael Dominic K. <mdk@mdk.am>
28592 * src/animation.cpp:
28593 * src/animation.h: Detach the AnimationStorage update handler from the
28594 clock when the clock is stopped -- prevents us from overriding the (just
28595 reset) base value with another update.
28597 2008-02-21 Michael Dominic K. <mdk@mdk.am>
28599 * src/value.cpp: Implementing ToString () for DOUBLE.
28601 2008-02-21 Michael Dominic K. <mdk@mdk.am>
28603 * src/color.cpp: A slightly more relaxed/tolerant way of parsing
28604 the colors... it's the web and it's broken by default. Fixes:
28605 #362287 (the US candidates website).
28607 2008-02-21 Stephane Delcroix <sdelcroix@novell.com>
28609 * text.h|cpp: compute GetOriginPoint and fix GetSizeForBrush
28611 2008-02-20 Jeffrey Stedfast <fejj@novell.com>
28613 Fixes the TextBlockFontDownloads.htm test.
28615 * font.cpp (TextFontDescription::Set*): If the new value is not
28616 the same as the old, invalidate the loaded TextFont.
28617 (TextFont::TextFont): Always compare family names unless we're
28618 requesting the "Sans" (e.g. last) fallback font.
28619 (TextFont::TextFont): If the requested family name does not match
28620 the specified font file, fall back to a system font of the same
28621 name (we were doing this for zip archievs before, but not for
28622 specified ttf font files).
28624 * text.cpp (TextBlock::SetFontSource): If the downloader is null,
28625 set the font filename to null and invalidate the textblock.
28627 2008-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
28629 * media.cpp: Add a printf to inform when we're trying to load an
28630 mms stream. Helps a lot when trying to identify sites depending
28631 on mms/streaming support.
28633 * runtime.cpp: Unref debug_selected_element upon
28634 destruction. Fixes a leak.
28636 2008-02-20 Michael Dominic K. <mdk@mdk.am>
28638 * src/shape.cpp: Fixing the shape caching to work also with
28639 Path/Geometry. Fixes: #362021.
28641 2008-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
28643 * media.cpp: MediaElement/Image: Remove event handlers when we abort the
28644 downloader, otherwise the handlers might be called after we're
28647 2008-02-19 Jeffrey Stedfast <fejj@novell.com>
28649 * uri.cpp (Uri::ToString): Now takes a 'flags' argument to let us
28650 know which, if any, parts of the URI to hide.
28651 (Uri::Parse): If we don't have a protocol, don't simply assume
28652 that the entire string is the filename. We might have a fragment
28653 attached, for example.
28655 * text.cpp (Glyphs::OnPropertyChanged): Decode the URI here and
28656 get the font index (if a fragment is set). Also, use the parsed
28657 Uri's ::ToString() method to hide the fragment so that requesting
28658 the file actually works.
28659 (Glyphs::DownloaderComplete): Don't need to parse the URI here
28660 anymore, we've already got the index from OnPropertyChanged().
28662 2008-02-19 Jackson Harper <jackson@ximian.com>
28664 * xaml.cpp: Parser error if we can't find the owner type or
28665 property name when setting properties.
28667 2008-02-19 Sebastien Pouliot <sebastien@ximian.com>
28669 * geometry.cpp|h: #if out GetOriginPoint which calls moon_get_origin
28671 2008-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
28673 * pipeline-ffmpeg.cpp: Comment out error message which just shows ffmpeg's
28675 * media.cpp: Remove printf.
28677 2008-02-19 Sebastien Pouliot <sebastien@ximian.com>
28679 * moon-path.c: #if out moon_get_origin since it's not used
28680 anymore. Change cairo_path_display output to be easier to read
28681 with negative numbers.
28683 2008-02-18 Michael Dominic K. <mdk@mdk.am>
28686 * src/media.h: Load images slightly faster by skipping one pixbuf blit and
28687 doing the expansion + conversion in one step.
28689 Also fixing an ugly memory leak where all RGBA images loaded were leaked
28690 (two times in memory).
28692 2008-02-15 Michael Dominic K. <mdk@mdk.am>
28694 * src/clock.cpp: Before processing dirty enter/leave gdk threads. We're
28695 being called from a timeout (unprotected) and we're potentially calling
28696 gdk_ invalidation functions. I think it only matters (in this case)
28697 on non-X backends though.
28699 2008-02-15 Michael Dominic K. <mdk@mdk.am>
28701 * src/uielement.cpp: Moving the debug timers for rendering slightly and
28702 uncommenting them so that they work when TIMERS is enabled.
28704 2008-02-15 Michael Dominic K. <mdk@mdk.am>
28707 * src/runtime.h: Adding an extra DEBUG_MARKER_KEY define (disabled by
28708 default) that changes your 'd' key into a special debug key. When pressed,
28709 a message is printed to the console (region start). When pressed again,
28710 another message is printed (region end). This is usefull to see what
28711 happens in a particular part of the program timeline (ie. after click).
28713 Makes sense obviously only with timers debugging on and stuff.
28715 2008-02-14 Michael Dominic K. <mdk@mdk.am>
28717 * src/clock.cpp: Changing max/default FPS to 50. Empirical experience
28718 shows that SL runs by default at something around that. Also, with the
28719 recent fixes some sites are suffering from 24 (can run/look much better
28722 2008-02-14 Michael Dominic K. <mdk@mdk.am>
28725 * src/shape.h: Adding surface caching for shapes. The strategy
28726 is to cache big surfaces that have little transformations (such as
28727 ie. backgrounds, fade overlays, etc.). Improves performance greatly
28728 for many sites (ie. Showcase).
28730 2008-02-14 Michael Dominic K. <mdk@mdk.am>
28732 * src/uielement.cpp: Commenting out the timer in post-pre render as it's
28733 broken and blocks the compilation with timers on.
28735 2008-02-12 Michael Dominic K. <mdk@mdk.am>
28737 * src/animation.cpp:
28738 * src/animation.h: Massive fix for our KeySpline animation calculation
28739 routines (which were broken and giving wrong values). According to:
28741 http://msdn2.microsoft.com/en-us/library/ms533119(VS.85).aspx
28743 "...think of the horizontal axis as the pace with which the interpolation
28744 proceeds along the timing interval. The vertical axis is the resulting
28745 value for the animation's progress, yielded by the function that underlies
28746 the keySplines property. Another way of describing this is that the
28747 horizontal axis is the input unit time for the interval, and the vertical
28748 axis is the output unit time."
28750 Therfore, we need to perform an "Y for X" bezier lookup. The current fix is
28751 a little bit ugly -- we waste 256 bytes per KeySpline to store
28752 pre-calculated values in a lookup table. But maybe it's not soo bad, since
28753 balf function (from prev implementation) was coming up top in the
28756 The only other way I can (currently) think of would be to solve a cubic
28757 equation each time we poll the KeySpline for a value. That would be,
28758 however, a *massive* performance hit.
28760 Hence the lookup solution for now (note: the generation of the table is
28761 very fast, no cubics involved).
28763 2008-02-11 Michael Dominic K. <mdk@mdk.am>
28765 * src/runtime.h: Fixing our debug-timing routine. It reported 10x as much
28766 as it should... yes, our redraws are slow, but not *that* slow ;)
28768 2008-02-09 Michael Dominic K. <mdk@mdk.am>
28770 * src/mplayer.cpp: If we have no audio devices present in the system,
28771 launch a special audio loop variant to still read/fetch audio (and discard
28772 it) so that the video playback is not blocked. Fixes: #341835.
28774 2008-02-08 Jeffrey Stedfast <fejj@novell.com>
28776 * font.cpp (TextFont::TextFont): If the loaded font's family_name
28777 doesn't match the requested family name, fall back to the default
28778 font (it means the requested font doesn't exist on the system).
28779 (TextLayout::Layout): Added a 'first_char' state variable that can
28780 be used to figure out if if the current char is the first char on
28781 a line. This is needed for the wrapping logic.
28783 2008-02-08 Jeffrey Stedfast <fejj@novell.com>
28785 Fixes some text layout bugs in TextBlockFontFamilies.xaml
28787 * xaml.cpp (flush_char_data): Now takes a string 'next_element'
28788 argument rather than a bool 'start' argument so that we can make
28789 sure that the previous and next element types are <Run>'s because
28790 lwsp between a <LineBreak/> and a <Run> or a </Run> and a
28791 <LineBreak/> should be ignored. Also, never g_strchomp() this
28793 (start_element_handler): Pass the name of the next element to
28795 (end_element_handler): Pass NULL to flush_char_data() as the
28796 next_element argument.
28798 2008-02-08 Chris Toshok <toshok@ximian.com>
28800 * media.cpp (MediaElement::Render): reorder things so that we're
28801 calculating the brush pattern matrix with the snapped pixels.
28803 2008-02-08 Stephane Delcroix <sdelcroix@novell.com>
28805 * brush.cpp: fix Image|Video|VisualBrushes for Shapes.
28807 2008-02-07 Chris Toshok <toshok@ximian.com>
28809 * media.cpp (MediaElement::Render): snap to the pixel grid if
28810 we're not rotated/skewed.
28812 2008-02-07 Sebastien Pouliot <sebastien@ximian.com>
28814 * shape.cpp: Add comment about (missing) Path::ComputeLargestRectangle
28816 2008-02-07 Larry Ewing <lewing@novell.com>
28818 * brush.cpp (GradientBrush::SetupGradient): treat stops > 1.0 the
28819 same as out of bounds stops.
28821 * shape.cpp: cache the results of CompouteShapeBounds in
28822 extents rect, use that value in GetSizeForBrush.
28824 2008-02-07 Jeffrey Stedfast <fejj@novell.com>
28826 Fixes a rendering glitch for xaml similar to:
28829 <Run FontStyle="Italic">This </Run>is Dodger Blue
28832 * xaml.cpp (flush_char_data): Don't g_strchomp() the cdata when
28833 setting the value of a content_property (e.g. a Run).
28835 2008-02-07 Michael Dominic K. <mdk@mdk.am>
28837 * src/color.cpp: Added support to parse scRGB-style color specificators
28838 (sc#), see #345931. The scRGB -> sRGB conversion is a bit simplified but
28839 should produce accurate-enough colors for most uses.
28841 http://silverlight.net/quickstarts/silverlight10/controls.aspx now works.
28843 2008-02-07 Sebastien Pouliot <sebastien@ximian.com>
28845 * shape.cpp|h: Split ComputeBounds to avoid calling functions
28846 bounding_rect_for_transformed_rect and IntersectBoundsWithClipPath
28847 inside each shape. This will enable us to reuse the non-transformed
28848 value elsewhere too. This also fix (for me) the origin point that
28849 caused problems for some brushes. Started implementing methods
28850 ComputeLargestRectangle[Bounds] to optimize drawing.
28852 2008-02-06 Chris Toshok <toshok@ximian.com>
28854 * frameworkelement.cpp (FrameworkElement::GetSizeForBrush): we
28855 want the untransformed size of the element. otherwise we end up
28856 with a pattern matrix that scales things too large given that
28857 we're also scaling the element. Fixes fullscreen mode in halo3
28858 and /fox video players (bug #335845).
28860 2008-02-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
28862 * mplayer.cpp: AdvanceFrame: Create a target_pts range, if we're within the
28863 range, draw the current frame. If we're ahead of the range, do nothing
28864 (fixes some video/audio sync problems), and if we're behind drop frames.
28865 The range makes sure that we paint every frame even when the audio loop
28866 doesn't update the target pts as often as we're drawing video.
28868 2008-02-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
28870 * panel.cpp, runtime.cpp: Fix warnings.
28872 2008-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
28874 * mplayer.cpp: Simplify our advance frame loop: don't lock the queue during
28875 the entire loop, only when fetching packets. This allows packets to
28876 arrive from the pipeline while in the loop (especially noticable when
28877 decoding the video inside the loop).
28879 2008-02-06 Chris Toshok <toshok@ximian.com>
28881 * uielement.cpp (UIElement::FrontToBack): use the media state
28882 accessors, and don't exclude Buffering state - we could be
28883 buffering with a frame rendered.
28885 2008-02-06 Sebastien Pouliot <sebastien@ximian.com>
28887 * shape.cpp|h: Keep track if a rectangle has radii or not.
28888 * uielement.h: Add a flag for radii
28890 2008-02-06 Chris Toshok <toshok@ximian.com>
28892 * uielement.cpp (UIElement::FrontToBack): make sure
28893 media_element_get_current_state != NULL before we strcmp it.
28895 2008-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
28897 * src.mdp: Updated.
28899 2008-02-06 Stephane Delcroix <sdelcroix@novell.com>
28901 * brush.cpp: fix the radialgradientbrush setup.
28903 2008-02-05 Chris Toshok <toshok@ximian.com>
28905 * collection.cpp (Collection::EmitChanged): new method. Emit the
28906 Changed event and then call closure->OnCollectionChanged. Also
28907 replace all references to closure->OnCollectionChanged to
28910 * collection.h (class Collection): add ChangeEventArgs struct, and
28911 an EmitChanged method declaration.
28913 * type.h.in, type.cpp.in (Type::~Type): no need to free all the
28915 (Type::HideEvent): remove the event name from the hash so it's
28916 inaccessible from javascript.
28917 (Type::RegisterEvent): use g_hash_table_new_full so we can specify
28918 a destroy function for keys instead of doing the _foreach in the
28920 (types_init_manually): add the #if 0 here instead of type.cpp.
28922 (types_init_register_events): register a Changed event for
28925 2008-02-05 Jeffrey Stedfast <fejj@novell.com>
28927 * downloader.cpp (Downloader::ll_downloader_get_response_file):
28928 Simplified by using the new ExtractFile utility function from
28931 * font.cpp: Moved ExtractFile() and make_tmpdir() into utils.cpp
28933 * utils.cpp: New collection of utility functions.
28935 2008-02-05 Jeffrey Stedfast <fejj@novell.com>
28937 * font.cpp: If a font is requested from a zip archive, extract the
28938 contents and try to figure out which font is the closest match to
28939 the one requested. Fixes bug #356044.
28941 2008-02-05 Chris Toshok <toshok@ximian.com>
28943 * uielement.cpp (UIElement::FrontToBack): enable the rectangle
28944 code, and make sure to round in the bounds we're subtracting.
28945 this was causing the flashing white border on silverlight.net/fox.
28947 2008-02-05 Sebastien Pouliot <sebastien@ximian.com>
28949 * shape.cpp: Use existing MIN macro. Use local variables when
28952 2008-02-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
28954 * fullscreen.cs, fullscreen.sh: Tool to generate fullscreen.h
28956 2008-02-05 Chris Toshok <toshok@ximian.com>
28958 * runtime.h, runtime.cpp: add support for a "selected" element
28959 when in debug mode. Also, make use of the Region methods instead
28960 of using region->gdkregion, which is private now.
28962 2008-02-05 Chris Toshok <toshok@ximian.com>
28964 * region.h, region.cpp (class Region): add Offset().
28966 2008-02-05 Sebastien Pouliot <sebastien@ximian.com>
28968 * geometry.cpp|h: PathGeometry does a Build (not a Draw) to
28969 populate it's moon_path (like others) so the data can always be
28971 * moon-path.c|h: Add moon_get_origin to get the minimal X and Y
28972 from a moon_path (Stephane) and moon_merge to merge a subpath into
28975 2008-02-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
28977 * pipeline-ffmpeg.cpp: Remove another printf.
28979 2008-02-02 Jeffrey Stedfast <fejj@novell.com>
28981 * pipeline.cpp (FileSource::Peek): Only memmove() if we have data
28983 (FileSource::Peek): Slightly better fix.
28985 2008-02-01 Jeffrey Stedfast <fejj@novell.com>
28987 * pipeline.cpp (Mp3Demuxer::GetPositionOfPts): Reimplemented to
28988 estimate the stream position if not known rather than reading data
28989 to find out as we don't have to return an exact stream position.
28991 2008-02-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
28993 * pipeline.h: Update comment.
28995 2008-02-01 Stephane Delcroix <sdelcroix@novell.com>
28999 * shape.cpp: rename GetOringin into GetOriginPoint
29001 * brush.cpp: implement a bad origin computation (based on bounds)
29004 2008-02-01 Jeffrey Stedfast <fejj@novell.com>
29006 * pipeline.cpp (Mp3Demuxer::GetPositionOfPts): Implemented.
29007 (FileSource::Peek): As before, only read as much as we need - but
29008 don't clobber what we had prebuffered, only clobber as much as w
29009 need to in order to make room for the new data - this way we make
29010 it more efficient to seek backward later (if need be).
29012 2008-02-01 Stephane Delcroix <sdelcroix@novell.com>
29015 * shape.cpp: define GettOrigin at the Shape level, compute GetOrigin
29016 from the path data instead of from bounds.
29018 * brush.cpp: translate the brushes with a translation matrix.
29020 2008-02-01 Larry Ewing <lewing@novell.com>
29022 * brush.cpp: Make sure we use the brush opacity when computing the
29025 2008-02-01 Jeffrey Stedfast <fejj@novell.com>
29027 * pipeline.cpp (FindMpegHeader): Now checks for Xing and
29028 Fraunhofer VBRI headers.
29030 2008-01-31 Chris Toshok <toshok@ximian.com>
29032 * uielement.h: include region.h
29034 * point.h: don't assume the right headers have been included
29035 before this file - include glib.h to make sure
29036 G_BEGIN_DECLS/G_END_DECLS is there.
29038 * region.h, region.cpp: split out the region code from
29041 * rect.h, rect.cpp: remove region code.
29043 * Makefile.am: add region.h/region.cpp
29045 2008-01-31 Chris Toshok <toshok@ximian.com>
29047 * runtime.h, runtime.cpp: remove runtime_cairo_region (we can just
29048 use Region::Draw instead).
29050 * panel.cpp: remove references to runtime_cairo_region, and switch
29051 to the new Region* copy ctor. also, use Region::IsEmpty instead
29052 of gdk_region_empty.
29054 * uielement.cpp: more region cleanup, removing references to
29055 GdkRegion in favor of our Region class. Also, commit (ifdef'ed
29056 out until the rendering glitch is fixed) the rectangle back to
29057 front special case code.
29059 2008-01-31 Chris Toshok <toshok@ximian.com>
29061 * rect.cpp (Region::Region): new overload which takes a Region*,
29062 so we don't have to access ->gdkregion everywhere when we copy a
29065 * rect.h (struct Rect): add a GrowBy method that takes both x and
29066 y deltas, and have the 1 parameter version call it.
29067 (class Region): add a copy ctor that takes a Region*.
29069 2008-01-31 Chris Toshok <toshok@ximian.com>
29071 * panel.h, panel.cpp: rename use_back_to_front to UseBackToFront
29072 and add it to the class, protected so subclasses can get at it.
29074 * stylus.cpp (InkPresenter::PostRender): given the ordering
29075 required, we have to c&p some of Panel::PostRender here to render
29076 the children. Chaining up to Canvas::PostRender at the start of
29077 the method would have caused the translucency/opacity mask code in
29078 UIElement::PostRender to be executed *before* we rendered our
29081 2008-01-31 Chris Toshok <toshok@ximian.com>
29083 * stylus.h, stylus.cpp (InkPresenter::PostRender): rename
29084 RenderChildren to this, and chain up to Canvas::PostRender here,
29085 which will do the RenderChildren call if it needs to.
29087 2008-01-31 Chris Toshok <toshok@ximian.com>
29089 * panel.cpp (Panel::FrontToBack): simplify this a bunch with
29092 * brush.h (class Brush): remove GetTotalOpacity() which wasn't
29093 being used anywhere, and add IsOpaque() so that we can use it from
29094 the new front-to-back stuff (instead of duplicating code in Panel
29095 and Shape handling parts).
29097 2008-01-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
29099 * media.cpp: Update.
29101 2008-01-31 Chris Toshok <toshok@ximian.com>
29103 * media.cpp (MediaElement::MediaElement): fix build.
29104 (Image::Image): fix initialization order to quiet g++.
29106 2008-01-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
29108 * mplayer.cpp, mplayer.h: Render: removed, not used. LoadVideoFrame:
29109 implemented again. Added an ugly caught_up_with_seek value, used to
29110 determine if video is late due to a seek, in which case it shouldn't
29111 show any frames (fixes #356053).
29112 * pipeline.cpp, pipeline.h: Added IMediaDecoder::CleanState and
29114 * pipeline-ffmpeg.cpp: Implemented FfmpegDecoder::CleanState and
29115 HasDelayedFrame. Use a mutex to serialize access to avcodec_open.
29116 * pipeline-ffmpeg.h: Implemented FfmpegDecoder::CleanState and
29119 2008-01-31 Jeffrey Stedfast <fejj@novell.com>
29121 * pipeline.cpp (mpeg_parse_samplerate): Doh, need to bitshift the
29123 (FindMpegHeader): Now takes an MpegFrameHeader argument, no sense
29124 having our caller re-parse the header.
29125 (Mp3Demuxer::ReadHeader): Updated.
29127 2008-01-31 Stephane Delcroix <sdelcroix@novell.com>
29129 * brush.cpp: apply the correct offset to RadialGradientBrushes too.
29131 2008-01-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
29133 * clock.h: Added macros to convert between pts, milliseconds and timespans.
29134 * media.cpp, media.h: MediaElement: Updated to normalized pts (starting at
29135 0). Use the new macros when converting between time formats. Remove the
29136 AdvanceFrame timeout upon reinitialization. Implement a better buffering
29137 algorithm (and honor the BufferingTime property).
29138 * mplayer.cpp, mplayer.h: Remove initial_pts, everything coming from the
29139 pipeline is now normalized to start at 0. Use the new macros when
29140 converting between time formats.
29141 * pipeline.cpp, pipeline.h: Normalize all pts to start at 0, and remove
29142 start_time/initial_pts handling. Added Demuxer::GetPositionOfPts to
29143 estimate the position of a pts. ProgressiveSource::CancelWait: only
29144 cancel if we're waiting, and then wait until actually cancelled.
29146 2008-01-31 Stephane Delcroix <sdelcroix@novell.com>
29149 * shape.h: GetOrigin for Polyline and Polygon
29151 2008-01-31 Stephane Delcroix <sdelcroix@novell.com>
29153 * uielement.h: add a GetOrigin ()
29156 * shape.h: implement GetOrigin for Path
29158 * brush.cpp: use GetOrigin as offset, fix the Crystal test.
29160 2008-01-30 Chris Toshok <toshok@ximian.com>
29162 * mplayer.h (class MediaPlayer): add rendered_frame.
29164 * mplayer.cpp (MediaPlayer::MediaPlayer): init rendered_frame to
29166 (MediaPlayer::Close): reset rendered_frame.
29167 (render_frame): set rendered_frame to true if we've successfully
29168 copied data into the video surface.
29170 * media.cpp (Image::CreateSurface): set CachedSurface::has_alpha
29171 to the pixbuf's has_alpha if USE_OPT_RGB24.
29173 * media.h (class Image): make the CachedSurface type and the
29174 instance field "surface" public, so the front to back stuff can
29175 get at it. Also, add "has_alpha" to it, since once the xlib
29176 surface has been created, we lose that information.
29178 * control.cpp (Control::FrontToBack): nothing to do but call
29179 FrontToBack on real_object.
29181 * control.h (class Control): add override for FrontToBack.
29183 * panel.cpp (Panel::FindStartingElement): get rid of this crap.
29184 it was broken and the wrong way to implement it.
29185 (Panel::Render): remove the RenderChildren call here, we do it in
29186 PostRender (and only if we're not rendering front to back)
29187 (Panel::PostRender): if we aren't rendering front to back, call
29189 (Panel::RenderChildren): remove references to FindStartingElement.
29190 (Panel::FrontToBack): this method is a little more complicated
29191 than UIElement::FrontToBack owing to the fact that we're
29192 flattening things to a list. We need to prepend a "cleanup node"
29193 first, before calling FrontToBack on our children, to do the
29194 Panel::PostRender stuff after our children have been rendered. We
29195 remove this cleanup node if none of the children have added
29196 themselves to the list, and our bounds (without the children)
29197 don't intersect the expose region. We apply the same logic to
29198 removing our rectangular bounds as the UIElement code does, but
29199 also have to take into account our background brush. We punt if
29200 any part of it is transparent, and only handle SolidColorBrush and
29201 GradientBrush subclasses.
29203 * panel.h (class Panel): override UIElement:: FrontToBack,
29204 PreRender, and PostRender.
29206 * uielement.cpp (UIElement::DoRender): factor out most of the guts
29207 of this method so it can be used in either front-to-back or
29208 back-to-front. Make sure to pass "false" as the front-to-back arg
29209 for PreRender and PostRender.
29210 (UIElement::FrontToBack): calculate the intersection of the expose
29211 region and our bounds. Add this region to the front of the render
29212 list, and then do some calculating to decide if we should remove
29213 it from consideration by elements lower than us in the display.
29214 Things like "are we opaque", "have we been rotated or skewed, such
29215 that our rectangular shape no longer fills the bounds entirely",
29216 stuff like that. We further limit subtracting in element type
29217 specific ways - right now just for MediaElement and Image with
29218 certain constraints (images can't have alpha, media elements must
29219 have a frame rendered, both types must fill their rectangle, etc).
29220 If everything passes, we remove our bounds from the expose region.
29221 (UIElement::PreRender): new method, do the things that DoRender
29222 used to do before calling Render.
29223 (UIElement::PostRender): new method, do the things that DoRender
29224 used to do after calling Render.
29226 * uielement.h: move the IS_TRANSLUCENT/IS_INVISIBLE #defines here
29227 so they can be used in panel.cpp. Also, add 3 new virtual
29228 methods (FrontToBack, PreRender, PostRender) as well as two
29229 callback methods to invoke the 2 latter ones.
29231 * runtime.cpp (overrides): add "render=ftb" and "render=btf"
29232 overrides (with btf the default) corresponding to
29233 RUNTIME_INIT_RENDER_FRONT_TO_BACK.
29234 (Surface::Paint): add support for front-to-back rendering. If
29235 it's enabled, make a FrontToBack pass on the fullscreen message
29236 and the toplevel element. This populates the render list with a
29237 back to front ordered list of elements to paint, along with the
29238 regions they need repainted. If the render list is empty for some
29239 reason (or if the user didn't select ftb rendering), we fall back
29240 to back to back-to-front rendering at the toplevel.
29241 (RenderNode::RenderNode): add ctor/dtor for RenderNode.
29243 * runtime.h: add the RenderNode class, used by the front to back
29246 * rect.h, rect.cpp: add IsEmpty() and two overloads of Subtract()
29249 2008-01-30 Jackson Harper <jackson@ximian.com>
29251 * xaml.cpp: Strip leading whitespace from xaml files.
29253 2008-01-30 Jackson Harper <jackson@ximian.com>
29255 * xaml.cpp: Handle more names for the default namespace.
29257 2008-01-30 Jackson Harper <jackson@ximian.com>
29259 * xaml.cpp: Add support for ucs4.
29261 2008-01-29 Jackson Harper <jackson@ximian.com>
29263 * xaml.cpp: pull in unistd.h
29265 2008-01-29 Jackson Harper <jackson@ximian.com>
29267 * xaml.cpp: Properly handle utf-16, converting it to utf-8 so
29268 expat doesn't choke.
29270 2008-01-28 Chris Toshok <toshok@ximian.com>
29272 * brush.cpp (VisualBrush::SetupBrush): RoundOut doesn't update
29273 inplace, it returns the new rect.
29275 * uielement.cpp (UIElement::DoRender): same change.
29277 2008-01-28 Jeffrey Stedfast <fejj@novell.com>
29279 * pipeline.cpp (FindMpegHeader): Validate that the sequence is
29280 actually an mpeg frame header by parsing it and calculating its'
29281 length and checking that another frame header starts where we
29283 (Mp3DemuxerInfo::Supports): We need to use FindMpegHeader() here
29286 2008-01-28 Jeffrey Stedfast <fejj@novell.com>
29288 * pipeline.cpp (FindMpegHeader): Scan over binary garbage and find
29289 an MPEG sync header.
29290 (Mp3Demuxer::ReadHeader): Use FindMpegHeader() and also use
29291 IMediaSource's new GetSize() method to help calculate media
29292 duration as opposed to seeking to the end.
29294 2008-01-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
29296 * media.cpp, media.h: Open the media async.
29297 * pipeline.cpp, pipeline.h: Add and implement OpenAsync.
29299 2008-01-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
29301 * media.cpp: MediaElement::AdvanceFrame: Only stop if the media player
29302 reached eof and couldn't advance.
29303 * mplayer.cpp, mplayer.h: Add a seeking flag, allows us to skip frames we
29304 get while we're waiting for a seek to happen. Implement a better pause
29305 algorithm, the previous one was flawed and dead-locked once in a while.
29306 * pipeline.cpp, pipeline.h: Media: Add a callback to async seek. ASFDemuxer:
29307 Create one frame reader for each stream.
29309 2008-01-27 Jeffrey Stedfast <fejj@novell.com>
29311 * media.cpp (MediaElement::UpdateProgress): Check (pos +
29312 buffering_size) > size, not < size. Duh.
29314 * pipeline.cpp: IMediaDemuxer ctors now take an IMediaSource
29315 argument to use in place of media->GetSource().
29316 (Media::Open): Don't set this->source unless we successfully open
29319 2008-01-26 Jeffrey Stedfast <fejj@novell.com>
29321 * media.cpp (MediaElement::TryOpen): In the DownloadComplete case,
29322 set the state to Buffering so that calling Play() will actually
29323 start playing the media (if the file was local, then we'll be in
29324 the Opening state which means that calling Play() will only note
29325 that a Play action was requested, but won't actually play the
29327 (MediaElement::SetState): Don't check for downloaded_file == NULL,
29328 it might fail in the above case.
29330 2008-01-26 Jackson Harper <jackson@ximian.com>
29332 * xaml.cpp: Set the encoding when we are reading files also.
29334 2008-01-25 Jeffrey Stedfast <fejj@novell.com>
29336 * pipeline.cpp (WaitForPosition): Only update wait_pos if it is
29337 greater than the current wait_pos.
29339 * media.cpp (UpdateProgress): Use the buffering_start position
29340 rather than the current write position to calculate buffer_size.
29342 2008-01-25 Jeffrey Stedfast <fejj@novell.com>
29344 * media.cpp (TryOpen): When download is complete and we
29345 successfully open the media, don't set the state to Paused - this
29346 breaks Halo3 if the video is cached.
29348 * media.cpp|h: Consolidated all of the bool state variables into a
29351 2008-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
29353 * pipeline.h, pipeline.cpp: ProgressiveSource: Make the position we're
29354 waiting for publicly available.
29355 * media.cpp: UpdateProgress: use the position the file is waiting for to
29356 calculate the buffer size (if it would exceed the default buffer size).
29358 2008-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
29360 * media.h: Add some descriptive comments.
29362 2008-01-25 Sebastien Pouliot <sebastien@ximian.com>
29364 * shape.cpp: Merge UIElement::InsideClip inside Shape::InsideObject
29365 instead of calling it since it can reduce some heavy cairo calls
29366 (cairo_in_*), if there's a clip, otherwise it won't affect
29369 2008-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
29371 * media.cpp: Initialize play_pending, and when buffering is
29372 finished, only play if autoplay or play_pending is true.
29374 2008-01-25 Jeffrey Stedfast <fejj@novell.com>
29376 * mplayer.cpp: Get rid of some unused variables and cleaned up
29379 2008-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
29381 * pipeline.cpp, media.cpp: More printfs removed.
29383 2008-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
29385 * src.mdp: Updated.
29387 * pipeline-ffmpeg.cpp: Commented out printf.
29389 * pipeline.h, pipeline.cpp: Removed some dead code. Made all
29390 interfaces inherit from IMediaObject, and put the media field
29391 there. Commented out printfs.
29393 * mplayer.h, mplayer.cpp: Unified Mute and UnMute into SetMuted to
29394 simplify code a bit. Encapsulated target_pts handling into
29397 * media.h, media.cpp: Create one and only one MediaPlayer for the
29398 life-time of the MediaElement. If not AutoPlay is set, then pause
29401 2008-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
29403 * pipeline.cpp, pipeline.h: Media: Don't create the worker thread upon first
29404 usage, but on construction, and finish it upon destruction. Fixes race
29405 between creating and destructing the thread.
29407 2008-01-24 Chris Toshok <toshok@ximian.com>
29409 * stylus.cpp (Stroke::HitTestEndcapSegment): implement.
29410 (calc_perpendicular_intersection_points): new method.
29411 (Stroke::HitTestSegmentSegment): use
29412 calc_perpendicular_intersection_points to give us the end points
29413 of the outer line segments, and use those for hit testing.
29415 2008-01-24 Jeffrey Stedfast <fejj@novell.com>
29417 * media.cpp (UpdateProgress): When switching to Buffering mode,
29418 save the position where we're currently at in the file so that we
29419 can use that as a reference point when calculating progress. Also,
29420 pause the MPlayer so that audio won't continue to play while we're
29421 waiting for buffering to complete. Fixes bug #356051.
29423 2008-01-24 Sebastien Pouliot <sebastien@ximian.com>
29425 * shape.cpp: Avoid calls to cairo_in_[stroke|fill] if no stroke
29426 (or fill) are present for the shape.
29428 2008-01-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
29430 * pipeline.cpp, pipeline.h: Create a more general worker thread,
29431 and use unions to save some space in WorkItem. In the ASFDemuxer,
29432 when seeking, we need to seek to the audio stream, since that's
29433 what we're using to sync against (if we have audio).
29435 * list.cpp, list.h: Added List::InsertBefore.
29437 2008-01-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
29439 * media.cpp: MediaElement::SetSource: only trigger the download
29440 after we've attached to the CompletedEvent.
29442 2008-01-23 Chris Toshok <toshok@ximian.com>
29444 * runtime.cpp (Surface::HandleMouseEvent): don't crash when we
29445 re-enter HandleMouseEvent, which can happen when that stupid JS
29446 timeout dialog pops up.
29448 2008-01-23 Chris Toshok <toshok@ximian.com>
29450 * runtime.cpp (Surface::SetMouseCapture): this fails not only if
29451 there's an existing capture, but also if there's a pending
29452 capture (so if both a parent and child capture on the same event,
29453 the child gets it.) Fixes dragging things around in ink journal.
29455 2008-01-23 Chris Toshok <toshok@ximian.com>
29457 * stylus.cpp, stylus.h: initial hit testing stuff. right now the
29458 only tests that are implemented are endcap (ellipse) vs. point,
29459 and segment vs. segment (although this one isn't the full test, as
29460 we're using the stroke line, as opposed to the exterior lines
29461 created by the ellipse pen tracing that line).
29463 * rect.h: add PointInside (Point p).
29465 2008-01-23 Jeffrey Stedfast <fejj@novell.com>
29467 * pipeline-ffmpeg.cpp: Don't #include "asf/asf-ffmpeg.h" anymore,
29468 it's no longer part of the build.
29470 2008-01-23 Sebastien Pouliot <sebastien@ximian.com>
29472 * shape.cpp|h: Add support for different PenLineCap on Line (part
29473 of #345888). Fix Polyline when a single segment is used (removed
29474 TODO). Avoid extra work when a start/end PenLineCap is Flat (default)
29476 2008-01-23 Jeffrey Stedfast <fejj@novell.com>
29478 * media.cpp (SetSource): Initialize the ProgressiveSource.
29480 * pipeline.cpp (ProgressiveSource::Seek): Simplified by calling
29481 parent class's implementation.
29483 2008-01-23 Jeffrey Stedfast <fejj@novell.com>
29485 * pipeline.cpp|h: ProgressiveSource now inherits from FileSource.
29487 2008-01-23 Jeffrey Stedfast <fejj@novell.com>
29489 * pipeline.cpp (FileSource::Read): Optimized a bit more for cases
29490 where the caller is trying to read a block larger than our
29492 (FileSource::Seek): Fixed 'n' to be an int64_t rather than a
29493 uint64_t (which is needed in the case of seeking backwards).
29495 2008-01-22 Larry Ewing <lewing@novell.com>
29497 * shape.cpp, shape.h: Move the stretch logic out of geometry.cpp
29498 and into Path.cpp as a transform not by modifying the data.
29500 * geometry.cpp, geometry.h: remove stretch logic.
29502 2008-01-22 Jeffrey Stedfast <fejj@novell.com>
29504 * pipeline.cpp (FileSource::Seek): Also optimize seeking backwards
29505 if within our pre-buffered bounds.
29506 (ProgressiveSource::Write): When restoring position state, use the
29507 proper offset (e.g. the offset of the end of our pre-buffered
29510 2008-01-22 Chris Toshok <toshok@ximian.com>
29512 * collection.cpp (UIElementZIndexComparer): the magnitude of the
29513 return value doesn't matter, only the sign.
29515 2008-01-22 Chris Toshok <toshok@ximian.com>
29517 * media.cpp (Image::InsideObject): if we have no surface (the
29518 image hasn't been loaded), we aren't HitTestVisible.
29520 * media.h (class Image): add InsideObject override.
29522 2008-01-22 Chris Toshok <toshok@ximian.com>
29524 * panel.cpp (Panel::OnCollectionChanged): remove the fix for
29525 #353954 as its redundant after the previous commit.
29527 2008-01-22 Chris Toshok <toshok@ximian.com>
29529 * garray-ext.cpp (bsearch): fix this so the g_array_insert_sorted
29532 2008-01-22 Jeffrey Stedfast <fejj@novell.com>
29534 * media.cpp (TryOpen): Don't leak Media objects. Also make sure to
29535 call Initialize() on the file source.
29537 * pipeline.cpp (IMediaSource): Read() now returns the number of
29538 bytes read rather than true/false and does nto guarantee that all
29539 of the data was read. Added a ReadAll() method which does what the
29540 old Read() method did.
29541 (FileSource): Rewritten to do our own buffering which allows for
29542 nice optimizations for Peek() and Seek().
29543 (ProgressiveSource): Also rewritten.
29545 * asf/asf.cpp: Updated to use IMediaSource::ReadAll()
29547 * asf/asf-guids.h: Moved all of the guids into asf-guids.cpp and
29548 just made them extern in the ehader, this way we don't duplicate
29549 those values in each source file that includes this header.
29551 2008-01-22 Sebastien Pouliot <sebastien@ximian.com>
29553 * shape.cpp|h: First part of DoDraw refactoring. Pass all
29554 regression tests from harness (moon versus moon) but it's possible
29555 that some degenerated cases (without test cases) regress.
29557 2008-01-22 Larry Ewing <lewing@novell.com>
29559 * clock.cpp: initalize the smoothing to max framerate, the first
29560 frame is quite likely the slowest frame we'll ever draw. Bump
29561 error delta back up to 1/50th.
29563 2008-01-22 Chris Toshok <toshok@ximian.com>
29565 * media.cpp (MediaElement::Render): a little cairo cleanup, and
29566 remove the USE_OPT_REGION_CLIP block.
29568 2008-01-22 Andrew Jorgensen <ajorgensen@novell.com>
29570 * pipeline.cpp: include unistd.h, fixes a build error introduced in
29571 r93311 when building without-ffmpeg
29573 2008-01-22 Larry Ewing <lewing@novell.com>
29575 * clock.cpp: reduce delta to 1/100 of a second and fix a bug in
29578 2008-01-22 Larry Ewing <lewing@novell.com>
29580 * clock.cpp: Tweak clock timing and smoothing. Increase timer
29581 priority so that ticks get deliver when we want them this doesn't
29582 change the smoothing calculation but it can raise the actual fps
29583 by assuring all our clocks are delivered. Change smoothing alpha
29584 from 0.3 to 0.03 to improve noise immunity. Don't reset the timer
29585 unless our new calculated timeout differs from our old by at least
29586 1/50 of a second. Resetting the clock on every tick had the
29587 effect adding the drawing time to the tick time for every tick
29588 since the timeout starts over at zero.
29590 2008-01-21 Jeffrey Stedfast <fejj@novell.com>
29592 * pipeline.cpp (Mp3FrameReader::ReadFrame): If the bitrate was
29593 unspecified, encode the bitrate back into the header so that if we
29594 are using the NullMp3Decoder, it will know how to handle
29595 it. Probably also needed for any actual Mp3 decoders as well since
29596 it won't reliably be able to keep track of variable-bitrate
29597 streams otherwise since it wouldn't know if/when we seek.
29598 (NullMp3Decoder::DecodeFrame): Implemented.
29600 2008-01-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
29602 * pipeline.cpp: Remove printf.
29604 2008-01-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
29606 * src.mdp: Remove mplayer2.cpp from here too.
29608 2008-01-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
29610 * mplayer.cpp, mplayer2.cpp, Makefile.am: Deleted mplayer.cpp and moved
29611 mplayer2.cpp to mplayer.cpp.
29613 2008-01-21 Jeffrey Stedfast <fejj@novell.com>
29615 * downloader.cpp (ll_downloader_get_response_file): Fixed to use
29616 mkstemp() rather than tmpnam_r() and also simplified.
29618 * pipeline.cpp: Fixed various things about the progressive stream.
29620 2008-01-19 Jeffrey Stedfast <fejj@novell.com>
29622 * mplayer2.cpp (audio_play): Get rid of the 'play' argument. Also
29623 don't memmove() data unless we don't have enough to play a single
29624 frame. Instead, what we'll do is keep progressing audio->outbuf as
29627 2008-01-19 Chris Toshok <toshok@ximian.com>
29629 * uielement.cpp (UIElement::OnPropertyChanged): remove the
29630 handling of TriggersProperty and ResourcesProperty's closure.
29632 * trigger.cpp, trigger.h: remove EventTrigger's OnPropertyChanged
29635 * transform.cpp (TransformGroup::OnPropertyChanged): remove
29636 handling of ChildrenProperty's closure.
29638 * text.cpp, text.h: remove Run::OnPropertyChanged, and also remove
29639 the handling of Inlines->closure from TextBlock.
29641 * stylus.cpp, stylus.h: remove a couple of OnPropertyChanged
29642 methods (InkPresenter and Stroke).
29644 * panel.cpp (Panel::OnPropertyChanged): remove handling of the
29645 ChildProperty's closure here.
29647 * media.cpp, media.h: remove the unnecessary
29648 MediaBase::OnPropertyChanged.
29650 * geometry.cpp, geometry.h: remove a few OnPropertyChanged
29651 methods (GeometryGroup, PathGeometry, and PathSegment.)
29653 * clock.cpp, clock.h: remove TimelineGroup::OnPropertyChanged.
29655 * brush.cpp, brush.h: remove the unnecessary
29656 Brush::OnPropertyChanged and GradientBrush::OnPropertyChanged.
29658 * animation.cpp, animation.h: remove all the
29659 *AnimationUsingKeyFrames::OnPropertyChanged methods, since all
29660 they did was deal with collection closures.
29662 * dependencyobject.cpp (DependencyObject::SetValue): factor out
29663 the "collection->closure" setting code from all the
29664 OnPropertyChanged methods sprinkled around and put it here. Also,
29665 set collection->closure to NULL on the old value (something the
29666 old code didn't do).
29668 2008-01-19 Chris Toshok <toshok@ximian.com>
29670 * animation.cpp: the remaining macros (SET_NULLABLE_FUNC and
29671 NULLABLE_{PRIM_}GETSET_IMPL) are moved here, right before their
29674 * animation.h: clean this file up by removing all those disgusting
29675 macros. for the DECL macros, just expand them here, as having the
29676 methods listed in the class declaration is a good thing.
29678 * collection.cpp (collection_new): remove the switch statement
29679 from here and use Type::CreateInstance instead. this largely
29680 removes the need to be including extra headers (like animation.h).
29682 2008-01-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
29684 * media.cpp, mplayer.cpp, mplayer2.cpp, Makefile.am, pipeline.h: Remove all
29685 MOON_MEDIA ifdefs and completely disable the old mplayer.cpp
29686 * src.mdp: Updated.
29688 2008-01-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
29690 * media.h, media.cpp: MediaElement: make this a state machine to follow the
29691 behaviour specified in MSDN. Implement buffering of media files.
29692 MediaSource (and derived): take a IMediaSource instead of a filename.
29693 * mplayer.h, mplayer2.cpp: Make Open take a Media instead of a filename.
29694 Remove all MOON_MEDIA ifdefs, too many changes to support both versions
29695 now. Make seeking async.
29696 * pipeline.cpp, pipeline.h: Changed the FrameReaderLoop into a more general
29697 worker thread, seeking can now be done there too. Implement
29699 * playlist.cpp: Change IsPlaylistFile to peek the file instead of checking
29700 the file extension. MediaSource (and derived): take a IMediaSource
29701 instead of a filename.
29702 * playlist.h: MediaSource (and derived): take a IMediaSource instead of a
29705 2008-01-18 Larry Ewing <lewing@novell.com>
29707 * uielement.cpp: compute total_opacity for invalidation logic but
29708 use local_opacity for drawing. This fixes monotones grid.xaml and
29709 some hit test regressions.
29711 2008-01-18 Jackson Harper <jackson@ximian.com>
29713 * xaml.cpp: KeyFrameCollections can be specified in the xaml if
29714 they are in a property element.
29715 - When searching for collections, use is subclass instead of
29716 making them be the same type, so derivied collections can be used.
29718 2008-01-17 Chris Toshok <toshok@ximian.com>
29720 * pipeline.h (class IMediaDemuxer): initializer streams and
29721 stream_count so we don't crash on ltbennett.com.
29723 2008-01-17 Jeffrey Stedfast <fejj@novell.com>
29725 * pipeline.cpp (Mp3FrameReader::ReadFrame): If we fail to read an
29726 MPEG header, set MediaFrame->event to EOF. Same if we can't read
29728 (Media::GetNextFrame): Don't try to decode the frame if it is an
29730 (ASFDemuxer::ReadFrame): If we reach EOF, set MediaFrame->event to
29733 * mplayer2.cpp (media_player_callback): pts is allowed to be 0.
29734 (AdvanceFrame): Handle EOF frame events.
29735 (audio_loop): Handle EOF frame events.
29737 2008-01-17 Chris Toshok <toshok@ximian.com>
29739 * stylus.cpp (InkPresenter::OnCollectionChanged): we need to
29740 invalidate the old bounds of the stroke for ItemRemoved as well as
29743 2008-01-17 Chris Toshok <toshok@ximian.com>
29745 * rect.h (Rect::Transform): new method, allows for transforming a
29746 rectangle by a cairo_matrix_t, used with transforming the stroke
29747 bounds back to screen space using the InkPresenter's
29750 * stylus.cpp, stylus.h: deal with collection changed notifications
29751 on Stroke::StylusPointsProperty and on
29752 InkPresenter::StrokesProperty, and correctly invalidate a stroke's
29753 bounds. The bounds of a stroke needs to be looked at - right now
29754 it's in the coordinate space of the InkPresenter, and so it needs
29755 to be transformed back to screen space before invalidating. Need
29756 to check if MS uses screen space for a stroke's bounds (seems
29757 likely they do, but this was easier to code.)
29759 2008-01-17 Jeffrey Stedfast <fejj@novell.com>
29761 * mplayer2.cpp: Updated for MediaFrame changes.
29763 * pipeline-ffmpeg.cc: Updated for MediaFrame changes.
29765 * pipeline.cpp: Instead of having a compressed_data and
29766 uncompressed_data field, simply have a 'buffer' field that gets
29767 reused by both the demuxer and the decoder. The decoder will set
29768 the buffer to the compressed data and the decoder will, once
29769 finished decoding, free the buffer and then update it to point to
29770 the decoded data. This reduces memory overhead.
29772 2008-01-17 Chris Toshok <toshok@ximian.com>
29774 * uielement.cpp (UIElement::InsideClip): use
29775 uielement_transform_point instead of duplicating it.
29777 * shape.cpp (Shape::InsideObject): use uielement_transform_point
29778 instead of duplicating it.
29780 * text.cpp (TextBlock::InsideObject): use
29781 uielement_transform_point instead of duplicating it.
29783 2008-01-17 Larry Ewing <lewing@novell.com>
29785 * shape.cpp (Rectangle::BuildPath): fix the origin calculation for
29786 unstroked rectangles (see test-rectangle-aliasing.xaml). Suggest
29787 more rectangle testing after this.
29789 2008-01-17 Jackson Harper <jackson@ximian.com>
29791 * xaml.cpp: After setting a property stop walking up the element
29794 2008-01-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
29796 * pipeline-ffmpeg.cpp: Comment out a couple of confusing printfs.
29798 2008-01-17 Jeffrey Stedfast <fejj@novell.com>
29800 * mplayer2.cpp (audio_decode): Removed as it is no longer really
29802 (audio_loop): We can't assume that an entire decoded audio packet
29803 will fit into the audio output buffer in a single shot, break it
29806 2008-01-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
29808 * mplayer2.cpp: Max out video frame rate at 60fps.
29810 2008-01-17 Fernando Herrera <fherrera@novell.com>
29812 * panel.cpp: Reorder based on ZIndex when a new item is added.
29815 2008-01-17 Larry Ewing <lewing@novell.com>
29817 * runtime.cpp (Surface::InitializeDrawingArea): disable extended
29818 input devices until the remaining issues can be resolved.
29820 2008-01-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
29822 * mplayer2.cpp, pipeline-ffmpeg.cpp: Plug a leak.
29824 2008-01-16 Larry Ewing <lewing@novell.com>
29826 * uielement.cpp, uielement.h:
29827 * panel.cpp, panel.h:
29828 * collection.cpp, control.cpp: remove Compute/UpdateTotalOpacity.
29829 Combine the opacity visibility check into the total render
29830 visibility. Make sure we compute/invalidate in all the same
29833 * dirty.cpp, dirty.h: remove all references to DirtyOpacity.
29835 * uielement.cpp (UIElement::DoRender): make sure we don't reset
29836 the coordinate system when setting up the clip calls in the
29837 opacity and opacity mask cases. Go back to using the brush
29838 directly when rendering masks. Should speed things up a little
29839 and fixes http://mycomix.wintellect.com/Spotlight.aspx?Item=1041
29841 2008-01-16 Chris Toshok <toshok@ximian.com>
29843 * stylus.h, stylus.cpp: a few changes. Move the
29844 StylusPointCollection and StrokeCollection classes here from
29845 collection.h/collection.cpp. I didn't like the addition of
29846 stylus.cpp logic in two places. Convert Stroke::GetBounds use use
29847 the new DrawingAttributes::ComputeBounds{WithoutDrawingAttributes}
29848 methods, and build up the bounds for the StrokeCollection by
29849 unioning all the Stroke bounds (these should be cached, but aren't
29850 yet.) StrokeCollection::HitTest has been implemented, just
29851 looping over the strokes. Stroke::HitTest is missing its guts at
29852 the moment, since hit testing is going to be a little bit of a
29855 * collection.h, collection.cpp: remove StylusPointCollection and
29858 2008-01-16 Larry Ewing <lewing@novell.com>
29860 * uielement.cpp, uielement.h: Rework the way we handle opacity to
29861 operate like the reference platform by removing the concept of
29862 TotalOpacity and instead using push/pop group and paint_with
29863 alpha. See test-sibling-opacity.xaml for an example. Handle
29864 clipping in DoRender rather than in every subclass because we want
29865 the clip path active before calling push/pop so that the temporary
29866 surface is bounded.
29867 * brush.cpp, panel.cpp: remove GetTotalOpacity references.
29868 * media.cpp, media.h: cleanup the complicated render logic now
29869 that things are handled in uielement.
29870 * shape.cpp, text.cpp: remove RenderClipPath calls.
29872 * rect.cpp, rect.h: add draw methods.
29874 2008-01-16 Jeffrey Stedfast <fejj@novell.com>
29876 * pipeline.cpp: Implemented mpeg seeking support for
29877 Mp3FrameReader and, thusly, Mp3Demuxer.
29878 (Mp3Demuxer::ReadHeader): Calculate the duration of the stream.
29880 2008-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
29882 * mplayer2.cpp: Remove a superfluous variable from Audio.
29884 2008-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
29886 * mplayer2.cpp: Remove superfluous variables from Video.
29888 2008-01-16 Sebastien Pouliot <sebastien@ximian.com>
29890 * moon-path.c: Fix typo (but was same value).
29892 2008-01-15 Jeffrey Stedfast <fejj@novell.com>
29894 * pipeline.cpp: Implemented mp3 demuxer.
29896 2008-01-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
29898 * mplayer2.cpp: Don't crash if Seek is called before Open.
29900 2008-01-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
29902 * mplayer2.cpp: Remove dead code and variables, and only request
29903 audio/video frames if we have audio/video.
29905 2008-01-15 Jeffrey Stedfast <fejj@novell.com>
29907 * mplayer2.cpp: Get rid of extra member variables in Packet.
29909 2008-01-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
29911 * mplayer2.cpp: Implement audio decoding on the main thread as well.
29913 2008-01-14 Jeffrey Stedfast <fejj@novell.com>
29915 * pipeline.cpp: Partially implemented an mp3 demuxer.
29917 2008-01-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
29919 * media.cpp, media.h, mplayer2.cpp, pipeline.cpp, pipeline.h: Make markers
29920 work again with the new pipeline.
29922 2008-01-14 Sebastien Pouliot <sebastien@ximian.com>
29924 * shape.cpp|h: It looks like we stopped needing consider_fill a
29927 2008-01-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
29929 * mplayer.h: We don't need io_tread anymore, so remove it.
29930 * mplayer2.cpp: We don't need io_tread anymore, so remove it. Add support
29931 for doing the decoding on the main thread with easy (in-code) switch.
29932 Comment out printfs, and remove dead/old/commented-out code.
29933 * pipeline.cpp, pipeline.h, pipeline-ffmpeg.cpp: Add support for doing the
29934 decoding on the main thread with easy (in-code) switch.
29935 * runtime.cpp: Don't print entire object tracking output if nothing leaked.
29937 2008-01-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
29939 * xaml.cpp: Unref a matrix object when we are done with it.
29940 * mplayer2.cpp: Remove printf.
29942 2008-01-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
29944 * mplayer2.cpp: Remove printfs.
29945 * pipeline.cpp, pipeline.h: Remove printfs and only print messages if they
29947 * pipeline-ffmpeg.cpp: Free context->extradata upon destruction.
29949 2008-01-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
29951 * pipeline.cpp: Fix crash with several web-sites (when seeking before
29954 2008-01-11 Chris Toshok <toshok@ximian.com>
29956 * clock.h (class Clock): add an instance
29957 field (calculated_natural_duration).
29959 * clock.cpp (Clock::ComputeBeginTime): don't include the parent's
29960 current time here. this was inflating animation begin time's in
29961 some cases to be either very close to the parent's calculated
29962 duration (or even after it).
29963 (ClockGroup::ComputeBeginTime): don't chain up to
29964 Clock::ComputeBeginTime. clock groups in our system need to
29965 include their parent time in their begin time. There are only two
29966 levels of clockgroups - storyboards, and the clockgroup we have
29967 associated with a given surface (Which will be the parent of all
29968 the storyboards running on that surface.)
29969 (output_clock): print out the BeginTime of the clock.
29970 (TimeManager::AddChild): I don't really like this, but we need to
29971 force the calculation of the natural duration of the clock when
29972 it's added to the hierarchy.
29973 (ClockGroup::AddChild): same here.
29974 (Clock::Clock): don't calculate the natural duration of the clock
29975 here - when we instantiated a ClockGroup it was calculating the
29976 duration before the child clocks were added.
29978 2008-01-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
29980 * pipeline.cpp: Seek on the frame reader, not on the source.
29981 * mplayer2.cpp, mplayer.h: Change all use of audio/video->stream != NULL to
29982 HasAudio/Video (). Fix seeking to actually work.
29984 2008-01-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
29986 * mplayer2.cpp, mplayer.h: Move the media variable from audio/video into
29987 mplayer.h where it belongs.
29988 * pipeline.cpp, pipeline.h: Implement seeking.
29989 * pipeline-ffmpeg.cpp: Copy decompressed data instead of using ffmpeg's data
29990 directly, since ffmpeg uses one single memory location for all decoded
29991 frames, causing us to always show the last decoded frame.
29993 2008-01-11 Sebastien Pouliot <sebastien@ximian.com>
29995 * shape.cpp: Add support for PenLineCapTriangle with a patched cairo.
29996 See bug #345892 for the required cairo patch.
29998 2008-01-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
30000 * media.cpp: Initialize Media too upon initialization.
30001 * pipeline.cpp, pipeline.h, pipeline-ffmpeg.cpp, pipeline-ffmpeg.h,
30002 mplayer2.cpp, mplayer.cpp: Implement registration of components, making
30003 it possible to completely remove ffmpeg.
30005 2008-01-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
30007 * pipeline.cpp: Remove stray character.
30009 2008-01-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
30011 * mplayer2.cpp, pipeline.cpp, pipeline.h, pipeline-ffmpeg.cpp,
30012 pipeline-ffmpeg.h: Code-cleanup.
30014 2008-01-10 Larry Ewing <lewing@novell.com>
30016 * runtime.cpp (Surface::InitializeDrawingArea): realize the widget
30017 before setting the extension events (lame api) and disable the
30020 2008-01-10 Chris Toshok <toshok@ximian.com>
30022 * runtime.cpp (Surface::InitializeDrawingArea): activate all
30023 devices that have a cursor associated with them.
30025 2008-10-10 Andrew Jorgensen <ajorgensen@novell.com>
30027 * pipeline.cpp: include config.h (fixes an ffmpeg-related build error)
30029 2008-01-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
30031 * mplayer.cpp: Surround with ifdef to conditionally include the new
30032 MediaPlayer or not.
30033 * Makefile.am: Added pipeline* and mplayer2.cpp.
30034 * pipeline-ffmpeg.h, pipeline-ffmpeg.cpp: Added, support for using ffmpeg in
30036 * pipeline.cpp, pipeline.h: Added.
30037 * mplayer2.cpp: Added, a MediaPlayer that uses the new pipeline.
30039 2008-01-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
30041 * panel.cpp: Delete leaked region.
30043 2008-01-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
30047 2008-01-09 Chris Toshok <toshok@ximian.com>
30049 * stylus.h, stylus.cpp, collection.h, collection.cpp: fix
30052 2008-01-09 Chris Toshok <toshok@ximian.com>
30054 * collection.h, collection.cpp: add C wrappers for
30055 StrokeCollection::GetBounds and ::HitTest.
30057 * stylus.h, stylus.cpp: same deal for Stroke::
30059 2008-01-09 Chris Toshok <toshok@ximian.com>
30061 * collection.h, collection.cpp: add empty implementations of
30062 StrokeCollection::GetBounds and StrokeCollection::HitTest.
30064 * stylus.h, stylus.cpp: add empty implementations of
30065 Stroke::GetBounds and Stroke::HitTest.
30067 2008-01-09 Chris Toshok <toshok@ximian.com>
30069 * uielement.h, uielement.cpp: change all the Emit* methods that
30070 deal with mouse events to take a GdkEvent instead of state/x/y,
30071 and also change their calldata to a heap allocated MouseEventArgs,
30072 which we unref after the emit. This is because the pointer itself
30073 is wrapped by the managed MouseEventArgs, and will be unref'ed in
30074 ~MouseEventArgs at some later time.
30076 * runtime.h, runtime.cpp: change all the mouse events to pass
30077 around the actual GdkEvent instead of the state/x/y. This is due
30078 to the fact that our MouseEventArgs class now wraps the GdkEvent,
30079 so we can get at all the stylus/extension event stuff.
30081 * stylus.h, stylus.cpp: remove stylus_get_current, as it's no
30082 longer required. We correctly create a StylusInfo instance from
30083 the MouseEventArgs.
30085 * Makefile.am (libmoon_la_SOURCES): add eventargs.cpp
30086 (libmooninclude_headers): add eventargs.h
30088 * libmoon.h: add eventargs.h.
30090 * eventargs.h, eventargs.cpp: new files, splitting out the
30091 KeyboardEventArgs and MouseEventArgs from uielement.h, and flesh
30092 out MouseEventArgs, making it a refcounted object with enough
30093 smarts to handle both the managed case and plugin case. Include
30094 all the stylus related code as well, so this *should* make all the
30095 stylus requiring demos work.
30097 2008-01-09 Jeffrey Stedfast <fejj@novell.com>
30099 * geometry.cpp (path_get_bounds): My fix the other day wasn't
30100 quite ideal. Instead of using a 0.1 line thickness when the
30101 shape's StrokeThickness is 0, continue using that 0 thickness but
30102 use cairo_fill_extents() instead. Also, when shape is null, ise a
30103 0.0 thickness & cairo_fill_extents() as well.
30105 * shape.cpp (DoDraw): Removed the if (thickness == 0) optimization
30106 that breaks Paths with a StrokeThickness of 0. Fixes bug #352188.
30108 * runtime.cpp (EmitEventOnList): Changed to take double x,y
30109 coordinate arguments rather than int.
30110 (HandleMouseEvent): Same.
30112 2008-01-09 Jeffrey Stedfast <fejj@novell.com>
30114 * list.cpp (List::~List): Added a dtor that deletes all nodes
30115 currently in the list. This is doable now that List::Nodes are
30116 classes where the node dtors can be overloaded.
30118 2008-01-09 Jackson Harper <jackson@ximian.com>
30120 * xaml.cpp: If a property is a collection, don't assume that the
30121 collection is already initialized (they used to always be), and
30122 initialize the collection if needed. This fixes BNC 350893.
30124 2008-01-09 Stephane Delcroix <sdelcroix@novell.com>
30126 * brush.cpp: fix (useless) derelativization for MappingmodeAbsolute
30127 on LinearGradientBrush. Fixes bnc 346308 and lineargrad.xml.
30129 2008-01-08 Chris Toshok <toshok@ximian.com>
30131 * animation.cpp (Storyboard::Begin): simple change to fix a nasty
30132 bug. we need to add the teardown handler before the completed
30133 handler. otherwise cases where people were using a storyboard as
30134 a timer would break - the completed handler would fire, the JS
30135 would restart the storyboard, then the teardown handler would free
30136 the new clock hierarchy. Fixes the page animation in pageturn,
30137 and gets the bubbles moving again in the SilverlightCLRBalls demo.
30139 2008-01-07 Jeffrey Stedfast <fejj@novell.com>
30141 * geometry.cpp (path_get_bounds): Cairo seems to break if the line
30142 thickness is 0.0, so if the shape's thickness is set to 0.0, use
30143 0.1 like we do if shape is null. Fixes bug #351575.
30145 2008-01-07 Sebastien Pouliot <sebastien@ximian.com>
30147 * shape.cpp|h: Add NeedsLineCaps and NeedsLineJoin so some shapes,
30148 that ignore those properties, can avoid setting them on the cairo
30151 2008-01-04 Chris Toshok <toshok@ximian.com>
30153 * runtime.cpp: mostly switch all emit_* calls to take doubles, and
30154 pass doubles around for button x/y.
30155 (Surface::motion_notify_callback): if we're gtk > 2.12, use
30156 gdk_event_request_motions (falling back to gdk_window_get_pointer
30157 if not). also, we can use the mouse_event_x/y from the event,
30158 even when it's a hint.
30160 * runtime.h: switch back to using doubles for everything mouse
30161 event related. Change MoonlightEventEmitFunc to take doubles.
30163 2008-01-04 Jeffrey Stedfast <fejj@novell.com>
30165 * runtime.cpp|h: Make mouse_event_x/y ints rather than doubles
30166 since the events that use them want them as ints anyway.
30167 (button_release_callback): Cast the button->x/y doubles to int.
30168 (button_press_callback): Same.
30169 (motion_notify_callback): Cast event->x/y to int.
30170 (crossing_notify_callback): Same.
30172 * dependencyobject.cpp: EventObjects now use a List class for
30173 event_lists rather than GSList which is far more costly for
30175 (Emit): Reduce the number of linked-list iterations from 5 to 2.
30177 2008-01-04 Chris Toshok <toshok@ximian.com>
30179 * runtime.h, runtime.cpp: completely overhaul the way we handle
30180 mouse events. Instead of doing both hit testing and event
30181 dispatch in one recursive tree traversal, we build up a list of
30182 all elements that will bubble the event, and then use that list
30183 along with the previous one to generate Enter/Leave events for the
30184 elements that require it. Also fix the way capture is done (it's
30185 not handled until the end) and fix the Enter event dispatch when
30186 you release mouse capture.
30188 * uielement.h, uielement.cpp: rename the mouse events to match the
30189 names used in C# and JS, as it's been singularly annoying to
30190 remember that ButtonPressEvent -> MouseLeftButtonDown, etc. Also
30191 rename all the Handle* event methods to Emit*, as that's all they
30192 do. Make them nonvirtual, as the traversal and emission of the
30193 events now happens in runtime.cpp. Add a new virtual
30194 method (HitTest), that is overridden by the container elements,
30195 which appends elements that are going to bubble the event to the
30198 * panel.h, panel.cpp: remove all the Handle* methods, implement
30201 * control.h, control.cpp: remove all the Handle* methods,
30204 2008-01-04 Jeffrey Stedfast <fejj@novell.com>
30206 * media.cpp (UpdateProgress): Don't SetValue() unless the delta
30207 was large enough - otherwise we could get into a situation where
30208 we never emit a progress changed event in a case where the data
30209 trickles in at < 0.05%.
30211 2008-01-04 Chris Toshok <toshok@ximian.com>
30213 * animation.cpp (Storyboard::HookupAnimationsRecurse): look back
30214 up the clock hierarchy for the target property like we do with the
30217 2008-01-04 Chris Toshok <toshok@ximian.com>
30219 * media.h: add Image::DownloaderFailed.
30221 * media.cpp (Image::UpdateProgress): make sure to qualify the
30222 DownloadProgressProperty we lookup on the Downloader, since
30223 without the Downloader:: it'll try to get
30224 Image::DownloadProgressProperty, which will always return 0.0.
30225 (Image::SetSource): use the static qualifier for
30226 events (Downloader:: instead of downloader->).
30227 (Image::DownloaderFailed): new method, emit our ImageFailedEvent.
30229 * brush.cpp (ImageBrush::image_progress_changed): make sure to set
30230 our ImageBrush::DownloadProgressProperty before emitting the
30232 (brush_init): lookup the ImageBrush::ImageFailedEvent.
30234 2008-01-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
30236 * runtime.cpp: Free background_color upon surface
30237 destruction. Fixes a minor leak.
30239 * clock.cpp|h: Free the tick_call_mutex upon destruction.
30241 2008-01-03 Jeffrey Stedfast <fejj@novell.com>
30243 Fix for bug #350962
30245 * media.cpp (MediaBase::OnPropertyChanged): Don't emit
30246 DownloaderProgressChanged events anymore, leave that up to Image
30247 and MediaElement classes so that we don't emit events when an
30248 outside source changes the value.
30249 (MediaElement::UpdateProgress): Emit the DownloaderProgressChanged
30250 event if the proper download delta has occured.
30251 (Image::UpdateProgress): Same.
30253 2008-01-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
30255 * dependencyobject.h: Remove warning.
30257 2007-12-31 Jeffrey Stedfast <fejj@novell.com>
30259 * runtime.h (CreateDownloader): Simplified.
30261 2007-12-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
30263 * collection.cpp: Upon destruction on VisualCollection, remove the visual
30264 parent of all items.
30265 * dependencyobject.h: Add weak_ref/unref and a comment explaining when and
30267 * dirty.cpp: Don't take a ref in DirtyNode.
30269 2007-12-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
30271 * media.cpp: Add const modifier
30273 2007-12-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
30275 * downloader.cpp: Null-initialize a field.
30276 * dirty.cpp: Make DirtyNode keep a reference to the element it wraps.
30278 2007-12-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
30280 * pipeline.h: Added, the start of the new media pipeline.
30282 2007-12-20 Sebastien Pouliot <sebastien@ximian.com>
30284 * collection.cpp|h: Add missing method AddStylusPoints for
30285 StylusPointCollection
30287 2007-12-20 Sebastien Pouliot <sebastien@ximian.com>
30289 * geometry.h: Remove hack for PathGeometry::FiguresProperty
30290 * xaml.cpp: If a collection is null by default then we must call
30291 parent->SetValue(dp, collection) or the collection, and it's
30292 contents, won't be available. Fix (correctly) Chess.
30294 2007-12-19 Sebastien Pouliot <sebastien@ximian.com>
30296 * geometry.cpp: Fix Draw and ComputeBound to deal with the fact that
30297 there's no default Figure collection. Fix Chess crasher.
30298 * xaml.cpp: Fix unit test were empty string are parsed as 0.0,
30299 foir doubles, and as an "empty" (but not NULL) Value for
30302 2007-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
30304 * media.cpp, media.h: Implement support for markers as a separate stream
30305 (the demuxer will call a callback when it encounters any streamed
30308 2007-12-19 Sebastien Pouliot <sebastien@ximian.com>
30310 * xaml.cpp: Add create_item_func for PathFigureCollection. This is
30311 now needed since it defaults to null and not an empty collection.
30313 2007-12-19 Stephane Delcroix <sdelcroix@novell.com>
30315 * uielement.[h|cpp]: set a default value (0,0) for RenderTransformOrigin.
30317 2007-12-18 Sebastien Pouliot <sebastien@ximian.com>
30319 * color.cpp: Handle empty string correctly in color_from_str. Unit
30320 tests shows this return 0 (and not transparent).
30322 2007-12-18 Stephane Delcroix <sdelcroix@novell.com>
30324 * xaml.cpp: fix for bnc 348581.
30326 2007-12-18 Sebastien Pouliot <sebastien@ximian.com>
30328 * brush.cpp: Fix default color values for SolidColorBrush::Color and
30329 GradientStop::Color properties (see js unit tests).
30330 * geometry.cpp|h: Remove default collection from PathGeometry. Fix
30331 testPathGeometry unit test.
30333 2007-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
30335 * media.cpp: ReadASFMarkers: Read markers as well as script commands.
30336 Subtract the preroll value from the pts before adding the marker. Unref
30337 the created collection and markers when finished with them.
30338 AdvanceFrame: Always call CheckMarkers, even if we couldn't advance the
30339 frame (might be necessary if the last frame has a marker).
30341 2007-12-17 Jb Evain <jbevain@novell.com>
30343 * xaml.cpp: fix testMatrixWithZeroItem test case.
30345 2007-12-17 Jb Evain <jbevain@novell.com>
30347 * type.cpp|h(.in), value.cpp|h(.in): remove the Matrix
30348 value type, has SL exposes it as a DependencyObject.
30350 * transform.cpp|h: define and implement the
30351 Matrix DependencyObject type.
30353 * xaml.cpp: create a Matrix DO on a Matrix xaml element.
30354 Also create such an object with the <MatrixTransform Matrix='...'>
30357 2007-12-17 Sebastien Pouliot <sebastien@ximian.com>
30359 * xaml.cpp: Return an "empty" Value (not NULL) if no POINT_ARRAY
30360 is provided. Fix testAllowEmptyPointsOnPoly[gon|line] JS tests.
30362 2007-12-14 Jeffrey Stedfast <fejj@novell.com>
30364 * runtime.cpp (fps_report_default): Default printf FPS report
30366 (Surface::render_cb): Use instance-local variables for keeping
30367 track of FPS and use the report func if RUNTIME_INIT_SHOW_FPS bit
30370 * runtime.h: Added a RUNTIME_INIT_SHOW_FPS flag
30371 (class Surface): New method to set the FPS report callback for a
30374 2007-12-14 Chris Toshok <toshok@ximian.com>
30376 * type.cpp.in, type.cpp (types_init_register_events): need to
30377 register DownloadProgressChanged and ImageFailed events on
30380 * brush.h, brush.cpp: same, and hook up the events from
30381 ImageBrush's embedded image so that we can re-emit the events.
30383 2007-12-14 Jeffrey Stedfast <fejj@novell.com>
30385 * downloader.cpp (Downloader::Abort): Don't abort if we've already
30386 been aborted or been notified that we've failed (needed protection
30387 for the Plugin downloader).
30388 (Downloader::Send): Set aborted = false.
30389 (Downloader::NotifyFailed): Don't do anything if we've already
30390 been notified of failure for this download request.
30392 * downloader.h (class Downloader): Keep track of aborted state as
30395 2007-12-14 Stephane Delcroix <sdelcroix@novell.com>
30397 * brush.cpp: Fix for bnc 346204: Set both Width and Height for Image if
30398 only one (Width XOR Height) is provided.
30400 2007-12-14 Sebastien Pouliot <sebastien@ximian.com>
30402 * shape.cpp: Fix Path::GetBrushSize to ensure the geometry has
30403 been built before calling cairo_stroke_extents. This fix sample
30404 http://designwithsilverlight.com/tutorials/photoGalleryWall/default.html
30406 2007-12-13 Sebastien Pouliot <sebastien@ximian.com>
30408 * shape.cpp|h: Shortcut path bounds calculation when both Width
30409 and Height are specified. Add same clipping rules to Line,
30410 Polyline and Polygon classes.
30412 2007-12-13 Sebastien Pouliot <sebastien@ximian.com>
30414 * geometry.cpp: Resume using cairo_stroke_extents in some cases
30415 because we need very precise bounds for Fill to work properly.
30416 This fix Sprawl's cowboy hat ribbon :-)
30418 2007-12-12 Stephane Delcroix <sdelcroix@novll.com>
30420 * brush.cpp: Fix RelativeTransform for RadialGradientBrush'es too.
30422 2007-12-11 Jeffrey Stedfast <fejj@novell.com>
30424 * downloader.cpp|h: Made the ::Write() method take the same
30425 int-type args as the NPP_Write() function (which means int32 for
30426 both offset and nbytes).
30428 2007-12-11 Sebastien Pouliot <sebastien@ximian.com>
30430 * stylus.cpp: Fix JS unit tests for Stroke properties by having
30431 a default DrawingAttributes inside the Stroke.
30433 2007-12-10 Chris Toshok <toshok@ximian.com>
30435 * dependencyobject.h, dependencyobject.cpp: more event changes.
30436 events keep a integer "token" per event, that starts at 0, that is
30437 returned from the plugin's addEventListener method, and can be can
30438 be passed to the plugin's removeEventListener method.
30440 2007-12-10 Sebastien Pouliot <sebastien@ximian.com>
30442 * shape.cpp: Fix Shape::GetSizeForBrush to adjust to the Stretch
30443 property of the Shape. Fix bug #346018
30445 2007-12-10 Jeffrey Stedfast <fejj@novell.com>
30447 * runtime.cpp (InitializeDrawingArea): Removed the call to
30448 gtk_widget_set_size_request() - we now call it elsewhere (since
30449 going fullscreen requiers us to call set_size_request() /before/
30450 calling gtk_window_fullscreen(). When going to fullscreen mode,
30451 this was causing the FullScreenMessage item to appear in the
30452 upper-left corner rather than centered like it should have been.
30453 (Surface): Make the call to gtk_widget_set_size_request() here now
30454 that it no longer is called inside InitializeDrawingArea().
30456 2007-12-07 Sebastien Pouliot <sebastien@ximian.com>
30458 * geometry.cpp: Set SHAPE_EMPTY if only Height or Width is specified.
30459 * shape.cpp|h: Add Shape and Path NeedsClipping methods. Adjust the
30460 bounds calculation on paths when Height *and* Width are present.
30462 2007-12-07 Sebastien Pouliot <sebastien@ximian.com>
30464 * shape.cpp: In Shape::ComputeBounds don't compute half thickness
30465 unless the value is needed.
30467 2007-12-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
30469 * xaml.cpp: Plug more leaks.
30471 2007-12-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
30473 * animation.cpp, geometry.cpp: Fix a couple of memory leaks,
30474 detected by the javascript tests.
30476 2007-12-06 Jeffrey Stedfast <fejj@novell.com>
30478 * media.cpp (media_element_get_attributes): Added.
30479 (media_element_set_attributes): Added.
30480 (MediaElement): Set an empty list of attributes as per the spec.
30482 2007-12-06 Stephane Delcroix <sdelcroix@novell.com>
30485 * brush.cpp: implement RelativeTransform for image brushes and
30486 LinearGradientBrush. RadialGradientBrush still missing.
30488 2007-12-06 Chris Toshok <toshok@ximian.com>
30490 * dependencyobject.h, dependencyobject.cpp: make
30491 EventObject::AddHandler return the id (when using the event_name
30494 2007-12-06 Chris Toshok <toshok@ximian.com>
30496 * xaml.cpp (xaml_init): register the right constructors for
30497 PathSegmentCollection, GeometryCollection, and
30498 TransformCollection.
30500 2007-12-05 Chris Toshok <toshok@ximian.com>
30502 * animation.cpp, animation.h: a couple of fixes. Move away from
30503 watching the clock state in AnimationStorage and resetting the
30504 property value there. instead, just override Clock::Stop in
30505 AnimationClock and call ResetPropertyValue on the storage.
30507 Also, when a storyboard's clock group is stopped, free it and
30508 remove it from the parent clock's list of children. This should
30509 keep us from growing the number of clocks over time for
30510 storyboards which don't have Begin() called again (the only
30511 circumstance under which we destroy the clock).
30513 * clock.cpp, clock.h: handle the case where a clock can be started
30514 and then stopped before the next clock tick. This happens when
30515 you move the mouse very quickly over the thumbnails in pageturn.
30517 2007-12-05 Sebastien Pouliot <sebastien@ximian.com>
30519 * geometry.cpp: Fix crash when EllipseGeometry is used for clipping
30520 (no path provided). Fix Build/ComputeBounds when no center point
30523 2007-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
30525 * uielement.h, visual.h, uielement.cpp, collection.cpp, control.cpp,
30526 dirty.cpp: Move UIElement::parent to Visual, rename it to visual_parent,
30527 and make it a real property with accessors.
30529 2007-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
30531 * xaml.cpp, dependencyobject.h, collection.cpp, dependencyobject.cpp,
30532 animation.cpp: Rename DependencyObject::parent/SetParent/GetParent to
30533 logical_parent/SetLogicalParent/GetLogicalParent.
30535 2007-12-04 Larry Ewing <lewing@novell.com>
30537 * media.cpp (Image::Render): fix the conditions for the opacity
30540 2007-12-03 Larry Ewing <lewing@novell.com>
30542 * src/media.cpp (Image::Render): use paint_with_alpha if opacity
30543 is changing, use the old buffered alpha if it is not.
30545 2007-12-04 Jb Evain <jbevain@novell.com>
30547 * stylus.cpp|h: add stylus_info_get_current function.
30548 Right now, it's an hack which always return a StylusInfo
30549 of type Mouse, not inverted.
30551 2007-12-03 Chris Toshok <toshok@ximian.com>
30553 * clock.h, clock.cpp: rename ClampTimeToDuration to ClampTime, as
30554 it now clamps to [0,duration_timespan]. This fixes the Simon
30555 "button flying off the screen" bug.
30557 2007-12-03 Jeffrey Stedfast <fejj@novell.com>
30559 * clock.cpp (RaiseEnqueuedEvents): Optimized a bit by not
30560 iterating thru the list 6 times :)
30561 (ClockGroup::RaiseAccumulatedEvents): Make a copy of the
30562 child_clocks list here too, or we end up corrupting memory.
30564 2007-12-03 Larry Ewing <lewing@novell.com>
30566 * media.cpp (Image::Render): wrap the region clipping in a #define
30569 2007-12-03 Larry Ewing <lewing@novell.com>
30571 * media.cpp (Image::Render): remove accumulated drawing cruft.
30573 2007-12-03 Chris Toshok <toshok@ximian.com>
30575 * animation.cpp: put back in the calls to ComputeBeginTime that I
30576 accidentally committed a few days ago (and lewing reverted to fix
30577 the build). they're needed with the new clock changes.
30579 2007-12-03 Chris Toshok <toshok@ximian.com>
30581 * clock.cpp, clock.h: rework the clock code a bunch. There are a
30582 couple of large changes.
30584 Get rid of the stupid new_ and current_ fields. Just update the
30585 field immediately. This cuts down on logic in if checks, and also
30586 makes subclocks update much faster in relation to their parent
30587 clock (we used to have to wait 1 tick per level in the tree for
30588 state to propagate).
30590 Abstract out all the QueueEvent calls into setters in clock.h.
30592 Break up Clock::Tick some, so more of the code is reusable from
30593 ClockGroup::Tick without having to call Clock::Tick and then work
30596 2007-12-03 Sebastien Pouliot <sebastien@ximian.com>
30598 * brush.cpp: Fix breakage introduced in r90549 (the matrix is
30599 already set on the pattern).
30601 2007-12-03 Jeffrey Stedfast <fejj@novell.com>
30603 * dependencyobject.cpp (RemoveHandler): Simplified a little.
30605 * animation.cpp (Stop): Remove the CompletedEvent root_clock
30606 handler. Fixes Simon's GAME OVER! textblock storyboard.
30608 2007-12-03 Jeffrey Stedfast <fejj@novell.com>
30610 * runtime.cpp: Added clipping/bounding-box override values.
30612 * uielement.cpp (DoRender): Changed optional bounding-box/clipping
30613 debugging drawing based on runtime settable bitflags.
30615 2007-12-03 Larry Ewing <lewing@novell.com>
30617 * uielement.cpp: Clean up the debug rendering code for bounding
30618 boxes and clip regions.
30620 2007-12-03 Jeffrey Stedfast <fejj@novell.com>
30622 Fixes a bug pointed out by Larry when rendering lines beginning
30623 with a 'J', where the tail escapes the bounding box.
30625 * font.cpp (Layout): Use the horiBearingX font metric.
30626 (RenderLine): Same.
30628 2007-12-03 Larry Ewing <lewing@novell.com>
30630 * brush.cpp (RadialGradientBrush::SetupBrush): add debug spew
30631 if we can't invert the matrix but still draw someting.
30633 2007-11-29 Larry Ewing <lewing@novell.com>
30635 * panel.cpp (Panel::ComputeBounds): clip the clip the subpath
30636 bounds to the clip region as well.
30638 * control.cpp (Control::ComputeBounds): differenciate between our
30639 bounds and our subpath bounds.
30641 * control.h: add bounds_with_children and GetSubpathBounds ().
30643 2007-11-29 Jeffrey Stedfast <fejj@novell.com>
30645 * font.cpp (TextFont::GetGlyphInfoByIndex): If we reach the end of
30646 the font face charmap, use unichar = 0 rather than returning NULL.
30648 2007-11-28 Chris Toshok <toshok@ximian.com>
30650 * runtime.cpp (Realloc): when we Realloc(), we need to tell the
30651 toplevel canvas to update its bounds. This *may* be wrong, but it
30652 definitely fixes matrix.
30653 (UpdateFullScreen): we need to stop the timesource when emitting
30654 the fullscreenchangeevent. otherwise we can end up stuck in a
30655 nested glib mainloop and never return from the emit (actually we
30656 never even invoke the JS callback in matrix. the nested loop
30657 happens somewhere deep in the bowels of NPN_Invoke).
30659 2007-11-28 Jeffrey Stedfast <fejj@novell.com>
30661 * media.cpp (MediaElement::UpdateProgress): Got rid of a hardcoded
30662 hack that forced the assumption of a streaming (vs progressive)
30663 media download. Also fixed to emit a DownloadProgressChanged event
30664 at progress == 1.0 (which is what th Silverlight book says we're
30667 2007-11-28 Larry Ewing <lewing@novell.com>
30669 * src/uielement.cpp (UIElement::DoRender): make sure we don't
30670 leave a path on the cairo context when clipping.
30672 2007-11-28 Chris Toshok <toshok@ximian.com>
30674 * uielement.cpp (UIElement::UIElement): compute the initial total
30675 hit test visibility.
30677 * dirty.cpp (process_dirty_elements): don't invalidate/update
30678 bounds when the hit test visibility changes.
30680 * frameworkelement.(h,cpp): calculate the bounds here using
30683 * panel.cpp: chain up to frameworkelement.
30685 2007-11-27 Jeffrey Stedfast <fejj@novell.com>
30687 * text.cpp (TextBlock::SetValue): Check the resulting Inlines
30688 collection formed from the Text property being set against the old
30689 Inlines - if no change, don't set the new Inlines collection,
30690 simply keep using the old. The idea is to prevent unnecessary
30691 layout re-calculations and invalidates.
30693 2007-11-27 Chris Toshok <toshok@ximian.com>
30695 * dirty.[cpp,h] panel.[cpp,h], control.[cpp,h], uielement.[cpp,h],
30696 canvas.cpp, collection.cpp, shape.cpp:
30698 rather large change - don't use a large rectangular bounding box
30699 encompassing both the panel's frameworkelement bounds as well as
30700 the bounds of all its children. Instead, only worry about the
30701 frameworkelement bounds, and let the children invalidate
30702 themselves. but do all this in a way that we still use the
30703 subtree's bounding box to prune rendering and hit testing.
30705 since we won't be invalidating the entire box surrounding all
30706 children, we need to propagate visibility information down the
30707 tree as we do opacity.
30709 This should really speed up most animations (such as those in
30710 sprawl and airlines) since we'll be invalidating far smaller
30713 (this code was stupidly hard for lewing and me to get right. yay
30716 2007-11-23 Larry Ewing <lewing@novell.com>
30718 * runtime.cpp: add show=expose to toggle expose display.
30720 2007-11-22 Jb Evain <jbevain@novell.com>
30722 * xaml.cpp (XamlElementInstantce::ClearSetProperties): avoid
30723 a glib warning if set_properties is NULL.
30725 2007-11-21 Chris Toshok <toshok@ximian.com>
30727 * media.cpp (MediaElement::UpdateProgress): only set 1 of
30728 DownloadProgressProperty and BufferingProgressProperty. The
30729 former is used if we're playing progressively, the latter if we're
30730 buffering before playing. This fixes the buffering animation on
30733 2007-11-21 Chris Toshok <toshok@ximian.com>
30735 * runtime.cpp (Surface::Invalidate): add the int case around the
30736 complete expression to quiet gcc.
30738 2007-11-20 Larry Ewing <lewing@novell.com>
30740 * runtime.cpp (Surface::expose_event_callback): take allocation
30741 offsets into account when invalidating and drawing. Fixes
30744 2007-11-20 Chris Toshok <toshok@ximian.com>
30746 * xaml.cpp (XamlElementInstance::ClearSetProperties): in glib <
30747 2.12, destroy the hash table and set it to NULL so we'll recreate
30750 2007-11-20 Chris Toshok <toshok@ximian.com>
30752 * collection.cpp (VisualRemoved): switch from using
30753 item->parent->ChildInvalidated(UIElement), use
30754 item->parent->Invalidate (item->GetBounds()).
30756 * uielement.h, uielement.cpp: change ChildInvalidated(Region *) to
30757 Invalidate (Region*) and update calls to it. Remove
30758 ChildInvalidated(UIElement*). Also, remove all references to the
30759 children_dirty_region field. everything goes through dirty_region
30762 * dirty.cpp: switch to using item->parent->Invalidate instead of
30763 item->parent->ChildInvalidated, and remove references to
30764 children_dirty_region.
30766 2007-11-20 Chris Toshok <toshok@ximian.com>
30768 * dependencyobject.cpp: add a ctor for EventClosure, and do a deep
30769 copy before emitting an event.
30771 2007-11-20 Jeffrey Stedfast <fejj@novell.com>
30773 * runtime.cpp (surface_get_toplevel): Removed.
30775 * uielement.cpp (uielement_get_isloaded): Removed.
30777 2007-11-20 Jb Evain <jbevain@novell.com>
30779 * downloader.h (Downloader): override SetSurface and GetSurface
30780 to work on a custom surface field.
30781 * downloader.cpp (Downloader::Downloader): initialize
30783 * runtime.h (Surface::CreateDownloader): initialize the surface
30785 * collection.cpp: when removing an UIElement from an UIElementCollection,
30786 clear out its surface to NULL.
30787 * visual.cpp: remove null check preventing to set the surface to NULL.
30788 * dependencyobject.cpp: (DependencyObject::FindName): if the
30789 current DO has no parent, fallback to its surface to try
30790 FindName on its top level element (needed to call FindName
30791 on a downloader for instance). Fixes #335018.
30793 2007-11-20 Jackson Harper <jackson@ximian.com>
30795 * xaml.cpp: If we need to reparse the attributes for an element
30796 (because we loaded a class and the props need to be set on the new
30797 class) we have to clear out the hash of properties that are marked
30798 as already set. Otherwise we get a property already set error.
30800 2007-11-20 Jackson Harper <jackson@ximian.com>
30802 * xaml.cpp: Add new function to create a value from a string
30803 without having the Kind available (you still need to have the type
30805 - SetAttribute now ensures that the attribute was set properly
30806 - If the object we are trying to set an attribute on is a managed
30807 object and there is no DependencyProperty for the attribute, we
30808 try setting the attribute on the object.
30810 2007-11-20 Sebastien Pouliot <sebastien@ximian.com>
30812 * uielement.cpp: Ensure the default value for VisibilityProperty
30813 is VisibilityCollapsed even if the value is invalid (for Javascript
30814 compatibility, since 1.1 should throw an exception). See #340799
30816 2007-11-20 Stephane Delcroix <sdelcroix@novell.com>
30818 * uielement.cpp: FullInvalidate on setting Viibility to Visible.
30821 2007-11-19 Larry Ewing <lewing@novell.com>
30823 * uielement.cpp: setup the clip before push/pop group so that
30824 we reduce the temp surface size.
30826 2007-11-16 Sebastien Pouliot <sebastien@ximian.com>
30828 * transform.cpp: Use cairo_matrix_init_translate instead of
30829 cairo_matrix_init + cairo_matrix_translate where possible (which
30830 avoid the multiplication with the identity matrix).
30832 2007-11-16 Jeffrey Stedfast <fejj@novell.com>
30834 * runtime.cpp (surface_get_toplevel): New function needed by the
30835 managed land to implement a bit of a hack for the Resize
30836 event (when someone connects to the Resize event, if the toplevel
30837 canvas is already loaded, we want to immediately call the
30840 * uielement.cpp (uielement_get_isloaded): Same.
30842 2007-11-15 Jackson Harper <jackson@ximian.com>
30845 * parsertest.cpp: Some tests I use for checking the parsing
30848 2007-11-15 Jackson Harper <jackson@ximian.com>
30850 * color.h: Add equality operators.
30852 2007-11-15 Jackson Harper <jackson@ximian.com>
30854 * xaml.cpp: use isalpha for determining whether or not an int32 is
30855 an enum. This allows things like -1 to work.
30857 2007-11-15 Jackson Harper <jackson@ximian.com>
30859 * xaml.cpp: Make sure the entire string is validate ie no 25.0XXXX
30862 2007-11-15 Jackson Harper <jackson@ximian.com>
30865 * rect.h|cpp: Update signatures to allow for error checking when
30866 creating types from strings.
30867 * xaml.h|cpp: Consolidate code to create values from strings, add
30868 some error checking. Update most of the parsing methods so it is
30869 possible to return errors when parsing.
30870 * playlist.cpp: Sig update.
30872 2007-11-15 Jackson Harper <jackson@ximian.com>
30874 * stylus.h|cpp: Initialize these collections so we don't get NULLs
30875 for GetValue on them.
30877 2007-11-14 Chris Toshok <toshok@ximian.com>
30879 * runtime.cpp (strcase_hash): swap this out for mono's eglib
30880 implementation, augmented with g_ascii_tolower, to remove the
30881 malloc/free and 2 passes over the string.
30883 2007-11-14 Chris Toshok <toshok@ximian.com>
30885 * dependencyobject.cpp: move the strcase_hash/equals functions...
30887 * runtime.cpp: here.
30889 * runtime.h: and make them public.
30891 * type.cpp.in, type.cpp (RegisterEvent): and use them here
30892 (RegisterType): and here.
30894 2007-11-14 Jb Evain <jbevain@novell.com>
30896 * media.cpp|h: remove specific Image and MediaElement
30897 accessors for progress property now that the code
30898 moved to MediaBase.
30900 2007-11-14 Jb Evain <jbevain@novell.com>
30902 * type.cpp.in, type.cpp, media.h, media.cpp: Move
30903 DownloadProgressProperty and DownloadProgressChangedEvent
30904 to MediaBase so it gets shared for both Image and MediaElement.
30907 2007-11-14 Jb Evain <jbevain@novell.com>
30909 * value.h.in: update code template to match current value.h.
30911 2007-11-14 Sebastien Pouliot <sebastien@ximian.com>
30913 * openfile.cpp: Added support for Filter and FilterIndex.
30915 2007-11-14 Sebastien Pouliot <sebastien@ximian.com>
30917 * animation.cpp: Replaced g_assert_not_reached with g_warning.
30918 At least until #340799 (enum validation) is fixed. Part of #335413
30919 * shape.cpp: Add g_warning to replace the g_assert_not_reached
30920 removed earlier. At least until #340799 (enum validation) is fixed.
30921 * uielement.cpp: Replaced g_assert_not_reached with g_warning.
30922 At least until #340799 (enum validation) is fixed. Part of #335413
30924 2007-11-13 Miguel de Icaza <miguel@novell.com>
30926 * value.cpp (Value::ToString): Add method to help debug some
30929 2007-11-13 Jeffrey Stedfast <fejj@novell.com>
30931 * text.cpp (SetValue): Get rid of \r's and treat \n's as LineBreak
30934 2007-11-13 Sebastien Pouliot <sebastien@ximian.com>
30936 * brush.cpp|h: Do not compute brush bounds for a SolidColorBrush
30937 as this is unrequired (API wise) and can be expensive (it was enough
30938 to add custom bound calculation code to shapes and geometries).
30940 2007-11-12 Sebastien Pouliot <sebastien@ximian.com>
30942 * shape.cpp: Removed g_assert_not_reached and, if any bad value is
30943 supplied (should be catched well before that, #340799), use the
30944 default value. Fix part of #335413
30946 2007-11-09 Chris Toshok <toshok@ximian.com>
30948 * dirty.cpp, uielement.h, uielement.cpp: glib was hurting my head.
30949 convert this over to using our List class. Also fix a bug where
30950 elements with down dirty flags weren't being inserted propertly
30951 into the up dirty list.
30953 2007-11-09 Sebastien Pouliot <sebastien@ximian.com>
30955 * animation.cpp: Fix crash on empty BeginStoryboard (#340384)
30957 2007-11-09 Miguel de Icaza <miguel@novell.com>
30959 * value.h (struct Value): Cope with NULL strings.
30961 2007-11-09 Jackson Harper <jackson@ximian.com>
30963 * xaml.cpp: Closepath needs to draw a line to the path's starting
30964 point and needs to create a new path figure element at the
30967 2007-11-09 Jackson Harper <jackson@ximian.com>
30969 * type.cpp|h.in: Add an accesor for the ContentProperty name.
30971 2007-11-09 Jackson Harper <jackson@ximian.com>
30973 * xaml.cpp: Rework to allow unparented properties. createFromXaml
30974 ("<Canvas.Background><SolidColorBrush></Canvas.Background") will
30975 basically ignore the property and will return the SolidColorBrush
30976 as the top element. This fixes 335865.
30978 2007-11-08 Chris Toshok <toshok@ximian.com>
30980 [ may go a long way toward fixing #337714, if it doesn't fix it
30983 * uielement.h, uielement.cpp: add an overload of ChildInvalidated
30984 that takes a UIElement* instead of a region. The implementation
30985 just invalidates the entire bounds of the child in the parent.
30987 * collection.h, collection.cpp: we weren't breaking the
30988 item->parent link when removing visuals from a VisualCollection.
30989 Add VisualRemoved, which invalidates the child's region (and stop
30990 using child->Invalidate, since that won't work once the link to
30991 the parent is broken) and breaks the parent link. Call
30992 VisualRemoved from everywhere we remove/replace a visual in our
30993 collection. Also, rename VisualUpdated to VisualAdded, since
30994 that's more indicative of why the method is being called.
30996 2007-11-08 Jeffrey Stedfast <fejj@novell.com>
30998 * runtime.cpp (Attach): Emit the Resize event.
30999 (drawing_area_size_allocate): Emit the Resize event.
31001 2007-11-07 Chris Toshok <toshok@ximian.com>
31003 * clock.cpp (Clock::Begin): guard against division by zero.
31005 2007-11-07 Chris Toshok <toshok@ximian.com>
31007 * runtime.cpp, runtime.h: make GetWidth()/GetHeight() return the
31008 width the canvas tells the surface to be (if it does). this fixes
31009 issues uncovered by larry's improved bounds checking code. Also,
31010 remove the instance fields for screen_height/width. they're only
31011 used in one place, so make them local to that function.
31013 2007-11-07 Chris Toshok <toshok@ximian.com>
31015 * brush.h, brush.cpp: add some c++ setters/getters to make some
31016 code a little smaller.
31018 2007-11-06 Larry Ewing <lewing@novell.com>
31020 * src/frameworkelement.cpp: Force a full invalidate if the width
31021 or height property because panels include their children in the
31022 bounds compution and will pass the dirty check.
31024 * media.cpp: Implement the Region based rendering for MediaElement
31027 * panel.cpp: Unconditionally pass the region to the Children.
31029 * panel.cpp: when rendering children treat panels and other
31030 objects differently. For containers pass the clipped region
31031 directly, for elements subdivide the region and paint each block.
31032 Renable FindStartingElement with a slightly less expensive
31035 * rect.cpp: don't collapse complicated regions the drawing code is
31038 2007-11-06 Jeffrey Stedfast <fejj@novell.com>
31040 * font.cpp (TextFont): Fixed to not exit() even when no font could
31041 be loaded from FreeType.
31043 2007-11-06 Chris Toshok <toshok@ximian.com>
31045 * dependencyobject.cpp (GetObjectType): make this g_critical, and
31046 also print out a stack trace if STACK_DEBUG is enabled.
31048 * dependencyobject.h: stop Emitting the DestroyedEvent from the
31049 dtor. instead do it from unref before we delete the object.
31051 2007-11-05 Chris Toshok <toshok@ximian.com>
31053 * rect.h (ToGdkRectangle): quiet countless warnings.
31055 2007-11-05 Larry Ewing <lewing@novell.com>
31057 Merge most of dirty region branch. This makes the dirty logic and
31058 rendering code use the new region class to track more complicated
31059 shapes than bounding boxes when processing changed areas.
31061 * media.cpp: switch back to indirect rendering for drawing media
31062 elements until a solution to the boundry clipping can be found.
31064 * panel.cpp: disable FindStartingElement (the buggy) until a more
31065 optimal method can be found.
31067 * dirty.cpp: Use dirty regions. Process DirtyOpacity first (still
31068 needs to be fixed to order dirty children.
31070 2007-11-03 Chris Toshok <toshok@ximian.com>
31072 * clock.cpp (ClockGroup::Tick): instead of calling Clock::Stop,
31073 call SkipToFill if we have no active child clocks.
31074 (ClockGroup::Stop): simplify this.
31075 (ClockGroup::Seek): make this look a little more like ::Stop.
31077 2007-11-03 Chris Toshok <toshok@ximian.com>
31079 * xaml.cpp (repeat_behavior_from_str): add support for the
31080 "ff.ffx" format for repeat behaviors.
31082 * clock.cpp, clock.h: the first sizeable amount of work done in a
31083 while to correct the multitude of tiny bugs in clock handling.
31084 this gets AnimationMatrix.xaml maybe 40% working. Clean up and
31085 comment Clock::Tick a lot, and remove a bunch of the old
31086 CLOCK_DEBUG spew which was making the code that much more
31087 difficult to look at.
31089 2007-11-02 Jeffrey Stedfast <fejj@novell.com>
31091 * font.cpp (TextFontDescription::SetScale): Removed, this hack
31092 wasn't working as well as I'd hoped.
31093 (TextFontDescription::GetScale): Same.
31094 (TextFontDescription::CreatePattern): If the requested font size
31095 is < 41.0 (seems to be the magic number where scaling loses impact
31096 on metrics), use FontSize=41.0 and do proper scaling to get the
31097 actual size we want. My worry was that asking for small font sizes
31098 (smaller than 16.0?) would look ugly with this hack, but that is
31099 surprisingly not true. By always requesting a font size that will
31100 yield the generic font metrics (e.g. not some hacked font size),
31101 we will always be able to wrap identically no matter what FontSize
31102 is requested (so long as the width gets scaled appropriately).
31104 * text.cpp (TextBlock::ComputeTransform): Removed.
31106 2007-11-02 Jeffrey Stedfast <fejj@novell.com>
31108 * font.cpp (RenderLine): Render glyphs with index 0 too, so that
31109 we render an empty box for glyphs not in the font (just like
31112 * text.cpp (ComputeTransform): Fixed to use the correct matrix for
31113 getting the scale values.
31115 2007-11-01 Jackson Harper <jackson@ximian.com>
31123 * panel.h: Add ContentProperty 'attributes'.
31125 * type.cpp|h: Add content property information to types. This
31126 will be used by the parser and will allow the parser to drop it's
31127 special type system.
31129 2007-11-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
31131 * animation.cpp: AnimationStorage: unregister from registered events on
31134 2007-11-01 Jeffrey Stedfast <fejj@novell.com>
31136 * text.cpp (TextBlock::SetValue): Oops - if we are setting an
31137 empty string on the Text property, then we need to clear out
31138 whatever was there before (if anything).
31140 2007-10-31 Jeffrey Stedfast <fejj@novell.com>
31142 Fixes for handling lwsp cdata between <Run> elements.
31144 * xaml.cpp (flush_char_data): Reworked a bit. Now takes a 'start'
31145 arg suggesting that we are being called in response to a new
31146 element starting vs an element ending.
31147 (start_element_handler): Pass true as the start arg to
31149 (end_element_handler): Pass false as the start arg to
31152 * text.cpp (SetValue): Only add a run if the string is non-empty.
31154 2007-10-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
31156 * dependencyobject.cpp: Guard against calling NULL.
31158 2007-10-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
31160 * media.cpp: Redo ASFParser::Malloc to avoid warnings, and make sure the
31161 return value is always checked.
31163 2007-10-31 Chris Toshok <toshok@ximian.com>
31165 * trigger.cpp (EventTrigger::SetTarget,
31166 EventTrigger::RemoveTarget): use UIElement::LoadedEvent instead of
31169 2007-10-31 Jackson Harper <jackson@ximian.com>
31171 * dependencyobject.h|cpp: Give DependencyProperties the ability to
31174 * animation.cpp: Signature updates
31176 2007-10-30 Jackson Harper <jackson@ximian.com>
31178 * xaml.h: Add the error args to the loader.
31179 * xaml.cpp: Make most of our parsing errors match Silverlight.
31181 2007-10-30 Jeffrey Stedfast <fejj@novell.com>
31183 * font.cpp (Path): Check the path data != NULL before we make any
31184 cairo calls, no sense wasting cycles if we will no-op in the end.
31186 2007-10-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
31188 * media.cpp, media.h: Fix signedness mismatch warning.
31190 2007-10-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
31192 * mplayer.h: Added asf_player field.
31194 2007-10-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
31196 * Makefile.am: Add files in asf/.
31197 * media.cpp, media.h: Read ASF markers from the file. Save the position when
31198 advancing frames. Use the difference between the last position and the
31199 current position to determine if any MarkerReached events are supposed
31201 * mplayer.cpp: Add some error checking/reporting when opening streams.
31202 Register our own demuxer with ffmpeg (defining MOON_DEMUXER is required
31203 to actually use it).
31205 2007-10-26 Jeffrey Stedfast <fejj@novell.com>
31207 * font.cpp (RenderLine): Split out from TextLayout::Render() and
31208 made to reset the brush at each segment to match Silverlight's
31211 2007-10-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
31213 * debug.cpp: Added print_gdb_trace with an explaining comment.
31214 * debug.h: Make print_stack_trace compile (to nothing) when STACK_DEBUG
31217 2007-10-25 Jeffrey Stedfast <fejj@novell.com>
31219 * font.cpp (TextLayout::Render): Set y1 before creating/appending
31220 the path instead of in the segment loop.
31221 (TextLayout::Render): Make underline pos relative to y1 (aka the
31222 baseline) that we calculated above. Makes this easier to
31225 2007-10-25 Jeffrey Stedfast <fejj@novell.com>
31227 * font.cpp (TextLayout::Layout): Always calculate segment->width
31229 (TextLayout::Render): Not here.
31231 * text.cpp (Glyphs::GetTransformOrigin): Implemented.
31233 2007-10-25 Jackson Harper <jackson@ximian.com>
31236 * runtime.h|cpp: Add the Error event to the surface. Raising this
31237 event will cause the plugins onError handler to be invoked, the
31238 default onError handler notifies the user of the error with a
31241 2007-10-25 Sebastien Pouliot <sebastien@ximian.com>
31243 * stylus.cpp|h: Keep the semi-working code as a fast path to
31244 render strokes (if no outline color is used and when width ==
31245 height). Added a hack to support OutlineColor.
31247 2007-10-25 Jeffrey Stedfast <fejj@novell.com>
31249 * brush.cpp (Brush::SetupBrush): Now takes width and height
31250 arguments. Updated all brushes.
31252 * text.cpp (Glyphs::Render): We want to check this->width and
31253 this->height, not the width/height arguments.
31255 * brush.cpp (ImageBrush::SetupBrush): If the image isn't loaded
31256 yet (surface = NULL), return.
31257 (LinearGradientBrush::SetupBrush): Get rid of some of the valgrind
31260 2007-10-24 Jeffrey Stedfast <fejj@novell.com>
31262 * text.cpp (Glyphs::GetSizeForBrush): Implemented.
31264 * font.cpp (TextLayout::Layout): Slight fix for Wrap mode.
31266 2007-10-24 Jackson Harper <jackson@ximian.com>
31268 * type.cpp.in/h.in: Add some c-style functions for creating
31271 2007-10-24 Jackson Harper <jackson@ximian.com>
31274 * type.cpp.in/h.in: Add a create instance call to types. This
31275 will allow the parser to use our Type object instead of creating
31278 2007-10-24 Chris Toshok <toshok@ximian.com>
31280 * clock.cpp (ManualTimeSource::SetCurrentTime): pass FALSE to
31281 g_main_context_iteration so we don't block if there isn't anything
31282 to do. also, emit 3 TickEvents to make sure the tick is
31283 propagated down into the animations.
31285 2007-10-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
31287 * xaml.cpp: No need to check if the created object is an UIElement before
31288 calling SetSurface anymore.
31289 * visual.h: Update SetSurface to virtual.
31290 * brush.cpp, brush.h: Override SetSurface so that we can forward the call to
31292 * dependencyobject.h: Add virtual Set/GetSurface to DependencyObject (here
31293 the methods do nothing, the surface is still stored in Visual, but this
31294 allows classes that do not inherit from Visual to correctly set the
31295 surface on their members which do inherit from Visual).
31297 2007-10-24 Jeffrey Stedfast <fejj@novell.com>
31299 * uri.cpp (Uri::Parse): Treat uri's w/o a protocol as file uri's.
31301 2007-10-23 Jeffrey Stedfast <fejj@novell.com>
31303 * text.cpp (TextBlock::ComputeTransform): If the scale has
31304 changed, set dirty = true so that we recalculate the layout.
31306 * mplayer.cpp (audio_play): Instead of using the SET_VOLUME()
31307 macro, just do it w/o so that we hush the compiler warning.
31309 2007-10-23 Chris Toshok <toshok@ximian.com>
31311 * clock.cpp (Clock::GetBeginTime): stop treating the BeginTime of
31312 a clock in absolute terms. instead, offset it from the current
31313 time of the parent clock (or time manager).
31314 (Clock::Begin): clamp progress to 1.0
31315 (SMOOTHING_ALPHA): switch this to 0.30 to see if that helps things
31316 by making it less sensitive to immediate changes.
31318 2007-10-23 Chris Toshok <toshok@ximian.com>
31320 * mplayer.cpp (Open): if RUNTIME_INIT_AUDIO_DISABLE, don't use
31321 audio (so we sync to the clock).
31323 * runtime.h: add RUNTIME_INIT_AUDIO_DISABLE.
31325 2007-10-23 Chris Toshok <toshok@ximian.com>
31327 * clock.cpp (ManualTimeSource::SetCurrentTime): call
31328 g_main_context_iteration as a stopgap to make video elements show
31330 (TimeManager::TimeManager): remove spew.
31331 (TimeManager::Tick): re-enable the clock throttling. oops.
31333 2007-10-23 Larry Ewing <lewing@novell.com>
31335 * src/runtime.cpp: clear the background in more cases.
31337 2007-10-23 Larry Ewing <lewing@novell.com>
31339 * src/runtime.cpp: make the eventbox windowless and remove the
31340 stale event code. Let gtk do the clearing.
31342 2007-10-23 Jeffrey Stedfast <fejj@novell.com>
31344 * mplayer.cpp (MediaPlayer::Open): Re-enable audio :)
31345 (MediaPlayer::LoadVideoFrame): Keep decoding video until we find
31346 the correct frame rather than just rendering the first frame we
31349 2007-10-23 Chris Toshok <toshok@ximian.com>
31351 * mplayer.cpp: replace all occurences of av_gettime with
31352 TimeManager::Instance()->GetCurrentTimeUsec().
31354 * runtime.cpp (overrides): add the "timesource=manual" OVERRIDE
31356 (render_cb): re-enable the fps on the console. oops.
31358 * runtime.h (RuntimeInitFlags): add
31359 RUNTIME_INIT_TIMESOURCE_MANUAL.
31361 * type.h.in, type.cpp.in: remove BASE (should have happened on my
31362 last commit), and add in the TIMESOURCE's, and TIMESOURCE's "Tick"
31365 * type.h, type.cpp: sync to the .in files.
31367 * clock.h, clock.cpp: add the idea of a TimeSource to the
31368 TimeManager. Two are written - SystemTimeSource, which uses the
31369 gtk timeout, and ManualTimeSource, which allows code to set what
31370 the global time should be. Also, add GetCurrentTimeUsec() for use
31371 by mplayer, so we can switch it away from av_gettime and make it
31372 possible for video to sync to the ManualTimeSource.
31374 2007-10-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
31376 * runtime.cpp: Base -> EventObject changes when OBJECT_TRACKING is defined.
31378 2007-10-23 Larry Ewing <lewing@novell.com>
31380 * runtime.cpp: make sure we unref the surface.
31382 2007-10-23 Larry Ewing <lewing@novell.com>
31384 * runtime.cpp: avoid making gdk calls that pull in the platform
31387 2007-10-22 Jeffrey Stedfast <fejj@novell.com>
31389 * text.cpp: Don't allow Pango rendering if disabled at
31391 (TextBlock::ComputeTransform): Moved the scale logic here from
31392 OnPropertyChanged() so that we catch all transform changes.
31394 * uielement.h: Made ComputeTransform() virtual.
31396 2007-10-22 Chris Toshok <toshok@ximian.com>
31398 * clock.cpp (TimeManager::Shutdown): don't cast to Base anymore..
31399 we can just cast to Clock here.
31401 * dependencyobject.h, dependencyobject.cpp: remove the Base class,
31402 and make roll EventObject and Base into one class (still called
31405 2007-10-20 Sebastien Pouliot <sebastien@ximian.com>
31407 * runtime.h: Add gtk.h (since it depended on stylus.h to get it)
31408 * stylus.cpp|h: Add some missing functions. Rendering changes
31409 (not active, work in progress).
31411 2007-10-18 Chris Toshok <toshok@ximian.com>
31413 * dependencyobject.h: fix comment.
31415 * animation.h, animation.cpp: use the
31416 Clock::CurrentStateInvalidated event to reset the property value
31417 to baseValue instead of overriding the Clock::Stop method. This
31418 fixes clocks with FillBehavior="Stop" instead of storyboard with
31419 FillBehavior="Fill".
31421 * clock.cpp (Clock::Tick): remove a stupid block of code that was
31422 causing clocks which were Filling to spontaneously end up in their
31423 Active state again.
31425 2007-10-18 Sebastien Pouliot <sebastien@ximian.com>
31427 * geometry.cpp: New code to handle arc segments. No known issues
31428 (except the handling of near zero values which doesn't seems to
31430 * libmoon.h, Makefile.am: Remove reference to rsvg.h
31431 * rsvg.cpp|h: Remove from SVN.
31433 2007-10-17 Andrew Jorgensen <ajorgensen@novell.com>
31435 * cairo-embed.h, pixman-embed.h: Added symbol renaming headers
31436 based on the ones from libgdiplus.
31438 2007-10-17 Chris Toshok <toshok@ximian.com>
31440 * xaml.cpp (XNamespace::SetAttribute): make sure to add the newly
31441 created managed dob to the created_elements list so it gets
31443 (XamlLoader::XamlLoader): use ->ref() instead of base_ref().
31444 (XamlLoader::~XamlLoader): use ->unref() instead of base_unref().
31446 2007-10-17 Chris Toshok <toshok@ximian.com>
31448 * Makefile.am (demo_LDADD): add MOON_PROG_LIBS.
31449 (sizes_LDADD): same.
31451 2007-10-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
31453 * dependencyobject.h: Add a GET_OBJ_ID macro that resolves to -1 if
31454 OBJECT_TRACKING isn't defined.
31455 * runtime.h: Enable the contextual downloader warning again.
31456 * dependencyobject.cpp: Fix build when DEBUG is defined.
31458 2007-10-16 Jeffrey Stedfast <fejj@gnome.org>
31460 * text.cpp (OnPropertyChanged): When intercepting non-TextBlock
31461 properties changing value, don't fall thru to the rest of the
31462 checks (as then we'd re-emit it to sublisteners which isn't what
31463 we want I don't think). Also, don't change the font scale unless
31464 it's >= 1.0 (e.g. don't down-scale). Fixes an infinite loop.
31466 2007-10-16 Jeffrey Stedfast <fejj@novell.com>
31468 * text.cpp (OnPropertyChanged): Listen for RenderTransformProperty
31469 changes and apply the y-scale to the font so that we can more
31470 accurately path the font glyphs at the scale we intend to render
31473 * font.cpp (TextFont): Cache the scale here.
31474 (Kerning): Apply the scale.
31475 (Descender): Here too.
31476 (Ascender): And here.
31478 (GetGlyphInfo): Create and apply the scale/invert matrix. Also
31479 scale the glyph metrics.
31480 (UnderlinePosition): Apply the scale.
31481 (UnderlineThickness): Same here.
31482 (TextFontDescription): Added a scale, default to 1.0
31483 (CreatePattern): Set the scale on the pattern.
31484 (UnsetFields): When unsetting values, restore them to their
31486 (Merge): Merge the scale.
31487 (GetScale): New method.
31488 (SetScale): New method.
31490 2007-10-16 Chris Toshok <toshok@ximian.com>
31492 * dependencyobject.cpp (detach_depobj_values): call
31493 obj->SetParent(NULL) here as well, so we don't reference a
31496 * runtime.cpp (Surface::Surface): use Surface::timeline instead of
31498 (Surface::~Surface): make sure to remove the surface's clock_group
31499 from the time manager. Also, unref the timeline we create in the
31501 (runtime_shutdown): reimplement the oldest 10 alive object
31502 printing stuff in the face of using a hashtable.
31504 * runtime.h: add Surface::timeline, so we can clean it up in
31507 * dependencyobject.h (Base::) use a hash table to track alive
31508 objects instead of a list. this speeds up things immensely.
31510 * clock.cpp (ClockGroup::~ClockGroup): call SetParent(NULL) on our
31511 children so any further GetParent() calls won't return a destroyed
31514 * animation.cpp (Storyboard::~Storyboard): guard against a crash
31515 when a parent clock is freed before the child clock.
31517 * text.cpp (TextBlock::TextBlock): plug a couple memory leaks.
31519 2007-10-15 Chris Toshok <toshok@ximian.com>
31521 * animation.[h,cpp]: remove the strong reference from
31522 AnimationStorage to its target object, and instead use the
31523 EventObject::DestroyEvent to implement a weak reference. See the
31524 TODO for a blurb about generalizing this.
31526 * typegen.cs (GenerateTypeCpp): remove the special case code that
31527 makes INVALID the parent of DEPENDENCY_OBJECT - we need it to have
31528 EVENTOBJECT as the parent for the DestroyedEvent to line up
31529 properly in the event tables.
31531 * type.cpp.in, type.cpp (types_init_register_events): register the
31534 * dependencyobject.[h,cpp]: add EventObject::DestroyedEvent,
31535 emitted just before we clean up the EventObject's event list.
31537 2007-10-15 Jeffrey Stedfast <fejj@novell.com>
31539 * text.cpp (Layout): I think I finally figured out the scaling to
31540 apply to the units provided in the Indices property and also
31541 discovered that the Advance is not applied at the uOffset, it is
31542 applied independently of the uOffset.
31543 (Render): Same fixes as in Layout().
31545 2007-10-13 Chris Toshok <toshok@ximian.com>
31547 * animation.cpp (balf): fix bug 325175 by not taking the square
31548 root of a negative number (fixes the flashing in the credits for
31549 Monotone.) Also clean up this code so that we're not using
31550 globals to communicate parameters (through Simpson) between balf
31551 and BezierArcLength, and lower the tolerance (I doubt we need
31552 *that* much precision).
31554 2007-10-12 Chris Toshok <toshok@ximian.com>
31556 * control.[h,cpp], brush.[h,cpp], text.[h,cpp], geometry.[h,cpp],
31557 dependencyobject.[h,cpp], shape.[h,cpp], animation.[h,cpp],
31558 transform.[h,cpp]: add an extra parameter to OnSubPropertyChanged,
31559 which gives the actual object whose property changed. Also, in a
31560 few instances fix the NotifyAttachersOnPropertyChanged call that
31561 some classes used to not use the subprop, but the prop. The
31562 subprop doesn't refer to "this" in those instances, but to @obj.
31563 @prop refers to "this".
31565 * collection.[h,cpp]: use the above change to correctly support
31566 the DependencyObject parameter of OnCollectionChanged (when the
31567 change type is ItemChanged).
31569 * uielement.[h,cpp], panel.[h,cpp]: use the above two changes to
31570 move the ZIndex property support from UIElement to Panel, which
31571 makes more logical sense (and is likely the reason MS removed the
31572 property from UIElement in 1.1) -- ZIndex is about what happens to
31573 this UIElement in relation to its siblings.
31575 2007-10-12 Sebastien Pouliot <sebastien@ximian.com>
31577 * shape.cpp: Only set miter limit if line join is set to miter.
31579 2007-10-12 Chris Toshok <toshok@ximian.com>
31581 * collection.cpp: move the panel logic away from VisualCollection.
31582 It belongs in Panel::OnCollectionChanged.
31584 * panel.cpp: flesh out Panel::OnCollectionChanged, making it do
31585 everything the VisualCollection code used to do on its behalf.
31587 * uielement.h, uielement.cpp: introduce a new field for use with
31588 the dirty code - force_redraw_of_new_bounds. Basically, we set
31589 the field according to the parameter passed to UpdateBounds.
31591 * dirty.cpp (UpdateBounds): force an invalidate if
31592 el->force_redraw_of_new_bounds is set.
31594 2007-10-12 Chris Toshok <toshok@ximian.com>
31596 * clock.h, clock.cpp: add some Timeout functions (AddTimeout,
31597 RemoveTimeout) which wrap the glib timeout calls we were making.
31598 This lets us keep track of active timeout ids and remove them all
31599 when the TimeManager shuts down. So, if we leak MediaElements
31600 (which seems to be happening in TopBanana), we don't crash.
31602 * mplayer.cpp: use the new TimeManager timeout call instead of the
31603 glib mainloop directly.
31607 2007-10-12 Jeffrey Stedfast <fejj@novell.com>
31609 * downloader.cpp (downloader_init): Default the DownloadProgress
31612 2007-10-12 Jackson Harper <jackson@ximian.com>
31614 * downloader.h: Add an access to the downloader state. I need
31615 this in the plugin.
31617 2007-10-12 Jb Evain <jbevain@novell.com>
31619 * brush.cpp|h: add image_brush_set_source.
31621 2007-10-11 Jeffrey Stedfast <fejj@novell.com>
31623 * mplayer.cpp (convert_to_rgb): Worked around an swscaler crash
31624 where it doesn't handle J-Type picture frames.
31626 2007-10-11 Sebastien Pouliot <sebastien@ximian.com>
31628 * panel.cpp|h: Split Render into Render and RenderChildren, so
31629 the later can be overriden in InkPresenter.
31630 * stylus.cpp|h: A quick (see FIXME) implementation to render
31631 ink found in some xaml files.
31633 2007-10-11 Jeffrey Stedfast <fejj@novell.com>
31635 * mplayer.cpp: Updated to use the new Queue class.
31636 (AdvanceFrame): Accessing the queue directly as a linked list
31637 allows us to simplify the loop a little so that we don't have to
31638 keep a reference to the previous packet's decoded frame.
31640 * list.cpp: Added a new Queue class which will replace GAsyncQueue
31643 2007-10-11 Jeffrey Stedfast <fejj@novell.com>
31645 * mplayer.cpp: Added ctors/dtors for Audio and Video structs.
31646 (AdvanceFrame): Keep a reference to the previous frame in case we
31647 reach the end of the queue.
31649 2007-10-11 Jb Evain <jbevain@novell.com>
31651 * dependencyobject.cpp|h: add dependency_object_set_name.
31653 * media.cpp|h: add media_attribute_get_value and
31654 media_attribute_set_value
31656 * playlist.cpp|h: populate MediaAttributeCollection when
31657 a playlist entry is opened.
31659 2007-10-11 Larry Ewing <lewing@novell.com>
31661 * dirty.cpp, uielement.cpp|h: Use gdk_regions to tract dirty
31662 areas... have more fun in general.
31664 * src/rect.h: replace Floor function with RoundOut function.
31665 * panel.cpp, dirty.cpp: use RoundOut where appropriate. Fixes
31666 clipping issue in sprawl.
31668 2007-10-11 Sebastien Pouliot <sebastien@ximian.com>
31670 * xaml.cpp: Let InkPresenter handle childs like a Canvas (from
31673 2007-10-11 Jb Evain <jbevain@novell.com>
31675 * playlist.cpp: replace C++ casts to plain casts.
31677 2007-10-11 Jb Evain <jbevain@novell.com>
31679 * collection.cpp: replace dynamic_casts with plain casts
31680 as per Miguel suggestion.
31682 2007-10-11 Jb Evain <jbevain@novell.com>
31684 * collection.cpp|h: add, implement and expose the
31685 MediaAttributeCollection::GetItemByName method.
31687 2007-10-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
31689 * downloader.cpp, downloader.h: Fix some const char/char mismatch warnings.
31691 2007-10-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
31693 * text.h, animation.h, text.cpp: Fix some const char/char mismatch warnings.
31694 * dependencyobject.h, dependencyobject.cpp, animation.cpp: Remove some const
31695 char/char mismatch warnings.
31696 * visual.cpp: Fix no newline warning.
31697 * runtime.cpp: Fix a initialization warning.
31698 * demo.cpp: Remove unused variable.
31700 2007-10-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
31702 * dependencyobject.cpp: base_unref_delayed: do nothing if base is NULL,
31703 matches base_unref behaviour.
31704 * dependencyobject.h: Use g_atomic_int* to make ref counting atomic
31707 2007-10-10 Chris Toshok <toshok@ximian.com>
31709 * runtime.cpp (runtime_shutdown): explicitly drain all remaining
31710 pending managed unrefs.
31712 * dependencyobject.cpp: remove the Base::ref/unref implementations
31713 from here. Add the threadsafe base_unref_delayed code, as well as
31714 code to manage a tick call to free up the instances on the next
31715 clock tick. Also provide an external api (drain_unrefs -- bad
31716 name, fix me plz k thx) so that runtime.cpp can explicitly unref
31717 everything when we shutdown (if they haven't already been dealt
31720 * dependencyobject.h: clean up the OBJECT_TRACKING ifdefs so that
31721 we don't have 2 implementations of all these methods. Instead,
31722 just ifdef the relevant portions of the methods, and keep them in
31723 dependencyobject.h. Also, add prototypes for drain_unrefs and
31724 base_unref_delayed, which is called from managed code.
31726 * collection.h, collection.cpp: make Clear take an optional
31727 "emit_event" argument (default = true.) Call Clear instead of
31728 list->Clear(true) in our dtor so we clean up the namespaces and
31731 * debug.cpp: use an extern "C" block. looks nicer.
31733 2007-10-10 Sebastien Pouliot <sebastien@ximian.com>
31735 * brush.cpp: Handle GradientStop with negative offset like
31736 Silverlight (seems to) do.
31738 2007-10-10 Chris Toshok <toshok@ximian.com>
31740 * panel.cpp (Panel::~Panel): no need to clear our Children
31741 collection. the normal dtor stuff will do that for us.
31743 2007-10-10 Larry Ewing <lewing@novell.com>
31745 * media.cpp: Fill with the element extents don't just paint the
31746 surface because if the stretch is specified we may end up painting
31747 outside the proper area.
31749 2007-10-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
31751 * media.cpp: When updating the MediaElement's progress, get the Downloader's
31752 DownloadProgressProperty.
31754 2007-10-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
31756 * visual.cpp, visual.h: Added visual_set_surface, and guard against
31757 overwriting a set surface with null.
31759 2007-10-10 Jackson Harper <jackson@ximian.com>
31761 * collection.cpp: Set the surface when adding a visual element.
31763 2007-10-10 Jackson Harper <jackson@ximian.com>
31765 * shape.cpp: We need to do something when line properties are
31766 changed. Fixes test-animation-line.xaml
31768 2007-10-10 Jackson Harper <jackson@ximian.com>
31770 * xaml.cpp: Don't allow the same property to be set twice.
31772 2007-10-09 Jackson Harper <jackson@ximian.com>
31774 * xaml.cpp: When we create custom elements we also need to set the
31775 surface on them and mark them for cleanup.
31777 2007-10-09 Jackson Harper <jackson@ximian.com>
31779 * xaml.cpp: When we are creating objects from a string, set the
31780 encoding to utf8 so that expat doesn't try to determine the
31781 encoding from the ?xml declaration (which will be incorrect
31782 because the string is in utf8).
31784 2007-10-09 Chris Toshok <toshok@ximian.com>
31786 * clock.cpp (ClockGroup::Stop): If the clock group has children we
31787 depend on stopping them first. But if the clock group is without
31788 children, chain up to Clock::Stop here.
31790 2007-10-09 Jb Evain <jbevain@novell.com>
31792 * uielement.h: define new methods RenderClipPath and
31793 IntersectBoundsWithClipPath.
31794 * uielement.cpp: implement them.
31795 * panel.cpp, shape.cpp, media.cpp: use them.
31797 2007-10-09 Chris Toshok <toshok@ximian.com>
31799 * clock.cpp, trigger.cpp, uielement.cpp, geometry.cpp, shape.cpp,
31800 frameworkelement.cpp, transform.cpp, media.cpp, animation.cpp,
31801 brush.cpp, text.cpp: s/Attachee/Attacher.
31803 * dependencyobject.h: couple of Detach changes: 1) Add a DetachAll
31804 call that is used at dtor time to call Detach on all
31805 DependencyObject-subclassed Values, and 2) make NULL available in
31806 detach as a wildcard - passing NULL for the property detaches all
31807 properties that the current object might be watching on.
31809 Also, correct a longstanding problem in terminology/api. if A's
31810 code calls B->Attach (..., this), then A is the Attacher, not the
31811 Attachee. Basically s/Attachee/Attacher in all places,
31814 * dependencyobject.cpp: same changes as above. Also, change the
31815 current_values hash table to key off the DependencyProperty, not
31816 off the DependencyProperty name. This allows us to use a direct
31817 hash, as opposed to a string hash.
31819 * collection.cpp (dtor): make sure sure to detach from all the
31820 list elements before we clear the list.
31822 2007-10-09 Jeffrey Stedfast <fejj@novell.com>
31824 * font.cpp (Layout): Only break words on ASCII lwsp, we should not
31825 break on nbsp's for example.
31827 2007-10-09 Jackson Harper <jackson@ximian.com>
31829 * xaml.cpp: Make sure the Surface gets set on custom created
31830 UIElements. Also add them to the created list, so they get freed.
31832 2007-10-09 Jackson Harper <jackson@ximian.com>
31834 * control.cpp: Since controls are UIElements we need to make sure
31835 their surface is set when we create them from XAML.
31837 2007-10-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
31839 * dependencyobject.cpp: resolve_property_path: Add a nullcheck.
31841 2007-10-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
31843 * debug.cpp, debug.h: Conditionally compile support for managed stack
31846 * runtime.cpp: add more debug code.
31848 2007-10-08 Jeffrey Stedfast <fejj@novell.com>
31850 * text.cpp (OnPropertyChanged): We may need to relayout even if
31851 the wrapping is set to NoWrap.
31853 2007-10-08 Zoltan Varga <vargaz@gmail.com>
31855 * text.cpp (OnPropertyChanged): Do a relayout if the Width property
31856 changes and text wrapping is enabled.
31858 2007-10-08 Jeffrey Stedfast <fejj@novell.com>
31860 * mplayer.cpp (Open): If the media has video, load the first video
31863 (AdvanceFrame): Fixed to "end" properly.
31865 * media.cpp: Don't manually call DisplayFrame() anymore.
31867 2007-10-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
31869 * xaml.cpp: Set the surface of newly created objects (where applicable).
31870 * canvas.h, uielement.h, canvas.cpp: Move the surface field to Visual.
31871 * playlist.cpp, media.cpp, text.cpp: Create the downloader using Surface'
31872 brand new CreateDownloader method.
31873 * visual.h: Added a surface field, complete with setters and getters.
31874 * downloader.cpp, downloader.h: Add a context field.
31875 * runtime.h: Add a downloader_context field, and CreateDownloader methods.
31876 * runtime.cpp: Add a downloader_context field.
31878 2007-10-09 Larry Ewing <lewing@novell.com>
31880 * media.cpp: add clipping to shape::DoDraw and to the bounds
31883 2007-10-08 Larry Ewing <lewing@novell.com>
31886 * panel.cpp: intersect the bounds with the clip path to
31887 optimize the invalidated region.
31889 * shape.cpp: return 0.0 when shape_get_stroke_thickness is called
31892 2007-10-08 Larry Ewing <lewing@novell.com>
31895 * panel.cpp: intersect the bounds with the clip path to
31896 optimize the invalidated region.
31898 * shape.cpp: return 0.0 when shape_get_stroke_thickness is called
31901 2007-10-08 Larry Ewing <lewing@novell.com>
31904 * panel.cpp: intersect the bounds with the clip path to
31905 optimize the invalidated region.
31907 * shape.cpp: return 0.0 when shape_get_stroke_thickness is called
31910 2007-10-08 Larry Ewing <lewing@novell.com>
31913 * panel.cpp: intersect the bounds with the clip path to
31914 optimize the invalidated region.
31916 * shape.cpp: return 0.0 when shape_get_stroke_thickness is called
31919 2007-10-08 Larry Ewing <lewing@novell.com>
31922 * panel.cpp: intersect the bounds with the clip path to
31923 optimize the invalidated region.
31925 * shape.cpp: return 0.0 when shape_get_stroke_thickness is called
31928 2007-10-08 Larry Ewing <lewing@novell.com>
31930 * runtime.cpp: change previous logic to drop the alpha
31931 completely here until more testing can be done.
31933 2007-10-08 Larry Ewing <lewing@novell.com>
31935 * runtime.cpp: draw the background color blended over white.
31937 2007-10-08 Larry Ewing <lewing@novell.com>
31939 * media.cpp: render clip paths on media elements.
31941 2007-10-07 Larry Ewing <lewing@novell.com>
31946 * array.cpp: use g_utf8_next_char in some places to start making
31947 the parsers more utf8 safe. Make rect/point_from_str more robust
31948 against separator characters
31950 2007-10-07 Chris Toshok <toshok@ximian.com>
31952 * clock.cpp (Clock::Tick): make sure we're reversed before
31953 switching to Fill if the clock is at 0 (and make sure we're not
31954 reversed before switching to Fill on the other end of the
31955 timespan). Some animations were skipping directly to fill without
31957 (ClockGroup::Tick): don't Tick a child clock if it's about to
31958 Stop. the new tick might cause it to fill.. this needs work
31961 2007-10-06 Jb Evain <jbevain@novell.com>
31963 * media.cpp (Image::Render): Deal with clipping.
31965 2007-10-05 Chris Toshok <toshok@ximian.com>
31967 * animation.cpp (KeyFrameComparer): fix airlines (and probably a
31968 host of other keyframe usage besides). The problem was that this
31969 function was treating its args as keyframe*'s, when in actuality
31970 they were keyframe**'s. that explains the intermittent nature of
31971 the bug, as well as the faulty sorting I was experiencing earlier.
31973 * clock.cpp (TimeManager::Tick): reinstate the throttling, yay.
31975 2007-10-05 Chris Toshok <toshok@ximian.com>
31977 * clock.cpp (TimeManager::Tick): I have no idea how this is
31978 possible, but the throttle code is *completely* screwing up the
31979 Airlines demo animations.
31981 2007-10-05 Jackson Harper <jackson@ximian.com>
31983 * control.cpp: need to pass this down. Fixes dragging controls in
31986 2007-10-05 Jeffrey Stedfast <fejj@gnome.org>
31988 * media.cpp (DownloaderComplete): Call mplayer->DisplayFrame() in
31991 (SetValue): And here too after a Seek() (altho it won't work if
31992 the media is paused).
31994 * mplayer.cpp (AdvanceFrame): Introduced a new bool variable,
31995 update, which is true if any avcodec_decode_video() sets redraw to
31997 (DisplayFrame): New method largely based on JB's work to load the
31998 current video frame into the mplayer surface.
32000 2007-10-05 Jb Evain <jbevain@novell.com>
32002 * media.cpp|h, playlist.cpp|h: Don't open the first entry
32003 when a playlist entry has been stopped before switching to
32006 2007-10-04 Chris Toshok <toshok@ximian.com>
32008 * clock.cpp: fix a couple of compilation warnings, and tighten up
32009 the list_clocks output.
32011 2007-10-04 Jeffrey Stedfast <fejj@gnome.org>
32013 * text.cpp (SetIndices): Use g_ascii_strtod() instead of strtod()
32014 since it is not locale dependant.
32016 * rect.cpp (rect_from_str): Same.
32018 * point.cpp (point_from_str): Same.
32020 * xaml.cpp (get_point): Fixed to update *in properly on success.
32022 2007-10-05 Jb Evain <jbevain@novell.com>
32024 * media.cpp: correctly advertise 'Opening' state of MediaElement.
32026 2007-10-04 Jeffrey Stedfast <fejj@novell.com>
32028 * xaml.cpp: (more_points_available): Simplified by looping while
32029 isspace. Also, update our input pointer if we have to scan over
32031 (get_point): Now returns bool based on whether it manages to
32032 extract a point or not.
32033 (geometry_from_str): Updated.
32035 2007-10-04 Jackson Harper <jackson@ximian.com>
32037 * xaml.cpp: Points after the initial two line points should
32038 actually create new line segments, not a polyline, this fixes
32039 relative points on multiple lines.
32041 2007-10-04 Jeffrey Stedfast <fejj@novell.com>
32043 * text.cpp (TextBlock): Can't use GetValue() here yet as stuff
32044 hasn't completely been initialized.
32045 (Glyphs::SetIndices): Do not do scaling here, this seems to be
32046 font size dependant.
32048 * shape.cpp (DoDraw): Use 'delete []' to free dmul.
32050 2007-10-04 Jackson Harper <jackson@ximian.com>
32052 * xaml.cpp: Handle repeated bezier segments properly.
32054 2007-10-04 Chris Toshok <toshok@ximian.com>
32056 * clock.cpp: lots of little changes. fixes clock16.xaml, and
32057 therefor the score animation in dr.popper goes away properly.
32058 also fixes a few other issues with FillBehavior (checked by our
32061 2007-10-04 Jeffrey Stedfast <fejj@gnome.org>
32063 * text.cpp (Glyphs::.ctor): We no longer have a TextFont member
32065 (Layout): Use a local TextFont variable.
32067 (text_init): Always call font_init() as Glyphs use it even when
32068 text=pango is specified.
32070 2007-10-04 Sebastien Pouliot <sebastien@ximian.com>
32072 * shape.cpp|h: Shapes that uses their Width and Height must use
32073 them for brush size. Fix brush rendering when used with
32074 UIElement.RenderTransform property.
32076 2007-10-03 Chris Toshok <toshok@ximian.com>
32078 * text.cpp: make Glyphs usable even when text=pango. "usable"
32079 means "don't crash" :)
32081 2007-10-03 Chris Toshok <toshok@ximian.com>
32083 * uielement.h: rename UseAA() to EnableAntiAlias(). it's
32084 arguably a better name, and more importantly it's the name that
32085 media.cpp/h changed it too, which broke the AA hack used in
32088 * dirty.cpp (process_dirty_elements): rename UseAA() to
32091 2007-10-03 Sebastien Pouliot <sebastien@ximian.com>
32093 * array.cpp: Move double array allocations back to new/delete.
32095 2007-10-03 Jeffrey Stedfast <fejj@novell.com>
32097 * font.cpp (EmSize): Removed, not needed.
32098 (GetGlyphInfo): Commented out vertical glyph metrics, saves a fair
32099 bit of memory that we aren't using.
32101 * text.cpp (TextBlock::SetFontSource): Implemented.
32102 (text_init): Default StyleSimulations to None.
32104 2007-10-03 Sebastien Pouliot <sebastien@ximian.com>
32106 * brush.cpp|h: SL and Cairo defaults to different values (end
32107 color versus start color) when a gradiant is restricted to a
32108 single color (e.g. if the start and end points of a linear
32109 gradient are identical).
32111 2007-10-03 Jeffrey Stedfast <fejj@novell.com>
32113 * text.cpp: Implemented the Glyphs element.
32115 * font.cpp: Made GlyphMetrics and GlyphInfo structs public for use
32116 with the the Glyphs element implemented in text.cpp.
32117 (GetGlyphInfo): Fixes to allow loading of the index=0 glyph.
32118 (GetGlyphInfoByIndex): New method.
32119 (CreatePattern): If the filename is specified, don't call
32120 FcFontMatch(), simply return the constructed pattern.
32122 2007-10-02 Chris Toshok <toshok@ximian.com>
32124 * clock.h, clock.cpp: remove TimeManager::current_fps, it's
32127 2007-10-02 Chris Toshok <toshok@ximian.com>
32129 * runtime.cpp (Surface::UpdateFullScreen): just call
32130 gtk_window_fullscreen instead of setting decorations/above
32131 manually. this puts us on top of the panel.
32133 2007-10-02 Chris Toshok <toshok@ximian.com>
32135 * clock.h, clock.cpp: rip out the old stupid throttling code and
32136 replace it with an exponential moving average of the delays.
32138 2007-10-02 Chris Toshok <toshok@ximian.com>
32140 * clock.h, clock.cpp: add Timeline::Get/SetSpeedRatio methods, and
32141 use them to make test/xaml/clock8.xaml work.
32143 2007-10-02 Larry Ewing <lewing@novell.com>
32145 * shape.cpp (Path::ComputeBounds): use the specified width/height
32146 if stretch is != StretchNone. Fixes rendering issues with halo
32147 and several other sites.
32149 2007-10-02 Chris Toshok <toshok@ximian.com>
32151 * animation.h, animation.cpp: override Stop() on AnimationClocks
32152 so we can reset the property value to the baseValue stored in our
32155 * clock.h, clock.cpp: fix the starting of stopped clockgroups when
32156 there are active children (fixes the storyboards running for 1
32157 tick then stopping). Add more convoluted code in order to get the
32158 expected behavior when FillBehavior=Stop on a storyboard.
32160 2007-10-02 Chris Toshok <toshok@ximian.com>
32162 * clock.h, clock.cpp: a few changes. quit with all the delay
32163 computation in the throttling code, and just deal with fps until
32164 we're ready to switch to delays. it simplifies everything a
32165 bunch. Also, narrow the type for Clock::Get/SetParent to
32166 ClockGroup. Add some rudimentary code for printing out the state
32167 of all clocks (use TimeManager::Instance()->ListClocks() or
32168 time_manager_list_clocks()). Also, remove the TimeManager::Tick
32169 code which started clocks. This commit changes the way
32170 storyboards are registered, so the only things in the
32171 TimeManager's list should be the per-surface ClockGroups, which
32172 are started in Storyboard::Begin (if they aren't already running.)
32174 * collection.cpp (VisualCollection::Add): this is a bug waiting to
32175 happen. Call VisualUpdate (thereby setting the child's parent and
32176 initializing the transforms/opacity) before emitting Loaded on the
32179 * animation.h, animation.cpp: Storyboards now add their clocks to
32180 the per-surface ClockGroup. This involves some groveling to find
32181 the surface, but it's nothing we haven't seen before. There's no
32182 direct TimeManager calls here now - stopping the surface's
32183 ClockGroup will stop all animations running on it.
32185 * runtime.h, runtime.cpp: add the per-surface ClockGroup. all
32186 storyboards attach to this, and this attaches to the TimeManager.
32188 2007-10-02 Jackson Harper <jackson@ximian.com>
32190 * media.cpp: Some default values to avoid nullref exceptions.
32192 2007-10-02 Sebastien Pouliot <sebastien@ximian.com>
32194 * xaml.cpp: Add support for 'F' in the PML parser to enable setting
32195 the FillMode of Geometry objects. Removed default value set as it is
32196 identical to the default property value.
32198 2007-10-02 Jb Evain <jbevain@novell.com>
32200 * playlist.cpp|h: implemented start time for playlist entries.
32202 2007-10-02 Jb Evain <jbevain@novell.com>
32204 * playlist.cpp|h, media.cpp|h: rename MediaSource::OpenSource to OpenInternal.
32206 2007-10-02 Larry Ewing <lewing@novell.com>
32208 * uielement.cpp (UIElement::Invalidate): Only invalidate if
32210 * dirty.cpp (process_dirty_elements): be sure to invalidate before
32211 and after the opacity change.
32213 2007-10-02 Jb Evain <jbevain@novell.com>
32215 * playlist.cpp: deal with non lowercase file exts.
32217 2007-10-01 Jeffrey Stedfast <fejj@novell.com>
32219 * font.cpp: Reduced Glyph table memory usage.
32221 2007-10-01 Chris Toshok <toshok@ximian.com>
32223 * dirty.cpp (process_dirty_elements): remove the special if checks
32224 which kept the ComputeBounds/Invalidate code from running on the
32225 toplevel surface. Canvas::ComputeBounds() does the right thing
32226 for the toplevel surface, so we just trust it. fixes invalidation
32229 * panel.cpp (OnPropertyChanged): remove the ComputeBounds call.
32230 (OnSubPropertyChanged): same.
32232 2007-10-01 Sebastien Pouliot <sebastien@ximian.com>
32234 * brush.cpp|h: Change SetupBrush and SetupGradient signatures to
32235 void (instead of the, now, unused bool);
32237 2007-10-01 Jeffrey Stedfast <fejj@novell.com>
32239 * font.cpp (Layout): Made WrapWithOverflow closer to Silverlight's.
32241 2007-10-01 Sebastien Pouliot <sebastien@ximian.com>
32243 * shape.cpp|h: Remove Path::IsFilled since the property
32244 PathFigure::IsFilledProperty doesn't exists anymore.
32246 2007-10-01 Jeffrey Stedfast <fejj@novell.com>
32248 * text.cpp (LayoutPango): Fixed Wrap vs WrapWithOverflow text
32251 * font.cpp (Layout): Fixed the TextWrapping="Wrap" case.
32253 2007-10-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
32255 * runtime.cpp: Only show the server as the url in the fullscreen
32258 2007-10-01 Sebastien Pouliot <sebastien@ximian.com>
32260 * panel.cpp: Call ComputeBounds before invalidating on Background
32261 changes. Fix parts of #327691 (like BubbleMark-CLR and Monotone).
32263 2007-10-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
32265 * fullscreen.h, fullscreen.xaml: Added.
32266 * text.h: Make GetActualHeight and GetActualWidth public.
32267 * runtime.h, runtime.cpp: Added IsTopLevel (since there can be two toplevel
32268 objects now: the fullscreen message and the toplevle canvas),
32269 SetSourceLocation and Show/HideFullScreenMessage.
32270 * dirty.cpp: Use Surface::IsTopLevel instead of comparing directly agains
32271 Surface::GetTopLevel.
32273 2007-09-30 Zoltan Varga <vargaz@gmail.com>
32275 * xaml.cpp (CreateManagedObject): Move the call to GetMapping ()
32278 * text.cpp (text_destroy): Avoid crash if default_foreground_brush
32281 2007-09-28 Chris Toshok <toshok@ximian.com>
32283 * Makefile.am: remove the XRANDR conditional here. it's #defined
32286 2007-09-28 Jeffrey Stedfast <fejj@novell.com>
32288 * font.cpp (CreatePattern): If a filename has been specified for
32289 loading a font, don't set family values. Also, call
32290 FcDefaultSubstitute() on the pattern before trying to find a
32293 2007-09-28 Jeffrey Stedfast <fejj@novell.com>
32295 Optimization hack that saves time by not recalculating the layout
32296 when the foreground brush changes (since we'd have exactly the
32299 * font.cpp (TextRun): Now takes the address of the brush than the
32300 brush itself, so that when brushes change on the Inline, we get
32301 the brush change for free.
32303 * text.cpp (LayoutSilverlight): Pass the addresses of the
32304 foreground brushes to TextRun ctor and don't bother with the
32305 default foreground brush here, save that for ::Paint-time.
32306 (LayoutPango): Same idea as LayoutSilverlight().
32307 (Paint): Get the default foreground and pass that off to the
32308 pango/silverlight text renderers.
32309 (OnPropertyChanged): Don't force a re-layout if the property that
32310 changed was the TextBlock::ForegroundProperty.
32311 (OnCollectionChanged): Same (but for Inline::ForegroundProperty).
32313 * mango.cpp (mango_renderer_show_layout): Now takes a default_fg
32314 argument so that we don't have to specify it in the creation of
32315 our layout attributes (this saving us a re-layout when a brush
32317 (mango_attr_foreground_new): Now takes the address of the brush
32318 rather than the brush itself, so that when brushes change on the
32319 Inline, we get the brush change for free.
32321 2007-09-28 Jeffrey Stedfast <fejj@novell.com>
32323 * text.cpp (TextBlock): We cannot re-use the
32324 default_foreground_brush here because we cannot allow it to be
32325 altered in any way.
32327 2007-09-28 Jeffrey Stedfast <fejj@novell.com>
32329 * font.cpp (TextFont::IsScalable): New method.
32330 (TextFont::Path): Paths a glyph but does not stroke or fill. Only
32331 available if the font is scalable.
32332 (TextLayout::Render): Cache each segment's cairo_path_t so that
32333 future renders do not have to do it on a glyph-by-glyph basis
32334 (avoids possible glyph cache misses). May also save time by doing
32335 a single fill rather than a fill per glyph.
32337 2007-09-28 Jeffrey Stedfast <fejj@novell.com>
32339 * font.cpp (RenderGlyphBitmap): No longer takes a TextDecorations
32341 (RenderGlyphPath): Same.
32342 (UnderlinePosition): New method.
32343 (UnderlineThickness): New method.
32344 (TextLayout::Render): Draw our underline here in 1 stroke (haha, I
32347 2007-09-28 Jeffrey Stedfast <fejj@novell.com>
32349 * text.cpp (LayoutSilverlight): LineBreaks don't really care about
32350 TextDecorations or Foreground properties.
32352 * font.cpp (TextRun::~TextRun): unref the font.
32353 (TextSegment): now references the original TextRun instead of
32354 copying pointers/values.
32355 (TextLayout::Render): Updated for above change.
32357 2007-09-28 Zoltan Varga <vargaz@gmail.com>
32359 * xaml.cpp (SetNameAttribute): New callback to enable managed code to process
32361 (LoadCode): Change return type to bool to indicate a loading error.
32363 2007-09-28 Jeffrey Stedfast <fejj@gnome.org>
32365 * media.cpp (SingleMedia::~SingleMedia): Close the media stream.
32366 (MediaElement::AdvanceFrame): If mplayer->AdvanceFrame() returns
32367 false, then it signifies MediaEnded, no need to explicitly check.
32368 (MediaElement::SetSource): Delete the current source here.
32369 (MediaElement::~MediaElement): C++ `delete' operator doesn't
32370 handle freeing NULL pointers.
32371 (MediaElement::DownloaderComplete): No need to delete the source
32372 here, done in SetSource() instead.
32374 * font.cpp: Created my own GlyphMetrics struct which uses doubles
32375 instead of ints for more accurate layout/rendering calculations.
32376 (Layout): When comparing to max_width, add 1.0 to account for
32377 rounding errors/hinting. Add 1.0 to the Actual/BoundingBox
32378 width/height values for the same reason.
32380 2007-09-28 Sebastien Pouliot <sebastien@ximian.com>
32382 * xaml.cpp: Free locally allocated Points inside get_point_array.
32384 2007-09-28 Jeffrey Stedfast <fejj@gnome.org>
32386 * font.cpp (GetGlyphInfo): Don't cache the bitmap if we're caching
32389 2007-09-28 Sebastien Pouliot <sebastien@ximian.com>
32391 * shape.cpp: ComputeBoundsSlow is no more so we can re-enable the
32392 thickness == 0 optimization.
32394 2007-09-27 Jeffrey Stedfast <fejj@novell.com>
32396 * xaml.cpp (flush_char_data): g_strchomp() the cdata (as
32399 * text.cpp: Merged with custom text layout code - layout algorithm
32400 is chosen at runtime_init() via flags or environment variable.
32402 2007-09-27 Jeffrey Stedfast <fejj@novell.com>
32404 * runtime.cpp (runtime_init): Don't check pango version info,
32405 we're just gonna statically link in pango (and/or do
32406 configure-time checks if the user decides to link to a system
32407 pango). Implemented some preliminary environment variable parsing
32408 action to decide if the user wnts to use ffmpeg vs ms codecs,
32409 pango vs my "silverlight" text layout engine, etc.
32411 2007-09-27 Jeffrey Stedfast <fejj@novell.com>
32413 * runtime.cpp (runtime_init): Now takes a flags argument for
32414 enabling/disabling features. If RUNTIME_INIT_BROWSER is not set,
32415 then make sure pango is recent enough (if not, print a warning
32416 akin to the cairo warning).
32418 2007-09-27 Sebastien Pouliot <sebastien@ximian.com>
32420 * array.cpp: Fix issues on double parsing, including bug #328915 and
32421 test cases in /moon/test/xaml/points-torture.xaml
32423 2007-09-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
32425 * animation.cpp: Add a few null checks.
32427 2007-09-27 Larry Ewing <lewing@novell.com>
32429 * media.cpp: Don't mark our download progress as 100% until we've
32430 been notified by the downloader that it is complete. Some
32431 programs check download progress to decide when they can safely
32432 poke at the media element properties.
32433 * downloader.cpp: set the final downloader progress to 1.0 not 100.
32435 2007-09-27 Sebastien Pouliot <sebastien@ximian.com>
32437 * xaml.cpp: Don't freak out if <?xml ... ?> isn't on the first
32438 line. Fix bug #328907.
32440 2007-09-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
32442 * control.h, control.cpp: Added control_initialize_from_xaml_callbacks, and
32443 change InitializeFromXaml to take a XamlLoader argument.
32445 2007-09-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
32447 * xaml.cpp: More unrefs.
32449 2007-09-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
32451 * text.cpp: Unref a few newly created objects.
32452 * control.cpp: Remove an unnecessary ref.
32454 2007-09-26 Zoltan Varga <vargaz@gmail.com>
32456 * text.cpp (SetValue): Implement proper handling of the Text property.
32458 (OnPropertyChanged): Force a relayout when the foreground property changes.
32459 (Layout): Remove the laying out of the contents of the Text property, since the
32460 text is now contained in the first inline.
32462 2007-09-26 Jeffrey Stedfast <fejj@novell.com>
32464 * font.cpp (Layout): Include the space char on the line before
32465 wrapping, this is noticable when TextDecorations="Underline" is
32467 (TextLayout::RenderGlyphBitmap): Moved to TextFont class.
32468 (TextLayout::RenderGlyphPath): Same. Also implemented underlining.
32469 (TextFont::Render): Implemented.
32471 2007-09-26 Sebastien Pouliot <sebastien@ximian.com>
32473 * geometry.h: PathFigure::IsFilledProperty doesn't exist anymore
32474 (and was removed elsewhere, except here);
32476 2007-09-26 Chris Toshok <toshok@ximian.com>
32478 * clock.cpp (TimeManager::Tick): a few changes. first and
32479 foremost, fix the signs on the FPS_ADJUSTMENTS. oops. also, add
32480 a buffer of 50ms on either side of the timeout before we consider
32481 the Tick either slow or fast. Increase the number of out-of-line
32482 ticks we need and decrease the fps adjustment.
32484 2007-09-26 Jeffrey Stedfast <fejj@novell.com>
32486 * text.cpp (OnCollectionChanged): Needs to call Invalidate().
32488 2007-09-26 Chris Toshok <toshok@ximian.com>
32490 * clock.cpp: initialize the min_timeout based on a good default
32491 max fps (60 in our case). Also, calculate the fps adjustments in
32494 * runtime.cpp: remove the non-xrandr SetMaximumRefreshRate call -
32495 it's handled by TimeManager's default.
32497 2007-09-26 Jeffrey Stedfast <fejj@novell.com>
32499 * font.cpp: A bunch of fixes/changes to mimic Microsoft's
32500 Silverlight TextBlock layout logic.
32502 2007-09-26 Andrew Jorgensen <ajorgensen@novell.com>
32504 * Makefile.am: Added missing files for dist tarball
32506 2007-09-26 Chris Toshok <toshok@ximian.com>
32508 * clock.h, clock.cpp: add some very naive, rather lame fps tuning.
32509 we just adjust fps by a fixed amount (4fps) either up or down, if
32510 a certain number (5, by default) of ticks in a row take either
32511 less or more time to complete (respectively), than the current
32514 2007-09-26 Sebastien Pouliot <sebastien@ximian.com>
32516 * moon-path.c: Fix typos.
32517 * shape.h: Remove old ComputeBounds[Slow|Fast] from header.
32519 2007-09-26 Sebastien Pouliot <sebastien@ximian.com>
32521 * shape.h|cpp: Remove Line (direct path manipulation) hack.
32523 2007-09-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
32525 * xaml.cpp: Unref collections and matrix transforms we create.
32527 2007-09-25 Sebastien Pouliot <sebastien@ximian.com>
32529 * geometry.h|cpp, shape.cpp: Implement GetBounds without a cairo
32532 2007-09-26 Zoltan Varga <vargaz@gmail.com>
32534 * text.cpp (TextBlock): Set an empty string as a default Text property.
32535 (InsideObject): Implement this for text blocks.
32537 2007-09-25 Sebastien Pouliot <sebastien@ximian.com>
32539 * font.cpp: Fix warning.
32541 2007-09-25 Larry Ewing <lewing@novell.com>
32543 * brush.cpp|h: add image_brush_create_similar to simplify creating
32544 similar surfaces. Use it where appropriate.
32546 * media.ccp: use image_brush_create_similar where possible. In
32547 MediaElement::Render draw with opacity directly rather than
32548 creating a temporary surface for every frame. Rework image opacity
32549 cache so that we don't have to recreate the surface every time.
32551 2007-09-25 Jb Evain <jbevain@novell.com>
32553 * media.cpp|h: let the MediaElement be the only one to trigger
32554 its own events, terminate its friendship with MediaBase.
32556 2007-09-25 Jb Evain <jbevain@novell.com>
32558 * playlist.cpp|h: trigger a parsing error when no href attribute
32559 is found for base and ref elements.
32561 2007-09-25 Jb Evain <jbevain@novell.com>
32563 * playlist.cpp|h, media.cpp: Auto play for playlists.
32565 2007-09-24 Jeffrey Stedfast <fejj@novell.com>
32567 * font.cpp (Render): Fixed some y1 offset logic that didn't amke
32568 any sense (and was wrong afaict anyway). We now render exactly
32569 like Microsoft Silverlight.
32571 2007-09-24 Jb Evain <jbevain@novell.com>
32573 * playlist.cpp: close the previous source before playing
32576 2007-09-24 Jb Evain <jbevain@novell.com>
32578 * mplayer.cpp: on Close, reset height and width to zero.
32580 2007-09-24 Jeffrey Stedfast <fejj@novell.com>
32582 * media.cpp (OnPropertyChanged): Set recalculate_matrix to true if
32583 either the NaturalWidth or NaturalHeight changes.
32585 2007-09-24 Jb Evain <jbevain@novell.com>
32587 * media.cpp|h, playlist.cpp|h: refactor MediaSource so that
32588 only a SingleMedia deals with the MediaPlay directly. A playlist
32589 being a collection of either other playlist or singlemedias,
32590 playing one at a time.
32592 2007-09-24 Jb Evain <jbevain@novell.com>
32594 * media.cpp, playlist.cpp: let the Media Sources change
32595 the state of the MediaElement (Playing/Paused/Stopped).
32597 2007-09-24 Jb Evain <jbevain@novell.com>
32599 * media.h: let the media source change the properties
32600 of the media element. Make MediaSource friend of MediaElement
32602 * playlist.h, playlist.cpp: adjus to the changes in MediaSource.
32604 2007-09-24 Jeffrey Stedfast <fejj@novell.com>
32606 * font.cpp: Added kerning.
32608 * mplayer.cpp: Added mutex locking for the target_pts variable.
32610 2007-09-24 Jb Evain <jbevain@novell.com>
32612 * playlist.cpp: Playlist::IsPlaylistFile: return false
32615 2007-09-23 Jb Evain <jbevain@novell.com>
32617 * playlist.cpp: A base element stores the base in
32618 a href attribute, not in its body.
32620 2007-09-22 Chris Toshok <toshok@ximian.com>
32622 * Makefile.am (USE_XRANDR): define USE_XRANDR.
32624 * runtime.cpp (Surface::realized_callback): get the RANDR screen
32625 config info, and set the TimeManager's max refresh to match the
32628 * clock.h, clock.cpp (TimeManager::SetMaximumRefreshRate): new
32631 2007-09-22 Zoltan Varga <vargaz@gmail.com>
32633 * xaml.h xaml.cpp: Add support for parsing x:Code elements and
32634 passing them to managed code.
32636 2007-09-21 Jeffrey Stedfast <fejj@gnome.org>
32638 * mplayer.cpp (audio_play): Slightly optimized the volume
32641 * font.cpp (Layout): Keep track of the line ascend and pad our
32642 extents with an extra pixel on all sides to account for hinting.
32643 (Render): Starts rendering glyphs 1 pixel in. Also modified the
32644 logic such that we didn't have to treat path/bitmap glyphs
32647 2007-09-21 Jeffrey Stedfast <fejj@novell.com>
32649 * font.cpp: Now handles scalable fonts by rendering their outline
32650 paths rather than rendering bitmaps.
32652 * moon-path.c (moon_path_move_to): Resize the path auto-magically
32653 if we don't have enough room. Same for all of the other
32654 line_to/curve_to/etc.
32656 2007-09-21 Jeffrey Stedfast <fejj@gnome.org>
32658 * font.cpp (SetMaxWidth): Oops, set max_width = max (rather than
32659 the old width extents).
32660 (Layout): When breaking a long line, the new line height should
32661 not be set to 0 (duh), it should be set to the font height.
32663 2007-09-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
32665 * xaml.cpp, xaml.h: Added a XamlLoaderCalbacks structure that contains all
32666 the callbacks XamlLoader needs. Added xaml_loader_set_callbacks for
32667 managed code to set them. Keep track of mappings in native code, call
32668 into managed code only if a mapping is not found here. Keep a list of
32669 missing assemblies, allows managed code to request downloading of
32670 several assemblies before trying to parse xaml again. Added
32671 XamlLoader::CreateManagedObject, tries to parse xmlns/name, if
32672 successful (and only then), requests a vm to be loaded, before calling
32673 into managed code to actually create the managed object.
32675 2007-09-20 Chris Toshok <toshok@ximian.com>
32677 * type.cpp, type.cpp.in (types_init_register_events): register the
32678 LostFocus/GotFocus events.
32680 * uielement.h: add LostFocusEvent/GotFocusEvent.
32682 * uielement.cpp (uielement_init): lookup LostFocus/GotFocus events.
32684 2007-09-20 Jeffrey Stedfast <fejj@gnome.org>
32686 * text.cpp (InsideObject): Removed.
32688 * font.cpp (Layout): Add the horiBearingX value of the last glyph
32689 in each line to the width of said line.
32690 (RenderGlyphBitmap): Cache the surface and use it as a mask when
32691 filling so that the true source pattern shows thru.
32693 2007-09-20 Jeffrey Stedfast <fejj@novell.com>
32695 * mango.cpp (mango_renderer_draw_glyphs): Cache the paths that we
32697 (mango_renderer_show_layout): Instead of having pango render the
32698 text, do it ourselves using our cached paths from the previous
32699 call to mango_renderer_layout_path().
32700 (mango_renderer_layout_path): Clear our cache paths.
32702 2007-09-20 Jeffrey Stedfast <fejj@novell.com>
32704 * text.cpp (OnPropertyChanged): Don't dirty actual width/height on
32705 foreground changes.
32706 (OnSubPropertyChanged): Same.
32708 * font.cpp (GetFont): No longer need to pass the size to
32710 (TextFont::Load): No longer needs the size argument.
32711 (TextFont::.ctor): We just get the size from the pattern now.
32712 (TextFontDescription::CreatePattern): Call FcFontMatch() on our
32713 generated font pattern here instead of having our lower-level
32714 TextFont::.ctor do it.
32715 (TextFont::Ascender): Use the size metrics so that this always
32716 works properly (at least it seems to).
32717 (TextFont::Height): Same.
32718 (TextLayout::Layout): Changed line-height logic a bit for
32721 2007-09-20 Chris Toshok <toshok@ximian.com>
32723 * type.cpp.in, type.cpp (LookupEvent): fix this to check in parent
32724 type event hashes as well if we don't find it in ours.
32726 2007-09-20 Sebastien Pouliot <sebastien@ximian.com>
32728 * brush.cpp: Implemented MappingMode for LinearGradientBrush.
32729 Buttons from Dr Popper are now rendered correctly.
32731 2007-09-20 Chris Toshok <toshok@ximian.com>
32733 * typegen.cs (GenerateTypeCpp): add a call to
32734 types_init_register_events.
32736 * type.h.in, type.cpp.in: add Type::RegisterEvent,
32737 Type::LookupEvent, Type::GetEventCount, and Type::GetEventBase.
32739 * type.cpp.in: add types_init_register_events, which registers all
32740 the events we care about for all the types. we do it here to
32741 guarantee that events have been registered by the time any
32742 instance code is run for any type.
32744 * dependencyobject.h, dependencyobject.cpp: remove the event
32745 registration from EventObject, it's moving to Type. so the Type
32746 will contain the name to id hash, and the EventObject will only
32747 contain an array of GSLists, where the index into that array is
32750 * clock.cpp (clock_init): lookup the static events here.
32752 * runtime.cpp (runtime_init): same.
32754 * animation.cpp (animation_init): same.
32756 * downloader.cpp (downloader_init): same.
32758 * uielement.cpp (uielement_init): same.
32760 * src/clock.h, src/uielement.h, src/media.h, src/animation.h,
32761 src/type.h, src/runtime.h, src/downloader.h: events are static to
32762 the classes now, instead of being per-instance.
32764 * src/types.h src/types.cpp: regen.
32766 2007-09-20 Sebastien Pouliot <sebastien@ximian.com>
32768 * geometry.cpp: Avoid re-allocating path memory when possible.
32769 * moon-path.c|h: Added documentation and new moon_path_renew and
32770 moon_path_clear functions to reduce memory re-allocations.
32771 * shape.cpp|h: Avoid re-allocating path memory when possible.
32773 2007-09-20 Sebastien Pouliot <sebastien@ximian.com>
32775 * brush.cpp|h: Implemented MappingMode for RadialGradientBrush.
32776 Bubbles from bubblemark.com are now rendered correctly.
32778 2007-09-19 Sebastien Pouliot <sebastien@ximian.com>
32780 * shape.cpp|h: Remove dead code.
32782 2007-09-19 Jeffrey Stedfast <fejj@novell.com>
32784 * font.cpp: More fixes to make stuff build/work (more or less).
32786 * text.patch: Patch to make text layout/rendering use my new code
32789 2007-09-19 Chris Toshok <toshok@ximian.com>
32791 * text.cpp (TextBlock::Layout): don't insert multiple fg_attrs.
32793 2007-09-19 Sebastien Pouliot <sebastien@ximian.com>
32795 * moon-path.c|h: New. Create simple or complex paths without a
32796 (expensive) cairo_context_t using an API similar to cairo.
32797 * geometry.cpp|h: Use moon_path functions. Added (still inactive)
32798 code to compute bounds for paths.
32799 * shape.cpp|h: Use moon_path functions. Avoid Cairo extents API
32800 for Polylines and Polygons. Still not perfect for large thickness
32801 and steep angles but 8-10x faster and better (no artifact left)
32802 than previous code, see new xaml animation tests).
32803 * rsvg.cpp|h: Adapt to use moon-path functions.
32804 * Makefile.am: Add moon-path.c and moon-path.h to the build.
32806 2007-09-19 Jeffrey Stedfast <fejj@gnome.org>
32808 * font.cpp: More hackery.
32810 2007-09-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
32812 * panel.cpp: Add a null check.
32813 * xaml.cpp: Created a list that contains most created elements in order to
32814 unref them once parsing is finished (we need to unref all created
32815 elements except the top one, but the parser callback functions don't
32816 know which is the top one, so we delay the unrefing until the end). If
32817 parsing is done manually (*_from_str, etc), just use unref.
32818 * text.h, text.cpp: Add text_destroy to properly destroy the default
32819 foreground brush on shutdown.
32820 * clock.cpp: When we allocate a clock, unref it after adding it to the
32822 * collection.h: Store the parent in the Node, since we can't call
32823 obj->GetParent () in a destructor (it will walk up the hierarchy using
32824 the type system, but since the parent can be in the destructor, the type
32825 system isn't reliable anymore).
32826 * mango.h, mango.cpp: MangoAttrForeground: hold a reference to the
32827 foreground brush, not to the element. Add a mango_renderer_get_type_safe
32828 that can reinitialize static variables (after a libmoon reload) from
32830 * geometry.cpp, transform.cpp, brush.cpp: Use Value::CreateUnref for default
32832 * collection.cpp: Store the parent in the Node, since we can't call
32833 obj->GetParent () in a destructor (it will walk up the hierarchy using
32834 the type system, but since the parent can be in the destructor itself,
32835 the type system isn't reliable anymore).
32836 * dependencyobject.cpp: Attachee: don't hold a ref to the container anymore.
32837 * media.cpp: Sprinkle a few unrefs here and there.
32838 * animation.cpp: Don't ref root_clock, CreateClock already gives us a ref.
32839 Add a null check in the Storyboard destructor. Use Value::CreateUnref
32840 for default values.
32841 * runtime.cpp: Attach: Don't attach a null element. Call text_destroy on
32844 2007-09-18 Jeffrey Stedfast <fejj@gnome.org>
32846 Continued fixes to go along with Rolf's other TextBlock leak
32849 * mango.cpp (mango_attr_foreground_new): Don't ref the fg.
32850 (mango_attr_foreground_destroy): Don't unref the fg.
32852 * text.cpp (default_foreground): Make return a static reference.
32853 (Layout): Don't ref the fg.
32855 2007-09-17 Jeffrey Stedfast <fejj@gnome.org>
32857 * font.cpp: more progress on text layout.
32859 2007-09-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
32861 * xaml.cpp, xaml.h: Move callbacks from PluginXamlLoader back to XamlLoader.
32863 2007-09-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
32865 * xaml.cpp: Fix warning.
32867 2007-09-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
32869 [Removed mono dependency for 1.0 moonlight applications.
32870 We now have a native [Plugin]XamlLoader that is the native counterpart of the
32871 managed Loader object, the native loader handles xaml loading when the
32872 mono runtime isn't loaded.]
32874 * xaml.cpp, xaml.h: Added a XamlLoader class that replaces the callbacks.
32875 Changed xaml_create_from* to take a loader (XamlLoader*) argument. This
32876 was necessary because the callback handler isn't given enough
32877 information (it needs to know the plugin, but this information is not
32878 passed on), and it now also avoids the potential problem of overwriting
32879 static callbacks when several plugins are created simultanously.
32880 * control.cpp, demo.cpp: Update according to API change.
32882 2007-09-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
32884 * panel.cpp, dependencyobject.cpp, dirty.cpp: Add some null checks.
32886 2007-09-14 Jeffrey Stedfast <fejj@novell.com>
32888 * font.cpp|h: New font/text rendering engine (e.g. replacement for
32889 pango). Nowhere near complete yet.
32891 2007-09-14 Miguel de Icaza <miguel@novell.com>
32893 * media.cpp (Stop, Pause): Do not dereference source if it is not
32894 yet set (TopBanana does this).
32896 2007-09-13 Jb Evain <jbevain@novell.com>
32898 * media.cpp|h, playlist.cpp|h: Work on playlist integration.
32900 2007-09-10 Jeffrey Stedfast <fejj@novell.com>
32902 * mplayer.cpp (StopThreads): When resetting current_pts and
32903 target_pts, use the audio (or video) initial_pts value rather than
32904 0 since they are meant to be absolute pts values, not
32905 relative. This fixes a bug in the halo3 site where pressing Stop
32906 would cause the current time string to become "59:55" when it
32907 should have been "00:00".
32909 * media.cpp (OnPropertyChanged): Only Invalidate() on
32910 PositionProperty changes if we have video content to render. Fixes
32913 * mplayer.cpp (HasVideo): New method that returns true if the
32914 media source has video content.
32916 2007-09-10 Jeffrey Stedfast <fejj@gnome.org>
32918 * mplayer.cpp (Duration): Only use audio duration as the defacto
32919 duration if we've got a valid pcm handle.
32921 2007-09-10 Chris Toshok <toshok@ximian.com>
32923 * animation.cpp (HookupAnimationsRecurse): make the message
32924 involving failure to hookup a property more verbose. Looks like
32925 MS is treating a TranslateTransform as a ScaleTransform in popfly
32926 - that is, they're trying to animate ScaleX on a
32927 TranslateTransform (which is oddly enough named "scale".)
32929 * media.cpp: Emit ImageFailedEvent if we failed to load the image.
32930 Remove that damn TODO printf.
32932 * media.h: add ImageFailedEvent to Image, and change signature of
32933 CreateSurface so we can return false if there's an error.
32935 * xaml.cpp (parser_error): use the new ParserErrorEventArgs ctor.
32937 * error.h: make these classes instead of structs, and also make
32938 them copy/free the type specific strings. it'll result in more
32939 allocations but it cleans up the code using them.
32941 2007-09-07 Sebastien Pouliot <sebastien@ximian.com>
32943 * shape.cpp: Fixed Polygon "special" case when it only has to draw
32944 a line. Fixed Line::ComputeBound (Shape::ComputeBoundFast wasn't
32945 working) which is now 10x faster than calling ComputeBoundSlow (the
32946 working alternative). Started to reuse the same concept for Polyline
32947 and Polygon but the (#def-out) code doesn't yet handle line joins
32948 correctly (so it still use the correct ComputeBoundSlow);
32950 2007-09-06 Chris Toshok <toshok@ximian.com>
32952 * dirty.cpp (process_dirty_elements): some guards against unioning
32953 an empty rectangle.
32955 2007-09-06 Chris Toshok <toshok@ximian.com>
32957 * runtime.cpp (Surface::Invalidate): only invalidate the actual
32958 rectangle. The +1/-2 stuff is done in dirty.cpp, if it needs to
32961 * rect.h (Rect::Floor): drop fractional part of all values.
32963 * media.h,media.cpp: we cheat and turn off AA on MediaElements
32964 when they aren't rotated or skewed.
32966 * uielement.h, uielement.cpp: we need to keep track of 2
32967 dirty_rects. one for the element itself, which is GrowBy(1)'ed in
32968 dirty.cpp if the child uses AA, and one for children who have
32969 passed their invalidation rect up the tree (we don't grow this
32970 one). Also, add the default UseAA method, which returns true, and
32971 the ChildInvalidated method, which mirrors Invalidate(Rect r) but
32972 uses the children_dirt_rect.
32974 * panel.h, panel.cpp (Panel::~Panel): clear our children
32976 (Panel::FindStartingElement): the meat of the optimization hack -
32977 we determine if we can skip parts of the tree if the expose
32978 rectangle exists completely within the bounds of an opaque
32979 element, unrotated, unskewed element.
32981 * dirty.cpp (process_dirty_elements): handle
32982 item->children_dirty_rect as well as item->dirty_rect. Also, Grow
32983 the item's dirty_rect by 1 before combining them, if the item uses
32986 2007-09-05 Jb Evain <jbevain@novell.com>
32988 * playlist.cpp: the asx format is case insensitive, parse it
32991 2007-09-05 Sebastien Pouliot <sebastien@ximian.com>
32993 * animation.h: Make KeySpline::GetObjectType virtual.
32995 2007-09-05 Jb Evain <jbevain@novell.com>
32997 * playlist.cpp, playlist.h: work on playlist parsing.
32999 2007-09-05 Jb Evain <jbevain@novell.com>
33001 * xaml.h: export timespan_from_str.
33003 2007-09-05 Jb Evain <jbevain@novell.com>
33005 * list.h, list.cpp: add Remove(Node) and RemoveAt(int) method.
33007 2007-09-04 Chris Toshok <toshok@ximian.com>
33009 * media.cpp (Image::Render): unref the backing pixbuf as soon as
33011 (Image::CleanupSurface): guard against double unreffing the
33014 2007-09-04 Chris Toshok <toshok@ximian.com>
33016 * xaml.cpp (xaml_set_property_from_str): delete the color.
33017 (dependency_object_set_attributes): same.
33019 2007-09-04 Chris Toshok <toshok@ximian.com>
33021 * media.cpp (Image::CreateSurface): if we need to create a new
33022 surface, make sure to unref the old one.
33024 * geometry.cpp (PathGeometry::PathGeomtry): use
33025 Value::CreateUnrefPtr (bad name, imo, but eh)
33026 (PathFigure::PathFigure): same.
33028 2007-09-04 Jb Evain <jbevain@novell.com>
33030 * playlist.h, playlist.cpp: Work on the overall design.
33032 2007-09-04 Jeffrey Stedfast <fejj@novell.com>
33034 * brush.cpp (image_brush_create_pattern): Revert previous patch as
33035 it broke test suite.
33037 2007-09-04 Jb Evain <jbevain@novell.com>
33039 * list.h, list.cpp: add a List::ForEach method.
33041 2007-09-04 Jeffrey Stedfast <fejj@novell.com>
33043 * brush.cpp (image_brush_create_pattern): Set CAIRO_FILTER_FAST
33044 (based on lewings performance patch).
33046 2007-09-04 Sebastien Pouliot <sebastien@ximian.com>
33048 * text.h|cpp: TextBlock actual_[height|width] are already cached
33049 because they're expansive to calculate. Make sure we don't compute
33050 them until they're really required (e.g. when a lot of properties
33051 changes when loading an XAML file).
33053 2007-09-04 Chris Toshok <toshok@ximian.com>
33055 * animation.cpp (KeyFrameAnimation_ResolveKeyFrames): add the
33056 keyframes in reverse order so the sort works.
33058 2007-09-04 Jeffrey Stedfast <fejj@novell.com>
33060 * list.cpp (Insert): Fixed.
33062 * runtime.cpp (render_cb): Added some "FPS" debug spew.
33064 * media.cpp (AdvanceFrame): On MediaEnded, don't remove the source
33065 timeout id, by returning false, it is removed for us.
33067 Tue Sep 4 17:50:24 CEST 2007 Paolo Molaro <lupus@ximian.com>
33069 * media.cpp: fix memory leaks and crashes when a download gets
33072 2007-09-04 Jeffrey Stedfast <fejj@novell.com>
33074 * mplayer.cpp: Changed all pts variables to int64_t from uint64_t
33075 as that seems to be what ffmpeg uses internally. Also added a new
33076 'eof' state so that we can easily tell if we've reached the end of
33077 the media stream (eof is true and no packets queued).
33079 2007-09-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
33081 * media.h, media.cpp: If we get a play request before the media is loaded,
33082 save the request and start playing when the media is loaded. Hopefully
33083 this is what MS is doing.
33085 2007-09-04 Jeffrey Stedfast <fejj@gnome.org>
33087 * collection.cpp (Clear): Use list->IsEmpty () as it is cheaper
33088 than comparing the Length() to 0.
33090 * list.cpp: Added more tests.
33092 2007-09-03 Sebastien Pouliot <sebastien@ximian.com>
33094 * rect.cpp: Safer IsEmpty (handles negative values)
33095 * shape.cpp: In Shape::ComputeBoundsSlow make empty shape returns
33096 empty bounds. In Shape::DoDraw avoid call to cairo_set_matrix if
33099 2007-09-03 Sebastien Pouliot <sebastien@ximian.com>
33101 * media.cpp: Fix premul and remove confusing macro.
33103 2007-09-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
33105 * clock.cpp, uielement.cpp, trigger.cpp, panel.cpp, animation.cpp,
33106 canvas.cpp, namescope.cpp: Plug some leaks.
33107 * value.h.in, value.h, value.cpp: Added CreateUnrefRef and CreateUnref.
33108 * dependencyobject.cpp: free_attachee: unref the contained dob. Use
33109 base_unref () instead of accessing the pointer in a few places to allow
33111 * debug.cpp: get_stack_trace is now able to get meaningful data for managed
33112 parts of the stack trace as well.
33114 2007-09-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
33116 * list.cpp: List::Unlink: Link my neighbours to eachother.
33118 2007-09-01 Sebastien Pouliot <sebastien@ximian.com>
33120 * rect.cpp: Fix union with empty rectangles (so x and y are not
33121 assigned to 0 resulting in large bounds). Fix IsEmpty.
33122 * shape.cpp: Fix possible division by 0, resulting in infinite
33123 values (and much too large bounds)
33125 2007-08-31 Jeffrey Stedfast <fejj@novell.com>
33127 *.cpp: Updated for the slightly different List API (list nodes no
33128 longer have Next() or Prev() methods, just access the pointers
33131 * animation.cpp: Made sorted_list a GPtrArray and updated to use
33132 g_ptr_array_insert_sorted(). Also, a lot of the 'list' (not
33133 sorted_list) accesses assumed nodes were of type KeyFrameNode,
33134 which they were not. Fixed.
33136 * xaml.cpp: Made XamlElementInstance.dtor virtual.
33138 * collection.h: Made the Collection::Node.dtor virtual.
33140 * list.cpp: Rewritten, if we add a virtual .dtor to List::Node, we
33141 can no longer guarantee that List::Node->next will have the same
33142 address as the List::Node object and so the list implementation
33143 broke. This rewrite is a bit less fancy, but doesn't rely on that
33146 2007-08-31 Sebastien Pouliot <sebastien@ximian.com>
33148 * media.cpp, panel.cpp, shape.cpp, text.cpp: Calling GrowBy
33149 doesn't change the current rectangle (but returns a new one).
33150 However everything seems to work, so they are probably not needed.
33152 2007-08-31 Jeffrey Stedfast <fejj@novell.com>
33154 * text.cpp (OnPropertyChanged): Need to Invalidate() too.
33156 2007-08-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
33158 * runtime.h, runtime.cpp: Implement fullscreen support, drawing_area does
33159 now reference either the fullscreen drawing area or the normal drawing
33160 area. Refactored drawing area initialization and destruction into
33161 seperate methods. Modified ConnectEvent to be able to specify whether
33162 the drawing area should attach to realize/unrealize events (fullscreen
33163 drawing area shouldn't). Only emit ResizeEvent if we're not in
33164 fullscreen mode. Added normal_height/width, contains the size of the
33165 surface when not in fullscreen (as opposed to screen_height/width for
33166 fullscreen mode). Height/width now contains the actual size of the area
33167 where we draw, whether in fullscreen mode or not.
33169 2007-08-31 Sebastien Pouliot <sebastien@ximian.com>
33171 * shape.cpp: #ifdef out an optimization that doesn't work with
33172 ComputeBoundsSlow (a specified stroke brush, with a thickness of 0,
33173 wouldn't render at all with it's fill brush). Added same shortcut
33174 (as before) for Shape::ComputeBoundsSlow.
33176 2007-08-31 Sebastien Pouliot <sebastien@ximian.com>
33178 * shape.cpp: Added a shortcut in Shape::ComputeBoundsFast when shapes
33179 are known to be empty (UIElement::SHAPE_EMPTY).
33181 2007-08-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
33183 * shape.h, shape.cpp: Revert to the old CanFill method for shapes,
33184 apparently a point is inside a shape unregarding to whether it's filled
33185 or not, unlike geometries.
33187 2007-08-30 Sebastien Pouliot <sebastien@ximian.com>
33189 * shape.cpp: Better degenerate handling for round-rectangles and
33192 2007-08-30 Chris Toshok <toshok@ximian.com>
33194 * collection.h, collection.cpp: change the prototype of
33195 Collection::Add, ::Insert, and ::SetVal to return bool. Make the
33196 subclasses check the return value before doing their type specific
33197 handling of the child. Fixes the crash from invalid xaml in
33200 * animation.h, animation.cpp: track collection api change.
33202 2007-08-30 Chris Toshok <toshok@ximian.com>
33204 * collection.cpp (Collection::Add): make the warning a lot more
33205 useful if the child isn't of the right type.
33207 2007-08-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
33209 * xaml.cpp: Unref the namescope.
33210 * debug.h, debug.cpp: Added. Implemented get_stack_trace and
33212 * clock.cpp: Unref the _instance.
33213 * dependencyobject.h, dependencyobject.cpp: Implement object tracking for
33214 debug purposes. It's able to log to console object creation,
33215 destruction, ref/unrefs with a stacktrace with C++ unmangled function
33216 names, file and line number. Keep a count of created and destroyed
33217 objects, and a list of objects still alive. Ref and unref attached
33218 objects, and free the attachees when we're deleted.
33219 * animation.h, animation.cpp: Add animation_destroy, and destroy the default
33220 dependency property for a few properties.
33221 * type.cpp, type.cpp.in: Initialize Type::types to NULL.
33222 * runtime.cpp: Add a g_type_inited to avoid initializing g_types several
33223 types. Call animation_destroy on shutdown, and add some object tracking
33224 output to runtime_init and runtime_shutdown.
33225 * Makefile.am: Added debug.*.
33227 2007-08-30 Sebastien Pouliot <sebastien@ximian.com>
33229 * shape.cpp: In some degenerate cases Radius[X|Y] can be ignored
33232 2007-08-30 Jeffrey Stedfast <fejj@novell.com>
33234 * mplayer.cpp (AdvanceFrame): If there is no video stream, return
33235 based on audio state. Also, if current_pts >= target_pts already,
33236 return true rather than false to pretend we advanced a frame (it's
33237 really not that important to our caller, all the value is used for
33238 is updating position).
33240 2007-08-30 Sebastien Pouliot <sebastien@ximian.com>
33242 * shape.cpp: Handle negative values for Height and Width (not
33243 drawn) and for Radius[X|Y] (absolute values).
33245 2007-08-30 Jb Evain <jbevain@novell.com>
33247 * media.h, media.cpp: introduce a new MediaSource class that a
33248 MediaElement uses, so we can have either a SingleMedia or a Playlist
33250 * playlist.cpp, playlist.h: added
33251 * Makefile.am: add the previous files.
33253 2007-08-30 Sebastien Pouliot <sebastien@ximian.com>
33255 * shape.cpp: Fix small rectangle fills when no stroke brush is
33258 2007-08-29 Jeffrey Stedfast <fejj@novell.com>
33260 * text.cpp (OnPropertyChanged): Don't recalculate width/height nor
33261 bounds on TextProperty change explicitly, it should already be
33262 recalculated later in the function in the same place it gets
33263 reclauclated for other property changes.
33264 (ComputeBounds): Updated to work the same as the rest of the
33267 2007-08-29 Sebastien Pouliot <sebastien@ximian.com>
33269 * shape.cpp: Fix ComputeBoundsFast to consider the stroke
33272 2007-08-29 Sebastien Pouliot <sebastien@ximian.com>
33274 * shape.cpp: Fix Path::BuildPath cairo_path_t caching as we modify
33275 the path after we get a copy of it. Remove the now unrequired
33276 clipping inside the *::BuildPath for StretchUniformToFill.
33278 2007-08-29 Jeffrey Stedfast <fejj@novell.com>
33280 * media.cpp (Render): Cache the pattern matrix.
33281 (DownloaderComplete): Remove the assert and simply handle that
33282 case by returning (which defers the call until OnLoaded).
33284 2007-08-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
33286 * runtime.cpp: Initialize the FullScreen variables. Helps a lot in
33287 making things consistent.
33289 2007-08-29 Chris Toshok <toshok@ximian.com>
33291 * merged delayed-rendering-branch branch to head. ChangeLog is:
33293 2007-08-28 Chris Toshok <toshok@ximian.com>
33295 * control.cpp (GetTransformFor): change this to act as
33296 Canvas::GetTransformFor does - we only put in the transform from
33297 parent to child here - don't include the parent's transform as
33298 well. Fixes the airlines demo.
33300 2007-08-28 Chris Toshok <toshok@ximian.com>
33302 * dirty.cpp (process_dirty_elements): use a different method for
33303 checking if against the toplevel canvas, and also use
33304 UIElement::parent instead of DependencyObject::GetParent() to get
33305 controls working a little better than before.
33307 * control.h, control.cpp: remove UpdateTransform. this is handled
33308 by the dirty.cpp code now.
33310 * dependencyobject.h, dependencyobject.cpp: copy over the
33311 event_object_{add,remove}_event_handler change from the trunk so
33312 we can continue to work with HEAD olive.
33314 2007-08-22 Chris Toshok <toshok@ximian.com>
33316 * uielement.cpp (Invalidate): don't actually invalidate the
33317 element unless it's visible.
33318 (OnPropertyChanged): the above change requires us to invalidate
33319 the element before setting the flags (in the case where we're
33320 hiding an element).
33322 2007-08-21 Jeffrey Stedfast <fejj@novell.com>
33324 * media.cpp (ComputeBounds): Use the FrameworkElement width/height
33325 unless unspecified, only then should we use video width/height.
33327 2007-08-21 Chris Toshok <toshok@ximian.com>
33329 * uielement.cpp (DoRender): short-circuit rendering of uielements
33330 when their opacity is 0.
33332 * dirty.cpp (process_dirty_elements): handle controls.
33334 2007-08-21 Chris Toshok <toshok@ximian.com>
33336 * shape.h: add Shape::ComputeBoundsSlow, which uses the slow
33337 (cairo_*_extents) codepath for computing bounds. Use this path
33338 for polygons, polylines, and paths. Implement a Line-specific
33339 fast ComputeBounds.
33341 2007-08-20 Chris Toshok <toshok@ximian.com>
33343 * media.cpp (MediaElement::ComputeBounds): GrowBy(1).
33344 (Image::ComputeBounds): use bounding_rect_for_transformed_rect.
33346 2007-08-20 Chris Toshok <toshok@ximian.com>
33348 * rect.h, rect.cpp: add bounding_rect_from_transformed_rect.
33350 * panel.cpp (Panel::ComputeBounds): use the bounding_rect
33351 call, and Rect::GrowBy
33353 * media.cpp (MediaElement::ComputeBounds): use the bounding_rect
33356 2007-08-20 Chris Toshok <toshok@ximian.com>
33358 * shape.h, shape.cpp: move the ellipse bound computing to shape
33361 2007-08-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
33363 * clock.h: Implement TimeManager::GetObjectType.
33364 * dependencyobject.h, dependencyobject.cpp: Move all type management down to
33365 Base (GetObjectType, Is, GetType, GetTypeName), and implement
33366 GetObjectType in the classes that don't do it already. Remove
33367 BASE_FLOATS, simplifying ref counting.
33368 * type.cpp.in, type.h, type.cpp, type.h.in: Added Base and inherited classes
33369 that don't already inherit from DependencyObject.
33370 * runtime.h, runtime.cpp: Add the Fullscreen API (not implemented yet, only
33371 raises events), and implement GetObjectType.
33373 2007-08-28 Sebastien Pouliot <sebastien@ximian.com>
33375 * shape.cpp: Fix StretchUniformToFill
33377 2007-08-28 Sebastien Pouliot <sebastien@ximian.com>
33379 * shape.cpp: Fix StrokeDashArray and StrokeDashOffset as they now
33380 (new since refresh?) need to be multiplied with the stroke's
33383 2007-08-28 Jeffrey Stedfast <fejj@novell.com>
33385 * text.cpp (Render): Fixed the "no text to render" optimization:
33386 don't check TextBlock::TextProperty to see if we have any text to
33387 render, instead check TextBlock::layout (which will have any text
33388 from inlines as well).
33389 (OnPropertyChanged): If the TextProperty changes, recalculate the
33392 2007-08-28 Sebastien Pouliot <sebastien@ximian.com>
33394 * geometry.h: Add a Path* parameter to Draw as we need to know some
33395 stuff (e.g. stroke thickness) in order to detect degenerate cases.
33396 * geometry.cpp: Handle degenerate case for RectangleGeometry.
33397 * panel.cpp, uielementy.cpp: Adjust Draw calls for optional Path
33398 element (NULL in the case of clipping).
33399 * shape.cpp|h: Move cairo_path_t caching logic from Path to Shape
33400 class. Add GetFillRule method. Handle most cases where a large stroke
33401 thickness change the SL drawing behaviour (wrt Cairo behaviour)
33402 * uielement.h: Add flags for empty/normal/degenerate shapes
33404 2007-08-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
33406 * panel.cpp: InsideObject: The point is only inside us if we have a
33407 background, otherwise we act like if we were transparent (which is what
33408 we are if we aren't painting anything inside us).
33409 * geometry.h, uielement.cpp, shape.h: Rename CanFill to IsFilled so that
33410 it's closer to what it actually does.
33411 * shape.cpp: Changed implementation of Shape::CanFill to return true only if
33412 we're actually filled, and rename CanFill to IsFilled so that it's
33413 closer to what it actually does.
33415 2007-08-27 Jackson Harper <jackson@ximian.com>
33417 * dependencyobject.cpp|h: Don't return Collections when getting
33420 2007-08-27 Jeffrey Stedfast <fejj@novell.com>
33422 * mplayer.cpp (Play): Always add a timeout, even for audio-only
33423 media, so that the callback can check if the media has ended and
33424 emit the MediaEnded event.
33426 * media.cpp (AdvanceFrame): Emit the MediaEndedEvent.
33428 * mplayer.cpp (MediaEnded): New convenience function.
33430 2007-08-27 Sebastien Pouliot <sebastien@ximian.com>
33432 * shape.cpp: Remove cairo_new_path call in moon_rounded_rectangle
33433 as this clear any path data in the context (see
33434 test-path-group.xaml)
33436 2007-08-27 Jeffrey Stedfast <fejj@novell.com>
33438 * mplayer.cpp (audio_play): Implement software balance/volume here
33439 rather than using the system's mixer (as that changes the
33440 balance/volume for all applications which is a bad thing). Fixes
33443 2007-08-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
33445 * panel.cpp: InsideObject: only skip checking the children if the
33446 point is not in the clipped area.
33448 * uielement.h, uielement.cpp: Added InsideClip, and moved the
33449 corresponding code from InsideObject to InsideClip.
33451 2007-08-27 Sebastien Pouliot <sebastien@ximian.com>
33453 * xaml.cpp: Fix calculation for smooth quadatric bezier (T) as seen in
33454 tests/xaml/test-path-smoothquadraticbezier.xaml
33456 2007-08-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
33458 * uielement.h, uielement.cpp: Implement InsideObject here too, the same
33459 implementation as Shape has (for our Clip property).
33460 * frameworkelement.cpp: InsideObject: call new base implementation as well.
33461 * panel.cpp: InsideObject: don't check our children, the mouse may be over
33462 them, but they're not visible for some reason (the parent object might
33465 2007-08-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
33467 * panel.cpp: Panel::HandleMotion, if we're the captured element, handle the
33468 motion event even though the mouse isn't over us.
33469 * runtime.h: Add a public Surface::GetCapturedElement.
33471 2007-08-24 Jeffrey Stedfast <fejj@novell.com>
33473 * mplayer.cpp (StopThreads): Need to reset current_pts to 0 so the
33474 video frames will update if we seek backwards.
33476 * uielement.cpp (DoRender): Shortcut out if total_opacity == 0.0
33478 * media.cpp (UpdateProgress): Use the downloader progress value as
33479 the buffering progress value as well (since we don't yet stream).
33480 (DownloaderComplete): Call UpdateProgres() here so that we can
33481 flush the 100% progress value.
33483 * downloader.cpp (Write): Update the progress first, so that the
33484 writer callback can query the actual progress (all data read up to
33485 and /including/ this point in time).
33486 (NotifyFinished): Set progress to 100% and emit an event.
33488 2007-08-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
33490 * value.h[.in]: Added AsNPObj.
33491 * type.cpp[.in]: Initialize Type::NPOBJ correctly.
33493 2007-08-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
33495 * media.cpp: (DownloaderCompleted): The initial state of media
33496 elements that aren't autoplayed is 'Paused'.
33498 2007-08-23 Jeffrey Stedfast <fejj@novell.com>
33500 * media.cpp (MediaElement): Initialize 'loaded' to false.
33501 (SetSource): Don't call DownloaderComplete() if we haven't been
33503 (GetValue): Convert to position from ms to TimeSpan ticks.
33504 (OnLoaded): Set loaded to true and, if we have a downloader which
33505 has completed the download, call DownloaderComplete() which will
33506 then open the media file and autoplay if appropriate.
33507 (OnPropertyChanged): Protect against creating a downloader for an
33510 2007-08-23 Jeffrey Stedfast <fejj@novell.com>
33512 * media.cpp (DownloaderComplete): If we fail to open, emit the
33513 MediaFailedEvent and set some default values.
33514 (OnPropertyChanged): Don't StopLoader() here, do that all in
33515 SetSource (since SetSource needs to do it anyway).
33516 (SetSource): Call StopLoader() here and close the MediaPlayer,
33519 2007-08-23 Jackson Harper <jackson@ximian.com>
33521 * runtime.cpp|h: Make Resize use our event system (so the plugin
33523 * dependencyobject.cpp|h: Rename the add/remove handler functions
33524 to not require dependencyobjects.
33526 2007-08-23 Jeffrey Stedfast <fejj@novell.com>
33528 * media.cpp (OnPropertyChanged): Don't autoplay here.
33529 (advance_frame): Do ms->TimeSpan conversion here, too.
33530 (DownloaderComplete): Instead of calling ::Pause(), just set the
33531 pause state since the MediaPlayer already starts out in paused
33534 2007-08-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
33536 * clock.h: Add defines and methods to convert between timespans and
33538 * media.cpp: Create a default (empty) Markers collection. When setting
33539 MediaPlayer time values, convert between ticks (in TimeSpans) and
33540 milliseconds (which is what MediaPlayer expects). Emit MediaOpened
33541 when we're finished downloading a media, and if we're not autoplaying
33542 it, we're pausing it. Update uses of Value (gint64) constructors.
33543 * value.cpp|h|h.in: Remove the Value (gint64) constructor and add a
33544 Value (gint64, Type::Kind) constructor to avoid mixups between
33545 INT64 and TIMESPAN values. Check for null before unref'ing a
33547 * xaml.cpp: Update uses of Value (gint64) constructors.
33549 2007-08-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
33551 * type.[cpp|h].in: Add const's here that were only added manually
33552 to the generated files.
33554 2007-08-23 Jeffrey Stedfast <fejj@novell.com>
33556 * mplayer.cpp: Implemented volume/balance
33558 2007-08-23 Sebastien Pouliot <sebastien@ximian.com>
33560 * shape.cpp: Remove unneeded (cairo_close_path) and dead (break)
33561 code in Polygon::Draw.
33563 2007-08-22 Chris Toshok <toshok@ximian.com>
33565 * clock.cpp (Tick): guard against division by zero. gets
33566 "monotone" displaying.
33568 2007-08-22 Sebastien Pouliot <sebastien@ximian.com>
33570 * shape.cpp|h: Provide GetTransformOrigin on Shape and remove them
33571 from Rectangle and Ellipse. Monotone requires that on Path and I can't
33572 recall the reason I made this (while all the test cases I made still
33575 2007-08-22 Jeffrey Stedfast <fejj@novell.com>
33577 * mplayer.cpp (MediaPlayer): Init mixer variables.
33579 2007-08-22 Jeffrey Stedfast <fejj@novell.com>
33581 * media.cpp (advance_frame): Don't bother invalidating here, we'll
33582 do that in OnPropertyChanged() for the PositionProperty.
33583 (OnPropertyChanged): Invalidate if Position has changed and
33584 opacity > 0.0f (and we actually have video).
33585 (ComputeBounds): Use the FrameworkElement width/height if set.
33586 (GetTransformOrigin): Same.
33588 2007-08-21 Jeffrey Stedfast <fejj@novell.com>
33590 * mplayer.cpp (Open): Merged both Open() implementations into a
33591 single one. We no longer use Open() without passing a uri (since
33592 Stop() has been implemented in a better way).
33593 (AdvanceFrame): Keep track of our current pts so that we won't get
33594 ahead of the audio if called too often.
33596 2007-08-20 Chris Toshok <toshok@ximian.com>
33598 * rect.cpp (bounding_rect_for_transformed_rect): oops, got
33599 MAX2/MIN2 mixed up.
33601 2007-08-20 Chris Toshok <toshok@ximian.com>
33603 * rect.h, rect.cpp (bounding_rect_for_transformed_rect): horrible
33604 name, I know, but we need this functionality. it's not enough to
33605 use UL and LR corners of the rectangle when computing the bounding
33606 rect for a transformed rectangle. we have to test all 4 points.
33608 * panel.cpp (ComputeBounds): use
33609 bounding_rect_for_transformed_rect.
33611 2007-08-17 Chris Toshok <toshok@ximian.com>
33613 * dependencyobject.cpp (strcase_equal, strcase_hash): new case
33614 insensitive hash functions.
33615 (RegisterFull): the property hash tables (per type, used for
33616 GetDependencyProperty) need to be case insensitive.
33618 2007-08-17 Chris Toshok <toshok@ximian.com>
33620 * xaml.cpp: remove Hidden from the visibility_map.
33621 (enum_from_str): if we don't see a name we recognize, try to parse
33622 it as a number. This could maybe be someplace else.
33624 * enums.h: remove VisibilityHidden
33626 * uielement.h, uielement.cpp: remove
33627 VisibilityHidden/LAYOUT_VISIBLE
33629 * control.h: remove GetLayoutVisible.
33631 * panel.cpp (ComputeBounds): switch from item->GetLayoutVisible to
33632 item->GetVisible, since there's no need to distinguish between the
33635 2007-08-17 Jackson Harper <jackson@ximian.com>
33637 * clock.h: Add ToSeconds utility functions.
33639 2007-08-16 Jeffrey Stedfast <fejj@novell.com>
33641 * list.cpp (InsertSorted): For the stable evrsion, work backwards
33642 instead of forwards (improves performance in the typical case,
33643 altho we aren't gonna sue this feature anymore - z-sorted lists
33644 will now be GPtrArrays).
33646 * garray-ext.cpp|h: New src file containing an extension to
33647 GPtrArray for inserting an item into a presorted array.
33649 * collection.cpp (VisualCollection): z_sorted is now a GPtrArray,
33650 updated all usages of it.
33652 * panel.cpp (Render): Updated now that z_sorted is an array
33653 instead of a linked list.
33655 2007-08-16 Jackson Harper <jackson@ximian.com>
33657 * xaml.cpp: Transforms can be set as attributes, they are just a
33658 matrix in string form, that become a MatrixTransform on the
33660 - Made the debug a little nicer
33662 2007-08-15 Jackson Harper <jackson@ximian.com>
33664 * xaml.cpp: Since the callback setting is now a once per a domain
33665 thing, we don't want to check if they are already set. The 'are
33666 they already set' check only worked when we were setting them at
33667 the beginning of each parsing attempt. With our current setup it
33668 was causing everything to get loaded in the same domain.
33670 2007-08-13 Jeffrey Stedfast <fejj@novell.com>
33672 * mplayer.cpp (AdvanceFrame): Init frame to NULL so we don't
33673 segfault if there are no packets in the queue.
33675 2007-08-13 Chris Toshok <toshok@ximian.com>
33677 * animation.cpp (*KeyFrame::InterpolateValue): for all the
33678 keyframes, if we don't have a Value defined, don't bother
33679 interpolating anything, just return baseValue.
33681 2007-08-13 Chris Toshok <toshok@ximian.com>
33683 * collection.cpp: fix merging/unmerging of child namescopes.
33685 * namescope.h, namescope.cpp: add a flag (merged) and a list of
33686 child merged namescopes which are searched any time this namescope
33687 is searched. Reimplement merge as list->Append, and unmerge as
33690 * dependencyobject.h: add ClearValue, and make GetParent
33693 * dependencyobject.cpp: add impl for ClearValue, and remove
33694 GetParent. Also, when finding a name we only check non-merged
33695 namescopes. The merged ones in the hieararchy will be checked as
33696 the children of the non-merged ones. Given that the set of names
33697 in merged scopes can't overlap, I'm not strictly sure this is
33698 necessary, except to reproduce Silverlight's faulty lookups after
33701 2007-08-10 Jeffrey Stedfast <fejj@novell.com>
33703 * collection.cpp (Clear): Unregister the object names.
33705 * dependencyobject.h (GetName): uhh... just return the value, lets
33706 not go returning "(null)" in string form.
33708 2007-08-10 Chris Toshok <toshok@ximian.com>
33710 * runtime.h, runtime.cpp (key_press_callback): map the gdk keyval
33711 to the silverlight Key and call s->toplevel->HandleKeyDown.
33712 (key_release_callback): same.
33713 (gdk_keyval_to_key): new function, to map between gdk and
33716 * uielement.h, uielement.cpp: add HandleKeyDown/HandleKeyUp, which
33717 just package up the args into a structure and Emit the event.
33719 * enums.h: add the Key enum from the silverlight docs.
33721 2007-08-10 Jeffrey Stedfast <fejj@novell.com>
33723 * dependencyobject.cpp (resolve_property_path): Keep track of the
33724 last '.' so that when we go to get the DependencyProperty, we can
33725 pass the property name component rather than the full path of the
33726 property name. Fixes the color fades in Monotone.
33728 2007-08-09 Chris Toshok <toshok@ximian.com>
33730 * animation.h, animation.cpp: if any keyframe's keytime changes,
33731 we need to re-resolve the collection.
33733 2007-08-09 Jeffrey Stedfast <fejj@novell.com>
33735 * mplayer.cpp (Play): Only start up the io/audio threads if we
33736 aren't simply paused (e.g. if they are already alive).
33737 (IsPlaying): Return true only if playing && !paused.
33738 (audio_loop): Changed the locking logic to lock outside of the
33739 loop rather than inside. We now only release the lock inside the
33740 loop if/when the paused state changes.
33742 2007-08-08 Chris Toshok <toshok@ximian.com>
33744 * animation.h: sprinkle Resolve() methods and resolved flags
33747 * animation.cpp (Storyboard::HookupAnimationsRecurse): call
33748 Resolve() on the animation as we recurse.
33749 (KeyFrameNodeComparer): compare using the keyframe's resolved
33751 (KeyFrameNodeFinder): nuke.
33752 (KeyFrameCollection::Add): just mark the collection as needing to
33753 be resolved. don't muck with the sorted list here.
33754 (KeyFrameCollection::Insert): same.
33755 (KeyFrameCollection::Remove): same.
33756 (KeyFrameCollection::Clear): also mark the collection as
33758 (KeyFrameCollection::GetKeyFrameForTime): use resolved keytime.
33759 (KeyFrameAnimation_ResolveKeyFrames): implement most of the
33760 algorithm posted at
33761 http://msdn2.microsoft.com/en-us/library/ms742524.aspx to resolve
33762 keytimes of different types. this is all untested, unfortunately,
33763 as I can't get non-TimeSpan keytimes to work on SL.
33764 (*AnimationUsingKeyFrames::GetCurrentValue): use resolved
33766 (*AnimationUsingKeyFrames::GetNaturalDurationCore): resolve
33767 the key frames before using sorted_list.
33768 (*AnimationUsingKeyFrames::Resolve): override the empty
33769 default, and call KeyFrameAnimation_ResolveKeyFrames.
33771 2007-08-08 Chris Toshok <toshok@ximian.com>
33773 * clock.cpp (Begin): make sure we handle clocks that seek in the
33776 2007-08-08 Chris Toshok <toshok@ximian.com>
33778 * canvas.cpp (Canvas::Canvas): create a temporary namescope
33779 whenever we create a canvas. We need this for animations that are
33780 started before the canvas is attached to the tree, or in any case
33781 where FindName is called on code associated with a subtree before
33782 it's added to the surface.
33784 * animation.cpp (Storyboard::HookupAnimationsRecurse): turns out
33785 Storyboard.TargetName can be assigned to the parent storyboard as
33786 well as the animation. Loop up the clock hierarchy when looking
33787 for the targetname.
33789 2007-08-07 Chris Toshok <toshok@ximian.com>
33791 * animation.cpp, animation.h
33792 (*AnimationUsingKeyFrames::GetNaturalDurationCore): no need to
33793 iterate over all the keyframes looking for the last one - just
33794 look at the last one in the sorted list.
33796 2007-08-07 Jeffrey Stedfast <fejj@novell.com>
33798 * media.cpp (SetValue): Only crop position values if we're not
33799 updating state from the media player (we're allowed to set values
33800 outside of the duration range from the media player). Also, do our
33802 (OnPropertyChanged): Don't do our seeking here because we can't
33803 get the actual seek position as GetValue()'s override will
33804 re-query the media player for its actual position.
33806 * mplayer.cpp (Open): Don't create the threads here anymore,
33807 create them in Play() instead. Also calculate ahead of time the
33808 new audio->pts_per_frame value which allows the video to keep even
33809 better sync with the audio (we used to base this on actual time
33810 spent playing the audio frame rather which could sometimes be off
33812 (AdvanceFrame): If seek_pts is non-zero, then we need to base
33813 target_pts on it rather than video->initial_pts (assuming we have
33814 no audio to sync to).
33815 (Play): Set playing = true and create the audio/io threads.
33816 (Close): A lot of the logic has been moved into a new method,
33818 (StopThreads): Stop the threads and reset minimal state.
33819 (Stop): Call StopThreads() and seek back to the beginning of the
33821 (Seek): Implemented.
33822 (Position): Back to subtracting the initial_pts so that we always
33823 have a range of 0:duration. If seek_pts is set and >target_pts,
33824 use that rather than target_pts so even if we are in a stopped
33825 state, querying the position will return expected results.
33826 (audio_play): Return audio->pts_per_frame rather than the actual
33829 2007-08-06 Jackson Harper <jackson@ximian.com>
33831 * xaml.cpp: add VisualCollections.
33833 2007-08-06 Chris Toshok <toshok@ximian.com>
33835 * clock.cpp, clock.h: this might be completely wrong and break
33836 other demos... but childless clockgroups Stop when they hit their
33837 duration, they don't SkipToFill. fixes the silverlightclr balls
33840 2007-08-06 Larry Ewing <lewing@novell.com>
33842 * dependencyobject.h:
33843 * dependencyobject.cpp:
33846 * type.cpp: add const to the various string apis.
33848 2007-08-06 Jeffrey Stedfast <fejj@novell.com>
33850 * mplayer.cpp: Fixes to make it work with media files w/ no audio
33851 (or where we are unable to play the audio).
33853 2007-08-04 Chris Toshok <toshok@ximian.com>
33855 * brush.h, brush.cpp: add VisualBrush.
33857 * xaml.cpp (xaml_init): hookup VisualBrush parsing.
33859 * value.h, type.h, type.cpp: sync up the VisualBrush stuff.
33861 2007-08-04 Chris Toshok <toshok@ximian.com>
33863 * panel.cpp (Panel::ChildInvalidated): for the Invalidated stuff
33864 to work properly, panel needs to call
33865 FrameworkElement::Invalidate, not parent->ChildInvalidated
33868 * uielement.h, uielement.cpp: add an Invalidated event for use by
33871 2007-08-03 Chris Toshok <toshok@ximian.com>
33873 * collection.cpp (Collection::Add, Collection::Insert): reinstate
33874 jackson's merging code, but only do it if @data's namescope is
33877 * namescope.h, namescope.cpp: Add {Set,Get}Temporary.
33879 * xaml.cpp (xaml_create_from_str): set the namescope to be
33880 temporary if create_namescope is false.
33881 (xaml_create_from_file): same.
33883 2007-08-03 Chris Toshok <toshok@ximian.com>
33885 * panel.h, panel.cpp: add an optimization for the 2 updates that
33886 travel down the tree (UpdateTotalOpacity and UpdateTransform).
33887 Since we're already invalidating the panel's bounds (in fact we do
33888 it before traversing), we can ignore the invalidates which come
33889 back up the tree from the children.
33891 * media.cpp, media.h: make NaturalDuration a Duration. this gets
33892 the last of roeder's demos sorta working.
33894 2007-08-03 Jeffrey Stedfast <fejj@novell.com>
33896 * mplayer.cpp: Whenever we change the 'paused' state, signal to
33897 the other thread(s) that it has changed so that they can go on
33898 with their lives immediately rather than waiting for the kernel to
33901 2007-08-02 Chris Toshok <toshok@ximian.com>
33903 * control.cpp (GetTransformFor, OnSubPropertyChanged): now, before
33904 you get your panties in a twist, check this out. If you have a
33905 control and set both its Canvas.LeftProperty and that of its root
33906 object (the return value of InitializeFromXaml), the effects are
33907 *additive*, yet GetValue on each object returns exactly what you'd
33908 expect - the value you set on it. The only reasonable explanation
33909 for this is that Control has Canvas's layout algorithm c&p'ed into
33912 2007-08-02 Chris Toshok <toshok@ximian.com>
33914 * xaml.h, xaml.cpp: switch the xaml_create_from_{file,str}
33915 functions to returning DependencyObjects instead of UIElements.
33916 in javascript you can create arbitrary xaml hierarchies (transform
33917 groups, brushes, etc).
33919 * control.cpp: need a cast here due to the above change.
33921 2007-08-02 Chris Toshok <toshok@ximian.com>
33923 * runtime.h, runtime.cpp (Surface::Invalidate): add this call, and
33924 stuff the gtk_widget_queue_draw_area call there.
33926 * uielement.h, uielement.cpp, canvas.h, canvas.cpp, panel.h,
33927 panel.cpp, control.h, control.cpp: change the way
33928 UIElement::Invalidate works. It used to call GetSurface() which
33929 would recurse up the tree to the root, and return the Surface*
33930 back down. It would then call gtk_widget_queue_draw_area there.
33931 This left little room for optimization. Switch everything over to
33932 using a new method implemented by all container classes,
33933 ChildInvalidated. Basically Invalidate's recurse up to the root
33934 as before, but the actual gtk call happens at the root (well, 1
33935 level above it. at the Surface itself). In the future we can
33936 freeze Invalidates in container elements when they do things like
33937 update their transform so we'll just send 1 Invalidate up the
33938 tree, not N Invalidates for N children.
33940 2007-08-02 Jeffrey Stedfast <fejj@novell.com>
33942 * media.cpp (DownloaderComplete): Set the CanPause and CanSeek
33945 * mplayer.cpp (~MediaPlayer): Destroy the pause_mutex
33946 (IsPaused): New method.
33948 * media.cpp (MediaElement::GetValue): If the Position is being
33949 requested, query the MediaPlayer.
33950 (MediaElement::SetValue): Make sure the PositionProperty value is
33951 within bounds and force it to be if not.
33952 (MediaElement::Stop): Do nothing if we aren't playing/paused.
33953 (MediaElement::OnPropertyChanged): Call mplayer->Seek() if the
33956 2007-08-02 Chris Toshok <toshok@ximian.com>
33958 * uielement.h, uielement.cpp: propagate opacity changes the way we
33959 do transform changes. Store the total opacity of an item in the
33960 item, as we do with absolute_xform. This keeps us from doing a
33961 walk up to the root of the hierarchy every time we have to draw an
33962 element (which we we were doing before in
33963 UIElement::GetTotalOpacity.)
33965 * panel.cpp, panel.h: when we update our total opacity, loop over
33966 the children telling them to update as well.
33968 * collection.cpp: propagate the panel's total opacity downward
33969 into the newly added subtree.
33971 2007-08-02 Chris Toshok <toshok@ximian.com>
33973 * uielement.h, uielement.cpp, canvas.h, canvas.cpp: inline
33974 GetSurface/SetSurface.
33976 2007-08-02 Chris Toshok <toshok@ximian.com>
33978 * canvas.cpp (Canvas::OnChildPropertyChanged): return true if we
33979 handle the property changing.
33981 * control.h, control.cpp: rip out all the proxying behavior.
33982 Control now works as a very specialized container. Imagine if
33983 Panel had only 1 child, and no generalized way of manipulating it
33984 (other than initializing it from a xaml fragment), and you have
33987 2007-08-01 Larry Ewing <lewing@novell.com>
33989 * xaml.cpp: don't ever make the previous point relative.
33991 2007-08-01 Jeffrey Stedfast <fejj@novell.com>
33993 * text.h: Removed deprecated enum values for FontWeights
33995 * media.cpp, mplayer.cpp: Updated to add features newly added with
33996 the July 2007 release of Silverlight 1.1
33998 2007-07-31 Chris Toshok <toshok@ximian.com>
34000 * runtime.cpp (Attach): attach a namescope to the toplevel canvas
34001 if there isn't one when it's attached.
34003 2007-07-31 Jeffrey Stedfast <fejj@novell.com>
34005 * media.cpp: NaturalDuration is actually a TimeSpan, not a
34008 2007-07-31 Chris Toshok <toshok@ximian.com>
34010 * media.h, media.cpp: move the MediaBase events to MediaElement.
34012 2007-07-31 Jeffrey Stedfast <fejj@novell.com>
34014 * text.h: Added StyleSimulations enum values.
34016 * xaml.cpp: Updated the StyleSimulations enum mapping.
34018 2007-07-31 Chris Toshok <toshok@ximian.com>
34020 * text.h, text.cpp: Glyph.StyleSimulations changed from a char* to
34021 enum StyleSimulations.
34023 * xaml.cpp: add stylesimulations enum map.
34025 2007-07-30 Chris Toshok <toshok@ximian.com>
34027 * uielement.cpp, uielement.h: add the Tag property.
34029 2007-07-30 Chris Toshok <toshok@ximian.com>
34031 * animation.h, animation.cpp: add the three KeyFrameCollection
34032 subclass types, and switch all references to "KeyFrameCollection"
34033 to the more specific types.
34035 * xaml.cpp (xaml_init): make KeyFrameCollection a ghost element
34036 with Color/Double/PointKeyFrameCollections as subclasses.
34038 * value.h, type.h, type.cpp: sync up with the KeyFrameCollection
34041 2007-07-30 Larry Ewing <lewing@novell.com>
34043 * color.cpp: make sure that we size expand 3 digit color
34044 specifications properly.
34046 2007-07-30 Chris Toshok <toshok@ximian.com>
34048 * uielement.h, uielement.cpp: remove InsideObject from here, and
34049 move its warning to Visual::InsideObject instead.
34051 * visual.h, visual.cpp: add visual.cpp, and move implementation of
34052 InsideObject there.
34054 * Makefile.am (libmoon_la_SOURCES): add visual.cpp
34056 2007-07-30 Larry Ewing <lewing@novell.com>
34058 * xaml.cpp: correct smooth path segments to use the correct value for
34059 cp1 and don't try to make it relative because all the sources are
34060 absolute. Test case at http://intertwingly.net/stories/2007/05/06/?icon=caution
34062 2007-07-30 Chris Toshok <toshok@ximian.com>
34064 * clock.h, clock.cpp: add very naive, probably broken first pass
34067 2007-07-30 Chris Toshok <toshok@ximian.com>
34069 * geometry.h, geometry.cpp: PathFigure.IsFilled is gone in RC1.
34071 2007-07-30 Chris Toshok <toshok@ximian.com>
34073 * brush.h, brush.cpp: track breaking change of the
34074 Brush.Transform/RelativeTransform properties - they're speced to
34075 be Transforms, not TransformGroups.
34077 2007-07-29 Chris Toshok <toshok@ximian.com>
34079 * collection.h, collection.cpp: change "ResourceCollection" to
34080 "ResourceDictionary".
34082 * uielement.cpp: same.
34084 * type.cpp, type.h, value.cpp, value.h: same.
34088 2007-07-27 Chris Toshok <toshok@ximian.com>
34090 * xaml.cpp (xaml_set_property_from_str): look up the enum map from
34091 the property name, not the value.
34093 2007-07-27 Chris Toshok <toshok@ximian.com>
34095 * transform.h, transform.cpp: cache the transformation matrix once
34096 we recompute it. This gives us the responsiveness of delayed
34097 updating without the cost of calculating the matrix once per
34098 object associated with it. a property change just sets the
34099 "need_update" flag, which causes a recompute on the next
34102 2007-07-27 Larry Ewing <lewing@novell.com>
34104 * uielement.cpp: implement initial support for OpacityMask.
34106 2007-07-26 Miguel de Icaza <miguel@novell.com>
34108 This implements support for relative MediaElement sources and
34109 makes all of them go through the downloader, like we do for
34112 * media.cpp (MediaElement): Do an implementation of SetSource
34113 similar to the one in Image. Although there is some code that
34114 could be shared, the problem is that some parameters get in the
34117 (MediaElement::DownloaderComplete): Move the playback here.
34119 (StopLoader): Utility routine, factor this out also on the Image
34120 case, and hook this up to the destructor of Image and
34124 2007-07-25 Chris Toshok <toshok@ximian.com>
34126 * media.h, media.cpp: add the MediaElement events,and emit
34127 DownloadProgressChanged and CurrentStateChanged.
34129 2007-07-25 Chris Toshok <toshok@ximian.com>
34131 * media.h, media.cpp: register the 3 MediaBase events. now we
34132 need to figure out where to emit them.
34134 2007-07-25 Jackson Harper <jackson@ximian.com>
34136 * value.cpp: Assign the kind for NPOBJs.
34138 2007-07-25 Miguel de Icaza <miguel@novell.com>
34140 * openfile.cpp (open_file_dialog_show): Change this method to
34141 return an array with all the selected files.
34143 2007-07-24 Chris Toshok <toshok@ximian.com>
34145 * runtime.h, runtime.cpp: permit setting of the the surface's
34146 background color, which is used to fill the widget before we
34147 render the toplevel canvas. only do this, though, if the canvas
34148 is not transparent.
34150 2007-07-24 Chris Toshok <toshok@ximian.com>
34152 * runtime.cpp (Surface::Attach): call Canvas::SetSurface instead
34153 of making the assignment.
34155 * canvas.h, canvas.cpp: make surface private, and add SetSurface
34156 for runtime.cpp to use.
34158 2007-07-24 Chris Toshok <toshok@ximian.com>
34160 * brush.h, brush.cpp: make ImageBrush::SetSource take a const
34163 2007-07-24 Jackson Harper <jackson@ximian.com>
34165 * type.h.in: Add the NPOBJ type.
34166 * value.h.in: Add the npobj value, it's just stored as a pointer
34167 so that we don't become dependent on mozilla.
34168 * value.cpp|h,type.h: sync.
34170 2007-07-24 Jackson Harper <jackson@ximian.com>
34172 * typegen.cs: Kind.cs lives in agmono now.
34175 2007-07-24 Chris Toshok <toshok@ximian.com>
34177 * media.h, media.cpp: const-ify the PartName argument of the
34178 SetSource methods. also, ref the new downloader before unreffing
34179 the old one in Image::SetSource. they could be the same object.
34181 2007-07-24 Chris Toshok <toshok@ximian.com>
34183 * geometry.cpp (RectangleGeometry::Draw): if the geometry's rect
34184 is NULL, return early.
34186 2007-07-23 Chris Toshok <toshok@ximian.com>
34188 * Makefile.am (libmooninclude_headers): add some missing headers.
34190 * error.h: split out the error classes here.
34192 * libmoon.h: include error.h
34194 * xaml.h: remove the error classes from here.
34196 * xaml.cpp: include error.h
34198 2007-07-23 Miguel de Icaza <miguel@novell.com>
34200 * runtime.cpp: Removed the timer code from here, move to plugin.
34202 2007-07-20 Chris Toshok <toshok@ximian.com>
34204 * xaml.cpp (custom_add_child): this method is what's called when
34205 we add a child to an element of a custom namespace. Trouble is,
34206 it might be a panel subclass. If it is, and the child is a
34207 UIElement subclass, go ahead and add the child using
34208 panel_child_add. This gets the Loaded events working properly in
34209 the chess demo (the trouble was that the custom children weren't
34210 even added to the tree, so their OnLoaded methods weren't being
34213 2007-07-20 Miguel de Icaza <miguel@novell.com>
34215 * collection.cpp: Add support for RemoveAt.
34217 * runtime.cpp (html_timer_timeout_add): Added helper routine to
34218 setup Html timeouts.
34220 2007-07-20 Chris Toshok <toshok@ximian.com>
34222 * canvas.cpp, canvas.h, panel.cpp, panel.h: move much of the guts
34223 from Canvas to Panel. I consider this cleaning up the source, as
34224 it's entirely possible to write Panel subclasses that aren't
34225 Canvas subclasses, but if you did that you'd have no
34226 rendering/event handling.
34228 Now pretty much all logic that involves iterating over the list of
34229 children is in Panel. This also greatly simplifies Canvas. It is
34230 now just a Panel with 2 interesting things about it: 1) it
34231 provides 2 attached properties to lay out its children, and 2) it
34232 allows the surface to dictate its bounds if it's the toplevel
34235 2007-07-20 Chris Toshok <toshok@ximian.com>
34237 * downloader.cpp (Open): set the uri of the downloader.
34239 2007-07-20 Chris Toshok <toshok@ximian.com>
34241 * dependencyobject.cpp: allocate the event hash/ptrarray lazily,
34242 so the potentially large number of objects which don't register
34243 events don't allocate them.
34245 2007-07-20 Chris Toshok <toshok@ximian.com>
34247 * clock.h, clock.cpp: lock around access to the tick_call list, so
34248 tick calls can be added from other threads.
34250 2007-07-16 Miguel de Icaza <miguel@novell.com>
34252 * media.cpp (SetSource): Also handle Completed.
34254 * downloader.cpp (Send): If a send operation is performed on an
34255 object that has completed its operation, immediately emit the
34256 finished event or error event.
34258 (Open): During open invalidate the state, to
34259 ensure that new downloads are properly triggered.
34261 2007-07-16 Chris Toshok <toshok@ximian.com>
34263 * frameworkelement.h, frameworkelement.cpp: we need
34264 framework_element_new so managed subclasses of FrameworkElement
34267 * uielement.h, uielement.cpp: same for this type.
34269 2007-07-13 Chris Toshok <toshok@ximian.com>
34271 * frameworkelement.cpp (FrameworkElement::OnPropertyChanged):
34272 normally we'd only update the bounds of this element on a
34273 width/height change, but if the render transform is someplace
34274 other than (0,0), the transform needs to be updated as well.
34276 2007-07-12 Chris Toshok <toshok@ximian.com>
34278 * runtime.h, runtime.cpp, uielement.cpp, uielement.h: Add mouse
34279 capturing. This should be on Visual and not UIElement, but we
34280 don't dispatch events that way.
34282 2007-07-12 Chris Toshok <toshok@ximian.com>
34284 * downloader.h, downloader.cpp: make the Downloader object a bit
34285 more C++ friendly, and make all the private data private.
34287 Also, take this opportunity to switch to using RegisterEvent/Emit
34288 to generate events, instead of the custom listeners. This will
34289 let JS hook up to the events.
34291 * media.h, media.cpp: track the downloader changes.
34293 2007-07-11 Jackson Harper <jackson@ximian.com>
34295 * collection.cpp: Comment out the namescope merging stuff for now,
34296 it causes some regressions.
34298 2007-07-12 Jackson Harper <jackson@ximian.com>
34300 * xaml.cpp: Restart the whole attribute parsing loop when the
34301 reparse flag is set, otherwise the first attribute will be
34304 2007-07-11 Chris Toshok <toshok@ximian.com>
34306 * uielement.cpp (UIElement::UIElement): the event names need to
34307 match those used by microsoft. makes it easier to handle the
34308 event hooking up in the plugin, where the event names are used.
34310 2007-07-11 Chris Toshok <toshok@ximian.com>
34312 * xaml.cpp (xaml_set_property_from_str): the plugin does its own
34313 resolution of properties now, so it doesn't need to pass the
34314 property name. Change this to take the DependencyProperty*
34317 * xaml.h: change prototype for xaml_set_property_from_str.
34319 2007-07-11 Jackson Harper <jackson@ximian.com>
34321 * collection.cpp: When new objects are added to a collection, try
34322 to merge them into the containers namescope.
34324 2007-07-11 Jackson Harper <jackson@ximian.com>
34326 * xaml.cpp: We need to stop parsing if there is an error while
34327 resolving a custom namespace type.
34329 2007-07-10 Chris Toshok <toshok@ximian.com>
34331 * dependencyobject.cpp (resolve_property_path): we need to reset
34332 "expression_found" when we hit a '.' so that we'll lookup what
34335 2007-07-10 Chris Toshok <toshok@ximian.com>
34337 * dependencyobject.cpp (resolve_property_path): we need to be able
34338 to handle more than just single digit indexers. use strtol and
34339 recompute 'i' afterward.
34341 * canvas.cpp (Canvas::InsideObject): revert the change that helped
34342 dr.popper because it breaks lunareclipse.
34344 2007-07-09 Chris Toshok <toshok@ximian.com>
34346 * demo.cpp: don't pass the parser callbacks to the individual xaml
34349 * control.h, control.cpp: don't pass the parser callbacks to
34350 initialize_from_xaml.
34352 * xaml.h, xaml.cpp: remove the parser callbacks from the
34353 individual parsing methods, and add xaml_set_parser_callbacks.
34355 2007-07-09 Jeffrey Stedfast <fejj@novell.com>
34357 * mplayer.cpp (audio_loop): If we break out of the loop because
34358 the media player was stopped, don't forget to unlock the pause
34360 (Close): Don't free the uri here.
34361 (~MediaPlayer): Free it ehre, though.
34363 2007-07-09 Chris Toshok <toshok@ximian.com>
34365 * uielement.h, uielement.cpp: we need to register the
34366 KeyUp/KeyDown events (even if we aren't emitting them) to keep
34367 from getting a warning when running aglayoutdemo.
34369 * xaml.cpp (timespan_from_str): port our System.TimeSpan.Parse
34370 method (and remove all error handling, which should likely go back
34371 in) and replace the previous implementation. It was failing to
34372 parse timespans like this: 0:0:0.20000000 because it was treating
34373 it as if I wanted "20000000" tenths of a second, instead of 2.
34374 This makes the 'pop' animation in dr.popper actually show up.
34376 2007-07-09 Chris Toshok <toshok@ximian.com>
34378 * animation.cpp: fix some missing NotifyAttacheesOfPropertyChange
34380 (Storyboard::Begin): This is a dubious change. Remove the check
34381 to see if we weren't already Active. This fixes the calendar view
34382 in airlines, since there's a window where the start animation is
34383 startable when we enter a day, but the end animation isn't (since
34384 it's still active) when we leave. So we're left with a selected
34387 * clock.cpp: instead of Stopping clocks that come to the end of
34388 their active period, move to the Filling state. ClockGroups with
34389 automatic duration and no Active children still stop correctly.
34391 2007-07-08 Chris Toshok <toshok@ximian.com>
34393 * many-files (again!): another, smaller change to the event stuff.
34394 stop using strings for everything that we can. Register events at
34395 object construction time, and use those id's for everything else.
34396 The string interface is still around because of
34397 EventTrigger::Set/RemoveTarget, as well as the managed code.
34399 One further change that's needed - the id's are per-instance now,
34400 which is stupid. they should be static.
34402 This further cuts down the work (in terms of hash functions) that
34403 needs to be performed in order to dispatch an event.
34405 2007-07-08 Chris Toshok <toshok@ximian.com>
34407 * many-files: fairly big change. Stick the EventObject class
34408 between Base and DependencyObject in the hierarchy, and get rid of
34409 DependencyObject's "events" field. Get rid of all the registered
34410 events on surface, and emit them directly from the elements where
34411 they occur. This allows us to remove the Surface* parameter to
34412 all the event methods. Also, change the EventHandler signature to
34413 include the sender of the event as well as a "calldata" pointer,
34414 which is where we stuff the unmanaged MouseEventArgs (and later
34415 will the KeyboardEventArgs).
34417 Next step is to add RegisterEvent in EventObject and use that
34418 integer id everywhere instead of the string name when we Emit
34421 2007-07-07 Chris Toshok <toshok@ximian.com>
34423 * dependencyobject.h: add GetName() instance method.
34425 * dependencyobject.cpp (dependency_object_get_name): and call it
34428 * shape.h, shape.cpp (Shape::GetSizeForBrush): we need this
34429 implementation here since FrameworkElement just goes by
34432 * canvas.cpp (Canvas::FindMouseOver): remove the "still over the
34433 same element" optimization. it's stupid and doesn't work. what
34435 (Canvas::ComputeBounds): simplify this by using
34436 item->GetLayoutVisible instead of item->GetValue.
34437 (Canvas::Render): enable the rendering optimization where we only
34438 bother rendering elements whose bounds intersect those of the
34439 rectangle we're repainting. This seriously speeds up airlines.
34441 * uielement.cpp, uielement.h: add GetLayoutVisible() method, and
34442 another flag. now the three VisibilityProperty states are
34443 represented by two flags.
34445 Also, remove the implementation of GetSizeForBrush (not all
34446 UIElements are stroked) and warn callers.
34448 * control.cpp: Attach to the real object, and report back its
34449 property changes to our parents. Also, control_initialize_from_xaml
34450 should call Control::InitializeFromXaml.
34452 * control.h: override the 3 Get*Visible methods from UIElement,
34453 and return our real_object's state.
34457 2007-07-07 Jeffrey Stedfast <fejj@gnome.org>
34459 * demo.cpp (FileDownloadState::Send): Only notify complete if uri
34460 != NULL (if uri is NULL, then it means it couldn't be opened).
34461 (FileDownloadState::Open): notify error if we can't open the file.
34463 * mplayer.cpp: Fix to make sure we have
34464 AVCODEC_MAX_AUDIO_FRAME_SIZE bytes left in our output buffer
34465 before calling decode to prevent an ffmpeg warning.
34467 2007-07-07 Chris Toshok <toshok@ximian.com>
34469 * brush.cpp: make sure to use GetSizeForBrush for everything
34470 instead of cairo_stroke_extents, which won't work for non-stroked
34471 elements like canvases. Also, notify changes to the
34472 GradientStopCollection up the hierarchy properly.
34474 * frameworkelement.h, frameworkelement.cpp: add a GetSizeForBrush
34475 implementation for FrameworkElement so Canvases (and other
34476 uielement subclasses) can have brushes assigned to them (canvas
34477 uses it for its background.)
34479 * canvas.cpp (Canvas::Render): remove the unused label.
34481 2007-07-06 Miguel de Icaza <miguel@novell.com>
34483 * media.cpp: Do not pass the filename as the result now on the
34484 calls. Code must use the downloader_get_response_text or
34485 downloader_get_response_file to get the contents from the download
34486 (as the request will include the part name).
34488 * downloader.cpp: Add a cache for zip file parts.
34490 * media.h (Image): track the part name that was requested on the
34493 2007-07-06 Chris Toshok <toshok@ximian.com>
34495 * canvas.cpp (Canvas::ComputeBounds): if the width/height
34496 framework element properties haven't been set (their default is
34497 0.0), then don't union it with the rest of our bounds.
34499 2007-07-06 Chris Toshok <toshok@ximian.com>
34501 * runtime.h, runtime.cpp: continue the marginalization of
34502 Surface-as-general-data-dumping-ground by passing the cairo
34503 context to all the event handlers that need it (all but Leave, but
34504 should we make this distinction?).
34506 Make tons of stuff private that doesn't need exposing. Add
34507 accessors for the easier things, and leave the callbacks public
34508 for now. Also clean up the partially C/partially c++
34509 implementation in runtime.cpp. Now the C api is a thin wrapper
34510 around instance method calls, and all the gtk/clock event
34511 callbacks are static methods so they can still access the private
34514 * canvas.h, canvas.cpp, control.h, control.cpp, uielement.h,
34515 uielement.cpp: fallout from the event signature changes - add
34516 cairo_t* to a lot of places, basically.
34518 * demo.cpp: no need to use the C api for Surface here. just use
34521 2007-07-06 Jeffrey Stedfast <fejj@novell.com>
34523 * media.cpp (OnPropertyChanged): Oops, be consistant with other
34524 implementations - only chain up if it wasn't a property owned by
34527 * text.cpp: We don't use TextBlock::Inlines anymore, so remove it
34528 to save object size.
34530 * media.cpp (OnPropertyChanged): Fixed to always notify property
34531 listeners and chain up to our parent impl.
34533 2007-07-06 Miguel de Icaza <miguel@novell.com>
34535 * downloader.cpp: Implement the zip file support for the
34536 downloader using miniZip, from:
34538 http://www.winimage.com/zLibDll/minizip.html
34540 The implementation is in C++, so there are no needs to delegate
34541 this to the managed side as previously planned.
34543 There are two APIs: one returns a filename, the other returns the
34544 file loaded into memory, with the size of the memory blob.
34546 2007-07-06 Chris Toshok <toshok@ximian.com>
34548 * uielement.h, uielement.cpp (UIElement::OnPropertyChanged): keep
34549 track of the visibility (boolean, not three-state) and hit test
34550 visibility state in our flags. implement GetVisible() and
34551 GetHitTestVisible() using the flags.
34553 * canvas.cpp (Canvas::CheckOver): use GetVisible and
34554 GetHitTestVisible to avoid property lookups when dispatching
34557 2007-07-06 Chris Toshok <toshok@ximian.com>
34559 * runtime.cpp (measuring_context_create): we keep a singleton
34560 measuring context now.
34561 (measuring_context_destroy): do nothing here. it's freed in
34563 (runtime_shutdown): free up our measuring context.
34565 * canvas.cpp, canvas.h, control.cpp, control.h,
34566 frameworkelement.cpp, frameworkelement.h, shape.cpp, shape.h,
34567 text.cpp, text.h, uielement.cpp, uielement.h, visual.h: change
34568 InsideObject to take the cairo_t* instead of the Surface.
34570 2007-07-06 Chris Toshok <toshok@ximian.com>
34572 * runtime.cpp (Surface::SetCursor): new method, used in the event
34573 code to update the cursor as we enter/leave elements.
34575 * runtime.h: add method, cursor_instance field, and move the body
34576 of the Surface ctor (and initializations) to the .cpp file.
34578 * xaml.cpp: fix name of Cursor property enum mapping.
34580 * canvas.h, canvas.cpp, uielement.h, uielement.cpp, control.h,
34581 control.cpp: add MouseCursor* arg to HandleMotion so we can report
34582 back cursor changes on elements.
34584 Also, in canvas.cpp, implement IsHitTestVisible checking in
34587 * enums.h: add the MouseCursor enum.
34589 2007-07-05 Chris Toshok <toshok@ximian.com>
34591 * Makefile.am (libmooninclude_headers): remove cutil.h
34592 (libmoon_la_SOURCES): remove cutil.cpp
34594 * cutil.h, cutil.cpp: remove. no longer necessary.
34596 * text.cpp (TextBlock::ComputeBounds): load the identity matrix
34597 before stroke/fill_extents to work around a cairo bug that was
34598 giving us enormous bounds on rotated elements. also, -1 from x/y
34599 and +2 to width/height of our bounds.
34601 * media.cpp (MediaElement::ComputeBounds): load the identity
34602 matrix before stroke/fill_extents to work around a cairo bug that
34603 was giving us enormous bounds on rotated elements. also, -1 from
34604 x/y and +2 to width/height of our bounds.
34605 (Image::ComputeBounds): same.
34607 * shape.cpp (Shape::DoDraw): only call cairo_new_path if there's
34608 no stroke, we drew it, and do_op was true.
34609 (Shape::ComputeBounds): load the identity matrix before
34610 stroke/fill_extents to work around a cairo bug that was giving us
34611 enormous bounds on rotated elements. also, -1 from x/y and +2 to
34612 width/height of our bounds.
34614 * uielement.cpp (OnSubPropertyChanged): we don't need to watch for
34615 subproperty changes on RenderTransformOrigin, since it's a point
34616 and not a dependency object.
34618 2007-07-05 Chris Toshok <toshok@ximian.com>
34620 * runtime.cpp, runtime.h: store the last mouse position of events
34621 so that we can continue to update after the clock tick (and
34622 provide motion/enter/leave events to elements that might have
34623 moved under the pointer).
34625 The "update-input" event isn't presently emitted (see clock.cpp)
34626 because it results in this code calling HandleMotion on every
34627 tick, which ends up emitting the C# event (which is wrong).
34629 * clock.h, clock.cpp: add a (presently unused) phase to the clock
34630 tick to update the current mouse over after we've updated our
34631 clocks (and therefore possibly updated the transforms on
34634 2007-07-05 Chris Toshok <toshok@ximian.com>
34636 * dependencyobject.cpp (dependency_object_get_name): change this
34637 to return the x:Name value if there is one (and "(null)" if not).
34638 (dependency_object_get_type_name): and make this function do the
34639 job originally done by _get_name.
34641 * dependencyobject.h: add dependency_object_get_type_name
34644 2007-07-05 Chris Toshok <toshok@ximian.com>
34646 * uielement.h, uielement.cpp, canvas.h, canvas.cpp: refactor the
34647 mouse event code so that the Handle* calls return void, like the
34648 Enter/Leave calls do. Also, all checks for "inside"-ness happen
34649 in the canvas/parent object. Also factored out the loop over
34650 children to "FindMouseOver", with the checks happening in
34653 This needs more testing to make sure that we're still emitting
34654 events in the right order/amount as silverlight.
34656 In uielement.cpp, also add support for showing the bounding
34659 * control.h, control.cpp: track event refactoring.
34661 * frameworkelement.cpp (FrameworkElement::InsideObject): remove
34662 the bounding rect check. that's handled in the parent object now.
34664 2007-07-04 Chris Toshok <toshok@ximian.com>
34666 * media.cpp, media.h: rework our caching for images. we now
34667 properly refcount things, don't leak the filename (or the
34668 surface), share 1 xlib surface amongst all Image's, and don't
34669 crash. improvements all around!
34671 2007-07-04 Miguel de Icaza <miguel@novell.com>
34673 * value.cpp (Value): Add a couple of extra cases I had missed
34674 where we should be using g_new instead of new as FreeValue always
34677 2007-07-03 Jackson Harper <jackson@ximian.com>
34679 * xaml.cpp: Add the stylus types and some missing collections,
34680 this brings us up to sync with everything implemented in
34683 2007-07-03 Chris Toshok <toshok@ximian.com>
34685 * shape.cpp (Shape::DoDraw): if we aren't going to stroke (but we
34686 filled), we need to call cairo_new_path.
34688 2007-07-03 Jackson Harper <jackson@ximian.com>
34690 * xaml.cpp: Some post parsing memory cleanup and a little extra
34693 2007-07-03 Chris Toshok <toshok@ximian.com>
34695 * text.h: add prototype for text_block_set_font_source.
34697 2007-07-03 Chris Toshok <toshok@ximian.com>
34699 * shape.cpp, shape.h: add Shape::OnSubPropertyChanged to deal with
34700 brush property changes. Property chain up to
34701 Shape::OnSubPropertyChanged from Path::OnSubPropertyChanged.
34702 (Shape::ComputeBounds): we need to do the fill, so pass true as
34703 consider_fill to DoDraw. otherwise a stroke-less filled shape
34704 gets bounds with w == h == 0.0.
34706 2007-07-03 Chris Toshok <toshok@ximian.com>
34708 * collection.cpp (VisualCollection::Clear): force the invalidate
34709 when we update our bounds. Also, don't do anything if the length
34710 of the collection is 0.
34712 2007-07-03 Chris Toshok <toshok@ximian.com>
34714 * canvas.cpp (Canvas::ComputeBounds): we need to always include
34715 our FrameworkElement::Width/Height in our bounds computation,
34716 instead of only consulting them if we have no children.
34718 2007-07-03 Chris Toshok <toshok@ximian.com>
34720 * media.cpp, media.h: add an image surface cache. we don't cache
34721 the xlib surface unfortunately, so there's still a slowdown from
34722 generating 1 per Image for shared pixbufs.
34724 2007-07-03 Miguel de Icaza <miguel@novell.com>
34726 * collection.cpp: Add support for reporting errors if the iterator
34727 gets out of sync with the collection.
34729 * demo.cpp: Updated to the new downloader interface.
34731 * downloader.cpp: Eliminates the in-memory buffer during
34734 We still do the progressive updates as those are necessary for the
34735 progress indicators, and if we ever need to hook up during
34736 progressive downloads again.
34738 But now downloads on completion must notify the downloader of the
34739 local file where the download contents have been placed (necesary
34740 for implementing the Zip-file support).
34742 (Downloader): eliminate our in-memory buffer byte_array_contents
34744 (downloader_notify): takes a new extra argument, overloaded
34745 depended on the operation.
34747 (get_response_text): currently not implemented, it needs to be
34748 implemented by a callback into managed code so we can use ZipLib
34749 (unless we can find a suitable unmanaged version).
34751 * media.cpp: Remove the stale code for progressive image
34753 2007-07-02 Miguel de Icaza <miguel@novell.com>
34755 * media.cpp (SetSource): If we had a previous downloader, unref
34758 2007-07-02 Chris Toshok <toshok@ximian.com>
34760 * collection.cpp (VisualCollection::Remove): punt on the optimized
34761 behavior for now. invalidating just the item should work if the
34762 item's bounds are correct, but for some reason the map path
34763 segments in the airline demo aren't redrawing properly. So, for
34764 now we just invalidate the parent container when an item is
34767 * control.h, control.cpp: override GetValue to report back values
34768 from our real_object if there is one, from us otherwise. and
34769 override SetValue to set values both on us and the real_object if
34772 Also, do nothing in our ComputeBounds call. Our GetBounds always
34773 returns the right thing (the bounds of the real_object), so
34774 there's no need to do any computation.
34776 lastly, remove the OnChildPropertyChanged. This is only invoked
34777 for attached properties, so we shouldn't ever be called.
34779 2007-07-02 Chris Toshok <toshok@ximian.com>
34781 * canvas.cpp (Canvas::OnChildPropertyChanged): we don't need to
34782 updatebounds/invalidate here. UpdateTransform will take care of
34785 2007-07-02 Chris Toshok <toshok@ximian.com>
34787 * shape.cpp (Shape::OnPropertyChanged): turns out we need to
34788 update our bounds on the FillProperty changing as well, for shapes
34789 that aren't stroked.
34791 2007-07-02 Miguel de Icaza <miguel@ximian.com>
34793 * collection.cpp: Guard for cases where we are not attached to
34794 anything (closure is set to NULL).
34796 2007-07-02 Chris Toshok <toshok@ximian.com>
34798 * collection.cpp (collection_iterator_move_next): rework the logic
34799 here so we don't do the "current = next" assignment if
34800 iterator->first is true.
34801 (VisualCollection::Add): fix g++ warning.
34802 (TriggerCollection::SetVal): return the old element.
34804 2007-07-02 Jackson Harper <jackson@ximian.com>
34806 * xaml.cpp: Convert char data into Runs and set them on
34807 TextBlocks, also flush the char data when starting elements, so
34808 things like: <TextBlock>line one<LineBreak />line two</TextBlock>
34809 work properly. <TextBlock><TextBlock.Inlines>text... is illegal
34812 2007-07-02 Miguel de Icaza <miguel@novell.com>
34814 * value.cpp: Use g_malloc/g_free as the managed code is not able
34815 to use C++ new operator, so we have a potential error when we
34816 mismatch g_new with new and g_free with delete.
34818 Reported by Valgrind.
34820 * uielement.cpp: Add new helper method needed by Alan.
34822 2007-07-01 Chris Toshok <toshok@ximian.com>
34824 * frameworkelement.cpp (FrameworkElement::OnPropertyChanged):
34825 notify attachees here.
34827 * text.cpp (TextBlock::OnPropertyChanged): need to notify on
34828 Actual Width/Height property changes, even if we don't recalc
34831 2007-07-01 Chris Toshok <toshok@ximian.com>
34833 * panel.cpp (Panel::OnSubPropertyChanged): oops, didn't follow the
34834 guidelines here. need to chain up to FrameworkElement. fixes
34837 2007-07-01 Chris Toshok <toshok@ximian.com>
34839 * shape.cpp (Line::OnPropertyChanged): use recommended pattern.
34840 (Polygon::OnPropertyChanged): same.
34841 (Path::OnPropertyChanged): same.
34842 (Shape::OnPropertyChanged): same.
34843 (Rectangle::OnPropertyChanged): same.
34845 * geometry.cpp (GeometryGroup::OnPropertyChanged): use recommended
34847 (PathGeometry::OnPropertyChanged): same.
34848 (PathFigure::OnPropertyChanged): same.
34850 * brush.cpp (Brush::OnPropertyChanged): use the recommended
34852 (SolidColorBrush::OnPropertyChanged): same.
34853 (GradientBrush::OnPropertyChanged): same.
34854 (LinearGradientBrush::OnPropertyChanged): same.
34855 (RadialGradientBrush::OnPropertyChanged): new method.
34858 * brush.h: add RadialGradientBrush::OnPropertyChanged.
34860 * animation.cpp (animation_init): mark the storyboard TargetName
34861 and TargetProperty properties as attached.
34863 * text.cpp (Inline::OnPropertyChanged): follow recommended pattern
34865 (Run::OnPropertyChanged): same.
34866 (Inline::OnSubPropertyChanged): add to handle the inline's
34867 foreground brush changing.
34869 * text.h: add Inline::OnSubPropertyChanged.
34871 * panel.h, panel.cpp: add OnSubPropertyChanged for the panel's
34872 background brush, and invalidate whenever it changes.
34874 2007-06-30 Chris Toshok <toshok@ximian.com>
34876 * shape.cpp (Shape::OnPropertyChanged): when need to update our
34877 bounding rectangle when a number of the stroke properties change.
34878 Also update them when the stroke itself is changed.
34880 2007-06-29 Chris Toshok <toshok@ximian.com>
34882 * text.cpp, text.h: Add back in TextBlock::OnSubPropertyChanged -
34883 we need it for the foreground property. Make this explicit.
34884 also, add an OnSubPropertyChanged method for Glyphs, to handle the
34887 2007-06-29 Chris Toshok <toshok@ximian.com>
34889 * uielement.cpp (UIElement::UpdateBounds): oops. really only do
34890 that invalidate if the flag is true.
34892 2007-06-29 Chris Toshok <toshok@ximian.com>
34894 * text.cpp: Do CalcActualWidtHeight on any property that might
34895 cause a change. This is going to be a performance hit, but we
34896 need to take this step backward to get things working with the new
34897 ComputeBounds stuff. we'll need to reoptimize this so that it
34898 still works. Make sure to listen to OnCollectionChanged so we'll
34899 update our bounds (and recompute our actual width/height) on
34900 Inlines collection changes.
34902 * text.h: remove OnSubPropertyChanged (since it's not used.) Add
34903 OnCollectionChanged.
34905 2007-06-29 Chris Toshok <toshok@ximian.com>
34907 * uielement.cpp (UIElement::OnPropertyChanged): reformat this so I
34908 can actually read it, and notify attachees of our property
34909 changes. this makes ZIndex setting resort the parent panels list.
34911 * uielement.h: add an arg to UpdateBounds (a bool that defaults to
34912 false) to force an invalidation of the new bounds.
34914 2007-06-29 Chris Toshok <toshok@ximian.com>
34916 * panel.h, panel.cpp: okay, i'm stupid. it's not
34917 OnChildPropertyChanged either. it's OnCollectionChanged. we
34918 seriously need to clean this stuff up.
34920 2007-06-29 Chris Toshok <toshok@ximian.com>
34922 * panel.h, panel.cpp: child ZIndex property changes are reflected
34923 via OnChildPropertyChanged, not OnSubPropertyChanged.
34925 2007-06-28 Chris Toshok <toshok@ximian.com>
34927 * canvas.cpp (Canvas::ComputeBounds): fix the debug printf's.
34929 * collection.cpp (VisualCollectoin::Clear): update the panel's
34930 bounds after the clear so we redraw everything.
34932 2007-06-27 Chris Toshok <toshok@ximian.com>
34934 * uielement.h: stop using x1,y1,x2,y2 for bounds, use a Rect
34935 instead. Also, rename getbounds to ComputeBounds(), and add a new
34936 GetBounds which returns the bounding rectangle.
34938 * canvas.cpp (Canvas::ComputeBounds): rename GetBounds to this.
34939 Simplify it a bit by using Rect's instead of the 4 doubles. Note
34940 that the calls to item->GetBounds do *not* cause item's bounds to
34942 (Canvas::OnChildPropertyChanged): just call UpdateTransform on the
34943 child when its Left/Top properties change.
34944 (Canvas::HandleMotion): use Rect.PointInside to clean up the
34946 (Canvas::HandleButton): same.
34947 (Canvas::Render): remove the local "item_rect" and just use the
34950 * uielement.cpp (UIElement::UpdateBounds): remember the old
34951 bounds, compute the new bounds, and (if they're different)
34952 invalidate both and chain up to the parent's UpdateBounds method.
34953 (UIElement::UIElement): init the bounds.
34954 (UIElement::OnPropertyChanged): when switch away from a lot of the
34955 FullInvalidate calls. If the clip or OpacityMask is changed, just
34956 Invalidate. If the RenderTransform or RenderTransformOrigin is
34957 changed, called UpdateTransform.
34958 (UIElement::UpdateTransform): all UpdateBounds, since it's
34959 uncommon that our transform will change without our bounds
34961 (UIElement::OnSubPropertyChanged): These shouldn't be necessary,
34962 but again switch away from FullInvalidate to other more targeted
34963 methods. If the transform properties change, call
34964 UpdateTransform, for clip and OpacityMask just call Invalidate.
34965 (UIElement::Invalidate): add a Rect taking one that just
34966 invalidates the rect, and make the default variety call it with
34968 (UIElement::ComputeBounds): rename GetBounds().
34970 * shape.cpp (ComputeBounds): don't use GetSurface. use a
34971 measuring cairo context.
34972 (Shape::OnPropertyChanged): if the Stretch property changed,
34973 UpdateBounds. also, change from FullInvalidate to just Invalidate
34974 for everything. Remove the UpdateTransform call as that gets
34975 handled by UIElement::OnPropetyChanged.
34976 (Rectangle::OnPropertyChanged): we only need to invalidate on a
34978 (Polygon::OnPropertyChanged): if the Points property changes we
34979 need to UpdateBounds and force an Invalidate. otherwise, just
34980 Invalidate. no need for FullInvalidate always.
34981 (Polygon::OnCollectionChanged): new method.
34982 UpdateBounds+Invalidate to catch changes to the points collection.
34983 (Polyline::OnPropertyChanged): analogous changes as were made to
34984 Polygon::OnPropertyChanged.
34985 (Polyline::OnCollectionChanged): same as
34986 Polygon::OnCollectionChanged.
34988 * text.cpp (TextBlock::TextBlock): move the SetValue call to the
34989 end, past all the initialization of things that might be needed in
34990 ComputeBounds, which gets called.
34991 (TextBlock::ComputeBounds): don't use GetSurface. use a measuring
34993 (TextBlock::CalcActualWidthHeight): use a measuring context here.
34994 (TextBlock::OnPropertyChanged): remove unnecessary call to
34995 FrameworkElement::OnPropertyChanged from the end of the method.
34996 (Glyphs::ComputeBounds): return Rect (0,0,0,0).
34998 * media.cpp (MediaElement::ComputeBounds): don't use GetSurface.
34999 use a measuring context.
35000 (Image::ComputeBounds): same.
35001 (OnPropertyChanged): just Invalidate here, no need for
35003 (DownloaderEvent): just Invalidate here, not FullInvalidate.
35005 * frameworkelement.cpp (FrameworkElement::InsideObject): use
35008 * control.cpp (Control::GetBounds): use a Rect here.
35009 (Control::ComputeBounds): forward on to the real_object.
35011 * collection.cpp (VisualCollection::VisualUpdate): when adding an
35012 element, we need to force its invalidation, but not the parent's.
35013 we just update the parent's bounds and UpdateBounds will do the
35014 invalidating if it needs to.
35016 * runtime.cpp (surface_attach): we don't need to do a full
35017 invalidate. just update the bounds of the toplevel (which sets
35018 the width and height to the widget's) and force an invalidate
35019 (just in case the user set the width/height to exactly the same
35020 thing before attaching).
35021 (surface_size_allocate): same thing here - no need for
35022 FullInvalidate. Just update the bounds.
35023 (measuring_context_create): create a tiny surface and a cairo_t
35024 for use in measuring things.
35025 (measuring_context_destroy): destroy the surface and cairo_t.
35027 * control.h, text.h, canvas.h, media.h, shape.h: GetBounds ->
35030 2007-06-28 Miguel de Icaza <miguel@novell.com>
35032 * runtime.cpp (expose_event_callback): Introduce a new
35033 "transparent" field in the Surface. If set, we clear the
35034 region with a transparent region.
35036 2007-06-27 Miguel de Icaza <miguel@novell.com>
35038 * runtime.cpp: Event handlers will work with or without GdkWindows
35039 on the GtkWindows in preparation to support Larry later.
35041 Paint the surface with alpha transparency for now, this breaks the
35042 F-Spot embedding but will be fixed later when we can paint at an
35043 offset, wonder if this will affect performance for now.
35045 Call gtk_event_box_set_visible_window () with TRUE, so that we
35046 have a window, for now we require this to get the events working
35049 * canvas.cpp: Drop the translate transform on the topmost canvas
35050 as that was breaking all the code that depended on the inverse
35051 matrix transform to work for doing coordinate mapping based on the
35054 Instead we need to draw the cairo context at the given offset
35055 in the repaint routine. This is left as an excercise for Larry.
35057 Tests to validate that the mouse input is working:
35059 * test/demo.exe: enter/leave
35061 * silverlight airlines
35062 * LunarEclipse designer.
35064 * value.cpp (FreeValue): New method that does the actual releasing
35065 of the value. We do this here so the managed code can release
35066 things in the same way.
35068 (value_free_value): helper method.
35070 2007-06-27 Chris Toshok <toshok@ximian.com>
35072 * clock.cpp (RaiseEnqueuedEvents): ref/unref the clocks around the
35073 calls to RaiseAccumulatedEvents.
35075 2007-06-27 Chris Toshok <toshok@ximian.com>
35077 * clock.cpp (get_now): turns out we really do want this extra *10
35078 in there, so that it matches up with mono's TimeSpan.Tick values.
35080 2007-06-27 Chris Toshok <toshok@ximian.com>
35082 * canvas.cpp (Canvas::GetBounds): Collapsed elements shouldn't
35083 take part in bounds computation.
35084 (Canvas::HandleButton): !Visible elements don't take part in hit
35086 (Canvas::HandleMotion): same here.
35088 2007-06-27 Jackson Harper <jackson@ximian.com>
35090 * xaml.cpp: Use Type to lookup the property owner, because it
35091 might be a "ghost" type that the xaml parser can't lookup.
35093 2007-06-27 Miguel de Icaza <miguel@novell.com>
35095 * control.cpp: When handling events, we also need to pass the
35096 event notification to the control, not only to the "real_object"
35097 that we are proxying for. This is what cause the calendar to
35100 * canvas.cpp (GetBounds): Do not use 0, 0, 0, 0 for the bounds of
35101 the canvas, instead use the point at (0,0) and the width, height
35102 with its absolute transformation.
35104 Otherwise canvases with children would end up with
35105 (0,0,0,0) and when compounded would extend the bounding box of
35106 containing ones to include this region even when not needed.
35108 2007-06-26 Chris Toshok <toshok@ximian.com>
35110 * uielement.h: add virtual GetSurface() method.
35112 * uielement.cpp: implement UIElement::GetSurface to just chain up
35113 to the parent element if we have one, and return NULL otherwise.
35114 Also, make item_get_surface call this method. removes the
35115 dependency on canvas.h from this file.
35117 * canvas.h: we override UIElement::GetSurface ()
35119 * canvas.cpp (Canvas::GetSurface): if we're the toplevel canvas,
35120 return our surface. otherwise call our base class's GetSurface.
35122 * media.h: rename Image::GetSurface here to GetCairoSurface to
35123 avoid name collision.
35125 * brush.cpp, media.cpp: track media.h change.
35127 2007-06-26 Miguel de Icaza <miguel@novell.com>
35129 * collection.h: Change of course. The actual public interface
35130 implements IList<T> and ICollection<T> not IList nor ICollection
35131 which means that Add does not need to return an index, and Remove
35132 must return whether it actually removed the object.
35134 * collection.h (Add): Make this method return the index of the
35135 object just created, so we can implement int IList.Add(...).
35137 Removed all the empty Add/Remove methods from collections that
35138 were not doing anything interesting with them, the remaining
35139 chunks of old hacks.
35141 * (SetVal): This method is used to replace a value at a given
35142 index with another one. For the C# IList.this [int] indexer.
35144 2007-06-26 Chris Toshok <toshok@ximian.com>
35146 * clock.cpp: make a copy of the child clocks lists before
35147 traversing them calling callbacks that could result in the lists
35150 2007-06-26 Chris Toshok <toshok@ximian.com>
35152 * dependencyobject.h: add OnCollectionChanged to allow
35153 propertychange notifications from elements in collections to
35154 bubble up to their parent.
35156 * collection.h: make the closure a DependencyObject*, just to be
35157 explicit. also, add OnSubPropertyChanged to Collection so we can
35158 generate OnCollectionChanged notifications.
35160 * collection.cpp: hook things up on elements in collections, and
35161 generate proper notifications from the collection to its closure.
35163 * enums.h: add CollectionChangeType for use in
35164 OnCollectionChanged.
35166 * geometry.h, geometry.cpp, shape.h, shape.cpp: use the new
35167 collection notification stuff to bubble changes up the hierarchy.
35169 2007-06-26 Jeffrey Stedfast <fejj@novell.com>
35171 * list.cpp (Replace): Added.
35173 * dependencyobject.cpp (dependency_object_get_value_no_default):
35174 New binding function.
35175 (dependency_object_get_object_type): Renamed from get_kind() which
35176 didn't mirror the native API at all.
35178 2007-06-26 Sebastien Pouliot <sebastien@ximian.com>
35180 * geometry.cpp|h: Add missing PathSegment::OnPropertyChanged
35181 * shape.cpp: Remove debugging output.
35183 2007-06-26 Chris Toshok <toshok@ximian.com>
35185 * uielement.h: change render/dorender to take a cairo_t* instead
35188 * canvas.h, control.h, text.h, geometry.h, canvas.cpp,
35189 uielement.cpp, geometry.cpp, shape.cpp, media.h, shape.h,
35190 media.cpp, control.cpp, runtime.cpp, text.cpp: fallout from the
35193 2007-06-25 Jeffrey Stedfast <fejj@gnome.org>
35195 * brush.cpp (LinearGradientBrush::SetupBrush): Use
35196 uielement->get_size_for_brush() because the framework width/height
35199 * text.cpp: Implement text wrapping and clipping to Width/Height
35200 bounds if specified.
35202 2007-06-25 Miguel de Icaza <miguel@novell.com>
35204 * runtime.cpp: Cope with the fact that we are now windowless and
35205 we will be sharing the parent's window. Fixes mouse events.
35207 * collection.cpp (collection_get_value_at, collection_count): Add
35210 2007-06-25 Jeffrey Stedfast <fejj@novell.com>
35214 * text.cpp: Rewritten to use the new MangoRenderer and
35215 MangoAttrForeground classes.
35217 * mango.cpp: New source file implementing a PangoRenderer and
35218 providing a new PangoAttribute for brushes.
35220 2007-06-25 Chris Toshok <toshok@ximian.com>
35222 * runtime.h: add decl for Panel::OnSubPropertyChanged.
35224 * runtime.cpp (UIElement::OnPropertyChanged): handle changes to
35225 zIndex by invalidating the item's rectangle.
35226 (UIElement::OnSubPropertyChanged): add braces around all the if
35227 blocks for consistency.
35228 (Panel::OnSubPropertyChanged): if a child changes its z index we
35229 need to resort our visual collection.
35230 (Canvas::render): loop over the z sorted list of children instead
35231 of the default collection list.
35232 (item_init): just to be anal, cast the Zindex default value to
35235 x2007-06-25 Chris Toshok <toshok@ximian.com>
35237 * collection.cpp: keep a z-sorted list in VisualCollection,
35238 adding/removing elements from it when needed, and clearing it when
35239 the collection is cleared.
35241 * collection.h: add a virtual clear method so VisualCollection can
35242 override it. Also, add a z_sorted_list member to
35243 VisualCollection, so we can deal with the ZIndices of children.
35245 2007-06-24 Alan McGovern <amcgovern@novell.com>
35247 * runtime.(cpp|h): Implemented UIElement.ZIndexPropery
35249 2007-06-24 Larry Ewing <lewing@novell.com>
35251 * runtime.cpp: rework size allocation and make toplevel Canvas
35252 items read the allocation->x and allocation->y offsets from the
35253 surface widget when computing their position.
35255 2007-06-24 Chris Toshok <toshok@ximian.com>
35257 * Makefile.am (libmooninclude_HEADERS): add collection.h
35258 (libmoon_la_SOURCES): add collection.cpp
35260 * collection.h, collection.cpp: new files. split out Collection
35261 and all the collection-related code from runtime.h/runtime.cpp.
35262 arguably the collections specific to certain elements should exist
35263 completely in those .cpp/.h files, instead of here.
35265 * runtime.h, runtime.cpp: remove collection stuff.
35267 * clock.h, animation.h, transform.h: #include collection.h
35269 * value.h, value.h.in: #include <string.h> here so we can stop
35270 requiring it for everyone else. really, though we should be using
35271 g_strcmp or something that's already pulled in from glib.
35273 2007-06-24 Chris Toshok <toshok@ximian.com>
35275 * Makefile.am (libmoon_la_SOURCES): add array.cpp
35276 (libmooninclude_HEADERS): add array.h
35278 * xaml.cpp, value.cpp, shape.cpp, geometry.cpp: include array.h
35280 * array.h, array.cpp: new files, split them out from
35283 2007-06-24 Chris Toshok <toshok@ximian.com>
35285 * Makefile.am (libmooninclude_HEADERS): add xaml.h
35287 * xaml.h: split this out from...
35289 * runtime.h: ... here.
35291 * xaml.cpp, runtime.cpp, control.h, demo.cpp: #include xaml.h
35293 2007-06-24 Chris Toshok <toshok@ximian.com>
35295 * Makefile.am (libmooninclude_HEADERS): add control.h
35297 * control.h: split out class Control stuff...
35299 * runtime.h: .. from here.
35301 * runtime.cpp: #include control.h
35303 * control.cpp: same.
35305 2007-06-24 Chris Toshok <toshok@ximian.com>
35307 * runtime.h: add OnLoaded methods to UIElement, Panel, and
35310 * runtime.cpp (UIElement::OnLoaded): emit the Loaded event if we
35312 (VisualCollection::Add): only invoke OnLoaded on the item if the
35313 closure (the parent of the collection) has been loaded.
35314 (VisualCollection::Insert): same.
35315 (Panel::OnLoaded): call OnLoaded on all our children, then chain
35317 (surface_attach): call canvas->OnLoaded instead of
35318 emit_loaded_events(canvas). also, don't use a special IS_CANVAS
35319 flag - just use the type system.
35320 (item_get_surface): get rid of the IS_CANVAS flag and just use the
35323 * control.cpp (Control::OnLoaded): new method, invoke OnLoaded on
35324 the real object before chaining up.
35326 2007-06-24 Larry Ewing <lewing@novell.com>
35328 * runtime.cpp: disable transparent surfaces while fixing the
35329 drawing offset problem.
35331 2007-06-24 Larry Ewing <lewing@novell.com>
35333 * brush.cpp: use cairo_create_similar rather than using an image
35336 2007-06-24 Chris Toshok <toshok@ximian.com>
35338 * runtime.cpp (VisualCollection::Add): only emit Loaded if the
35339 tree we're adding it to has already been loaded.
35341 2007-06-24 Larry Ewing <lewing@novell.com>
35343 * demo.cpp: add -trans flag to demo to make the toplevel transparent.
35345 2007-06-24 Larry Ewing <lewing@novell.com>
35347 * runtime.cpp: add comments to the new gtk functions.
35349 * runtime.h: expose surface_paint.
35351 2007-06-23 Miguel de Icaza <miguel@novell.com>
35353 * runtime.cpp: Since unrealize does not seem to be called when our
35354 widget is destroyed by Mozilla, we need to cleanup on destroy the
35355 tick event. This takes care of one of the plugin crashers.
35357 There are still others that I have to find out, I added some
35358 debugging prints for now.
35360 2007-06-24 Larry Ewing <lewing@novell.com>
35362 * runtime.cpp: derive from EventBox not drawing area so that we
35363 can use it as a quick method of switching back and forth between
35364 transparent and not. Add a method to let external code paint to a
35367 2007-06-23 Jeffrey Stedfast <fejj@gnome.org>
35369 * text.cpp (SetValue): Overridden to enforce Text strings not
35370 preserving any leading nor trailing whitespace (as defined in the
35373 2007-06-22 Jeffrey Stedfast <fejj@novell.com>
35375 * xaml.cpp (matrix_value_from_str): use delete[] to free the array
35376 of doubles instead of g_free() as it was allocated with new, not
35379 * text.cpp (Layout): D'oh, make sure to always init text/block
35380 width/height values. This fixes VideoBrush again.
35382 2007-06-22 Jeffrey Stedfast <fejj@novell.com>
35384 * mplayer.cpp: Initialize 'opened' state variable.
35386 * text.cpp (GetValue): Override DependencyObject::GetValue() so
35387 that we can special-case getting TextBlock::Actual[Width,Height]
35388 properties (this allows us to prolong re-calculating these values
35389 until after the user has set the values he's going to set -
35390 re-calculating on ever property change is too expensive.
35392 * runtime.h: Make DependencyObject::GetValue() virtual.
35394 2007-06-22 Jeffrey Stedfast <fejj@gnome.org>
35396 * text.cpp: Stubbed out the required virtual methods for Glyphs
35397 and attempted to make ActualWidth and ActualHeight calculated
35398 immediately in an attempt to get DrPopper working better.
35400 2007-06-22 Sebastien Pouliot <sebastien@ximian.com>
35402 * shape.cpp: Small hack to avoid calling Draw 2 times during render.
35404 2007-06-22 Chris Toshok <toshok@ximian.com>
35406 * xaml.cpp (key_spline_from_str): free up the point arrays from
35407 point_array_from_str after we use them.
35408 (xaml_set_property_from_str): same.
35410 2007-06-22 Chris Toshok <toshok@ximian.com>
35412 * value.cpp (Value): the copy ctor is definitely corrupting memory
35413 in the MATRIX case - we need to allocate the destination matrix.
35415 2007-06-21 Chris Toshok <toshok@ximian.com>
35417 * Makefile.am: not that anyone should be installing this yet,
35418 install the headers to $(includedir)/libmoon.
35420 2007-06-21 Jeffrey Stedfast <fejj@novell.com>
35422 * text.cpp: Reworked text layout/rendering logic - we now cache
35423 width/height info for each text string as well as the overall
35424 block width/height. This info is then used to align text strings
35425 on each line along the bottom edge (rather than along the top
35426 edge) of the line of text.
35428 * xaml.cpp (char_data_handler): Ignore insignificant lwsp CDATA
35430 2007-06-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
35432 * stylus.h|cpp: Add InkPresenter.
35433 * media.h|cpp: Add C methods to stop, pause and play a MediaElement.
35434 * value.h, type.h|cpp: Updated.
35436 2007-06-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
35438 * animation.cpp: Register *KeyFrame::Value properties as nullable.
35439 * clock.cpp: Register TimelineMarker properties.
35441 2007-06-21 Jackson Harper <jackson@ximian.com>
35443 * xaml.cpp: When setting the x:Name also set the name property.
35445 2007-06-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
35447 * stylus.cpp|h: Added Stroke and DrawingAttributes.
35448 * runtime.h: All collections can now implement GetElementType.
35449 * value.h, type.h, type.cpp: Updated.
35451 2007-06-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
35453 * stylus.cpp|h: Added.
35454 * runtime.cpp|h: Define and call stylus_init.
35455 * Makefile.am: Add stylus.cpp|h.
35456 * value.h, type.h, type.cpp: Updated.
35458 2007-06-21 Jackson Harper <jackson@ximian.com>
35460 * xaml.cpp: Add a global set of callbacks, so that all of the
35461 custom callbacks for a given parsing instance use the same
35462 methods. This needs to be encapsulated properly, but for now is
35465 2007-06-20 Chris Toshok <toshok@ximian.com>
35467 * animation.cpp, animation.h: KeyFrameCollection overrides
35468 Collection::Clear to clear its sorted list.
35470 * runtime.cpp, runtime.h: add overrideable Collection::Clear
35471 method, and move collection_clear's body into it.
35473 2007-06-21 Jackson Harper <jackson@ximian.com>
35475 * runtime.cpp|h: Don't return false on single element collections
35478 2007-06-21 Jeffrey Stedfast <fejj@gnome.org>
35480 * text.cpp: Use absolute font sizes, makes the fonts not so huge.
35482 2007-06-20 Jackson Harper <jackson@ximian.com>
35484 * xaml.cpp: Set namecopes earlier, and make sure to copy the
35485 namescope when we recreate a class using x:Class.
35486 - When we use x:Class reparse the element's attributes, so it can
35487 hook up to events and set properties.
35488 * runtime.cpp|h: When the Name property is set, register it with
35489 the proper NameScope.
35491 2007-06-20 Chris Toshok <toshok@ximian.com>
35493 * runtime.cpp, runtime.h: add rudimentary Visibility support. we
35494 only support Visible/Hidden really, and treat Collapsed as Hidden.
35496 * xaml.cpp (enum_from_str): use g_strcasecmp here.
35498 2007-06-20 Sebastien Pouliot <sebastien@ximian.com>
35500 * shape.cpp|h: Implement caching of Path (this could be extended to
35502 * geometry.cpp|h: Notify on changes.
35504 2007-06-20 Sebastien Pouliot <sebastien@ximian.com>
35506 * xaml.cpp: Don't allocate (and free) a copy of the PML before
35507 calling geometry_from_str.
35509 2007-06-20 Sebastien Pouliot <sebastien@ximian.com>
35511 * shape.cpp: Fix some Stretch modes for paths. This can get very
35512 expansive, next step is to cache the cairo_path_t* in the Path and
35513 recompute it only on changes.
35515 2007-06-20 Chris Toshok <toshok@ximian.com>
35517 * xaml.cpp (is_valid_event_name): new function.
35518 (dependency_object_hookup_event): only allow valid events to be
35521 2007-06-20 Jackson Harper <jackson@ximian.com>
35523 * runtime.cpp|h: New method for finding an objects namescope.
35524 - Call an objects loaded event when it is added to a Collection
35525 - Some bits of namescope merging, these functions aren't called
35528 2007-06-20 Chris Toshok <toshok@ximian.com>
35530 * xaml.cpp (dependency_object_hookup_event): we need more than
35531 just the Loaded event.
35533 2007-06-20 Jeffrey Stedfast <fejj@novell.com>
35535 * text.cpp (Run): Don't set default font values here... we need
35536 them to be unset if they aren't explicitly set by the user so that
35537 we can inherit font properties from our parent TextBlock.
35538 (Draw): Fixed to make Runs inherit unset font properties from the
35539 TextBlock at render-time. Also fixed to make sure we have a
35540 foreground brush to draw with... if unset, use the default brush.
35542 2007-06-20 Chris Toshok <toshok@ximian.com>
35544 * runtime.cpp (UIElement::render): make this print the classname
35545 like UIElement::getbounds() does.
35547 * runtime.h, runtime.cpp: make control_initialize_from_xaml take
35548 the xaml parser custom element callbacks.
35550 2007-06-20 Chris Toshok <toshok@ximian.com>
35552 * runtime.cpp (runtime_shutdown): set inited to false, since we
35553 want people to be able to call runtime_init again after this.
35555 * type.cpp.in (Type::RegisterType): allocate types if we need to.
35556 (Type::Shutdown): free types.
35558 * type.h.in (private): make the types array dynamically allocated.
35560 * type.h, type.cpp: sync
35562 2007-06-20 Jeffrey Stedfast <fejj@novell.com>
35564 * text.cpp (TextBlock): Need to actually set ActualWidth and
35565 ActualHeight values.
35567 2007-06-20 Chris Toshok <toshok@ximian.com>
35569 * clock.cpp (Clock::Tick): if we hit our natural duration but our
35570 duration is Automatic, go to Fill mode, since we may have child
35571 clocks that started after us and need a chance to run their last
35574 2007-06-20 Jeffrey Stedfast <fejj@novell.com>
35576 * runtime.cpp (collection_iterator_move_next): If we can't iterate
35577 to the next item, don't set current = NULL.
35578 (dependency_object_get_name): New function needed for the binding.
35580 2007-06-20 Larry Ewing <lewing@novell.com>
35582 * runtime.cpp: use gdk_cairo helper functions and clip to the
35583 expose event region.
35585 * runtime.h: remove unused members.
35587 * media.cpp: use cairo_get_target rather than keeping track of
35590 2007-06-20 Jackson Harper <jackson@ximian.com>
35592 * xaml.cpp/runtime.h: Add one more callback, this one will hookup
35593 events to methods. So things like Loaded=CanvasLoaded will work.
35597 2007-06-20 Jackson Harper <jackson@ximian.com>
35599 * xaml.cpp: More verbose debug output with namespace lookup
35601 - Map in the default namespaces if we are unable to lookup the
35602 proper namespace name.
35604 2007-06-20 Sebastien Pouliot <sebastien@ximian.com>
35606 * shape.cpp: Call cairo_[stroke|fill]_extents inside Shape::getbounds
35607 or the mouse moving won't work.
35609 2007-06-20 Sebastien Pouliot <sebastien@ximian.com>
35611 * shape.cpp: Fix Shape::getbounds to work even if no stroke brush is
35612 assigned, in that case we get the extents of the fill.
35614 2007-06-20 Chris Toshok <toshok@ximian.com>
35616 * animation.cpp: um.. "oops".
35618 * xaml.cpp (xaml_init): enable the parsing of the color/point
35621 2007-06-20 Chris Toshok <toshok@ximian.com>
35623 * animation.cpp: guard against division by zero in the double
35624 keyframe GetCurrentValue method. I'll fix this method up some
35625 more and then report it to the other animation types.
35627 Also, add the Spline(Color,Point)KeyFrames.
35629 * clock.cpp, clock.h: fixes to get all this working again while
35630 still supporting the needed things from the last patch (like
35633 * transform.cpp (GetTransform): i hate like hell to have to do
35634 this, but if we scale by 0.0 cairo can't invert the matrix and
35635 then everything goes belly up. 0.00002 is the smallest number I
35636 found (0.00001 doesn't work, for instance) where cairo doesn't
35637 complain about the inverse stuff.
35639 * media.cpp (media_element_set_buffering_time): we have to use the
35640 hacky Value ctor here.
35641 (media_element_set_position): and here.
35643 * runtime.cpp (emit_loaded_events): new function to walk the tree
35644 and emit loaded events.
35645 (surface_attach): call emit_loaded_events here - the docs specify
35646 that Loaded is emitted after it's associated with the host but
35647 before it's rendered.
35648 (Canvas::render): don't emit Loaded here.
35649 (runtime_init): output a nice message here if you run cairo
35650 against a verion of cairo that you shouldn't be using.
35652 * type.h, type.cpp, value.h: resync.
35654 2007-06-20 Jackson Harper <jackson@ximian.com>
35656 * xaml.cpp: Improve the way we handle x:Class attributes failing
35659 2007-06-20 Jackson Harper <jackson@ximian.com>
35661 * xaml.cpp: Hookup attached properties in the property_from_str
35664 2007-06-19 Chris Toshok <toshok@ximian.com>
35666 * media.cpp (media_element_get_buffering_time): use AsTimeSpan().
35667 (media_element_get_position): same.
35668 (media_init): mark BufferingTime and Position as TimeSpan's.
35670 2007-06-19 Chris Toshok <toshok@ximian.com>
35672 * clock.cpp, clock.h: bad time for a a rearchitecting, perhaps,
35673 but this was necessary to get BeginTime's to be supported. It
35674 reintroduces the "popping" in the surface demo, though, and
35675 honestly I'm unsure how we can ever guarantee that enough ticks
35676 will have occured to be sure we won't see the initial state of the
35679 * animation.cpp: track clock api changes.
35681 * runtime.h: decl for FramworkElement::OnPropertyChanged.
35683 * runtime.cpp (EventObject::Emit): make a copy of the list before
35684 we start emitting, to keep us crashing if the list is modified
35685 while we're traversing it.
35686 (FramworkElement::OnPropertyChanged): invalidate on width/height
35689 * xaml.cpp: when parsing a TIMESPAN property, use
35690 timespan_from_str. This fixes the parsing of BeginTime
35693 * type.cpp.in: register TIMESPAN.
35695 * value.h.in: add a AsTimeSpan method, and special hacky
35696 constructor so the parser can construct a value of type TIMESPAN
35697 (which is problematic since it's typedef'ed to gint64.) Move the
35698 TimeSpan typedef here.
35700 * value.cpp: add the impl for that hacky ctor.
35702 * type.h.in: add a TIMESPAN kind.
35704 * type.h, value.h, type.cpp: sync.
35706 2007-06-19 Jackson Harper <jackson@ximian.com>
35708 * xaml.cpp: we need to new the points.
35710 2007-06-19 Sebastien Pouliot <sebastien@ximian.com>
35712 * geometry.cpp: Add safety to ensure the number of points are
35713 valid before iterating on them.
35715 2007-06-19 Jackson Harper <jackson@ximian.com>
35717 * xaml.cpp: make sure to get all the points.
35718 - sneak peek at the exciting new attached property setting code.
35719 - improve error message
35720 - dont step off the end of the string when the trailing characters
35723 2007-06-19 Jeffrey Stedfast <fejj@gnome.org>
35725 * *.cpp: Updated to use the new List type.
35727 * runtime.cpp|h (Collection): Modified to use List instead of
35728 GList which made some code simpler, we get to take advantage of
35731 * demo.cpp (main): Removed surface_destroy() and
35732 runtime_shutdown() out of the delete_event callback (gtk timeouts
35733 could still fire after the gtk_main_quit() call it seems).
35735 2007-06-19 Sebastien Pouliot <sebastien@ximian.com>
35737 * runtime.cpp: Enforce UIElement::ClipProperty when rendering
35740 2007-06-19 Jackson Harper <jackson@ximian.com>
35742 * xaml.cpp: Content properties can be inherited.
35744 2007-06-19 Jackson Harper <jackson@ximian.com>
35746 * xaml.cpp: Make sure that we have a previous figure.
35748 2007-06-19 Sebastien Pouliot <sebastien@ximian.com>
35750 * geometry.cpp|h: Revert previous changes. That didn't work well
35751 with groups/collections.
35752 * shape.cpp: Path::Draw now process the path (find and susbtract
35753 origin) when Stretch requires it.
35755 2007-06-19 Jackson Harper <jackson@ximian.com>
35757 * xaml.cpp: Set the namescope right away, so FindName will work in
35758 element constructors.
35760 2007-06-19 Jeffrey Stedfast <fejj@gnome.org>
35762 * animation.cpp: Switched to use List instead of GList.
35764 2007-06-19 Sebastien Pouliot <sebastien@ximian.com>
35766 * geometry.cpp|h: Change API so the Strech value is propagated from
35767 the shape to all the geometry figures. Fixed Stretch for LineGeometry,
35768 EllipseGeometry and RectangleGeometry.
35769 * shape.cpp: Path::Draw now supply the Stretch property value to
35770 all Geometry objects drawing methods.
35772 2007-06-19 Sebastien Pouliot <sebastien@ximian.com>
35774 * shape.cpp: Don't call cairo_new_path inside moon_ellipse. It's
35775 the caller responsbility to do so, if required (e.g. it isn't for
35778 2007-06-19 Jackson Harper <jackson@ximian.com>
35780 * xaml.cpp: Implement all the optional points on path markup.
35782 2007-06-19 Sebastien Pouliot <sebastien@ximian.com>
35784 * shape.cpp: Fix Stretch for Polyline and Polygon.
35786 2007-06-19 Jeffrey Stedfast <fejj@novell.com>
35788 * xaml.cpp: Updated to use a real linked list implementation.. for
35789 added uberness. Also reduces memory leakage.
35791 * mplayer.cpp: Stubbed out a few more things and can now return
35792 the video duration.
35794 2007-06-19 Sebastien Pouliot <sebastien@ximian.com>
35796 * shape.cpp|h: Set Shape::Stretch default to None and set Stretch
35797 property to fill inside Rectangle and Ellipse ctors.
35799 2007-06-19 Jeffrey Stedfast <fejj@novell.com>
35801 * runtime.cpp (Insert): Make this use SharedAdd too, which I
35802 presume was the whole point.
35804 2007-06-19 Sebastien Pouliot <sebastien@ximian.com>
35806 * shape.cpp: Fix Strech support for Rectangle (it behave more like
35807 Ellipse but that shows only with non squares).
35809 2007-06-19 Jeffrey Stedfast <fejj@novell.com>
35811 * mplayer.cpp (audio_loop): Fixed muting to advance the correct
35812 number of pts and not hang forever in a g_usleep() (gah, the timer
35813 was a huge negative value).
35815 2007-06-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
35817 * clock.h: Added TimelineMarker.
35818 * type.h, type.cpp, value.h: Updated.
35820 2007-06-19 Sebastien Pouliot <sebastien@ximian.com>
35822 * shape.h: Fix filling for Polyline. MS supports filling polylines,
35823 even unclosed ones.
35825 2007-06-19 Chris Toshok <toshok@ximian.com>
35827 * runtime.cpp (surface_realloc): make sure to reassign s->cairo to
35828 s->cairo_xlib after recreating the xlib stuff. avoids a crash
35829 when resizing surfaces.
35831 2007-06-19 Sebastien Pouliot <sebastien@ximian.com>
35833 * shape.cpp: Add Strech support for Ellipse.
35835 2007-06-19 Sebastien Pouliot <sebastien@ximian.com>
35837 * shape.cpp: Add Strech support for Rectangle (only None is different).
35838 Add comments to Line as Stretch doesn't apply for this Shape.
35840 2007-06-19 Miguel de Icaza <miguel@novell.com>
35842 * runtime.cpp (Collection): Add new Insert method, and update all
35843 the callers that overwrote it. We probably need to cleanup
35844 everything that is doing virtual overrides and is a no-op
35846 2007-06-19 Chris Toshok <toshok@ximian.com>
35848 * runtime.cpp (clear_drawing_area): this method doesn't need to
35849 clean up the xlib cairo context/surface and the pixmap.
35851 There are two possibilities:
35853 1) the drawing area has been realized, which means we have xlib
35854 surface/context + pixmap. We're guaranteed to hit
35855 unrealized_callback before this method is called, so they will
35856 have already been freed.
35858 2) the drawing area has not been realized, which means we have no
35859 xlib surface/context + pixmap, and this method doesn't need to do
35862 2007-06-19 Jackson Harper <jackson@ximian.com>
35864 * runtime.h/shape.cpp: Fix typo.
35866 2007-06-19 Jeffrey Stedfast <fejj@novell.com>
35868 * text.cpp (Run::OnPropertyChanged): Always chain up to our parent
35869 implementation and if one of our properties changed, notify our
35871 (Inline::OnPropertyChanged): Same.
35872 (TextBlock::OnPropertyChanged): Keep track of Inlines changes.
35873 (TextBlock::Draw): Use our foreground brush directly and the same
35874 for run's foreground brush.
35876 2007-06-19 Miguel de Icaza <miguel@novell.com>
35878 * runtime.cpp: Implement collection iterators.
35880 2007-06-19 Chris Toshok <toshok@ximian.com>
35882 * xaml.cpp (timespan_from_str): don't walk off the end of the
35885 2007-06-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
35887 * animation.h|cpp: Remove pureness from KeyFrame::InterpolateValue.
35889 2007-06-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
35891 * animation.h|cpp: Add *_key_frame_new.
35893 2007-06-19 Jackson Harper <jackson@ximian.com>
35895 * xaml.cpp\runtime.h: Add a public function for setting
35896 properties, from strings. Basically a copy and paste of my
35897 set_attributes code. Eventually I should be able to merge the
35898 two, but they use different name lookup mechanisms right now.
35900 2007-06-19 Jeffrey Stedfast <fejj@gnome.org>
35902 * animation.cpp (Remove): Remove the KeyFrame from the sorted list
35903 before removing it from the collection (since it may be freed by
35904 Collection::Remove).
35906 2007-06-19 Miguel de Icaza <miguel@novell.com>
35908 * runtime.cpp: Add support for notifying the consumer that the
35909 surface has resized.
35911 Add support for resizing objects.
35913 2007-06-19 Jeffrey Stedfast <fejj@gnome.org>
35915 * brush.cpp (~VideoBrush): We want to detach from the media
35916 element, not ourselves. Doh.
35918 2007-06-19 Sebastien Pouliot <sebastien@ximian.com>
35920 * shape.h: Update comments about which shapes needs, or not, to
35921 provide a getxformorigin method.
35923 2007-06-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
35925 * media.h|cpp: Add media_base_new.
35927 2007-06-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
35929 * value.cpp|h|in: Inline the non-DependencyObject
35930 As* functions as well.
35932 2007-06-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
35934 * typegen.cs: Removed some dead code.
35935 * value.cpp.in: Deleted, not needed anymore.
35936 * runtime.cpp, value.cpp, type.cpp.in: Moved
35937 implementation of Value and Type into their own files.
35938 * type.cpp: Updated.
35940 2007-06-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
35942 * type.h, type.h.in: Created, moved declaration of Type here.
35943 * *.h|cpp|in: Move Value:Kind to Type::Kind and update all
35944 references. Move the Value::As* into the header.
35945 * typegen.cs: Updated to cope with Kind changes.
35947 2007-06-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
35949 * runtime.cpp|h, value.h.in: Remove current nullable code,
35950 it's easier to store an is_nullable flag in the registered
35951 property, and store NULL values in the objects hashtable.
35952 * xaml.cpp: Revert unnecessary fixes.
35953 * value.h: Updated.
35955 2007-06-19 Chris Toshok <toshok@ximian.com>
35957 * runtime.h: get rid of the specialized surface callbacks for
35958 mouse events. we can dispatch them directly to the UIElements.
35959 Change the EventObject signatures to permit an event/call data as
35960 well as the closure. add the sender object for kicks while we're
35963 * runtime.cpp: dispatch element events through the
35964 DependencyObject's events object.
35966 * animation.h, animation.cpp: update signatures for event
35969 * control.cpp (handle_button): track signature change.
35973 2007-06-18 Chris Toshok <toshok@ximian.com>
35975 * clock.cpp (TimeManager::Tick): add a lot of timing foo.
35976 (ClockGroup::RaiseAccumulatedEvents): raise the Completed event if
35977 we switching to the stopped state and our progress is 1.0 (that
35978 is, if we've finished).
35980 * animation.h, animation.cpp (Storyboard::Begin): rather heavy
35981 handed (but bulletproof) approach to making Begin work on a
35982 storyboard that has run its course - destroy the clock hierarchy
35983 and recreate it. Also, add a handler for the ClockGroup's
35984 "Completed" event so we can reflect that back to managed land.
35986 * runtime.h: add C functions to add/remove handlers from the
35987 EventObject inside a dep object.
35989 2007-06-18 Jackson Harper <jackson@ximian.com>
35991 * xaml.cpp: Set text context properties from char data. This
35992 allows you to do things like <Run>Hi I am some text</Run>. As far
35993 as I can tell, Run is the only element that allows this.
35995 2007-06-18 Sebastien Pouliot <sebastien@ximian.com>
35997 * shape.cpp|h: Fix Line and Ellipse getxformorigin.
35999 2007-06-18 Jackson Harper <jackson@ximian.com>
36001 * xaml.cpp: Now implement the smooth beziers correctly, much
36002 thanks to spouliot for figuring out the formula to reflect control
36005 2007-06-18 Chris Toshok <toshok@ximian.com>
36007 * clock.h, clock.cpp: ifdef some debug spew, add a bitmask for
36008 what the timemanager should do on a given tick, and add some
36009 #defines/logic to calculate the gtk delay from the desired
36010 framerate. Set the desired framerate to 20fps.
36012 2007-06-18 Jeffrey Stedfast <fejj@novell.com>
36014 Instead of attaching to Brush::ChangedProperty, connect to NULL.
36016 * media.cpp (render): If the width/height are 0.0, then use the
36017 video's natural width/height.
36018 (OnPropertyChanged): chain up.
36020 * shape.cpp (OnPropertyChanged): Always chain up to our parent.
36022 2007-06-18 Chris Toshok <toshok@ximian.com>
36024 * xaml.cpp (dependency_object_set_attributes): suggestion by rolf.
36025 fixes setting of nullable property values.
36027 2007-06-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
36029 * runtime.cpp: Store NULL again in the property hashtable,
36030 but use the lookup_extended function to detect this and return
36031 a correct NULL value instead of the default value.
36033 2007-06-18 Chris Toshok <toshok@ximian.com>
36035 * runtime.cpp (RemoveHandler): more cleanups.
36037 2007-06-18 Chris Toshok <toshok@ximian.com>
36039 * runtime.cpp (RemoveHandler): g_free'ing a new'ed c++ object =
36042 2007-06-18 Jackson Harper <jackson@ximian.com>
36044 * xaml.cpp: Implement path closing and ArcSegments.
36046 2007-06-18 Miguel de Icaza <miguel@novell.com>
36048 * runtime.cpp (SetValue): This looks painful, now
36049 DependencyObjects are stored inside the hash but they might
36050 contain a NULL. This seems bad.
36052 (Value): Do not delete null dependency objects.
36054 Remove this patch, and try demo.exe, enter/leave/enter, this
36055 crashes now, because the leave sets the fill to "null" and the
36056 enter then tries to access it
36058 2007-06-18 Jeffrey Stedfast <fejj@novell.com>
36060 * brush.cpp: Do proper OnPropertyChanged proagation.
36061 (ImageBrush::OnPropertyChanged): Notify using the generic
36062 Brush::ChangedProperty.
36063 (VideoBrush::OnPropertyChanged): Same.
36064 (VideoBrush::OnSubPropertyChanged): Same.
36066 * shape.cpp (Shape): Need to keep track of our stroke/fill brushes
36067 so we can listen for change notification.
36069 * runtime.cpp (UIElement): Same.
36072 * text.cpp (TextBlock): Same here (need to do it for Inlines too
36075 * media.cpp (media_base_new): Removed, you can't instantiate a
36077 (advance_frame): Optimization hack: don't invalidate if our
36079 (MediaElement::render): Respect opacity and stretch properties.
36081 2007-06-18 Jackson Harper <jackson@ximian.com>
36083 * xaml.cpp: We need to create new figures if we get a Move
36086 2007-06-18 Chris Toshok <toshok@ximian.com>
36088 * demo.cpp: use TimeManager::AddTickCall for the async file
36089 loading. This makes the image visible immediately for me, instead
36090 of requiring the animations be paused to see it.
36092 * clock.cpp, clock.h: add a one-shot "tick call" idle handler of
36093 sorts to TimeManager. This way we can better control when the
36094 cross thread downloader calls happen, and keep them from affecting
36095 the frame rate, and also keep them from being starved by an
36096 overzealous demo.cpp.
36098 2007-06-18 Chris Toshok <toshok@ximian.com>
36100 * runtime.cpp (unrealized_callback): remove the render handler.
36101 (realized_callback): attach the render handler.
36102 (render_surface): a very simple render handler. We just force gtk
36103 to process all pending updates.
36105 * clock.cpp (TimeManager::Tick): as a temporary hack, have
36106 TimeManager emit the "render" event after every animation tick.
36107 We should add tuning to this method to achieve usable framerates
36108 without killing the cpu.
36110 * clock.h: make TimeManager subclass from EventObject so we can
36111 hook up to events on it.
36113 2007-06-18 Sebastien Pouliot <sebastien@ximian.com>
36115 * shape.cpp: getbounds gets bad results if stroke (or fill) isn't
36116 called. We create a new path so the bounds, for an invisible object,
36119 2007-06-18 Chris Toshok <toshok@ximian.com>
36121 * clock.cpp (Clock::TimeUpdated): return immediately if we're stopped.
36123 2007-06-18 Jackson Harper <jackson@ximian.com>
36125 * xaml.cpp: Fix smooth quadratic bezier's.
36127 2007-06-18 Chris Toshok <toshok@ximian.com>
36129 * media.cpp, media.h (Image::render): on our first rendering,
36130 convert to using an xlib surface to speed up future redraws.
36132 2007-06-18 Chris Toshok <toshok@ximian.com>
36134 * runtime.cpp (UIElement::dorender): add this, and make everything
36135 that calls ->render call ->dorender.
36137 * control.cpp (render): call dorender on the realobject.
36139 * runtime.h: add STARTTIMER/ENDTIMER macros, and add
36140 UIElement::dorender which can be used to wrap render calls with
36141 debug info (in this case timer info.)
36143 * clock.h: add prototype for get_now().
36145 * clock.cpp (get_now): make this public, so we can use it for
36148 2007-06-18 Jackson Harper <jackson@ximian.com>
36150 * xaml.cpp: Implement Path Geometry parsing.
36152 2007-06-18 Jeffrey Stedfast <fejj@novell.com>
36154 * brush.cpp (VideoBrush::SetupBrush): Get a reference to the
36155 MediaElement if we don't already have one.
36156 (VideoBrush::OnPropertyChanged): SourceName does not refer to a
36157 uri, instead SourceName refers to a MediaElement.
36159 * media.cpp: Implemented some more helper "setters", defaulted
36160 some more MediaElement property values to correct values, and
36161 implemented updating of both the CurrentState property and the
36164 * mplayer.cpp (Position): Implemented.
36166 2007-06-18 Sebastien Pouliot <sebastien@ximian.com>
36168 * media.cpp: Close the path after rendering the image.
36169 * shape.cpp: Avoid the filling operation in calls to getbounds. Also
36170 open and close a path before drawing normal (square) rectangles.
36172 2007-06-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
36174 * runtime.h|cpp: Add DependencyObject::RegisterNullable. Add a few
36175 C-style methods to access Type and DependencyProperty fields.
36176 In Type::IsSubclassOf don't take into account nullability.
36177 * animation.cpp, clock.cpp: Register nullable properties as such.
36179 2007-06-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
36181 * media.h|cpp: Add media_base_new.
36183 2007-06-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
36185 * value.h.in: Make checked_get_subclass handle null values. Include the
36186 Kind::*Null* values in the C# Kind.cs, and change their values to fit
36188 * value.h: Updated.
36190 2007-06-18 Miguel de Icaza <miguel@novell.com>
36192 * media.cpp (DownloaderEvent): If the Width/Height have not been
36193 set explicitly, provide them from the images (demo works, but it
36194 takes a while, due to the idle handler being too busy to be
36197 * runtime.cpp (Canvas::render): Cope with rounding from floats to
36198 ints, add 2, fixes the droppings in the surface.
36200 Include some of my debugging helpers (you sprinkle
36201 draw_grid in key places to see whats going on, useful to debug the
36202 bounding boxes and visually inspect if things are right.
36204 * media.cpp (getbounds): use the framework width/height not the
36205 pixbuf image size, this shrinks the size of the bounding box.
36206 (getxformorigin): Use it here too.
36208 2007-06-18 Sebastien Pouliot <sebastien@ximian.com>
36210 * brush.cpp|h: SetupBrush and SetupGradient now returns a boolean that
36211 indicates if their use would be visible or not (e.g. opacity > 0.0).
36212 * shape.cpp: Don't setup brush for getting bounds (do_op == FALSE).
36213 Don't Fill or Stroke if the brush is invisible (opacity == 0).
36215 2007-06-18 Marek Habersack <grendello@gmail.com>
36217 * mplayer.cpp (ALIGN): make sure the ALIGN macro is correct on 64
36220 * ffvideo.cpp (ALIGN): as above.
36222 2007-06-18 Chris Toshok <toshok@ximian.com>
36224 * clock.cpp: simplify pausing and stopping a clock that has
36225 children by keeping track of the new state (the one the clock will
36226 take at the end of this tick). This is necessary because the
36227 parent clock doesn't actually stop until the end of the tick, so
36228 we still need to update child clocks after we've determined the
36229 parent clock should stop.
36231 Mon Jun 18 19:35:56 CEST 2007 Paolo Molaro <lupus@ximian.com>
36233 * runtime.cpp: properly remove items from the doubly-linked list.
36235 2007-06-18 Chris Toshok <toshok@ximian.com>
36237 * animation.cpp (AnimationStorage::~AnimationStorage): delete the
36239 (Storyboard::Begin): force a TimeManager tick after we've hooked
36240 up the clock, so that all the animations have proper values before
36241 the next render. Fixes the "popping" in the surface demo.
36243 2007-06-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
36245 * runtime.cpp: Changed DependencyObject::SetValue to never store
36246 a null value in the hashtable.
36248 2007-06-18 Sebastien Pouliot <sebastien@ximian.com>
36250 * brush.cpp: Refactor the pattern creation to allow caching.
36251 * media.cpp|h: Add caching of cairo_pattern_t to Image.
36253 Mon Jun 18 17:53:03 CEST 2007 Paolo Molaro <lupus@ximian.com>
36255 * runtime.cpp: use motion hints for smoother motion event handling.
36257 2007-06-18 Jeffrey Stedfast <fejj@gnome.org>
36259 * text.cpp|h: Runs now cache their own PangoFontDescription and
36260 PangoLayouts as an optimzation (seems to be very slight for simple
36261 us-ascii text, but might help enormously for more complex
36262 languages). Also added some FIXME thoughts.
36264 2007-06-18 Everaldo Canuto <ecanuto@novell.com>
36266 * downloader.cpp: Add missing downloader_notify_finished.
36268 2007-06-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
36270 * downloader.cpp: Only set dummy downloader functions if they
36271 aren't already set.
36273 2007-06-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
36275 * runtime.cpp: Add a few null checks.
36276 * downloader.cpp: Add initial dummy downloader functions to get
36277 meaningful messages if the downloader functions aren't initialized.
36279 2007-06-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
36281 * typegen.cs: Special case a few things for DependencyObject,
36282 and make a few messages more informative.
36283 * runtime.h|cpp: Add a value_type field to Type, and a constructor
36284 to specify the value. Add a constructor to DependencyProperty that
36285 can specify default value and type (in the case the default value
36286 doesn't have the same type as the property). Changed
36287 DependencyObject::SetValue to never store a null value in the
36288 hashtable. In Value destructor check for null pointers in a few
36289 cases. Update all uses of Value.k to Value.GetKind.
36290 * type.cpp.in: Update to specify value_type information.
36291 * value.h.in: Implement nullable type handling in Value.
36292 * value.cpp, type.cpp, value.h: Updated.
36294 2007-06-18 Jeffrey Stedfast <fejj@gnome.org>
36296 * text.cpp (get_size_for_brush): Calculate width/height if they
36298 (Draw): Don't use the brush if we aren't going to render (this is
36299 needed so that we don't get into a recursive loop since we have to
36300 manually calculate width/height).
36302 2007-06-18 Jeffrey Stedfast <fejj@gnome.org>
36304 * text.cpp (get_size_for_brush): Implemented (since
36305 cairo_stroke_extents() won't work for us).
36307 * brush.cpp (VideoBrush::SetupBrush): Use get_size_for_brush().
36308 (ImageBrush::SetupBrush): Same.
36310 * runtime.cpp (UIElement::get_size_for_brush): New method to get
36311 width/height needed by Brushes for scaling.
36313 2007-06-17 Jeffrey Stedfast <fejj@gnome.org>
36315 * runtime.cpp (UIElement::OnPropertyChanged): Chain up to our
36318 2007-06-17 Atsushi Enomoto <atsushi@ximian.com>
36320 * text.cpp : added text_block_set_font_source().
36322 2007-06-17 Miguel de Icaza <miguel@novell.com>
36324 * brush.cpp (brush_init): Create a BRUSH property called
36325 "FrameChange", it is internal and the sole use of it is so that
36326 upper layers that care about brush changes act on it by updating
36329 * runtime.cpp (UIElement::OnSubPropertyChanged): Changes on
36330 brushes only trigger an invalidate, there is no need to recompute
36333 2007-06-17 Jeffrey Stedfast <fejj@gnome.org>
36335 * xaml.cpp: c++ isn't smart enough to invoke the correct .dtor on
36336 delete for a void pointer, it can only delete known class types.
36338 2007-06-17 Jackson Harper <jackson@ximian.com>
36340 * xaml.cpp: Implement x:Class, we can now load the Surface demo's
36341 XAML file, and it's custom Canvas class (things still don't work
36342 though because the custom canvas uses a downloader.)
36344 2007-06-17 Miguel de Icaza <miguel@novell.com>
36346 The surface rotate and translate controls should both work, and
36347 the enter/leave events are now correct.
36349 * runtime.cpp (UIElement::handle_motion, handle_button): Change
36350 the semantics to better match Silverlight. Now these methods
36351 should check if the mouse is inside their region before calling
36354 This is necessary because children of the canvas (and panel) are
36355 within the confines of the bounding box, but the canvas can be
36356 smaller than that. The canvas is a container whose boundaries
36357 are only used for paiting, children might be outside of these
36360 It is necessary in these cases to pass the events to all the
36361 children within the canvas bounding box and for each child to
36362 determine if the event was within its range.
36364 (inside_object): replaced the default implementation for
36365 FrameworkElements with a more performing version: instead of
36366 mapping the point and using cairo_in_stroke and in_fill operations
36367 on a rectangle with mapped coordinates, we map the coordinates and
36368 check against the rectangle.
36370 (Canvas::getbounds): if we are the topmost canvas, the boundaries
36371 are those from the Surface, not the ones that include the maximum
36372 extent from the children. Used to do precise mouse enter/leave.
36374 2007-06-17 Jeffrey Stedfast <fejj@gnome.org>
36376 * media.cpp (MediaElement::OnPropertyChanged): Chain to parent
36377 when its not our property.
36379 * brush.cpp: Implemented VideoBrush (tho it's not yet debugged).
36381 * mplayer.cpp (GetSurface): Added.
36383 * text.cpp (text_init): Fixed to use RegisterFull for Froeground
36384 so we can specify Value::BRUSH as the default value type instead
36385 of it using SolidColorBrush as the type.
36387 2007-06-17 Chris Toshok <toshok@ximian.com>
36389 * xaml.cpp (timespan_from_str): fix parsing of timespans shorter
36392 2007-06-17 Chris Toshok <toshok@ximian.com>
36394 * clock.cpp (Clock::TimeUpdated): remove a special case for the
36395 clock's duration being Automatic. Fixes infinite animation in
36398 * runtime.cpp (crossing_notify_callback): return type is gboolean,
36399 and make sure we always return something.
36401 2007-06-17 Miguel de Icaza <miguel@novell.com>
36403 Propagate changes from children of the transform up to our
36404 containers, this is done in several steps:
36406 * runtime.cpp (DependencyObject::Attach, Detach): New methods that
36407 are used to attach an object to a container and detach it. They
36408 were previously inlined inside SetValue.
36410 (Collection::Add, Remove): Attach and detach objects when they are
36413 * transform.cpp (Transform::OnPropertyChanged): if any class
36414 derived from Transform has one of its properties changed, it
36415 has a visual effect, propage this to the attacchees.
36417 (TransformGroup::OnSubPropertyChanged): Escalate here as well,
36418 this will catch the messages coming from anyone in the collection
36421 (TransformCollection::OnSubPropertyChanged): Buble the event up
36424 * runtime.cpp (handle_motion): Change the order in which we send
36425 the events to the UIElement, we should start at the topmost
36426 element, and have the toplevel canvas be last.
36428 2007-06-17 Sebastien Pouliot <sebastien@ximian.com>
36430 * brush.cpp: Refactor ImageBrush::SetupBrush to reuse parts of it
36431 inside Image::render.
36432 * media.cpp: Use code from ImageBrush to render image with it's
36433 properties (e.g. Stretch)
36434 * transform.cpp: Update (commented) debug output.
36436 2007-06-17 Miguel de Icaza <miguel@novell.com>
36438 * runtime.cpp (GetValueNoDefault): This is necessary so we can
36439 distinguish a value that has been explicitly set from one that has
36443 * media.cpp (Image): use Framework::Width,Height for the image
36444 dimensions instead of the pixbuf width/height, used in extents and
36445 rotation computation.
36447 * runtime.cpp (Canvas::render): Set the clipping path on the
36448 identity matrix so we do not miss-clip.
36450 Render the canvas from 0, 0, fwidht, fheight, not the expose
36453 2007-06-16 Miguel de Icaza <miguel@novell.com>
36455 * runtime.cpp (Cairo::render): The canvas also needs to set the
36456 matrix and clear its background.
36458 (surface_resize): convenience entry point to resize a surface.
36459 Notice that this will resize the surface, but not the toplevel
36462 2007-06-16 Jackson Harper <jackson@ximian.com>
36467 * xaml.cpp: Use a callback for setting custom attributes in
36470 2007-06-16 Jeffrey Stedfast <fejj@gnome.org>
36472 * media.cpp: Implemented all the needed virtual methods for
36473 MediaElement to work, using my new MediaPlayer class.
36475 * mplayer.cpp|h: New class for playing media sources.
36477 * ffvideo.cpp: Removed from the build.
36479 2007-06-16 Miguel de Icaza <miguel@novell.com>
36481 Observation: either it is the surface, or something else is very
36482 slow, but entering the surface is quite slow right now to show the
36483 handles. Not sure what it could be.
36485 * runtime.cpp (OnPropertyChanged): We probably should catch the
36486 property changes here, and not in the Sub* variant of this thing,
36487 this will update the canvas properly now.
36489 (dump_hierarchy): useful bit to debug what is going wrong.
36491 (Canvas::get_xform_for): Do not apply extra
36492 transformations to the child other than the absolute_xform.
36494 (surface_attach): On attach we need to do a full invalidate, so
36495 the transformations are computed, otherwise it uses the defaults
36496 for the toplevel (zero), this fixes the atom.xaml issue.
36498 * control.cpp (get_xform_for): This is not proxied to the real
36499 object, this is proxied to the parent.
36500 (control_initialize_from_xaml): Set the parent link here.
36502 2007-06-16 Chris Toshok <toshok@ximian.com>
36504 * transform.cpp, transform.h, runtime.cpp, runtime.h,
36505 geometry.cpp, geometry.h, animation.cpp: Another pass (the last)
36506 at removing all cached instance collections and using GetValue
36509 2007-06-16 Chris Toshok <toshok@ximian.com>
36511 * media.cpp (Image::SetSource): we want events even if we attach a
36512 downloader that's been started.
36514 2007-06-16 Sebastien Pouliot <sebastien@ximian.com>
36516 * shape.cpp: If StrokeThickness == 0 then don't stroke, otherwise it
36517 will mess with the earlier filling.
36519 2007-06-16 Chris Toshok <toshok@ximian.com>
36521 * runtime.h, runtime.cpp: remove the instance cached
36522 Panel::children, use accessor to get it when we need it.
36524 * brush.h, brush.cpp: same for the GradientBrush::children
36527 2007-06-16 Chris Toshok <toshok@ximian.com>
36529 * runtime.h: make these const Rect&'s.
36531 2007-06-16 Sebastien Pouliot <sebastien@ximian.com>
36533 * control.cpp|runtime.h: control_initialize_from_xaml needs to return
36534 the Value::Kind of the object that was created so the managed side do
36537 2007-06-16 Sebastien Pouliot <sebastien@ximian.com>
36539 * control.cpp|runtime.h: control_initialize_from_xaml needs to return
36540 the element as the managed side needs (and defines) it.
36542 2007-06-16 Miguel de Icaza <miguel@novell.com>
36544 * control.cpp: Implement Control.
36546 * downloader.cpp: Implement a system to send various notifications
36547 as Chris wants his notifications and managed world wants the
36548 notifications as well.
36550 Should they ahve been separate? For now I just added a list of
36551 them. This code is turning uglier every minute.
36553 2007-06-16 Jackson Harper <jackson@ximian.com>
36555 * xaml.cpp: Kill top_kind, I have no idea how this guy crept back
36557 - Handle expat errors a little better.
36559 2007-06-16 Sebastien Pouliot <sebastien@ximian.com>
36561 * runtime.h: Implement missing IntersectsWith and Intersection to fix
36564 2007-06-15 Chris Toshok <toshok@ximian.com>
36566 * runtime.cpp (Canvas::render): small optimization. only call the
36567 item's render method if its bounds actually intersects with the
36568 rectangle we're rendering. Also, clip to the bounding rectangle
36571 2007-06-16 Chris Toshok <toshok@ximian.com>
36573 * clock.cpp, clock.h: don't use a constant for the timeout in
36574 gtk_timeout_add, and add methods to add/remove the timeout.
36576 (ClockGroup::TimeUpdated): if we're paused or stopped,
36577 don't call child clock TimeUpdated methods at all. they always
36578 generate CurrentTimeInvalidated even when the time hasn't changed,
36579 which triggers redraws that don't need to happen.
36581 2007-06-16 Jackson Harper <jackson@ximian.com>
36583 * runtime.cpp|h: We still need C style base_ref/unref.
36585 * xaml.cpp: Takle a callback for the from_file method also.
36587 2007-06-16 Jeffrey Stedfast <fejj@gnome.org>
36589 * ffvideo.cpp (Stop): Implemented.
36590 (.ctor): init paused to false (maybe this is why video
36591 didn'talways work?).
36592 (.dtor): Stop() the video and unhook the timeout.
36594 * runtime.cpp: Implement Base::ref and Base::unref instead of
36595 doing it the c way.
36597 * *.cpp: Updated for above change.
36599 * shape.cpp (shape_set_stroke): Don't unref the old stroke.
36600 (shape_set_fill): Same.
36602 * text.cpp (text_init): Use a separate brush for TextBlocks and
36604 (text_block_set_foreground): Don't unref the old brush.
36605 (inline_set_foreground): Same.
36607 2007-06-15 Chris Toshok <toshok@ximian.com>
36609 * xaml.cpp: little leak fixes here and there.
36611 2007-06-15 Chris Toshok <toshok@ximian.com>
36613 * demo.cpp (delete_event): destroy the surface and shutdown the
36614 runtime before we quit, just to make finding leaks a little
36617 * ffvideo.cpp (MediaElementFfmpeg): re-order the
36618 close/g_io_channel_close calls to quiet down glib.
36620 * media.cpp: don't close the loader in DownloaderEvents. do it in
36621 the dtor for now, to keep from getting that stupid gdk warning.
36622 this is wrong, but at least it's quiet.
36624 * text.cpp: delete the color we initialize the solid color brush
36627 * animation.cpp, animation.h: remove the cached key_frames
36630 * runtime.h, runtime.cpp: clean up our cleanup a lot.
36632 in the copy constructor we actually need to make a copy (or
36633 ref in cases where we can) everything we store as a pointer in
36634 our union. This is to facilitate us destroying it in the
36637 in surface_destroy just delete the surface. move all the destroy
36638 code to the destructor. Also, in the destructor unhook from the
36639 gtk events, since we get an unrealize event as part of widget
36640 destruction, apparently.
36642 Add DependencyObject::Shutdown which destroys our properties
36643 hashtable. Create all the hashtables with _new_full so we can
36644 give free functions for keys/values. actually make use of them,
36645 and clean up the relevant destructors.
36647 Add a destructor for Type, and have the Type ctor take its
36648 arguments. free the name in the dtor. Same deal with _new_full
36649 for hashtable creation, and also add Type::Shutdown.
36651 (runtime_shutdown): call TimeManager::Shutdown, Type::Shutdown,
36652 and DependencyObject::Shutdown to free all our stuff.
36654 * clock.h, clock.cpp: add TimeManager::Shutdown.
36656 2007-06-15 Jeffrey Stedfast <fejj@gnome.org>
36658 * demo.cpp (gettime): Improved fps reporting.
36660 2007-06-15 Miguel de Icaza <miguel@novell.com>
36662 * media.cpp (SetSource): Make it so we use the data from a
36663 downloader that might have already finished.
36665 2007-06-15 Chris Toshok <toshok@ximian.com>
36667 * runtime.cpp: simplify refcounting a little more. we now have 3
36670 1. Value() holds a ref to its contained dependency object.
36671 This means we don't have to do anything special for
36672 anything stored in a DP.
36674 2. Collections hold a ref to their constituents.
36676 3. If you *must* cache an DO pointer in an instance field, you
36677 must ref/unref it properly. But really, you shouldn't need
36678 to cache it, and I'll likely go through and remove all the
36681 * media.cpp (media_element_set_markers): remove the ref/unref
36684 * animation.cpp: comment out some spew, and follow a safer pattern
36685 in OnPropertyChanged.
36687 * brush.cpp (OnPropertyChanged): safer pattern.
36689 * geometry.cpp (OnPropertyChanged): safer pattern.
36691 * runtime.h: make all these dtors virtual.
36693 * clock.cpp, clock.h: remove the cached child_timelines instance
36694 field to clean up some of the ref counting problems.
36696 2007-06-15 Miguel de Icaza <miguel@novell.com>
36698 * media.cpp (SetSource): Make it so we use the data from a
36699 downloader that might have already finished.
36701 We now accumulated data as we go.
36703 * downloader.cpp (downloader_get_response_text): Return
36706 2007-06-15 Jackson Harper <jackson@ximian.com>
36710 * xaml.cpp: Callback into managed code to create custom element
36713 2007-06-15 Jeffrey Stedfast <fejj@novell.com>
36715 * media.cpp (media_base_new): Removed, not instantiable.
36716 (Image::getbounds): Need to set the absolute_xform matrix :)
36718 2007-06-15 Miguel de Icaza <miguel@novell.com>
36720 * media.cpp (Image::getxformorigin): Implement getxformorigin, so
36721 rotations are correct.
36723 (Image::getbounds): Implement getbounds correctly, the coordinates
36724 should be in device coordinates with the transform applied.
36726 2007-06-15 Jeffrey Stedfast <fejj@novell.com>
36728 * demo.cpp (main): Add some Inlines to the TextBlock to test
36729 bounding box calculations.
36731 * text.cpp (OnPropertyChanged): If the property that changed is
36732 the Actual width/height, then don't invalidate anything - simply
36733 return (these are just cache values that only we can set
36735 (Draw): Keep track of the pixel width/height of the entire
36736 rendered TextBlock+Inlines.
36737 (getbounds): Use the cached width/height of the TextBlock+Inlines
36738 and draw a rectangle instead to improve performance.
36740 2007-06-15 Sebastien Pouliot <sebastien@ximian.com>
36742 * media.cpp|h: Add media_base_new.
36744 2007-06-15 Miguel de Icaza <miguel@novell.com>
36746 * Add destructors to classes that are caching DO collections and
36747 keeping refs to those, thanks to Chris Toshok for the pattern to
36750 2007-06-15 Chris Toshok <toshok@ximian.com>
36752 * media.cpp (Image::render): use the uielement's opacity when
36753 painting. Fixes the DrPopperSilverlight Bubble.xaml file.
36755 2007-06-15 Miguel de Icaza <miguel@novell.com>
36757 * runtime.cpp (UIElement): The problem was that:
36759 The ~UIElement destructor was setting the collection
36760 properties to NULL in an attempt to unref stuff (these
36761 are now automatically unrefed).
36763 This caused the hash table destructor to unref the values
36764 that were held in the collection.
36766 At a later point, since "triggers" was cached and
36767 OnPropertyNotify was called, we attempted to unref the
36768 value, but that cached value pointed to an object that had
36769 already been released.
36771 * Everywhere: remove duplicated code that got copy/pasted
36772 everywhere for tracking collections and caching values.
36774 This should help fixing the crashing problem, but I still need to
36775 review the rules for reference counting and keeping a cache of
36776 variables in instance fields.
36778 2007-06-15 Jeffrey Stedfast <fejj@novell.com>
36780 * text.cpp (Draw): Now renders inlines.
36782 2007-06-15 Chris Toshok <toshok@ximian.com>
36784 * Makefile.am (EXTRA_DIST): add alpha-premul-table.inc from
36787 * demo.cpp: notify the downloader of the image file size so that
36788 it'll generate a COMPLETED event for the Image.
36790 * media.h, media.cpp: make image downloading non-progressive (we
36791 only create the surface when the downloader notifies the download
36792 is complete), but gain something in return: images with alpha
36795 * downloader.h, downloader.cpp: add closure to event_notify, and
36796 expose the Event kind.
36798 2007-06-15 Miguel de Icaza <miguel@novell.com>
36800 * runtime.cpp (UIElement, Canvas): send events to the objects as
36801 well. My original test on orcas was buggy.
36803 2007-06-15 Sebastien Pouliot <sebastien@ximian.com>
36805 * runtime.cpp|h, type.cpp, value.cpp|h: Add Control.
36807 2007-06-15 Jeffrey Stedfast <fejj@novell.com>
36809 * xaml.cpp (dependency_object_add_child): If the col_v collection
36810 value is NULL, create a new collection and add it to the
36813 * runtime.cpp: Added a generic collection_new() function which
36814 takes a Value::Kind to specificy which collection-type it should
36817 2007-06-15 Miguel de Icaza <miguel@novell.com>
36819 * downloader.cpp: Implement DownloadProgress property and event
36822 * runtime.h (DependencyObject::Is): new method, similar to C# is.
36824 * runtime.cpp (surface_repaint): We clear the background here
36825 again, to allow canvases to have transparent brushes.
36827 2007-06-15 Sebastien Pouliot <sebastien@ximian.com>
36829 * runtime.cpp: Panel.Background is NULL by default, which means it's
36830 transparent. This fixes Canvas inside Canvas.
36832 2007-06-15 Jackson Harper <jackson@ximian.com>
36834 * runtime.cpp|h: Implement some Inlines stuff that the parser will
36836 * xaml.cpp: Add some of the pieces for creating textblock inlines.
36837 - Added some TODO areas for creating late bound collections (maybe
36838 this should just be illegal??).
36840 2007-06-15 Jeffrey Stedfast <fejj@novell.com>
36842 * text.cpp: Have inlines cache their PangoFontDescription and
36843 added logic to render textblock inlines.
36845 2007-06-15 Alan McGovern <amcgovern@novell.com>
36847 * runtime.cpp|h: Added DependencyProperty.NameProperty
36849 2007-06-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
36851 * transform.cpp|h: Add Transform C constructor.
36852 * runtime.cpp: Better warning message.
36854 2007-06-15 Miguel de Icaza <miguel@novell.com>
36856 * runtime.cpp (surface_attach): Only hook up the events when we
36857 get a toplevel attached.
36859 * downloader.h: Drop the C++ API with a C proxy API, switch to a
36860 pure C API as we need this from the managed side anyways.
36862 * downloader.h: Move downloader defs into .h file
36864 Add a notification system for reporting the size of a stream, so
36865 we can do progress indication.
36867 * downloader.cpp: Move downloader to its own file.
36869 2007-06-15 Sebastien Pouliot <sebastien@ximian.com>
36871 * brush.cpp: Implement ImageBrush.Opacity like MS does it in 1.1 alpha
36872 (i.e. Brush.Opacity isn't considered, only UIElement.Opacity is)
36873 * geometry.cpp: PathFigure::IsFilledProperty is ignored in Mix and
36874 will be removed in 1.0.
36875 * media.cpp|h: Make Image aware of ImageBrush (so we can update too)
36876 * runtime.cpp|h: Move calculation of "total" opacity of UIElement at
36879 2007-06-15 Jeffrey Stedfast <fejj@gnome.org>
36881 * text.cpp (text_init): Set more default values.
36883 * runtime.cpp (Panel::OnPropertyChanged): Free children->list (as
36884 we iterate thru them) and set the resulting list to NULL (in case
36885 we don't hold the last ref) before unreffing the children object
36886 (in case we do own the last ref).
36887 (EventTrigger::OnPropertyChanged): Same.
36888 (UIElement::OnPropertyChanged): Same.
36890 * transform.cpp (OnPropertyChanged): Same.
36892 * geometry.cpp (GeometryGroup::OnPropertyChanged): Same.
36893 (PathGeometry::OnPropertyChanged): Same
36894 (PathFigure::OnPropertyChanged): Same.
36896 * clock.cpp (TimelineGroup::OnPropertyChanged): Same.
36899 (DoubleAnimationUsingKeyFrames::OnPropertyChanged): Same.
36900 (ColorAnimationUsingKeyFrames::OnPropertyChanged): Same.
36901 (PointAnimationUsingKeyFrames::OnPropertyChanged): Same.
36903 2007-06-15 Sebastien Pouliot <sebastien@ximian.com>
36905 * brush.cpp: Complete ImageBrush.Transform
36906 * shape.cpp: Please at least one side of the lines.
36908 2007-06-15 Jeffrey Stedfast <fejj@gnome.org>
36910 * text.cpp (text_init): No longer should ref the foreground brush
36913 * xaml.cpp: Added support for Runs/LineBreaks
36915 * text.cpp: Implemented Run/LineBreak classes.
36916 (inline_new): Removed (can't instantiate this class).
36918 2007-06-15 Miguel de Icaza <miguel@novell.com>
36920 * runtime.cpp (~DependencyObject, free_value): unref all the
36921 values that are stored in the object on destruction
36923 * runtime.cpp: Add support for enter/leave events.
36925 2007-06-14 Jeffrey Stedfast <fejj@gnome.org>
36927 * text.cpp (getbounds): Set the actual width/height values to keep
36930 2007-06-14 Jeffrey Stedfast <fejj@gnome.org>
36932 * text.cpp (getbounds): Revert prior change.
36933 (getxformorigin): Same.
36935 * shape.cpp (getbounds): Revert prior change.
36937 * ffvideo.cpp (getbounds): Revert prior change.
36939 * runtime.cpp (update_xform): Revert my last change.
36940 (item_update_bounds): Same.
36942 2007-06-14 Jackson Harper <jackson@ximian.com>
36944 * xaml.cpp: Set content properties when adding child elements. We
36945 now no longer need to special case any elements except panel.
36947 2007-06-14 Jackson Harper <jackson@ximian.com>
36949 * xaml.cpp: I must have been very tired when I wrote that.
36951 2007-06-14 Sebastien Pouliot <sebastien@ximian.com>
36953 * media.h: Expose Image's Height and Width (required for ImageBrush)
36954 * brush.cpp: Implement all Strech and Alignment[X|Y] options. Nothing
36955 (yet) force an update of the drawing once the image is available.
36957 2007-06-14 Jeffrey Stedfast <fejj@gnome.org>
36959 * demo.cpp: Updated s/textblock/text_block/g
36961 * xaml.cpp: Don't register TextBlock twice.
36963 * ffvideo.cpp (getbounds): Can now depend on surface being set.
36965 * text.cpp: s/textblock/text_block/g
36966 (getbounds): Can now depend on surface being set.
36967 (getxformorigin): Same.
36969 * shape.cpp (getbounds): Can now depend on surface being set.
36971 * runtime.cpp (item_update_bounds): Don't update bounds if the
36972 surface hasn't been set yet.
36973 (update_xform): Same.
36975 2007-06-14 Jackson Harper <jackson@ximian.com>
36977 * xaml.cpp: Add keyspline parsing.
36979 2007-06-14 Jackson Harper <jackson@ximian.com>
36981 * value.h: This guy doesn't exist anymore, he is a
36982 DependencyObject now.
36984 2007-06-14 Jackson Harper <jackson@ximian.com>
36987 * runtime.cpp|h: We also need to update the DependencyObject when
36988 resolving PropertyPaths.
36990 2007-06-14 Jackson Harper <jackson@ximian.com>
36992 * runtime.cpp|h: New function that follows PropertyPath's to
36993 DependencyProperties.
36994 * animation.cpp: Use new function to resolve animation target
36997 2007-06-14 Jackson Harper <jackson@ximian.com>
36999 * runtime.cpp (GetDependencyProperty): If there is no table for a
37000 property, we still need to lookup the property in the parent
37001 chain (assumming inherit is true).
37002 - Fix some typos with types_by_name
37004 2007-06-14 Jeffrey Stedfast <fejj@novell.com>
37006 * demo.cpp (main): Rotate our demo text inside a filled rectangle
37007 around the center of the text.
37009 * text.cpp (TextBlock.ctor): Initialise a cached
37010 PangoFontDescription that we will update when properties change.
37011 (TextBlock.dtor): Free our font/layout.
37012 (getbounds): Implemented correctly.
37013 (getxformorigin): Implemented.
37014 (Draw): Simplified since we don't need to create our layout/font
37015 anymore (just use the cached ones).
37016 (OnPropertyChanged): Implemented.
37018 2007-06-14 Miguel de Icaza <miguel@novell.com>
37020 * brush.cpp (Brush, SolidColorBrush, LinearGradientBrush,
37021 RadialGradientBrush): Notify owners when changes happen in the
37024 This makes the demo test-color-animation.xaml work without fps.
37026 * runtime.cpp: Make Canvas use the Background property to render
37029 2007-06-14 Chris Toshok <toshok@ximian.com>
37031 * demo.cpp (main): create a namescope to attach to the canvas, and
37032 also make sure to add the storyboard to the tree someplace so that
37033 it can find the names of things.
37035 * xaml.cpp: create a namescope to attach to the top_element.
37037 * runtime.cpp (FindName): rework this to walk up the tree. Drop
37038 the global namescope.
37040 2007-06-14 Sebastien Pouliot <sebastien@ximian.com>
37042 * brush.cpp|h: Add ImageBrush functions, which delegates most of its
37043 work to Image (downloader).
37044 * media.cpp|h: Expose the cairo_surface_t that contains the image.
37046 2007-06-14 Chris Toshok <toshok@ximian.com>
37048 * demo.cpp (FileDownloadState::AsyncFillBuffer): increase buffer
37049 size from 1024 to 8192 (and make it an instance instead of stack
37050 variable). Also, add a return statement that will cause the idle
37051 handler to no longer be called when we get a write of 0 length.
37052 This might be wrong in the long term.
37054 * media.cpp, media.h: add cleanup methods for the Image class, and
37055 add a dtor as well.
37057 2007-06-14 Chris Toshok <toshok@ximian.com>
37059 * media.cpp (LoaderSizePrepared): fill in the initial state of the
37060 image to gray with black border.
37061 (LoaderAreaUpdated): invalidate the item.
37063 * media.h: fix the progressive image loading.
37065 2007-06-14 Chris Toshok <toshok@ximian.com>
37067 * demo.cpp: use the MediaBase::SourceProperty to set the image's
37070 * media.h, media.cpp: add Image::OnPropertyChanged so we can watch
37071 for changes in MediaBase::SourceProperty and kick off the download
37072 and stop the currently running one.
37074 2007-06-14 Chris Toshok <toshok@ximian.com>
37076 * demo.cpp: track downloader api change.
37078 * media.cpp: track downloader api change.
37080 * runtime.h, runtime.cpp: the downloader's write function needs an
37081 offset as well as a length to work with mozilla's streaming api.
37083 2007-06-14 Jeffrey Stedfast <fejj@novell.com>
37085 * demo.cpp (main): Draw some text
37087 * text.cpp (text_init): Set a default solid black brush for
37088 foreground properties on Inline/TextBlock objects.
37089 (Draw): Setup the Brush stuff before drawing.
37091 2007-06-14 Jackson Harper <jackson@ximian.com>
37093 * xaml.cpp: Add support for loading all implemented (and semi
37094 implemented) dependency object types.
37095 * text.cpp|h: C style constructors.
37097 2007-06-14 Chris Toshok <toshok@ximian.com>
37099 * animation.cpp (KeySpline): default should be 1,1 for
37102 2007-06-14 Sebastien Pouliot <sebastien@ximian.com>
37104 * xaml.cpp: Add support for Matrix (non-DO) type.
37106 2007-06-14 Chris Toshok <toshok@ximian.com>
37108 * runtime.cpp (downloader_write): add C-style downloader_write
37109 method so we can call into it from the binding.
37111 2007-06-14 Chris Toshok <toshok@ximian.com>
37113 * value.cpp, animation.h, type.cpp, value.h, runtime.cpp,
37114 type.cpp.in, value.h.in: make KeySpline subclass from
37115 DependencyObject like it should, and fix resulting fallout.
37117 2007-06-14 Miguel de Icaza <miguel@novell.com>
37119 * runtime.cpp (Canvas): Implement OnChildPropertyChanged so we can
37120 catch cases of Top/Left being set on a child, this makes changes
37121 to the object after it has been created (adding/removing the
37124 2007-06-14 Sebastien Pouliot <sebastien@ximian.com>
37126 * brush.cpp|h: Much closer results for RadialGradients (but I still
37127 have a test case that fails). Also added Transform support for
37130 2007-06-14 Jackson Harper <jackson@ximian.com>
37132 * animation.h: C style constructors.
37133 * clock.cpp|h: C style constructors.
37134 * runtime.cpp|h: Follow proper naming convention for
37135 TimelineMarker C style constructors.
37137 2007-06-14 Chris Toshok <toshok@ximian.com>
37139 * runtime.h, runtime.cpp: remove the hack UnmanagedDownloader from
37140 here, and made Downloader pluggable with a set of functions.
37142 * demo.cpp: use the pluggable nature of Downloader to put
37143 UnmanagedDownloader here (and call it FileDownloadState).
37145 * value.cpp, value.h, type.cpp: resync.
37147 2007-06-14 Jeffrey Stedfast <fejj@novell.com>
37149 * text.cpp: Fixed Brush accessors for the NULL case.
37151 * media.cpp: Fixed accessors that could return NULL
37152 (media_init): init MediaBase and MediaElement items.
37154 2007-06-14 Jackson Harper <jackson@ximian.com>
37156 * animation.cpp: C style constructor.
37157 * media.cpp|h: Add some C style constructors.
37158 * xaml.cpp: Add parsing hooks for new components.
37160 2007-06-14 Chris Toshok <toshok@ximian.com>
37162 * demo.cpp: make one of the videos an image instead.
37164 2007-06-14 Jeffrey Stedfast <fejj@novell.com>
37166 * xaml.cpp: Fixed the font_widths and font_stretches maps to
37167 reflect the numeric enum values defined in text.h (and msdn docs).
37169 * text.h: Sync enum values to documented numeric values.
37171 2007-06-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
37173 * transform.cpp|h, media.cpp|h, brush.cpp|h, runtime.cpp|h:
37174 Make all classes that inherit from DO constructable, and add
37175 missing C-style constructors.
37177 2007-06-14 Jackson Harper <jackson@ximian.com>
37179 * runtime.cpp|h: Hookup the resource collection.
37180 * xaml.cpp: Parse resource collections.
37182 2007-06-14 Chris Toshok <toshok@ximian.com>
37184 * type.cpp, value.h, type.h: resync these.
37186 * media.h, media.cpp: add naive Image class.
37188 * runtime.h, runtime.cpp: add some Downloader methods, and
37189 subclass Downloader with a *very* hackish UnmanagedDownloader
37190 class that just loads from files. Also add a "write_func"
37191 callback that the downloader can call when it has new data to hand
37194 2007-06-14 Chris Toshok <toshok@ximian.com>
37196 * animation.cpp: import an arc length calculator I found on the
37197 net (at http://steve.hollasch.net/cgindex/curves/cbezarclen.html)
37198 and use that for KeySpline::GetSplineProgress. The results don't
37199 match MS's exactly, though.
37201 2007-06-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
37203 * geometry.cpp, geometry.h: Add collection constructors.
37204 * brush.cpp, brush.h: Add ImageBrush and VideoBrush DPs.
37205 * runtime.cpp|runtime.h: Implement collection add/remove methods.
37206 Add Downloader DPs.
37207 * media.cpp: Add MediaAttribute DP.
37209 2007-06-14 Sebastien Pouliot <sebastien@ximian.com>
37211 * brush.cpp|h: Refactor Opacity to make it reusable to other brushes
37212 (as it cannot be globally applied). Added DP, and related functions,
37215 2007-06-14 Miguel de Icaza <miguel@novell.com>
37217 * Improve the destruction scenario to release the resources that
37218 we have acquired, we are now up to the point of stopping clocks
37219 properly, but more work is going to be needed in the long term to
37220 properly track refs and objects.
37222 Ensured that all virtual GetObjectType are flagged with virtual.
37224 * Makefile.am: Put runtime.cpp at the top, to improve
37225 compile/test cycle.
37227 2007-06-14 Sebastien Pouliot <sebastien@ximian.com>
37229 * brush.cpp|h: One step closer for RadialGradientBrush
37230 * geometry.cpp: Fix ArcSegment sweep direction. All chess pieces now
37231 render (shape-wise) correctly.
37232 * shape.cpp: Draw before setting the brush. This allows the brush
37233 setting code to ask for the extents to stroke/fill.
37235 2007-06-13 Chris Toshok <toshok@ximian.com>
37237 * animation.cpp (KeySpline::GetSplineProgress): reimplement this
37238 to return a percentage of the arc length of the bezier that is
37239 traversed when t = linearProgress, taking the algorithm from
37240 http://steve.hollasch.net/cgindex/curves/cbezarclen.html
37242 2007-06-13 Chris Toshok <toshok@ximian.com>
37244 * brush.h, geometry.h, animation.h, clock.h: add GetElementType
37245 collection overloads.
37247 * type.cpp: resync to track UIElement : Visual relationship.
37249 * runtime.h: add Collection::GetElementType, and add overloads
37250 (some commented out) for the collections listed. Also, fix
37251 UIElement's superclass to be Visual.
37253 * runtime.cpp (Add): make sure we're only adding subclasses of our
37256 2007-06-13 Chris Toshok <toshok@ximian.com>
37258 * clock.cpp (AddChild): just pass the child, unwrapped.
37260 * runtime.h: remove the Value* overloads for Collection::Add and
37261 Collection::Remove.
37263 * xaml.cpp (dependency_object_add_child): just pass the dependency
37266 2007-06-13 Jeffrey Stedfast <fejj@novell.com>
37268 * text.cpp: Implemented a ton of stuff...
37269 (text_init): Added.
37271 * runtime.cpp (runtime_init): Call text_init().
37273 2007-06-13 Miguel de Icaza <miguel@novell.com>
37275 * runtime.h (Collection): Since it seems that everything we have
37276 so far are collections of dependency objects, the code is now
37277 simplified and will also take refs and remove refs on destruction.
37279 The only reason to implement the Add/Remove methods is if you must
37280 do something as a hook during add/remove
37282 * runtime.cpp (SetValue): Enable NULLs to be set on Dependency
37285 (OnPropertyChanged): Allow the value to be NULL, cope with that,
37286 we use this to clear all of our objects.
37288 2007-06-13 Chris Toshok <toshok@ximian.com>
37290 * xaml.cpp (xaml_create_from_str): make the from_str a little
37291 closer to from_file. fixes hooking up names when loading from
37294 2007-06-13 Chris Toshok <toshok@ximian.com>
37296 * runtime.cpp (runtime_init): start the time manager here.
37298 * demo.cpp (main): instead of here.
37300 2007-06-13 Jackson Harper <jackson@ximian.com>
37302 * xaml.cpp: Gracefull handling of error conditions. Being
37303 intentionally non strict about some things while we are
37304 developing (like unknown elements, and attributes, and missing
37307 2007-06-13 Sebastien Pouliot <sebastien@ximian.com>
37309 * brush.cpp: Better, but still imperfect, RadialGradientBrush
37311 2007-06-13 Jackson Harper <jackson@ximian.com>
37313 * runtime.h: Add some of the error event handler args, so i can
37314 use these in the parser.
37316 2007-06-13 Jeffrey Stedfast <fejj@novell.com>
37318 * brush.cpp (OnPropertyChanged): Free list nodes as we iterate
37319 (soptimsation, woot).
37321 * text.cpp: Implemented c wrappers for Inline
37323 2007-06-13 Sebastien Pouliot <sebastien@ximian.com>
37325 * brush.cpp: Implemented LinearGradientBrush::SetupBrush
37326 * xaml.cpp: Handle GradientStops correctly (at GradientBrush) and add
37327 support for LinearGradientBrush.
37329 2007-06-13 Jeffrey Stedfast <fejj@novell.com>
37331 * text.cpp: Stubbed out TextBlock and Glyphs
37333 2007-06-13 Jackson Harper <jackson@ximian.com>
37335 * xaml.cpp: GradientBrush is a Brush.
37337 2007-06-13 Miguel de Icaza <miguel@novell.com>
37339 * runtime.cpp (dependency_object_find_name): Add new wrapper
37341 2007-06-13 Chris Toshok <toshok@ximian.com>
37343 * animation.cpp, animation.h: add public storyboard methods for
37344 begin/pause/resume/seek/stop. also start in on the spline
37345 keyframe/KeySpline stuff.
37347 * type.cpp: resync.
37349 * value.cpp: resync.
37353 * value.h.in: add keyspline stuff.
37355 * type.cpp.in: add keyspline stuff.
37357 2007-06-13 Chris Toshok <toshok@ximian.com>
37359 * demo.cpp: a few changes - none of the animations run forever
37360 now. also, add some gtk events (button press/release/motion). we
37361 pause animations on press, resume them on release.
37363 * clock.cpp: keep track of the offset caused by pausing/resuming
37364 the clock from our parent's time.
37366 * animation.cpp: split out all the logic for finding the current
37367 (and previous) keyframes into
37368 KeyFrameCollection::GetKeyFrameForTime. Also, make the key frame
37369 collection maintain a separate sorted list of keyframes.
37371 2007-06-13 Jeffrey Stedfast <fejj@novell.com>
37373 * media.cpp (media_base_get_source): Implemented; use char*
37374 instead of Uri - we'll make the binding convert between the types.
37375 (media_base_set_source): Same.
37377 2007-06-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
37379 * runtime.cpp: Xlib and we are both defining Visual,
37380 so implement a workaround.
37382 2007-06-13 Sebastien Pouliot <sebastien@ximian.com>
37384 * brush.cpp|h: Added code for LinearGradientBrush and partial setup
37385 for all gradient-related brushes (needs testing). Add all color
37386 definitions supported by XAML.
37387 * mkcolor.cs: Tool to generate colors from System.Drawing (as they
37390 2007-06-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
37392 * runtime.h: Add Visual.
37393 * value.cpp, value.h, type.cpp: Updated.
37395 2007-06-13 Jeffrey Stedfast <fejj@gnome.org>
37397 * ffvideo.cpp: Back to using ALSA, but this time I got it right ;)
37399 2007-06-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
37401 * media.h: Added MediaAttribute.
37402 * runtime.h: Added Downloader.
37403 * value.cpp, value.h, type.cpp: Updated.
37404 * typegen.cs: Copy Kind.cs to the correct directory.
37406 2007-06-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
37408 * brush.cpp, brush.h, geometry.cpp: Fix property registration
37411 2007-06-13 Sebastien Pouliot <sebastien@ximian.com>
37413 * brush.cpp|h: Fix Brush::RelativeTransformProperty and
37414 Brush::RelativeTransformProperty types.
37416 2007-06-13 Sebastien Pouliot <sebastien@ximian.com>
37418 * brush.cpp|h: Complete DependencyProperties for GradientBrush and
37419 add GradientStopCollection.
37420 * runtime.cpp|h: Remove code for GradientStopCollection.
37421 * xaml.cpp: Register new brush classes.
37423 2007-06-13 Miguel de Icaza <miguel@novell.com>
37425 * runtime.cpp: Various new events are now sent.
37427 2007-06-13 Jackson Harper <jackson@ximian.com>
37429 * xaml.cpp: When using the xaml_create_from_str we automatically
37430 add the default and x: namespaces.
37432 2007-06-12 Jeffrey Stedfast <fejj@gnome.org>
37434 * ffvideo.cpp: Fixed to subclass the new MediaElement class.
37436 * video.cpp: Removed.
37438 2007-06-12 Sebastien Pouliot <sebastien@ximian.com>
37440 * brush.cpp|h: Added DependencyProperty for GradientBrush and
37441 GradiantStop. Added new brush-related enums. Add [g|s]etter functions
37442 for RadialGradient and BrushGradiantStop.
37444 2007-06-12 Jackson Harper <jackson@ximian.com>
37446 * xaml.cpp: Repsect namespaces.
37447 - Clean up code a little
37449 2007-06-12 Sebastien Pouliot <sebastien@ximian.com>
37451 * brush.h: New. Brush related stuff.
37452 * brush.cpp: DependencyProperty for RadialGradientBrush
37453 * runtime.h: [Re]move brush stuff.
37454 * shape.h: Add include for brush.h
37455 * type.cpp, value.h, value.h: Add RadialGradientBrush type.
37456 * Makefile.am: Add brush.h to the build.
37458 2007-06-12 Jeffrey Stedfast <fejj@gnome.org>
37460 * media.cpp|h: Added to the build
37462 2007-06-12 Sebastien Pouliot <sebastien@ximian.com>
37464 * transform.cpp|h: Complete MatrixTransform.
37465 * value.h, value.h.in, runtime.cpp, type.cpp, type.cpp.in: Introduce
37468 2007-06-12 Miguel de Icaza <miguel@novell.com>
37470 * runtime.h (UIElement::inside_object): new routine that should
37471 return true if the given absolute x, y is inside the given object
37474 (UIElement::handle_motion): new routine that is called when a
37475 motion event happens, it should determine if it can handle the
37476 given event at x, y.
37478 (Surface): new callbacks, these are callbacks that will pass the
37479 notification of the event to managed code.
37481 * runtime.cpp (FrameworkElement): provide a default implementation
37482 for inside object that works for "squares" (things with widths and
37485 2007-06-12 Jeffrey Stedfast <fejj@novell.com>
37487 * ffvideo.cpp: Instead of aborting when SDL_OpenAudio() fails,
37488 simply disable audio for that video. Temporary hack.
37490 2007-06-12 Sebastien Pouliot <sebastien@ximian.com>
37492 * transform.cpp: Fix SkewTransform with translations (Center[X|Y])
37494 2007-06-12 Jackson Harper <jackson@ximian.com>
37496 * xaml.cpp: Implement enums. This implementation is very naive,
37497 but works with the current Silverlight object model. Basically,
37498 we just index property names to enum maps. So a property name
37499 maps to a single enum type regardless of the type the enum is
37500 declared in. This works fine with the current silverlight object
37501 model, but in the future might need to be changed, if we get
37502 conflicting property names.
37504 2007-06-12 Jeffrey Stedfast <fejj@novell.com>
37506 * ffvideo.cpp: Fixed sound playback to not get that nasty
37507 reverb-like effect. Also switched to using SDL for audio.
37509 2007-06-12 Sebastien Pouliot <sebastien@ximian.com>
37511 * transform.cpp|h: Implement SkewTransform.
37512 * type.cpp: Register new type SkewTransform.
37513 * value.cpp|h: Add SkewTransform.
37514 * xaml.cpp: Register DO for SkewTransform.
37516 2007-06-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
37518 * runtime.cpp, runtime.h: Make DependencyObject::ParentProperty
37521 2007-06-12 Jackson Harper <jackson@ximian.com>
37523 * xaml.cpp: Don't try to add properties to the panel.
37525 2007-06-12 Sebastien Pouliot <sebastien@ximian.com>
37527 * geometry.cpp: Implemented ArcSegment::Draw using librsvg code
37528 * rsvg.cpp|h: New. Code from LGPL librsvg to implement arc_to
37529 * Makefile.am: Add rsvg.cpp|h to the build.
37531 2007-06-12 Jackson Harper <jackson@ximian.com>
37533 * xaml.cpp: Add parser for KeyTime structures.
37535 2007-06-12 Chris Toshok <toshok@ximian.com>
37538 (ColorAnimationUsingKeyFrames::GetNaturalDurationCore): implement.
37539 (PointAnimationUsingKeyFrames::GetNaturalDurationCore): implement.
37540 (animation_init): make sure to initialize
37541 ColorKeyFrame::ValueProperty.
37543 * clock.cpp (Timeline::GetNaturalDuration): comment out some spew.
37545 2007-06-12 Jackson Harper <jackson@ximian.com>
37547 * animation.cpp|h: C style constructor for KeyFrameCollection.
37548 * xaml.cpp: Implement the KeyFrame types
37549 - Make the base types ghosts, despite what the docs say, they
37552 2007-06-12 Miguel de Icaza <miguel@novell.com>
37554 * runtime.cpp (NotifyParentOfPropertyChange): Stop propagating
37555 when we have reached someone that handles that property in the way
37558 2007-06-12 Jackson Harper <jackson@ximian.com>
37560 * xaml.cpp: Register the TriggerCollection so that
37561 TriggerCollections can be created using the explicit syntax.
37563 2007-06-12 Jackson Harper <jackson@ximian.com>
37565 * xaml.cpp: No longer need to special case EventTriggers. Remove
37566 some dead code (yippie!)
37567 * runtime.cpp: Unregister the target when removing from the
37570 2007-06-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
37572 * runtime.h: Implement Inlines.
37573 * value.cpp, value.h, type.cpp: Updated.
37575 2007-06-12 Jackson Harper <jackson@ximian.com>
37577 * runtime.cpp|h: Hook up the UIElement::Triggers and
37578 EventTrigger::Actions/RoutedEvent properly.
37579 * xaml.cpp: Remove some of the special casing for event triggers
37580 now that they are proper DependencyProperties.
37582 2007-06-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
37584 * typegen.cs: Now checks if classes that inherits DependencyObject
37585 implement GetObjectType.
37586 * animation.h, runtime.h, text.h, geometry.h, shape.h: Implement
37587 missing GetObjectTypes and fix a few that were returning the wrong
37590 2007-06-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
37593 - (DependencyObject::SetValue): Allow assigning an object of a
37594 more derived type than the defined property type. Change the
37595 attached_list code to handle NULL dependency_objects.
37596 - Delete types_init, it's generated now.
37597 - Delete Value:As[DependencyObjects], its generated now.
37598 * runtime.h: Added definitions for a few missing collection classes.
37599 * types.cpp[.in], value.cpp[.in], value.h.in: Added.
37601 * Makefile.am: Add types.cpp and value.cpp
37602 * typegen.cs, typegen.cs: Added, generates types.cpp, value.cpp,
37603 value.h and Kind.cs from the headers.
37605 2007-06-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
37607 * runtime.cpp, runtime.h: (DO/DP) Make all char*'s const.
37609 2007-06-12 Chris Toshok <toshok@ximian.com>
37611 * clock.h, clock.cpp, runtime.cpp, value.h: use a
37612 TimelineCollection to store child collections in TimelineGroup.
37614 2007-06-12 Chris Toshok <toshok@ximian.com>
37616 * animation.h, animation.cpp (animation_init): remove the
37617 clock.cpp property registration.
37618 (DoubleAnimationUsingKeyFrames::GetNaturalDurationCore): initial
37619 attempt, calculate our timespan from our key frames.
37620 (Animation::GetNaturalDurationCore): return a 1 second duration,
37622 (UpdatePropertyValue): plug leak.
37624 * runtime.cpp (runtime_init): call clock_init.
37626 * clock.h, clock.cpp: largish pass at implementing support for
37627 Duration::Automatic in ClockGroups (where they query their child
37628 timelines to see how long they should make themselves). Also, add
37631 * xaml.cpp (timespan_from_str): correct math.
37633 2007-06-12 Jackson Harper <jackson@ximian.com>
37635 * xaml.cpp: Add a couple more of the animation elements.
37637 2007-06-12 Jackson Harper <jackson@ximian.com>
37639 * runtime.cpp|h: There is no public Triggers property.
37641 2007-06-12 Miguel de Icaza <miguel@novell.com>
37643 * runtime.cpp (DependencyObject::RegisterFull): Allow for
37644 properties to be flagged as attached, and only propagate the child
37645 notification to those those that care about it.
37647 2007-06-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
37649 * Implement a mechanism to keep track of parents and notify
37650 parents of changes in attached properties.
37652 2007-06-11 Jackson Harper <jackson@ximian.com>
37654 * xaml.cpp: Add content properties, and handle collections that
37655 are content properties, by implicitly adding items to the
37658 2007-06-11 Sebastien Pouliot <sebastien@ximian.com>
37660 * runtime.cpp: Remove matrix initialization (to avoid double-inits in
37662 * transform.cpp: Add matrix initialization in TransformGroup::
37663 GetTransform. Makes the API safer :)
37665 2007-06-11 Sebastien Pouliot <sebastien@ximian.com>
37667 * geometry.cpp: Implemented [Ploy]QuadraticBezierSegment::Draw.
37669 2007-06-11 Sebastien Pouliot <sebastien@ximian.com>
37671 * geometry.cpp|h: Add drawing of [Poly]LinesSegment and
37672 [Poly]BezierSegment. More than half of Sam Ruby's samples can work
37675 2007-06-11 Jeffrey Stedfast <fejj@novell.com>
37677 * ffvideo.cpp: Attempt to get video to be in sync with audio by
37678 using the audio pts as the target_pts.
37680 2007-06-11 Jackson Harper <jackson@ximian.com>
37682 * runtime.cpp: Register the collection types as derived from
37685 2007-06-11 Chris Toshok <toshok@ximian.com>
37687 * xaml.cpp (timespan_from_str): fix reading off the end of digits
37690 2007-06-11 Jackson Harper <jackson@ximian.com>
37692 * xaml.cpp: Implement some more collection loading. A lot of
37693 duplicate code here, so I should probably refactor things a bit,
37694 but will wait until I've seen how more collections are laid out.
37696 2007-06-11 Chris Toshok <toshok@ximian.com>
37698 * animation.h, animation.cpp: use KeyFrameCollection's for the
37699 *AnimationUsingKeyFrames key frame stuff, instead of GLists.
37701 * value.h, runtime.cpp: add Value::AsKeyFrameCollection.
37703 2007-06-11 Jackson Harper <jackson@ximian.com>
37705 * xaml.cpp: Make the parents of collections the Collection ghost
37706 element. This is a first step in cleaning up collection creation
37709 2007-06-11 Sebastien Pouliot <sebastien@ximian.com>
37711 * transform.cpp: remove dead code.
37712 * xaml.cpp: Partial collection support for geometry.
37714 2007-06-11 Sebastien Pouliot <sebastien@ximian.com>
37716 * transform.cpp: Multiply each matrix in a TransformGroup (fix the
37717 open-clipart sample, at least the correct parts of the sample).
37718 * runtime.cpp: Always initialize the matrix in item_get_render_affine
37719 otherwise we'll end up with bad random results.
37721 2007-06-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
37723 * runtime.h, runtime.cpp: (DependencyObject) Add SetValue/GetValue
37724 overloads that takes strings as well as DP, GetDependencyProperty where
37725 it's possible to specify whether the parent type is searched for the
37726 property or not, and a HasProperty method
37728 2007-06-10 Sebastien Pouliot <sebastien@ximian.com>
37730 * geometry.cpp|h: Fix function names wrt type.
37731 * shape.cpp: Detect RenderTransform and RenderTransformOrigin changes
37732 and call update_xform. This fix the "atom" sample :)
37733 * transform.cpp: Fix Rotate and Scale around a center point.
37735 2007-06-10 Sebastien Pouliot <sebastien@ximian.com>
37737 * geometry.cpp: Add more precision to types.
37738 * runtime.cpp: Apply Canvas' RenderTransform and RenderTransformOrigin
37740 2007-06-10 Sebastien Pouliot <sebastien@ximian.com>
37742 * brush.cpp: Implement Opacity for SolidColorBrush.
37743 * runtime.cpp|h: Add an UIElement parameter to SetupBrush so we can
37744 access it's properties (e.g. Opacity in this case). Add uielement_
37745 [g|s]et_opacity functions.
37746 * shape.cpp: Supply the UIElement when setting up brushes.
37748 2007-06-10 Sebastien Pouliot <sebastien@ximian.com>
37750 * shape.cpp: Fix rounded rectangle when radius_[x|y] are larger than
37751 half the width|height.
37753 2007-06-10 Miguel de Icaza <miguel@novell.com>
37755 * shape.cpp (OnPropertyChanged): Implement this property for most
37756 shapes: if the property is set, we need to invalidate and
37759 * runtime.h (FullInvalidate): A method to perform a queue to
37760 redraw the underlying region, update the bounds and queue an
37761 update for the new region.
37763 * runtime.h (Base): make destructor virtual so that base_unref can
37764 call delete (Base *) p. Exposed by the managed code when the
37765 first base_unref ran for the first time :-)
37769 * runtime.cpp (surface_attach): invalidate the areas before and
37770 after, compute the bounds using item_update_bounds, not the
37771 getbounds method directly.
37773 2007-06-10 Sebastien Pouliot <sebastien@ximian.com>
37775 * xaml.cpp: Add PathFigure[Collection]/Segments support.
37777 2007-06-10 Sebastien Pouliot <sebastien@ximian.com>
37779 * brush.cpp: Fix Green definition, like GDI+ MS use a dark (0x80)
37780 green unlike other basic colors (red/blue at 0xFF).
37781 * xaml.cpp: Don't assert on an empty collection.
37783 2007-06-10 Miguel de Icaza <miguel@novell.com>
37785 * runtime.cpp, runtime.h (BasicArray): New base struct for
37786 PointArray and double array, puts the count field at the beginning
37787 and avoids an extra block to be allocated (count and values are
37788 now on a single contiguous block).
37790 Introduce a refcount for the arrays, so that we can release those
37791 properly. Due to the nature of how we copied values before we
37792 had to leak the values, when the leak was plugged, we crashed.
37794 The refcount is there just because it was easy, we could clone if
37795 we wanted, but also I would like to keep the refcount there to
37796 ensure that the array of doubles is aligned on an 8 byte
37799 (double_array_new, point_array_new): New methods to create the
37802 (Value): Now free the arrays.
37805 2007-06-09 Sebastien Pouliot <sebastien@ximian.com>
37807 * geometry.cpp|h: Add/complete PathFigureCollection and
37808 PathSegmentCollection. Doesn't parse from xaml.
37809 * runtime.cpp, value.h: Add support for new classes.
37811 2007-06-09 Sebastien Pouliot <sebastien@ximian.com>
37813 * geometry.cpp|h: Complete GeometryGroup with GeometryCollection.
37814 But color rending is not yet correct in demo files.
37815 * runtime.cpp, value.h: Add support for GeometryCollection
37816 * xaml.cpp: Add support for GeometryGroup
37818 2007-06-09 Chris Toshok <toshok@ximian.com>
37820 * animation.h, animation.cpp, value.h, runtime.cpp: add
37821 ColorKeyFrame and it's linear/discrete subclasses, as well as
37822 ColorAnimationUsingKeyFrames.
37824 2007-06-09 Chris Toshok <toshok@ximian.com>
37826 * animation.h, animation.cpp, value.h, runtime.cpp: add the
37827 Discrete keyframes for point and double.
37829 2007-06-09 Chris Toshok <toshok@ximian.com>
37831 * genkindcs.sh: new file, a script to generate
37832 olive/class/agclr/Mono/Kind.cs.
37834 * value.h: add marker comments so that genkindcs.sh works. Also,
37835 remove the explicit value assignments to enum elements <
37836 DEPENDENCY_OBJECT. there's no need for it.
37838 2007-06-09 Chris Toshok <toshok@ximian.com>
37840 * demo.cpp (main): add in another animation, this one using
37841 keyframes, that moves a square around in a square, while animating
37842 its background color the same way as the other rectangles.
37844 * value.h, runtime.cpp: add in the keyframe types.
37846 * runtime.cpp (DependencyObject::DependenceyObject): fix a
37847 valgrind error - we shouldn't be "free"ing Values, since they're
37848 "new"ed. Add free_value and use that for the hash table value
37849 dtor, and delete them correctly.
37851 * animation.h, animation.cpp: add a lot of the keyframe animation
37852 stuff. DoubleAnimationUsingKeyFrames + LinearDoubleKeyFrame is
37853 the only tested configuration, though.
37855 * clock.cpp (everywhere): guint64->TimeSpan fixing.
37856 (TimeUpdated): turns out that not only does the progress go from
37857 1.0 to 0.0 when reversed, but current_time actually goes backward
37858 as well. this has the nice effect of actually simplifying this
37859 method substantially, since we can always compute progress as
37862 * clock.h: typedef TimeSpan to gint64 (switching from guint64
37863 everywhere), and update the api to use this.
37865 2007-06-09 Miguel de Icaza <miguel@novell.com>
37867 * runtime.h (value_color_from_argb): Temporary hack until we
37868 figure out how to marshal Colors properly, we are using the uint32
37869 constructor, we should figure out if this is what we want, or if
37870 we should go down the route of using doubles (C++ stores thinks as
37871 Doubles our managed API as bytes).
37873 2007-06-10 Jackson Harper <jackson@ximian.com>
37875 * xaml.cpp: Handle the TransformGroup default collection.
37876 - Add Value's to the collection
37878 2007-06-09 Jackson Harper <jackson@ximian.com>
37880 * transform.cpp|h: C style constructor for TransformGroup
37881 * xaml.cpp: Implement loading transform groups and transform
37884 2007-06-09 Jackson Harper <jackson@ximian.com>
37888 * transform.cpp|h: Impplement transform groups and transform
37891 2007-06-09 Jackson Harper <jackson@ximian.com>
37894 * runtime.cpp|h: Use the new collection classes for triggers and
37895 actions. These are unsettable, so don't register them as
37896 DependencyProperties.
37898 2007-06-08 Everaldo Canuto <ecanuto@novell.com>
37900 * runtime.cpp: In surface_destroy check for toplevel before unref
37903 2007-06-08 Chris Toshok <toshok@ximian.com>
37905 * animation.h: remove the huge whitespace gap after KeyTime, and
37906 remove the ifdef'ed out Nullable<T> template.
37908 * animation.cpp: remove the unused point_animation C api, and use
37909 the overloaded + operator on Color and Point when initializing
37910 "end" in GetCurrentValue for those animations. They're looking
37911 more and more similar.
37913 2007-06-08 Chris Toshok <toshok@ximian.com>
37915 * globally: move away from all uses of Value::u union. switch
37916 everything to using Value::As* methods, which do typechecking and
37919 * value.h: make the union private to catch anyone accessing it
37922 * runtime.cpp (IsSubclassOf): return true if type == super. Not
37923 strictly "subclass", but it makes this method a little more
37924 useful/efficient. Add As* methods for string, point arrays, and
37925 double arrays, and add nullable As* methods for the types which
37926 don't return pointers already.
37928 2007-06-09 Jackson Harper <jackson@ximian.com>
37930 * xaml.cpp: Parse time spans correctly.
37932 2007-06-08 Miguel de Icaza <miguel@novell.com>
37934 * runtime.h (UIElement): Remove user_xform_origin as a field, now
37935 we pull this from the DependencyObject as it should be.
37937 * runtime.cpp (UIElement::OnSubPropertyChanged): Catch a bunch of
37938 other properties that would trigger an invalidate/bounds
37941 (item_init): initialize the other properties that the managed code
37944 * shape.cpp, ffvideo.cpp: updated to use the
37945 RenderTransformOriginProperty in the computation of the center for
37946 the transformation.
37948 2007-06-08 Chris Toshok <toshok@ximian.com>
37950 * Makefile.am (libmoon_la_SOURCES): add value.h
37952 * runtime.h, value.h: move the Value structure to value.h, since
37953 it (and its required forward decls) have grown huge.
37955 * runtime.cpp: add all the Value::As* methods, yay for CPP.
37957 2007-06-08 Jeffrey Stedfast <fejj@novell.com>
37959 * ffvideo.cpp (queue_data): Replaced the sound code with my newest
37960 implementation, seems to play sound correctly now.
37962 2007-06-08 Chris Toshok <toshok@ximian.com>
37964 * clock.h, clock.cpp: move all the TimeManager/Clock/Timeline
37965 stuff here, to help relieve some of the pressure building up in
37966 animation.h/animation.cpp.
37968 2007-06-08 Chris Toshok <toshok@ximian.com>
37970 * animation.cpp: add some skeleton code for point keyframe
37971 animations, and reduce all the Double/Point/Color Animation
37972 GetCurrentValue() methods to much the same, using LERP and the
37973 operators defined in runtime.h.
37975 * runtime.cpp (types_init): register the new keyframe types.
37977 * runtime.h: add some new animation types to Value, and add
37978 operators for +, -, and * (scalar) for Color and Point to make the
37979 animation code a little more concise.
37981 * animation.h: add some new classes/structs for use in keyframe
37984 2007-06-08 Miguel de Icaza <miguel@novell.com>
37986 * runtime.cpp, runtime.h (Collection): Rework the collection to
37987 use abstract methods (gulp),
37989 (VisualCollection): New collection, derives from Collection, does
37990 the collection thing.
37992 (Panel.OnPropertyChanged): If our children collection is updated,
37993 take care of it here.
37995 (DependencyObject): use free instead of g_free as we are
37996 allocating strings with strdup.
37998 (Value): drop constructor that specified type, type is not part of
38001 * xaml.cpp, shape.cpp: Remove use of the old destructors now that we keep
38002 track of types correctly.
38004 2007-06-08 Sebastien Pouliot <sebastien@ximian.com>
38006 * brush.cpp: Fix color formats argb and rgb (too dark).
38008 2007-06-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
38010 * runtime.h, runtime.cpp: Change Value::Kind to not have any holes
38011 in the integer ranges, and change Type's type hashtable to an array
38012 of types, indexed by Value::Kind. Also add Value::COLLECTION and
38013 update Collection to use it.
38015 2007-06-08 Sebastien Pouliot <sebastien@ximian.com>
38017 * shape.cpp|h: Add Path::CanFill as it depends on the Geometry
38018 object(s) being used.
38019 * geometry.cpp|h: Implemented Poly[Line|Bezier|QuadraticBezier]Segment
38020 Points properties and some basic draw stuff too.
38022 2007-06-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
38024 * runtime.h, runtime.cpp, shape.cpp, xaml.cpp:
38025 Remove the Value (DependencyObject, Kind) constructor,
38026 the type of the DependencyObject can be obtained directly
38027 from the DependencyObject itself now, and update all uses
38028 to the Value (DependencyObject) constructor.
38030 2007-06-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
38032 * *.h, *.cpp: Remove objectType and SetObjectType from
38033 DependencyObject, make DependencyObject::GetObjectType virtual,
38034 and update all inheritors of DependencyObject to not use
38035 SetObjectType, but override GetObjectType.
38037 2007-06-08 Jackson Harper <jackson@ximian.com>
38039 * xaml.cpp: Add some type checks to ensure we are setting child
38040 properties to legal types.
38041 - explicitly set properties value types, Value now requires this.
38044 2007-06-08 Jackson Harper <jackson@ximian.com>
38046 * runtime.cpp: Initialize the surface to NULL
38047 - use UIElement as the type for flags
38049 2007-06-08 Sebastien Pouliot <sebastien@ximian.com>
38051 * shape.h: Don't waste time trying to fill lines.
38052 * shape.cpp: Fix dashes support. First reset between shapes and,
38053 second, handle cairo dislike of a single dash value of 0.0.
38055 2007-06-08 Sebastien Pouliot <sebastien@ximian.com>
38057 * shape.cpp|h: Some shapes, like polylines, don't supports Fill.
38059 2007-06-08 Sebastien Pouliot <sebastien@ximian.com>
38061 * shape.cpp|h: Implement Polygon::Points aad Polyline:Points
38062 properties as DependencyProperty. Adjust their Draw methods.
38063 * runtime.cpp: Implement point_array_from_str.
38065 2007-06-08 Sebastien Pouliot <sebastien@ximian.com>
38067 * shape.cpp|h: Add DP support for StrokeDashArray (double*).
38068 * runtime.cpp|h: Add double* and Point* (array) support to Value.
38069 * xaml.cpp: Add DOUBLE_ARRAY and POINT_ARRAY support. Supply value
38070 kind for brushes to avoid runtime warnings.
38072 2007-06-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
38074 * runtime.cpp, runtime.h: Implemented a type system that tracks
38075 types' name and parent type.
38077 2007-06-08 Miguel de Icaza <miguel@novell.com>
38079 * runtime.cpp (Panel): Make children a property of the panel so we
38080 can access it from the managed world.
38082 (Value): Add new constructor that takes a full type, need to
38083 discuss this with the team.
38085 2007-06-08 Jackson Harper <jackson@ximian.com>
38087 * animation.cpp|h: Implement BeginStoryboard
38088 * runtime.cpp|h: Implement event triggers
38089 - Fire a loaded event when we first render an element
38090 * xaml.cpp: Implement parsing and loading storyboard and begin
38091 storyboard as well as event triggers and some of the property
38092 types that go with these guys.
38094 2007-06-08 Miguel de Icaza <miguel@novell.com>
38096 * runtime.cpp (runtime_init): Add panel_init
38098 (panel_init): Register Children property (must still create the
38099 collections, that will be a new fight).
38101 2007-06-07 Miguel de Icaza <miguel@novell.com>
38103 * xaml.cpp (start_element_handler): For the top element, track the
38104 type that we loaded, so we can return this to our caller (needed
38105 for the managed interface).
38107 (XamlParserInfo): track also the Value::Kind of the top_element.
38109 (xaml_create_from_file, xaml_create_from_str): Both now can
38110 optionally return the type of the toplevel element.
38112 * runtime.cpp (Value): Switch Value to strdup/free.
38114 Use inited to prevent multiple initializations.
38116 2007-06-07 Chris Toshok <toshok@ximian.com>
38118 * demo.cpp (main): track more of the api axing.
38120 * animation.h, animation.cpp (Storyboard::Begin): return
38121 immediately if we've already got a root clock.
38122 (globally) continue axing unused C api.
38124 2007-06-07 Chris Toshok <toshok@ximian.com>
38126 * demo.cpp: track all the animation changes away from the C api,
38127 and also test out the from/by animation combination by making the
38128 X scaling only go From 1.0 By -0.5 (so it animates in the range of
38131 * animation.h, animation.cpp: lots of changes - get rid of many of
38132 the animation/timeline C api calls, since they're unnecessary for
38133 the binding. Implement the nullable property getter/setters as
38134 #defines since I didn't want to c&p all of them and make the
38135 obvious mistakes. While I'm at it, implement the thing I needed
38136 nullable typed values for - "by" animation support. Now you can
38137 specify any of the following combinations and get a usable
38138 animation: From+By, From+To, By, To. You can actually just put
38139 From as well, but it won't animate (since both start end end will
38140 be the same). The To property overrides the By property, if both
38143 * runtime.h, runtime.cpp: add an overload of
38144 DependencyProperty::SetValue which takes a Value*, to enable
38145 nullable types to be set. the existing SetValue method calls the
38146 new one with &value.
38148 2007-06-07 Sebastien Pouliot <sebastien@ximian.com>
38150 * brush.cpp: Fix comment.
38151 * shape.cpp: Reduce duplication.
38153 2007-06-07 Miguel de Icaza <miguel@novell.com>
38155 * runtime.h: Store Value.BOOL in an int32, simplifies my life.
38157 * runtime.cpp (dependency_object_set_value,
38158 dependency_object_get_value): Add C# callable method calls to
38159 control the properties.
38161 (dependency_property_lookup): Add a way of find dependency
38164 2007-06-07 Chris Toshok <toshok@ximian.com>
38166 * animation.cpp (TimeUpdated): comment out some spew.
38168 * runtime.cpp (SetValue): use the copy ctor, and fix != check for
38169 current_value and value.
38170 (Value::Value): add a copy ctor, which takes care of the g_strdup
38173 * runtime.h: add copy ctor for Value.
38175 2007-06-07 Sebastien Pouliot <sebastien@ximian.com>
38177 * brush.cpp, geometry.cpp, shape.cpp: Protect against NULL properties.
38179 2007-06-07 Sebastien Pouliot <sebastien@ximian.com>
38181 * geometry.cpp: #if-out transforms, it crash the xaml samples
38182 * runtime.h: Fix hierarchy. Panel inherits from FrameworkElement.
38184 2007-06-07 Chris Toshok <toshok@ximian.com>
38186 * animation.cpp: switch all the various linear interpolation
38187 expressions to using the LERP macro, and add the PointAnimation
38190 * animation.h: add PointAnimation.
38192 * runtime.h: add Value::POINTANIMATION.
38194 2007-06-07 Chris Toshok <toshok@ximian.com>
38196 * runtime.h (Value): add COLORANIMATION to the list of types.
38197 Also, add a Kind constructor so we can use that for nullable type
38198 default values in the ::RegisterProperty calls. That is,
38199 initializing the default to Value(Value::COLOR) gives you a null
38200 default value with the COLOR type.
38202 * runtime.cpp (Value): new Kind ctor.
38204 * animation.cpp/.h: add ColorAnimation.
38206 * demo.cpp (main): add a color animation that interpolates between
38207 Red and Blue for the SolidColorBrush.
38209 2007-06-07 Sebastien Pouliot <sebastien@ximian.com>
38211 * runtime.cpp: Restore alpha support. Don't call cairo_set_operator
38212 without a cairo_save|restore pair (or without resetting it's original
38213 value). Anyway right now it works without any of that :)
38215 2007-06-07 Jackson Harper <jackson@ximian.com>
38217 * runtime.cpp|h: add event triggers.
38218 * xaml.cpp: parse event triggers.
38220 2007-06-07 Chris Toshok <toshok@ximian.com>
38222 * animation.cpp/.h (Clock): initialize duration here.
38223 (TimeUpdated): instead of getting it every time through this
38226 2007-06-07 Chris Toshok <toshok@ximian.com>
38228 * animation.h: make Duration::FromSeconds return numbers of the
38229 same magnitude as get_now().
38231 * animation.cpp (Clock): fix UMR.
38233 2007-06-07 Jackson Harper <jackson@ximian.com>
38235 * xamp.cpp: Oops, not sure how that happened. Set the property
38236 name correctly, not to the type name.
38238 2007-06-07 Sebastien Pouliot <sebastien@ximian.com>
38240 * geometry.cpp|h: Apply transform. Fix default values.
38242 2007-06-07 Miguel de Icaza <miguel@novell.com>
38244 * animation.cpp (get_now): The time computation was wrong, there
38245 was an extra "10" in there that made all computations go astray
38246 and in particular cause the large values for ScaleY, which made
38247 getboundingbox ridiculously slow.
38249 For debugging purposes: ScaleY was being set to
38250 131472940552.95215, which came from
38251 DoubleAnimation:GetCurrentValue which was computing this value
38252 from a busted clock.
38254 2007-06-07 Sebastien Pouliot <sebastien@ximian.com>
38256 * geometry.cpp|h: Add drawing for [Ellipse|Line|Rectangle] geometry.
38257 Add basic code for the other geometry types.
38258 * runtime.cpp|h: Add basic implementation for point_from_str and
38260 * shape.h: Export some cairo helpers.
38261 * shape.cpp: Refactor drawing to reuse the code from geometry.
38262 * xaml.cpp: Add Point and Rect parsing.
38264 2007-06-07 Chris Toshok <toshok@ximian.com>
38266 * demo.cpp: make all the animation stuff work declaratively, and
38267 test some of the different repeatbehavior and autoreverse
38270 * animation.cpp: huge block of nasty code to determine our
38271 progress given the combinations of autoreverse and repeatbehavior.
38273 * animation.h: Add Duration stucture, add a few C api calls for
38274 getting/setting timeline properties.
38276 * runtime.h, runtime.cpp: add DURATION support to Value.
38278 2007-06-07 Jackson Harper <jackson@ximian.com>
38280 * runtime.cpp|h: Some pieces of the triggers framework.
38282 2007-06-07 Jackson Harper <jackson@ximian.com>
38284 * xaml.cpp: Handle repeat behaviors, lookup attached properties.
38286 2007-06-06 Chris Toshok <toshok@ximian.com>
38288 * animation.cpp, animation.h: add timeline_set_autoreverse.
38290 2007-06-06 Chris Toshok <toshok@ximian.com>
38292 * animation.h: add prototype for timeline_set_repeat_behavior.
38294 * animation.cpp (animation_init): register the RepeatBehavior
38296 (timeline_set_repeat_behavior): new function.
38298 * runtime.h: a better solution to enforcing types in the Value
38299 ctors - make Value (void*) private. this gives compilation errors
38300 at all usage points where you're passing an unrecognized pointer
38301 type. Also, add RepeatBehavior support to Value.
38303 * runtime.cpp: add repeatbehavior support to Value.
38305 * geometry.cpp: change all Value(pointer-to-struct) calls to
38306 Value(struct) calls.
38308 * transform.h: we need do define TransformGroup as a subclass of
38309 Transform, or the functions that SetValue a transformgroup fail to
38310 compile (since it's not a descendent of DependencyObject.)
38312 2007-06-07 Jackson Harper <jackson@ximian.com>
38314 * xaml.cpp: Get object element property setting working.
38316 2007-06-06 Chris Toshok <toshok@ximian.com>
38318 * runtime.h, runtime.cpp: add a special void* ctor to value so
38319 pointers aren't silently converted to bool (bad c++, bad!), and
38320 have that ctor output a warning message to the console, along with
38323 * brush.cpp: need to deref the Color* in the Value ctor.
38325 2007-06-06 Chris Toshok <toshok@ximian.com>
38327 * animation.cpp: new dump of the animation stuff. this is much
38328 closer in spirit and implementation to that of WPF's
38329 timing/animation system. it's not perfect yet, but it's much,
38332 2007-06-06 Chris Toshok <toshok@ximian.com>
38334 * runtime.h: make the point/color/rect copy constructors take a
38335 ref, not a pointer. also, make the value contructors for struct
38338 * runtime.cpp: make the value constructors for struct types
38341 * brush.cpp (brush_init): pass the Color by value.
38343 2007-06-06 Chris Toshok <toshok@ximian.com>
38345 * runtime.h, runtime.cpp: move the Value implementation (for
38346 everything but the operators) to the .cpp file.
38348 2007-06-06 Miguel de Icaza <miguel@novell.com>
38350 * runtime.h, runtime.cpp: Surface is no longer derived from
38351 Canvas, it now instead hosts a canvas, should avoid having two
38352 nested canvases for loading XAML files.
38356 Correct computation of the bounding box for shapes and videos.
38358 * shape.cpp: Do not pop the cairo state after draw and then call
38359 extents as the computation on extents is done with the current
38360 cairo context, not the cairo context that drew the data before
38361 popping (this would show up with thick brushes).
38363 * runtime.cpp: Add 2 instead of 1, as double to integer rounding
38364 can take two values (negative and positive).
38366 * cutil.cpp: Cut and paste cairo code here, it computes the proper
38367 bounding box from the extents using the current absolute matrix.
38369 * ffvideo.cpp (queue_data): Memory leak gone.
38371 2007-06-06 Jackson Harper <jackson@ximian.com>
38373 * xaml.cpp: Set brush attributes.
38375 2007-06-06 Jackson Harper <jackson@ximian.com>
38378 * transform.h: Need to register this base DependencyObject for the
38380 * geometry.cpp: use correct value kind for registering properties
38381 * runtime.cpp: Don't be strict about the type with properties that
38382 derive from DependencyObject, we can't be too strict here, because
38383 of inheritance the registered type BRUSH could be set to
38385 - register some properties with the correct type
38387 2007-06-06 Jackson Harper <jackson@ximian.com>
38390 * runtime.h: Staring to add triggers
38391 * shape.cpp: Use brush as our property kind
38393 2007-06-06 Sebastien Pouliot <sebastien@ximian.com>
38395 * runtime.h: Add new types and SweepDirection enum.
38396 * geometry.cpp|h: Add PathFigure, ArcSegment, BezierSegment and
38397 LineSegment classes and [g|s]etter functions.
38399 2007-06-06 Miguel de Icaza <miguel@novell.com>
38401 * runtime.h: Move all the types into the Value::Kind enumeration
38402 so that we can have a shared type system.
38404 * demo.cpp (main): Allow loading a XAML file from the command
38405 line, for your testing pleasure.
38407 * ffvideo.cpp (convert_to_rgb): We no longer need the loop to swap
38410 Move to cairo to render to the screen the contents
38411 of the buffer. ffmpeg and cairo do have the same RGBA format, it
38412 was actually the copy from this format to the screen using
38413 gdk_draw_pixbuf that failed: pixbuf expected the data in another
38414 format and there is no way to configure it.
38416 * runtime.cpp (surface_clear): use the cairo api as the surface is
38417 no longer living on the client buffer.
38419 (surface_destroy): update
38421 (create_xlib, realized_callback, unrealized_callback): When the
38422 widget is realized, create a cairo context
38424 2007-06-06 Sebastien Pouliot <sebastien@ximian.com>
38426 * runtime.h: Add Value support for Point and Rect
38427 * geometry.cpp: Implement [g|s]etters for Point and Rect properties
38429 2007-06-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
38431 * runtime.cpp, runtime.h: Added DependencyObject::GetObjectType.
38433 2007-06-06 Sebastien Pouliot <sebastien@ximian.com>
38435 * shape.cpp|h, runtime.cpp|h: Remove the (now) useless
38436 set_prop_from_str methods since everything they handled is now
38437 moved into DependencyProperty.
38439 2007-06-06 Sebastien Pouliot <sebastien@ximian.com>
38441 * shape.cpp|h: Use DependencyProperty for Shape Fill and Stroke
38442 brushes. Add getter functions for fill and stroke.
38444 2007-06-06 Sebastien Pouliot <sebastien@ximian.com>
38446 * runtime.h: Call SetObjectType on Brush and SolidColorBrush
38448 2007-06-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
38450 * runtime.cpp, runtime.h: Remove the default_values hashtable
38451 from DependencyObject, it's redundant since the default value
38452 is stored inside the DependencyProperty anyway.
38454 2007-06-06 Sebastien Pouliot <sebastien@ximian.com>
38456 * demo.cpp: Adapted to API changes.
38457 * brush.cpp: Add [g|s]etters for Brush and SolidColorBrush using
38458 DependencyProperty. Add brush initialization code.
38459 * runtime.cpp|h: Change Brush to inherit from DependencyObject.
38460 Add Color support to Value. Call brush initialization.
38461 * shape.cpp: Add miter, pen join|cap and fill rule drawing support.
38462 * xaml.cpp: Adapted to API changes since SolidColorBrush now inherits
38463 from DependencyObject.
38465 2007-06-06 Jeffrey Stedfast <fejj@gnome.org>
38467 * ffvideo.cpp (convert_to_rgb): Make sure the frame->data is
38468 non-NULL before trying to scale.
38470 2007-06-06 Sebastien Pouliot <sebastien@ximian.com>
38472 * brush.cpp: Fix compiler warning.
38474 2007-06-06 Jackson Harper <jackson@ximian.com>
38476 * runtime.cpp/h: initialize xaml
38477 - Add canvas C style constructor
38478 - Make SolidColorBrush's Color public
38479 * shape.cpp: Comment out the set_prop... stuff, this code won't be
38480 used anymore, now that the xaml parser is using dependency objects
38483 * transform.cpp|h: Add some C style constructors
38484 * brush.cpp: Create colors from a string instead of solid brushes
38485 * xaml.cpp: Add in a known element tree, and move property setting
38486 into the xaml code, also added code for setting properties with
38487 property element syntax
38489 2007-06-05 Miguel de Icaza <miguel@novell.com>
38491 Add type checking on SetValue, RegisterProperty to avoid
38494 * runtime.cpp (SetValue): Add simple type checking
38495 (Register): Ensure that no empty values are passed.
38497 * runtime.h (DependencyObject): events, remove unused field.
38499 2007-06-05 Chris Toshok <toshok@ximian.com>
38501 * runtime.cpp: we need to maintain another hash table for
38502 DependencyProperties so we can return the actual property, not the
38503 default value, which is what GetDependencyProperty needs to do.
38504 (DependencyObject::FindName): implement this by either trying to
38505 use the namescope on this object or the global_NameScope (rather
38506 suboptimal, it's supposed to 'walk the logical tree' according to
38509 partially implement NameScope.
38511 * runtime.h: add NameScope, and add a uint64 Value. Also add
38512 FindName on DependencyObject.
38514 2007-06-05 Sebastien Pouliot <sebastien@ximian.com>
38516 * shape.cpp|h: Add Shape's thickness and some dash support. Add more
38517 [g|s]etters for Shape using DependencyProperty.
38518 * demo.cpp: Add thickness and dashes to the rectangles.
38520 2007-06-05 Sebastien Pouliot <sebastien@ximian.com>
38522 * shape.cpp|h: Move FrameworkElement stuff into runtime.cpp|h. Use
38523 functions to retrieve the height and width of shapes (values defined
38524 in FrameworkElement).
38525 * runtime.cpp|h: Use DependencyProperty for FrameworkElement Height
38526 and Width properties.
38527 * demo.cpp: Adjust to API changes.
38529 2007-06-05 Sebastien Pouliot <sebastien@ximian.com>
38531 * shape.cpp: Remove (now) useless properties in Line.
38533 2007-06-05 Miguel de Icaza <miguel@novell.com>
38535 * shape.cpp, ffvideo.cpp, video.cpp: Do not use x, y anymore, we
38536 now have an absolute affine set for us beforehand.
38538 * runtim.cpp: on update_xform call the parent ::get_xform_for to
38539 obtain the base affine transform to use.
38541 2007-06-05 Sebastien Pouliot <sebastien@ximian.com>
38543 * geometry.cpp|h: Use DependencyProperty for properties.
38544 * transform.h: Protect.
38546 2007-06-05 Chris Toshok <toshok@ximian.com>
38548 * runtime.h: call SetObjectType where we need it.
38552 * geometry.h: same.
38554 2007-06-05 Miguel de Icaza <miguel@novell.com>
38556 * ffvideo.cpp (VideoFfmpeg): Initialize audio_frames_size, caught
38559 * runtime.cpp (item_set_transform): This routine was doing nothing
38560 but doing an invalidate of the region, updating the transform,
38561 updating the bounding box and re-invalidating the new area. Move
38562 that logic elsewhere (it was also ignoring the affine parameter
38565 Unify user_xform with the RenderTransform dependency property, now
38566 we always have a static absolute transformation in the UIElement.
38568 2007-06-05 Sebastien Pouliot <sebastien@ximian.com>
38570 * shape.cpp|h: Update shape_init with correct values and implement
38573 2007-06-05 Chris Toshok <toshok@ximian.com>
38575 * animation.cpp (ClockTimeChanged): use the instance variety of
38576 GetDependencyProperty.
38578 * runtime.cpp (GetDependencyProperty): just call the static
38579 variety with our objectType.
38580 (SetObjectType): method to enable subclasses to set the object
38583 * runtime.h: add DependencyObject::SetObjectType, as well as the
38584 instance version of DependencyObject::GetDependencyProperty.
38586 * transform.h: call SetObjectType to identify this object.
38588 2007-06-05 Chris Toshok <toshok@ximian.com>
38590 * runtime.cpp (AddHandler): oops, g_list_append requires an assignment.
38592 2007-06-05 Chris Toshok <toshok@ximian.com>
38594 * runtime.h (Canvas): declare our dependencyproperties here.
38596 * runtime.cpp (canvas_init): actually assign the properties.
38598 2007-06-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
38600 * runtime.cpp, runtime.h: Implement a DependencyProperty::
38601 GetDependencyProperty.
38603 2007-06-05 Chris Toshok <toshok@ximian.com>
38605 * runtime.cpp (OnSubPropertyChanged): remove the event handler for
38606 the render transform and use OnSubPropertyChange instead.
38607 (item_set_render_transform): clean this up substantially - the
38608 property system handles all the "event" stuff now.
38609 (item_get_render_transform): we need a getter now that this uses
38611 (NotifyAttacheesOfPropertyChange): new method, call
38612 OnSubPropertyChanged with both the attachee's property (the thing
38613 storing 'this') and the subproperty that changed.
38614 (SetValue): complicate the attachee stuff a bit, since we need to
38615 store both the object and the property it's storing the value in.
38616 (item_init): initialize RenderTransformProperty.
38618 * runtime.h: make UIElement subclass from DependencyObject. This
38619 flattens the hierarchy some from SL (which has Visual in between,
38620 but we have no Visual.)
38622 * transform.cpp (OnPropertyChanged): call
38623 NotifyAttacheesOfPropertyChange. Also, reindent some stuff.
38625 2007-06-05 Sebastien Pouliot <sebastien@ximian.com>
38627 * demo.cpp: Updated to use rectangle_set_radius_[x|y]
38628 * shape.cpp|h: Add [get|set]ter functions for Line and Rectangle
38629 * xaml.cpp: Updated for API change.
38631 2007-06-05 Sebastien Pouliot <sebastien@ximian.com>
38633 * runtime.h: Add new ctor for Color(uint). Change UIElement to inherit
38634 from DependencyObject.
38635 * brush.cpp: Complete named colors (wrt System.Windows.Media.Colors)
38637 2007-06-05 Jeffrey Stedfast <fejj@gnome.org>
38639 * ffvideo.cpp (queue_data): If we fail to get an audio codec, then
38640 we simply cannot play sound (or maybe there is no sound), either
38641 way, don't try to dereference the audio_codec pointer if it is
38642 NULL. Also wrapped audio setup in an #ifdef
38644 2007-06-05 Miguel de Icaza <miguel@novell.com>
38646 Implement the OnPropertySet stuff, builds on Toshok's first pass.
38648 Next stage: discuss with Toshok the migration to this awesome
38649 framework from Events ;-)
38651 * runtime.cpp (SetValue): when adding dependencyobjects track on
38652 the attached object the ownership.
38654 Notify all containers of a property change.
38656 * brush.cpp (Brush): Remove AddListener, RemoveListener, we can
38657 use the property notification system for these.
38659 * runtime.h (DependencyObject): Add a "attached_list" gslist to
38660 keep track of all the objects where this particular
38661 DependencyObject has been attached to, to provide OnPropertyChange
38662 notifications (not hooked up yet).
38664 (Value): Introduce DependencyObject constructor.
38666 2007-06-05 Sebastien Pouliot <sebastien@ximian.com>
38668 * shape.cpp|h: Started moving properties to DependencyObject. Added
38670 * geometry.cpp|h: New. System.Windows.Media.Geometry related classes
38671 * runtime.cpp: Added calls to shape_init and geometry_init
38672 * runtime.h: Added Rect structure and new DependencyObject types for
38673 shapes and geometry.
38674 * Makefile.am: Added geometry.cpp|h to source files.
38676 2007-06-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
38678 * runtime.h: initialize Value to zero on construction.
38680 2007-06-05 Chris Toshok <toshok@ximian.com>
38682 * demo.cpp: abstract the cairo transformations away by using
38683 RotateTransforms.. and this is probably going to annoy some
38684 people, but make the normally stationary elements bounce between
38685 smaller and larger.
38687 * animation.h: make Clock subclass from DependencyObject.
38689 * animation.cpp (animation_init): assign the properties, don't
38690 just call Register.
38692 also, track the EventObject method name change.
38694 * runtime.cpp (item_set_render_transform): new method. unhook the
38695 old transform and hook up the new one. also, explicit set our
38696 transformation here.
38697 (SetValue): make this only do the work (and more importantly only
38698 call OnPropertyChanged) if the value is different.
38700 * runtime.h: shorten the names of the EventObject methods. Add
38701 operator== and operator!= to Value. Add an EventObject to
38702 DependencyObject to give us rudimentary event handlers. Add the
38703 render_transform "higher-level" transform into to UIElement.
38705 * transform.h: add the OnPropertyChanged override and rename
38706 transform_get_value to transform_get_transform.
38708 * transform.cpp (transform_init): oops. we need to actually
38709 assign the properties.
38710 (transform_get_transform): indent.
38711 (OnPropertyChanged): override this method to emit
38712 "TransformChanged".
38714 2007-06-04 Chris Toshok <toshok@ximian.com>
38716 * Makefile.am (libmoon_la_SOURCES): add animation and transform to
38719 * runtime.h: flesh out Value some, adding BOOL (has to be C++
38720 bool, not gboolean, or else it conflicts with int32), INT32,
38721 INT64, and STRING (char*).
38723 * runtime.cpp (runtime_init): call animation_init and
38726 * animation.cpp, animation.h, transform.h, transform.cpp: get
38727 these using the new dependency object/value foo, and get them
38730 2007-06-04 Miguel de Icaza <miguel@novell.com>
38732 * runtime.h: Make the "Base" refcounting class the base for
38735 * ffvideo.cpp: Set audio initialization to zero for now, so we can
38736 continue debugging.
38738 * runtime.cpp (Canvas): override render, in preparation for using
38739 attached properties. I get the feeling am going to regret not
38740 keeping the top/left attached properties somewhere else.
38742 (Value): introduce the discriminating union for values as
38745 (DependencyObject): use lower case name for properties.
38746 Take Value * instead of void *, this is so we can represent NULL
38747 values (is this a good idea Chris, or do we want to have a
38748 Value.Type.NULL enumeration value?
38750 Update hash table creation to g_free the result on hash table
38751 update and removal.
38753 (Event): Update indentation to be Linux-like instead of GNU like.
38755 2007-06-04 Sebastien Pouliot <sebastien@ximian.com>
38757 * shape.cpp|h: Add Poly[line|gon] drawing code and C helper functions
38758 to create them. Replace the "old" C1 constant in Ellipse::Draw with
38759 ARC_TO_BEZIER (now that I know where it comes from ;-)
38761 2007-06-04 Jeffrey Stedfast <fejj@novell.com>
38763 * ffvideo.cpp (queue_data): Got sound kinda sorta working...
38765 2007-06-04 Jackson Harper <jackson@ximian.com>
38767 * xaml.cpp: Give elements a type
38769 2007-06-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
38771 * runtime.cpp, runtime.h: implemented DependencyProperty and DependencyObject.
38773 2007-06-04 Chris Toshok <toshok@ximian.com>
38775 * animation.h, animation.cpp: initial pass at some of the
38776 animation stuff. doesn't build yet.
38778 2007-06-04 Chris Toshok <toshok@ximian.com>
38780 * runtime.cpp, runtime.h: add EventObject, a c++ only base class
38781 for managing events.
38783 2007-06-04 Sebastien Pouliot <sebastien@ximian.com>
38785 * shape.h: Remove Ellipse::set_prop_from_str, it's "virtually" empty
38786 and added Draw methods to Polygon and Polyline.
38787 * shape.cpp: Added round-corner rectangle support (RadiusX, RadiusY)
38788 and match changes in header file.
38790 2007-06-04 Jackson Harper <jackson@ximian.com>
38792 * shape.cpp/h: width and height are properties of the
38795 2007-06-04 Jackson Harper <jackson@ximian.com>
38797 * shape.cpp/h: add ellipse_new
38798 - set width/height on ellipses (ellipsi ?) and draw them.
38799 * xaml.cpp: create ellipses, get zorder correct
38801 2007-06-04 Jackson Harper <jackson@ximian.com>
38803 * xaml.cpp: put in character data functionality, eventually we
38804 will need to add FrameworkElement methods for setting the default
38805 content element. See
38806 http://msdn2.microsoft.com/en-us/library/ms752059.aspx#contentmodels
38807 for more info on content properties.
38809 2007-06-04 Sebastien Pouliot <sebastien@ximian.com>
38811 * demo.cpp: Include shape.h and use a rounded-rectangle
38812 * runtime.h: Added FillRule and moved out Shapes.
38813 * shape.h: New. Moved all shapes from runtime.h and added new ones.
38814 * shape.cpp: Added Polygon and Polyline.
38815 * xaml.cpp: Include shape.h
38816 * Makefile.am: Add shape.h
38818 2007-06-04 Chris Toshok <toshok@ximian.com>
38820 * transform.cpp, transform.h: initial code for the transform
38821 objects. doesn't compile yet.
38823 2007-06-04 Jackson Harper <jackson@ximian.com>
38825 * demo.cpp: fix typo
38827 2007-06-04 Sebastien Pouliot <sebastien@ximian.com>
38829 * demo.cpp: Fix for API changes.
38830 * runtime.h: Add FrameworkElement, other Shape properties and move
38831 around some properties to match the managed definitions.
38832 * shape.cpp: Add setters for new Shape properties and move properties
38833 parsing to match managed definitions.
38834 * xaml.cpp: Fix for API changes.
38836 2007-06-04 Sebastien Pouliot <sebastien@ximian.com>
38838 * shape.cpp: Don't typecast doubles into ints.
38840 2007-06-04 Jackson Harper <jackson@ximian.com>
38843 * xaml.cpp: Implement function that allows you to load xaml from a
38845 * demo.cpp: add a very small xaml demo
38847 2007-06-04 Jackson Harper <jackson@ximian.com>
38849 * xaml.cpp: remove old no longer used function.
38850 - track whether or not we are adding to a panel instead of surface
38851 * shape.cpp: Fix typo, need to set line_* not x1, x2, etc.
38853 2007-06-04 Jackson Harper <jackson@ximian.com>
38855 * shape.cpp: Add new methods to allow shapes to have their
38856 properties filled in from text values.
38858 * brush.cpp: Start work on allowing solid color brushes to be
38859 created from strings.
38861 * runtime.cpp: stub in methods for setting properties on canvas
38862 and UIElements (these had some meat but I am removing it now that
38863 some of the names are updated, will put back later).
38865 * runtime.h: add some methods and functions for XAML parsing.
38867 * xaml.cpp: Initial implementation of the XAML parser.
38869 2007-06-03 Miguel de Icaza <miguel@novell.com>
38871 * runtime.cpp (Collection, Panel): The beginning of an API to
38872 encapsulate collections that we will expose to the unmanaged
38875 This should be the backend for the base collection class in agclr
38876 for the strongly typed types.
38878 The idea is to have the MS.Internal.Collection<T> be a proxy that
38879 contains an IntPtr pointer to the C++ Collection instance and map
38880 the various add/remove methods to it.
38882 The immediate goal is to be able to do from C#:
38884 Rectangle r = new Rectangle ();
38885 r.Brush = new SolidColorBrush (new Color (1, 0, 0));
38886 Canvas.Children.Add (r);
38888 2007-06-02 Miguel de Icaza <miguel@novell.com>
38890 Implement support for the render origin.
38892 * runtime.cpp (item_invalidate): add one to cope with the rouding
38893 from floats to ints (fixes some trailing junk).
38895 Item: redo the affine transformation setup to support both the
38896 render_transform_origin property and avoid recomputing all of this
38897 on each repaint request.
38899 * ffvideo.cpp: Changed the code to do the actual video decoding on
38900 the main thread so we can put all the video and audio in the
38901 queues before we start rendering.
38903 Failed attempts at getting audio to work.
38905 * Everywhere: renamed Item to UIElement to better match the actual
38906 class hierarchy that we will be exposing.
38908 2007-06-01 Jackson Harper <jackson@ximian.com>
38910 * shape.cpp: Fix typo.
38912 2007-06-01 Miguel de Icaza <miguel@novell.com>
38914 * ffvideo.cpp: No longer use CMD_INITED, instead use g_idle_add to
38915 notify a special function (callback_video_inited). Makes me
38916 wonder if I should do the same for the new-frame call
38918 Initialize the cairo surface on the callback_video_inited routine
38919 instead of doing this on the decoder thread (that was a mistake).
38921 This solves the misterious case of the video that randomly did not
38924 2007-05-29 Miguel de Icaza <miguel@novell.com>
38926 * video.cpp (load_next_frame): reimplement the video play back
38927 logic so that it will now properly paint the proper frame on the
38930 Add logic to skip frames if video is playing back too slowly, and
38931 to resume playback when new frames are ready.
38933 Currently its computing the delay using the n_frame_rate field
38934 (which no sample uses, but I could not find any other way of
38935 estimating the frame rate other than this.
38937 It works at least with some sample streams that I have with 30 fps
38940 * runtime.cpp: Move the GtkDrawingArea widget into the Surface,
38941 and handle exposes in the runtime, not in the demo. Show the
38942 widget (thats why I was not getting the expose events on the
38945 2007-05-26 Miguel de Icaza <miguel@novell.com>
38947 * runtime.cpp (Brush, SolidBrush): Introduce brushes.
38949 (Shape): introduce reusable drawing framework for shapes, not
38952 (Line): introduce second user besides rectangles.
38954 Remove agg test code.
38956 (Group::getbounds): implement.