~ubuntu-branches/ubuntu/saucy/gnash/saucy-proposed

« back to all changes in this revision

Viewing changes to libcore/DisplayList.cpp

  • Committer: Package Import Robot
  • Author(s): Micah Gersten
  • Date: 2012-03-04 03:19:06 UTC
  • mfrom: (1.1.18) (3.1.24 sid)
  • Revision ID: package-import@ubuntu.com-20120304031906-p6q5rnb0xhgpof7o
Tags: 0.8.10-3ubuntu1
* Merge from Debian testing (FFe: LP: #940876), remaining changes:
  - Use mozilla-flashplugin as the alternative for now
  - Change xulrunner-dev build dep to firefox-dev
* Drop the plugin API porting patch, this has been fixed upstream
  - drop debian/patches*
* Drop the following change as we want Adobe's player to take priority
  if it's installed
  - Set alternative priority to 50 so that it matches Adobe Flash's priority

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// dlist.cpp:    Display lists, for Gnash.
2
2
// 
3
 
//     Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010,
4
 
//   2011 Free Software   Foundation, Inc
 
3
//   Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
 
4
//   Free Software Foundation, Inc
5
5
// 
6
6
// This program is free software; you can redistribute it and/or modify
7
7
// it under the terms of the GNU General Public License as published by
309
309
    }
310
310
 
311
311
    if (ch->unloaded()) {
312
 
        log_error("Request to move an unloaded DisplayObject");
 
312
        log_error(_("Request to move an unloaded DisplayObject"));
313
313
        assert(!ch->unloaded());
314
314
    }
315
315
 
377
377
 
378
378
    if (newdepth < DisplayObject::staticDepthOffset) {
379
379
        IF_VERBOSE_ASCODING_ERRORS(
380
 
        log_aserror("%s.swapDepth(%d) : ignored call with target depth "
381
 
            "less then %d", ch1->getTarget(), newdepth,
 
380
            log_aserror(_("%s.swapDepth(%d) : ignored call with target depth "
 
381
                          "less then %d"), ch1->getTarget(), newdepth,
382
382
            DisplayObject::staticDepthOffset);
383
383
        );
384
384
        return;
401
401
            boost::bind(std::not2(DepthLessThan()), _1, newdepth));
402
402
 
403
403
    if (it1 == _charsByDepth.end()) {
404
 
        log_error("First argument to DisplayList::swapDepth() "
405
 
                "is NOT a DisplayObject in the list. Call ignored.");
 
404
        log_error(_("First argument to DisplayList::swapDepth() "
 
405
                    "is NOT a DisplayObject in the list. Call ignored."));
406
406
        return;
407
407
    }
408
408
 
872
872
            
873
873
            if (found == _charsByDepth.end())
874
874
            {
875
 
                log_error("mergeDisplayList: DisplayObject %s (%s at depth "
 
875
                log_error)_("mergeDisplayList: DisplayObject %s (%s at depth "
876
876
                        "%d [%d]) about to be discarded in given display list"
877
877
                        " is not marked as unloaded and not found in the"
878
 
                        " merged current displaylist",
 
878
                            " merged current displaylist"),
879
879
                        ch->getTarget(), typeName(*ch), ch->get_depth(),
880
880
                        ch->get_depth()-DisplayObject::staticDepthOffset);
881
881
                std::abort();