This CL eliminates the necessity of calling SizeToContents() after calling set_anchor_rect(). 

BUG=

Review URL: https://codereview.chromium.org/66253004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237067 0039d316-1c4b-4281-b951-d872f2087c98
Generic version of caching cc switches to avoid searching of switches on each function call

CC functions like CheckImplSidePaintingStatus will cycle through all the switches
every time the function is called. Initial patch is avoiding it only for  IsImplSidePaintingEnabled. So we need a generic way for all the switches, for future use.
This patch provides a one time initialization of all the switches in its first encounter (InitializeSwitchesIfRequired)
and later on will just read the updated data of the corresponding switches, when required.
Declared  a seperate structure for holding the switch enable/disable data and saving memory by using bit fields.

BUG=313193

TEST=None; no behavior changes;

Review URL: https://codereview.chromium.org/69123002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237068 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 237068