DevTools: Simplify suggest box styles and move them to one file.

R=lushnikov,pfeldman,apavlov
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@172490 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Get rid of suggest box container element

R=apavlov
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@172491 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Added previousElement to SelectorCheckingContext.

To find whether a given last matched element should be considered
as a shadow host or not, added previousElement:

- the last compound selector of a given complex selector matched the
  previousElement,

e.g. suppose that we have a complex selector: "div#foo > .bar span".
In the case, if context.element matches "div#foo", context.previousElement
matches ".bar span".

If a given selector doesn't have any combinator, context.previousElement is
null.

If context.previousElement is null or context.previousElement's treeScope
is different from context.element's treeScope, the context.element is obtained
by walking up from its descendant treeScope.

TEST=fast/dom/shadow/content-pseudo-element-with-nested-shadow.html
BUG=360679

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

git-svn-id: svn://svn.chromium.org/blink/trunk@172492 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Extract frontend modules "common", "sdk", "ui", "components" into their directories

R=pfeldman@chromium.org, pfeldman

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

git-svn-id: svn://svn.chromium.org/blink/trunk@172493 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[oilpan]: Make CSSValue a true garbage collected class in oilpan.

I have added a persistent keepAlive in the CSSImageGenerator to ensure that it stays alive as long as it has RenderObject clients.

R=ager@chromium.org, erik.corry@gmail.com, haraken@chromium.org, oilpan-reviews@chromium.org, tkent@chromium.org, vegorov@chromium.org, zerny@chromium.org
BUG=341815

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

git-svn-id: svn://svn.chromium.org/blink/trunk@172494 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Make window.screen property non replaceable

Make window.screen property non replaceable for consistency with other
browsers (tested with Firefox 28 and IE11).

This CL also adds an internals.setOverrideScreenData() utility function for
Layout tests as the fast/forms/page-popup/page-popup-adjust-rect.html test
needs to be able to override the screen object.

BUG=364937
TEST=fast/dom/Window/get-set-properties.html

Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=172134

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

git-svn-id: svn://svn.chromium.org/blink/trunk@172495 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix cross-world wrapper leaks in MediaQueryListener

Currently MediaQueryListener is implicitly assuming that the listener is always invoked from the main world, which is a wrong assumption. This CL caches NewScriptState into MediaQueryListener and invokes the listener in a correct world.

This CL also removes ScriptCallback since it's used only in MediaQueryListener and replaces it with V8Callback::invokeCallback (other listeners are using V8Callback::invokeCallback).

TEST=fast/media/resources/media-query-list-callback-frame.html
BUG=357144

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

git-svn-id: svn://svn.chromium.org/blink/trunk@172496 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Reland "MemoryCache: make sure that Resources are evicted only when they can be deleted (https://codereview.chromium.org/179943002/)"

The original patch was reverted due to the browsertest
MultiProfileFileManagerBrowserTest.BasicDrive failing on ChromeOS.

BUG=290193

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

git-svn-id: svn://svn.chromium.org/blink/trunk@172497 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Oilpan: Simplify ADDRESS_SANITIZER checks.

SyZyASan no longer uses ADDRESS_SANITIZER so we do not need to check
that we are not on Windows when using ADDRESS_SANITIZER.

R=oilpan-reviews@chromium.org, vegorov@chromium.org, wibling@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@172498 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Fix frontend compilation following r172493

compile_frontend.py bailed out with an exception if a non-existent
file was encountered; no ERROR message was printed. As such,
the compilation succeeded and patch upload was allowed.

R=lushnikov@chromium.org, yurys@chromium.org, lushnikov

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

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