Bug 501739 - Update String.prototype.match to correctly update .lastIndex when called with a RegExp with the .global flag set on it.  Patch somewhat inspired by prior work in the bug by Yaron Tausky.  r=jorendoff, or r=a god among men when it comes to finding edge-case bugs in patches, I'm not sure which, I get them mixed up

--HG--
extra : rebase_source : 602cb35db27c5ae96d2ef1d89df04ca0ea756dfb
Bug 501739 - Part 2: Zero lastIndex in String.prototype.replace.  r=jwalden

--HG--
extra : rebase_source : 26d8ef71bdb528e4205e9a4c55c1d2a00ba8eaef
Bug 501739 - Make String.prototype.match use the zero-lastIndex helper method added in the previous revision.  r=trivial

--HG--
extra : rebase_source : 798fb3265e1a2a3213458e7d46c619c49c1c8b5c
Bug 832045 - get_attribute test for boolean attributes; r=jgriffin
Bug 918519 part 1: Add macros GET_MAIN_COMPONENT and GET_FLEX_COMPONENT to nsFlexContainerFrame.cpp, and use them to implement existing utility methods. r=mats
Bug 918519 part 2: Replace GetMainComponent/GetCrossComponent invocations with macros to avoid unnecessarily constructing nsSize() on-the-fly. r=mats