Remove Opera hacks (Opera 15 is now out and is WebKit).
Review URL: https://codereview.appspot.com/10716044

git-svn-id: http://blockly.googlecode.com/svn/trunk@1080 c400ca83-b69d-9dd7-9705-49c6b8615e23
When looking up the style for an element Closure detects IE and uses
runtimeStyle (unique to IE). However, elements created by createElementNS
do not have this attribute and thus goog/style/style.js crashes. This change
detects when we create an element with the NS variety and gives it this
attribute. A better place for this fix would be style.js but this is easier.

R=neil.fraser@gmail.com

Review URL: https://codereview.appspot.com/10734044

git-svn-id: http://blockly.googlecode.com/svn/trunk@1081 c400ca83-b69d-9dd7-9705-49c6b8615e23
utils: Added option to have either space or comma seperated transform attribute.
See the inline comment regarding the reason.

block: Changed parentElement to parentNode. This is another issue with IE's implmentation of createElementNS. When this method is used the child is not given a parentElement upon insertion into DOM, just a parentNode.

R=neil.fraser@gmail.com

Review URL: https://codereview.appspot.com/11175043

git-svn-id: http://blockly.googlecode.com/svn/trunk@1082 c400ca83-b69d-9dd7-9705-49c6b8615e23
The toolbox is either an xml element in the DOM or a string representation of an xml document. If the former, most browsers can get the element by id and it will automatically be converted to proper HTML with DOM structure (children, parent, sibling pointers etc.) However, IE 9+ lack a native XML -> HTML converter. There are various work arounds, but we already include a text to html converter so we should leverage that and just simply convert the whole xml element to text.

R=neil.fraser@gmail.com

Review URL: https://codereview.appspot.com/11177043

git-svn-id: http://blockly.googlecode.com/svn/trunk@1083 c400ca83-b69d-9dd7-9705-49c6b8615e23
Added DOCTYPES to force IE9 into standards mode. In SM IE9 knows about addEventListener. However, adding DOCTYPE regressed rendering in code and blockfactory. This is because in SM, browsers treat table height differently. To fix I added height styles to html and body forcing them to take 100% of the window. Also in this patch the sourcing of common.js has moved from the body to the head (turtle) to fix issue in IE9 and conform with other apps.

R=neil.fraser@gmail.com

Review URL: https://codereview.appspot.com/11185044

git-svn-id: http://blockly.googlecode.com/svn/trunk@1084 c400ca83-b69d-9dd7-9705-49c6b8615e23
Adding skining of the Maze.  Pegman, Astronaut, and Panda.  Remove randomize button.  Binary and generated files excluded from code review but will be added for commit.
Review URL: https://codereview.appspot.com/11267043

git-svn-id: http://blockly.googlecode.com/svn/trunk@1086 c400ca83-b69d-9dd7-9705-49c6b8615e23
Icon maintenance: Stripping out unused icons in Turtle and Code.  Adding run/stop icons to Turtle.  Ensure Turtle's stop button is not smaller than the run button (same as maze).  Prevent Turtle icons from shifting vertically on run/stop.  Binary and generated files excluded from code review but will be added for commit.  Similar changes to Maze are made in a separate CL.
Review URL: https://codereview.appspot.com/10812044

git-svn-id: http://blockly.googlecode.com/svn/trunk@1087 c400ca83-b69d-9dd7-9705-49c6b8615e23
Adding source files (Gimp & POV-Ray) for Maze images.

git-svn-id: http://blockly.googlecode.com/svn/trunk@1088 c400ca83-b69d-9dd7-9705-49c6b8615e23
Added check for list equality to assert equals in JavaScript unit tests.
Note that no change was needed for Python.
Fixed unrelated bug in python/lists.js.

Review URL: https://codereview.appspot.com/11300043

git-svn-id: http://blockly.googlecode.com/svn/trunk@1089 c400ca83-b69d-9dd7-9705-49c6b8615e23
Fixes bug in for (count) loops and improves unit tests.
Note that previous version was accidentally checked in without passing
its unit tests.

