Clean up template formatting errors and warts in build/scripts

This fixes 24 FIXMEs in the build/scripts templates:
all except for "replace call with filter".

The substantive changes (not just blank lines and removing {%-/-%}) are:
* StylePropertyShorthand.cpp.tmpl had an unnecessary test for length 1
  (can use a for loop even for length 1!)
* make_element_lookup_trie.py handled too much indentation itself
  (should be a template macro - added a FIXME - but anyway simplified)

Follow up to:
Simplify whitespace handling in build/ Jinja templates
https://codereview.chromium.org/236673002/
...which identified all these errors and warts.

R=abarth

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171556 bbb929c8-8fbe-4397-9dbb-9b2b20218538
There should only be one isMainFrame()

Instead of having a bunch of wrappers lets just call isMainFrame(). It's
a bit more verbose in some places, but it makes the code more obvious
too. Especially since it was really weird that RenderLayerCompositor
would have a method like isMainFrame() since it's not a Frame at all.

I also removed a null check in RenderView for the frame. If you have a
RenderView, you have a frame.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171557 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert of Move counters update into a sepearate event (https://codereview.chromium.org/237003002/)

Reason for revert:
Broke layout tests.

Original issue's description:
> Move counters update into a sepearate event
> 
> Counter updates are sent as sepearate events. This allows to simplify timeline model on the front-end side and will simplify switching timeline to the trace events.
> 
> Removed JS heap counters from regular events. JS heap size changes for selected event are not shown except for GCEvent, instead new heap size graph is added to the memory view.
> 
> BUG=361045
> R=pfeldman@chromium.org
> 
> Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=171555

TBR=alph@chromium.org,loislo@chromium.org,pfeldman@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=361045

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171558 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix script fallback view background.

BUG=360492

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

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