Remove isMainThread() checks from ScriptForbiddenScope

r177457 added isMainThread() checks to ScriptForbiddenScope and regressed performance. This CL removes the checks by making sure that ScriptForbiddenScope is not used in non-main threads.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179255 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert of Add UseCounters for non-standard, internally unused reflected attributes (https://codereview.chromium.org/428893002/)

Reason for revert:
These IDL attributes are actually in the HTML spec:
http://www.whatwg.org/specs/web-apps/current-work/#obsolete

Original issue's description:
> Add UseCounters for non-standard, internally unused reflected attributes
> 
> http://whatwg.org/html#htmlhtmlelement
> http://whatwg.org/html#htmlmetaelement
> http://whatwg.org/html#htmlobjectelement
> http://whatwg.org/html#htmltablecellelement
> 
> None of these attributes are used internally, so the only way sites
> can depend on them is via these bindings.
> 
> Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=179140

TBR=jochen@chromium.org
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179256 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove unused methods and members from GraphicsLayer. Make others protected or private.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179257 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add ASSERT to guard RenderLayer::location()

This CL adds an ASSERT to RenderLayer::location() to ensure that we don't read
this value between the time the RenderLayer is created and the time the value
is initialized.

I've also removed the setters for location and size. No one outside this class
should be setting these values directly. Unfortunately, there is one caller of
setSize in LayerTreeAsText, but that's called out as a hack in a comment. I've
renamed the setter to include the word "hack" to discourage future callers.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179258 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Simplify code for finding body in FrameSelection::setSelectionFromNone()

Simplify code for finding body in FrameSelection::setSelectionFromNone() by
using Traversal<HTMLBodyElement>::firstChild(*documentElement). This is very
close to what is done in Document::body() except that body() searches for
both HTMLBodyElement and HTMLFrameSetElement. For this reason, we cannot
simply call Document::body() here.

Besides being shorter, the new code is also more optimal because:
- It does not check documentElement as it cannot be an HTMLBodyElement. For
  HTML documents, the documentElement is an HTMLHtmlElement.
- It avoids checking descendants and will only check the direct children of
  the <html> element.

R=adamk@chromium.org, leviw@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179259 bbb929c8-8fbe-4397-9dbb-9b2b20218538
linux: Enable subpixel positioning correctly in FontPlatformData.

Fix what seems like a bug in the Linux implementation of
FontPlatformData::setupPaint() that resulted in text not
being subpixel positioned when a NULL GraphicsContext was
passed.

BUG=399031

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179260 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Clean up style in RenderBlock::markPositionedObjectsForLayout

A small cleanup of this function.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179261 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move highestAncestorOrSelf() from Node to NodeTraversal

Move highestAncestorOrSelf() from Node to NodeTraversal as this is a DOM
traversal utility function.

This CL also simplifies the method implementation.

R=adamk@chromium.org

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

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