Implement a Google-specific variant of the First Strong algorithm in the closure editor.
The Frist Strong algorithm is a heuristic used to automatically set paragraph direction
depending on the paragraph's content.

R=marcosalmeida
DELTA=1067  (1066 added, 0 deleted, 1 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=5787


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2284 0b95b8e8-c90f-11de-9d4f-f947ee5921c8

Fix invalid cast

R=nicksantos
DELTA=1  (0 added, 0 deleted, 1 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=5788


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2285 0b95b8e8-c90f-11de-9d4f-f947ee5921c8

Add goog.dom.classlist.removeAll() so that we can efficiently replace calls to goog.dom.classes.remove(element, classNames...)

Older browsers that don't support classList would have worse performance in repeated calls to goog.dom.classlist.remove() than in goog.dom.classes.remove(...).

R=gboyer
DELTA=67  (67 added, 0 deleted, 0 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=5789


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2286 0b95b8e8-c90f-11de-9d4f-f947ee5921c8

If editor doesn't scroll to bottom when user types at end, try later.

R=jparent,carlanton,nicksantos
DELTA=116  (99 added, 1 deleted, 16 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=5790


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2287 0b95b8e8-c90f-11de-9d4f-f947ee5921c8

Update XhrIo and XhrManager to allow ArrayBuffer type as content. This is a supported feature of Xhr2 which this cl exposes.

R=brenneman
DELTA=7  (1 added, 0 deleted, 6 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=5791


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2288 0b95b8e8-c90f-11de-9d4f-f947ee5921c8

Ingest https://codereview.appspot.com/6814085/


Import of https://codereview.appspot.com/6826076/



Revision created by MOE tool push_codebase.

R=nnaze
DELTA=35  (23 added, 3 deleted, 9 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=5797


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2289 0b95b8e8-c90f-11de-9d4f-f947ee5921c8

Add a JS sanitized content kind, and flesh out CSS support.

Now we have kind="js" and kind="css" as well as tests for them.

I had to relax the compatible contexts check. Instead now we check for
error contexts.

R=msamuel,xtof
DELTA=355  (335 added, 5 deleted, 15 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=5798


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2290 0b95b8e8-c90f-11de-9d4f-f947ee5921c8

Automated g4 rollback

*** Reason for rollback ***

This fix turned out to be a bad idea.  Due to the order in which xhrio.js handles various aspets of the ready state change, it's not yet publishing the HTTP_ERROR status code when its version of the ready state change is dispatched.

*** Original change description ***

Fix some code which I suspect was leading to the browser channel sometimes publishing bogus server reachability events.  ChannelRequest was reading an XhrIo's http status code without checking that it had raised an http status error.

R=nicksantos
DELTA=1  (0 added, 0 deleted, 1 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=5799


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2291 0b95b8e8-c90f-11de-9d4f-f947ee5921c8