canvas: reset gr context with a finer granularity

With this patch, we only dirty the texture bind state in context's cache.
    

BUG=248728

Review URL: https://chromiumcodereview.appspot.com/16865018

git-svn-id: svn://svn.chromium.org/blink/trunk@153556 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Change static_cast<SVGImageElement*> with toSVGImageElement.

As a step to change static_cast with toXXX, static_cast<SVGImageElement*> can
be changed with toSVGImageElement().

BUG=

Review URL: https://chromiumcodereview.appspot.com/18214003

git-svn-id: svn://svn.chromium.org/blink/trunk@153557 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Pow __proto__, sock :unresolved, and clunk the created callback at once.

This aligns the timing of the Custom Elements __proto__ swizzle,
changed applicability of the :unresolved pseudoclass, and call to the
created callback. Now instanceof, :unresolved and a Custom Element
having had a chance to initialize itself are all consistent.

This changes the order in which the created callbacks of
parser-created Custom Elements are processed to be reverse document
order, per a proposal being discussed on this bug:
<https://www.w3.org/Bugs/Public/show_bug.cgi?id=22459>

For now, the created callbacks of upgrade candidates continues to be
processed in whimsical order (specfically, HashSet iteration order).

BUG=234509

Review URL: https://chromiumcodereview.appspot.com/18258003

git-svn-id: svn://svn.chromium.org/blink/trunk@153558 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Refactor sources and derived sources in derived_sources.gyp

This is a refactoring patch in preparation for adding a Python IDL
compiler in parallel with the Perl IDL compiler, so we can move IDL files
individually from the Perl compiler to the Python compiler.

Currently compiling .idl to .cpp/.h and aggregating the .cpp into
V8DerivedSources*.cpp is done in one step.
This splits it into two, which will let us split up the compiling
into Perl and Python, and then do the aggregation.

Also some minor cleaning:
* removing duplicate dependencies
  (since target supplemental_dependencies is specified,
   don't need to also list individual files);
* regularize command line (put argument last, after flags)
  and add note about invisible dependency by a sed script.

(To be followed by CL splitting the compile step into Perl + Python,
 with stub Python compiler.)

BUG=239771

Review URL: https://chromiumcodereview.appspot.com/18346015

git-svn-id: svn://svn.chromium.org/blink/trunk@153559 bbb929c8-8fbe-4397-9dbb-9b2b20218538