Remove unused SVG functions

This patch removes a smorgasbord of unused SVG functions. Many of these
are fallout of the SVGTearOff rewrite.

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@172794 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Use provided sample timestamps in CPU profiler.

BUG=363976

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

git-svn-id: svn://svn.chromium.org/blink/trunk@172795 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add support for DocumentFragment.getElementById()

Add support for DocumentFragment.getElementById() as specified in the DOM
specification:
http://dom.spec.whatwg.org/#interface-nonelementparentnode

The patch moves the SVGSVGElement::getElementById() implementation up to
ContainerNode so that it can be shared with DocumentFragment.

Firefox 28 already supports it, IE11 does not.

R=arv@chromium.org, abarth@chromium.org
BUG=366927
TEST=fast/dom/DocumentFragment/get-element-by-id.html

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

git-svn-id: svn://svn.chromium.org/blink/trunk@172796 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[FastTextAutosizer] re-enabling the autosizer does not trigger a layout

This patch fixes a bug where the fast text autosizer would not
trigger a layout when re-enabling the autosizer. This could be seen
in the inspector when unchecking and checking the "Enable text
Autosizing" checkbox under the emulation panel, or when running the
inspector/text-autosizing-override.html test.

The bugfix in this patch is to introduce the m_settingEnabled flag
so we can track when we need to call setAllTextNeedsLayout in
FastTextAutosizer::updatePageInfo.

crbug.com/367864 has been filed to cleanup the overlap between
enabled() and the new m_settingEnabled flag.

Additionally, this patch introduces a new struct, PageInfo, which
holds all of the text autosizing page state. This refactoring groups
the PageInfo state and is primarily updated through updatePageInfo.

TEST=inspector/text-autosizing-override.html (this will become
enabled once https://codereview.chromium.org/249943002 lands).
BUG=367589

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

git-svn-id: svn://svn.chromium.org/blink/trunk@172797 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Send <iframe srcdoc> to the threaded parser

There are no test changes as this should be
imperceptible to pages.  We already issued
srcdoc loads asynchronously, we just happened
to parse their contents synchronously as soon
as we got back to the runloop to issue the load.

Now that we use the threaded parser, parsing
and display of srcdoc iframes will be incremental
as well as should not interfere with other
mainthread tasks like js execution or RAF.

Unfortunately there are some other knobs I need
to turn in the HTML parser to make it less
aggressive about processing data to make the
don't-interfere-with-animations part of this
change a reality.

BUG=308321

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

git-svn-id: svn://svn.chromium.org/blink/trunk@172798 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Compute and use BiDi information in SVGTextMetricsBuilder

This extends upon https://codereview.chromium.org/104813005, by computing
(and plumbing) directionality information for SVG text elements.
The method used is similar to that used by
RenderText::computePreferredLogicalWidths although simplified somewhat.

BUG=366939

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

git-svn-id: svn://svn.chromium.org/blink/trunk@172799 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Properly decode BMP color values with components < 8 bits in size.

BUG=360828
TEST=See bug
R=senorblanco@chromium.org

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

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