Remove boolean flag from updateChildrenAndEffects

BUG=258896

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160152 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add navigator.maxTouchPoints

Intent to implement-and-ship: https://groups.google.com/a/chromium.org/forum/#!searchin/blink-dev/maxTouchPoints/blink-dev/ayzxdztUlOQ/rd-z_Jo3ocIJ

navigator.maxTouchPoints is defined in the W3C Pointer Events
standard draft:
http://www.w3.org/TR/pointerevents/#widl-Navigator-maxTouchPoints

BUG=248918

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160153 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Introduce DEFINE_AX_OBJECT_TYPE_CASTS to replace manual toFoo() for accessibility child class.

DEFINE_TYPE_CASTS can be used for toFoo() in accessibility child class. The DEFINE_TYPE_CASTS will generate
plenty more helper functions for accessibility class type cast.

BUG=309516

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160154 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix failing custom filters tests

Add a return false case in StyleCustomFilterProgram::isLoaded for when m_vertexShader and m_fragmentShader are null. This can happen when ResourceFetcher refuses to create them because the page is being torn down.

Change the hasPendingShaders flag to hasNewCustomFIlterProgram. Before, the hasPendingShaders = false flag was keeping loadPendingShaders from proceeding. loadPendingShaders should always look up new StyleCustomFilterPrograms in the StyleCustomFilterProgramCache to see if there is an matching one that's already loaded the same resources.

BUG=280554, 243291

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160155 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Enable SVG WebGL textures

This is a merge of http://trac.webkit.org/changeset/157647 by Dean
Jackson <dino@apple.com>.

If the HTMLImageElement passed to texture2D is an SVG image, paint it
first into a bitmap buffer and upload that. Note that the SVG image
still needs to have an intrinsic or explicit size - see how the test
case must set width and height.

This patch also renames the cache of ImageBuffers since it is no longer
only being used for video frames.

BUG=309161

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160156 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add a .clang-format file to give us local control over Blink style.

This also makes editor integration somewhat easier by letting editors pass just "-style=file -assume-filename=<filename>" to clang-format instead of needing to guess the desired style based on the path.

We could name this file _clang-format instead, if that's easier for Windows.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160157 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add additional text encoding aliases per Encoding Standard

Additional aliases are required by the Encoding Standard beyond those
present in ICU 4.6.

R=jshin@chromium.org
BUG=277025

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160158 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add fast/canvas/canvas-lost-gpu-context.html to NeverFixTests

It's only meaningful when run as part of the virtual/gpu/ test suite, and
causes test flakiness when run outside that suite.

R=junov@chromium.org
BUG=305021

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160159 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: process trace events from background threads by a timed task.

We used to process pending background events upon BeginFrame, which
was a hack and does not work if main thread frames are not fired.
We should post a main thread task upon adding new events instead.

BUG=305863
R=pfeldman@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160160 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Enable animation for the shape-margin property

Changes to the shape-margin should relayout any content affected by the shape's
contour. This patch makes shape-margin respond to dynamic changes made via JS
and CSS animations.

BUG=304916

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160161 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Enable animated WebP by default.

The feature was LGTMed to ship here:
https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/yujPcy889e4

BUG=229641

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160162 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move Alternate Family Logic into separate header

Move the alternate font family name logic out of FontCache and into a
new dedicated AlternateFontFamily.h file. This moves the non-cache
related functionality out of the FontCache simplifying the interface.

BUG=309714
R=eseidel@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160163 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert r159668 "CSSPropertyTextIndent should be a member of css3TextProperties." 

CSSPropertyTextIndent shouldn't be a member of RuntimeEnabledFeatures::css3TextProperties.
This is the reason why we meet crash when run virtual/stable/webexposed/nonstable-css-properties.html in debug mode.

Even though the original patch has a test case for text-align-last, 
reverting the original one is better to avoid confusion.

And, I will upload another patch to add the test case for text-align-last.

BUG=308314

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160164 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove includes from LineWidth.h

We don't need to include RenderBlock.h and RenderRubyRun.h in LineWidth.h,
so I added forward declarations, and I moved the includes to LineWidth.cpp.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160165 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Have Frame::animation() return a reference

Have Frame::animation() return a reference instead of a pointer as it
can never return null. This makes the calling code look safer and gets
rid a several unnecessary null-checks.

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160166 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove superfluous PRETTY_FUNCTION define.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160167 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Layout test svg/batik/text/smallFonts.svg is no longer flaky

svg/batik/text/smallFonts.svg has not been flaky on linux for over a
week now, was likely fixed by the font-size cache change.

BUG=250897
TBR=ojan@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160168 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Handle the font size specified in a canvas when is in Rem format.

The CSSPrimitive class was missing the documentElement to compute the font
size. Added test to check the situation.

BUG=303846

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160169 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Introduce DEFINE_RENDER_OBJECT_TYPE_CASTS to replace manual toRenderFoo, and use it

As a step to let toFoo use DEFINE_TYPE_CASTS, this cl introduce DEFINE_RENDER_OBJECT_TYPE_CASTS,
which can support more helper functions rather than manual toFoo(). This cl will help to detect
bad type casts further.

BUG=309516

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

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