R=neil.fraser@gmail.com

Review URL: https://codereview.appspot.com/11304043

git-svn-id: http://blockly.googlecode.com/svn/trunk@1090 c400ca83-b69d-9dd7-9705-49c6b8615e23
Made correction to Russian language as recommended by techtonik.

R=root@neil.fraser.name

Review URL: https://codereview.appspot.com/11273044

git-svn-id: http://blockly.googlecode.com/svn/trunk@1091 c400ca83-b69d-9dd7-9705-49c6b8615e23
Add opening dance and left turn on maze (profile view of avatars is generally not good).
Review URL: https://codereview.appspot.com/11306043

git-svn-id: http://blockly.googlecode.com/svn/trunk@1092 c400ca83-b69d-9dd7-9705-49c6b8615e23
Identify height rendering bug in WebKit and add a workaround.  Compiled files will be added to this CL after review.
Review URL: https://codereview.appspot.com/11324043

git-svn-id: http://blockly.googlecode.com/svn/trunk@1093 c400ca83-b69d-9dd7-9705-49c6b8615e23
Added "count by" block to turtle tutorial.
This was accidentally left out of earlier CLs.

R=root@neil.fraser.name

Review URL: https://codereview.appspot.com/11375043

git-svn-id: http://blockly.googlecode.com/svn/trunk@1094 c400ca83-b69d-9dd7-9705-49c6b8615e23
Allow developers to change the colour palette (issue 149).  Fix Turtle from alerting 'false' on infinite loops (standardize on throwing Infinity).  Remove null block from Turtle.
Review URL: https://codereview.appspot.com/11382043

git-svn-id: http://blockly.googlecode.com/svn/trunk@1096 c400ca83-b69d-9dd7-9705-49c6b8615e23
Adding <!DOCTYPE html> to all remaining pages and fixing resulting CSS issues.
Review URL: https://codereview.appspot.com/11392043

git-svn-id: http://blockly.googlecode.com/svn/trunk@1097 c400ca83-b69d-9dd7-9705-49c6b8615e23
Added meta viewport tag to force proper zoom with respect to height on tablets.
Added Ipad specific bug fix. Browsers fire resize events inconsistently, however, they usually fire a final event (after all resizing is done).
Some versions of the Ipad don't fire a final resize event when moving from portrait to landscape, they do however fire an orientationchange event.
So we check for Ipad, then fire a resize on an orientationchange.

R=neil.fraser@gmail.com

Review URL: https://codereview.appspot.com/11396043

git-svn-id: http://blockly.googlecode.com/svn/trunk@1099 c400ca83-b69d-9dd7-9705-49c6b8615e23
Added meta tag to force proper visual viewport.

Review URL: https://codereview.appspot.com/11401043

git-svn-id: http://blockly.googlecode.com/svn/trunk@1101 c400ca83-b69d-9dd7-9705-49c6b8615e23
Stop deleting modules (Trashcan, Flyout, Toolbox) to flag that they are disabled (bad programming technique, use a boolean instead).  Fix scrolling in Playground after adding doctype.  Fix size of arrow in Maze avatar dropdown.  Stop alerting 'false' when pegman collides with a wall.  Add default 'by' block in Playground and unit tests.
Review URL: https://codereview.appspot.com/11402044

git-svn-id: http://blockly.googlecode.com/svn/trunk@1102 c400ca83-b69d-9dd7-9705-49c6b8615e23
Moved common messages from apps/template.soy to {maze,turtle}/template.soy.
This includes moving translations from apps/*.json to apps/maze/*.json.
This will reduce the number of network fetches, at the expense of abstraction.
NOTE: "\n" is displayed in the link alert message for turtle but not for maze.
I assume this will go away when turtle is converted to language-free format.
TODO: Do same change for graph and code.
TODO: Find somewhere else for translation of "a visual programming environment".

R=neil.fraser@gmail.com

Review URL: https://codereview.appspot.com/11379043

git-svn-id: http://blockly.googlecode.com/svn/trunk@1103 c400ca83-b69d-9dd7-9705-49c6b8615e23