[Mac] Unreviewed gardening.
https://bugs.webkit.org/show_bug.cgi?id=113775

Tests need platform-specific rebaselines after r147402. :(


* platform/mac-wk2/http/tests/security/XFrameOptions/x-frame-options-deny-meta-tag-parent-same-origin-deny-expected.txt: Added.
* platform/mac/http/tests/security/XFrameOptions/x-frame-options-deny-meta-tag-expected.txt: Added.
* platform/mac/http/tests/security/XFrameOptions/x-frame-options-deny-meta-tag-in-body-expected.txt: Added.
* platform/mac/http/tests/security/XFrameOptions/x-frame-options-deny-meta-tag-parent-same-origin-deny-expected.txt: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147423 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: add tests for grouped messages filtration in console.
https://bugs.webkit.org/show_bug.cgi?id=113766

Added console groups to console filter test. Fixed minor bugs in other tests.

Patch by Dmitry Zvorygin <zvorygin@chromium.org> on 2013-04-02
Reviewed by Pavel Feldman.

* inspector/console/console-filter-test-expected.txt:
* inspector/console/console-filter-test.html:
* inspector/console/console-preserve-log.html:
* inspector/console/console-tests-expected.txt:
* inspector/console/console-tests.html:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147424 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: ignore minimum record duration filter in Timeline overview
https://bugs.webkit.org/show_bug.cgi?id=113705

Reviewed by Pavel Feldman.

* inspector/front-end/TimelineOverviewPane.js:
* inspector/front-end/TimelinePanel.js:
(WebInspector.TimelinePanel.prototype._durationFilterChanged):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147425 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[CSS Regions] Nested auto-height regions don't layout correctly
https://bugs.webkit.org/show_bug.cgi?id=111969

Reviewed by David Hyatt.

Source/WebCore:

The patch fixes the auto-height regions processing model to work with nested named flows. Currently
this use case doesn't work correctly because the order in which the computed height value is propagated
to the regions is incorrect. For example, in the case of two flows (f1 and f2) and two auto-height
regions (r1 and r2) with r2 a member of f1:
1. the normal layout phase starts
2. r1 is laid out with height = 0
3. f1 is laid out including r2 with height = 0; overrideLogicalHeight for r1 is computed
4. f2 is laid out; overrideLogicalHeight for r2 is computed
5. the constrained layout phase starts
6. r1 is laid out using the overrideLogicalHeight computed in the normal phase
7. f1 is laid out including r2 with its overrideLogicalHeight
8. f2 is laid out

The problem appears at step 6 because the overrideLogicalheight computed during step 3 assumes r2
has a height of 0. The patch changes the algorithm to update the auto-height regions in the reverse
order of their flow threads dependecies. Here is a high level overview of the new algorithm,
considering the named flows are sorted in the order of their dependencies:
1. The flows are laid out from the outer flow to the inner flow. This successfully computes the outer
non-auto-height regions size so the inner flows have the necessary information to correctly fragment
the content.
2. The flows are laid out from the inner flow to the outer flow. After an inner flow is laid out it
goes into the constrained layout phase and marks the auto-height regions they need layout. This
means the outer flows will relayout if they depend on regions with auto-height regions belonging to
inner flows. This step will correctly compute the overrideLogicalHeights for the auto-height regions.
It's possible for non-auto-height regions to relayout if they depend on auto-height regions. This
will invalidate the inner flow threads and mark them as needing layout.
3. The last step is to do one last layout if there are pahtological dependencies between non-auto-height
regions and auto-height regions as detected in the previous step.

The patch also removes the layout phase flag from RenderView and moves it to the flow threads. This
happens because a flow needs to update its auto-height regions overrideLogicalHeight while updating
the logical height of the regions belonging to the inner flows that are laid out by the flow (i.e. the
outer flow is in the normal phase while the inner flows are in the constrained layout phase).

There's also a new flag on the RenderFlowThread that is set when the flow needs the constrained layout
phase. This could have been placed on the flow thread controller but I think it will be useful when doing
content balancing for the new multi-column implementation.

Another change is the moment we clear the overrideLogicalHeight value on empty auto-height regions because
we don't have to relayout a flow thread once it's in the constrained phase. We need to have the correct
flow thread portions correctly computed after the artificial forced break is applied at the end of the content.

Tests: fast/regions/autoheight-mixed-nested-complex-regions.html
       fast/regions/autoheight-mixed-nested-regions.html
       fast/regions/autoheight-mixed-parallel-regions.html
       fast/regions/autoheight-nested-regions.html

* rendering/FlowThreadController.cpp:
(WebCore::FlowThreadController::FlowThreadController):
(WebCore::FlowThreadController::layoutRenderNamedFlowThreads):
(WebCore):
(WebCore::FlowThreadController::registerNamedFlowContentNode):
(WebCore::FlowThreadController::unregisterNamedFlowContentNode):
(WebCore::FlowThreadController::updateFlowThreadsChainIfNecessary):
(WebCore::FlowThreadController::updateFlowThreadsNeedingLayout):
(WebCore::FlowThreadController::updateFlowThreadsNeedingTwoStepLayout):
(WebCore::FlowThreadController::resetFlowThreadsWithAutoHeightRegions):
(WebCore::FlowThreadController::updateFlowThreadsIntoConstrainedPhase):
* rendering/FlowThreadController.h:
(FlowThreadController):
* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::layoutBlock):
* rendering/RenderFlowThread.cpp:
(WebCore::RenderFlowThread::RenderFlowThread):
(WebCore::RenderFlowThread::validateRegions):
(WebCore::RenderFlowThread::layout):
(WebCore::RenderFlowThread::regionAtBlockOffset):
(WebCore::RenderFlowThread::applyBreakAfterContent): Apply an artificial break at the end of the content.
This way we can detect when the content ends and clear the overrideLogicalHeight on the empty auto-height regions.
(WebCore::RenderFlowThread::computeOverflowStateForRegions):
(WebCore):
(WebCore::RenderFlowThread::initializeRegionsOverrideLogicalContentHeight):
(WebCore::RenderFlowThread::markAutoLogicalHeightRegionsForLayout):
(WebCore::RenderFlowThread::updateRegionsFlowThreadPortionRect):
(WebCore::RenderFlowThread::addForcedRegionBreak):
* rendering/RenderFlowThread.h:
* rendering/RenderRegion.cpp:
(WebCore::RenderRegion::pageLogicalWidth):
(WebCore::RenderRegion::pageLogicalHeight):
(WebCore::RenderRegion::maxPageLogicalHeight):
(WebCore::RenderRegion::logicalHeightOfAllFlowThreadContent):
(WebCore::RenderRegion::layoutBlock):
(WebCore::RenderRegion::updateLogicalHeight):
* rendering/RenderView.cpp:
(WebCore::RenderView::RenderView):
(WebCore):
(WebCore::RenderView::layoutContentInAutoLogicalHeightRegions):
(WebCore::RenderView::layout):
* rendering/RenderView.h:
(WebCore):
(RenderView):

LayoutTests:

These tests cover various combinations of dependencies between flows and regions with
or without auto-height.

* fast/regions/autoheight-mixed-nested-complex-regions-expected.txt: Added.
* fast/regions/autoheight-mixed-nested-complex-regions.html: Added.
* fast/regions/autoheight-mixed-nested-regions-expected.txt: Added.
* fast/regions/autoheight-mixed-nested-regions.html: Added.
* fast/regions/autoheight-mixed-parallel-regions-expected.txt: Added.
* fast/regions/autoheight-mixed-parallel-regions.html: Added.
* fast/regions/autoheight-nested-regions-expected.txt: Added.
* fast/regions/autoheight-nested-regions.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147426 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: Update test expectation for console-cross-origin-iframe-logging.html
https://bugs.webkit.org/show_bug.cgi?id=113756

Patch by Seokju Kwon <seokju.kwon@gmail.com> on 2013-04-02
Reviewed by Pavel Feldman.

Simplified errors by not including the whole URL after r145692.

* http/tests/inspector/console-cross-origin-iframe-logging-expected.txt:
* platform/efl/TestExpectations:
* platform/qt/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147427 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: allow referencing of nodes that have not been pushed to the front-end
https://bugs.webkit.org/show_bug.cgi?id=110921

Patch by Dmitry Gozman <dgozman@chromium.org> on 2013-04-02
Reviewed by Pavel Feldman.

Nodes not yet pushed to front-end are referenced by BackendNodeId and retained.
One can group nodes when generating BackendNodeIds to release them all together later.

To resolve node references by BackendNodeId, frontend should use new pushNodeByBackendIdToFrontend method.
This will invalidate the generated BackendNodeId.

* inspector/Inspector.json:
* inspector/InspectorDOMAgent.cpp:
(WebCore::InspectorDOMAgent::discardBindings):
(WebCore::InspectorDOMAgent::backendNodeIdForNode):
(WebCore::InspectorDOMAgent::releaseBackendNodeIds):
(WebCore::InspectorDOMAgent::pushNodeByBackendIdToFrontend):
* inspector/InspectorDOMAgent.h:
(WebCore):
(InspectorDOMAgent):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147428 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Unreviewed gardening.

* platform/efl-wk2/TestExpectations:
* platform/efl-wk2/fast/repaint/caret-with-transformation-expected.png: Added.
* platform/efl-wk2/fast/repaint/caret-with-transformation-expected.txt: Added.
* platform/efl-wk2/fast/repaint/moving-shadow-on-container-expected.txt: Removed.
* platform/efl-wk2/fast/repaint/moving-shadow-on-path-expected.txt: Removed.
* platform/efl-wk2/http/tests/security/XFrameOptions/x-frame-options-deny-meta-tag-expected.txt: Added.
* platform/efl-wk2/http/tests/security/XFrameOptions/x-frame-options-deny-meta-tag-parent-same-origin-deny-expected.txt: Added.
* platform/efl-wk2/svg/css/composite-shadow-example-expected.txt: Removed.
* platform/efl-wk2/svg/css/composite-shadow-with-opacity-expected.txt: Removed.
* platform/efl/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147429 268f45cc-cd09-0410-ab3c-d52691b4dbfc
webkit fails IETC grid-column-002
https://bugs.webkit.org/show_bug.cgi?id=83907

Reviewed by Ojan Vafai.

Source/WebCore:

Tests: fast/css-grid-layout/grid-item-column-row-get-set.html
       ietestcenter/css3/grid/grid-column-002.htm

* css/CSSParser.cpp:
(WebCore::CSSParser::parseValue):
Don't accept 0 as a valid <integer> position.

LayoutTests:

* fast/css-grid-layout/grid-item-column-row-get-set-expected.txt:
* fast/css-grid-layout/grid-item-column-row-get-set.html:
Extended our testing to cover setting grid-{start|end|before|after} to 0.

* ietestcenter/css3/grid/grid-column-002.htm:
* ietestcenter/css3/grid/testRunnerEnableGrid.js: Added.
Needed to dynamically enable CSS Grid Layout for the test to pass. The file
hosts the boiler-plate code which will be common to all tests.

* platform/chromium/TestExpectations:
* platform/efl/TestExpectations:
* platform/gtk/TestExpectations:
* platform/qt-mac/TestExpectations:
* platform/qt/TestExpectations:
Removed grid-column-002.htm from the test expectations.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147430 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: [Timeline] unify logic for 3 overview modes in Timeline
https://bugs.webkit.org/show_bug.cgi?id=113708

Reviewed by Yury Semikhatsky.

- make TimelineOverviewPane logic independent on overview mode;
- show only one of 3 controls at one time;
- attach overview controls to the same parent.

* inspector/front-end/OverviewGrid.js: remove gridElement() and itemsGraphsElement(), no longer needed.
(WebInspector.OverviewGrid):
* inspector/front-end/TimelineOverviewPane.js:
(WebInspector.TimelineOverviewPane):
(WebInspector.TimelineOverviewPane.prototype.setMode):
(WebInspector.TimelineOverviewPane.prototype._innerSetMode):
(WebInspector.TimelineOverviewPane.prototype._createOverviewControl):
(WebInspector.TimelineOverviewPane.prototype._onCategoryVisibilityChanged):
(WebInspector.TimelineOverviewPane.prototype._update):
(WebInspector.TimelineOverviewPane.prototype.addFrame):
(WebInspector.TimelineOverviewPane.prototype.zoomToFrame):
(WebInspector.TimelineOverviewPane.prototype._reset):
(WebInspector.TimelineOverviewPane.prototype._onWindowChanged):
(WebInspector.TimelineOverviewBase.prototype.update):
(WebInspector.TimelineOverviewBase.prototype.reset):
(WebInspector.TimelineOverviewBase.prototype.categoryVisibilityChanged):
(WebInspector.TimelineOverviewBase.prototype.addFrame):
(WebInspector.TimelineOverviewBase.prototype.getWindowTimes):
(WebInspector.TimelineEventOverview):
(WebInspector.TimelineEventOverview.prototype.categoryVisibilityChanged):
* inspector/front-end/timelinePanel.css:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147431 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove unneeded cpp file from CMake build. Rubber-stamp by Alexis Menard.

* CMakeLists.txt: Remove FFTFrameStub.cpp, since adding this file or not
to your build is a platform decision.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147432 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: source location gets frozen after inspector reload
https://bugs.webkit.org/show_bug.cgi?id=113776

Patch by Andrey Lushnikov <lushnikov@chromium.org> on 2013-04-02
Reviewed by Pavel Feldman.

Put statusBarText item in its own container and update its contents in
ScriptsPanel._updateScriptViewStatusBarItems in similar way it's done
for statusBarItems.

No new tests.

* inspector/front-end/ScriptsPanel.js:
(WebInspector.ScriptsPanel):
(WebInspector.ScriptsPanel.prototype.statusBarText):
(WebInspector.ScriptsPanel.prototype._updateScriptViewStatusBarItems):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147433 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Hang when calling setCurrentTime on SVG with cyclic animation dependency chain
https://bugs.webkit.org/show_bug.cgi?id=113485

Patch by David Vest <davve@opera.com> on 2013-04-02
Reviewed by Stephen Chenney.

Source/WebCore:

If no exact match can be found, approximateBinarySearch may return
either adjacent value to the key. Selecting the lesser value when
there is a greater one may cause interval creation to fail in a
way that causes infinite loops during seeking. Detect and amend
this condition by selecting the greater value when possible.

Test: svg/animations/animation-dependency-hang.html

* svg/animation/SVGSMILElement.cpp:
(WebCore::SVGSMILElement::findInstanceTime):

LayoutTests:

* svg/animations/animation-dependency-hang-expected.txt: Added.
* svg/animations/animation-dependency-hang.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147434 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Unreviewed gardening.

New results for effect-reference-hw, due to slight pixel differences from http://src.chromium.org/viewvc/chrome?view=rev&revision=191067

* platform/chromium-mac/css3/filters/effect-reference-hw-expected.png:
* platform/chromium-win/css3/filters/effect-reference-hw-expected.png:
* platform/chromium/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147435 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, rolling out r147389.
http://trac.webkit.org/changeset/147389
https://bugs.webkit.org/show_bug.cgi?id=113738

r147389 was temporary patch for Chromium branch management, needs
revert.

* platform/ScrollView.cpp:
(WebCore::positionScrollbarLayer):
* rendering/RenderLayerBacking.cpp:
(WebCore::RenderLayerBacking::positionOverflowControlsLayers):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147436 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Unreviewed.

Enable fast/regions/region-style-inline-background-color.html on Mountain Lion as it started to pass.

* platform/chromium/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147437 268f45cc-cd09-0410-ab3c-d52691b4dbfc
AX: Need to get line thickness from fraction on web
https://bugs.webkit.org/show_bug.cgi?id=113720

Reviewed by David Kilzer.

Expose the line thickness property for fractions, which is needed to
help determine the type of equation.

Test: platform/mac/accessibility/mathml-line-fraction.html

* accessibility/AccessibilityObject.h:
(WebCore::AccessibilityObject::mathLineThickness):
* accessibility/AccessibilityRenderObject.cpp:
(WebCore::AccessibilityRenderObject::mathLineThickness):
(WebCore):
* accessibility/AccessibilityRenderObject.h:
(AccessibilityRenderObject):
* accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
(-[WebAccessibilityObjectWrapper accessibilityMathLineThickness]):
* accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
(-[WebAccessibilityObjectWrapper additionalAccessibilityAttributeNames]):
(-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147439 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Report memory usage for ShadowDistributedRules.
https://bugs.webkit.org/show_bug.cgi?id=109882

Reviewed by Dimitri Glazkov.

This is a follow-up patch for r142855.

No new tests, no behavior change for layout tests.

* css/DocumentRuleSets.cpp:
(WebCore):
(WebCore::ShadowDistributedRules::reportMemoryUsage):
(WebCore::DocumentRuleSets::reportMemoryUsage):
* css/DocumentRuleSets.h:
(ShadowDistributedRules):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147440 268f45cc-cd09-0410-ab3c-d52691b4dbfc
HTML parser should consistently inspect the namespace of elements on the stack of open elements
https://bugs.webkit.org/show_bug.cgi?id=113723

Reviewed by Adam Barth.

Source/WebCore:

Added HTMLStackItem::matchesHTMLTag method and use that nearly
everywhere instead of HTMLStackItem::hasLocalName. The most important
of these changes is in HTMLElementStack's inScopeCommon() function,
where the use of matchesHTMLTag means that any of the inXXXScope()
calls now only match HTML tags.

Tests: html5lib/generated/run-namespace-sensitivity-data.html
       html5lib/generated/run-namespace-sensitivity-write.html

* html/parser/HTMLConstructionSite.cpp:
(WebCore::HTMLConstructionSite::generateImpliedEndTagsWithExclusion):
* html/parser/HTMLElementStack.cpp:
(WebCore::HTMLElementStack::popUntil):
(WebCore::HTMLElementStack::topmost):
(WebCore::inScopeCommon):
(WebCore::HTMLElementStack::inScope):
(WebCore::HTMLElementStack::inListItemScope):
(WebCore::HTMLElementStack::inTableScope):
(WebCore::HTMLElementStack::inButtonScope):
(WebCore::HTMLElementStack::inSelectScope):
* html/parser/HTMLElementStack.h:
(WebCore::HTMLElementStack::popUntilPopped):
* html/parser/HTMLFormattingElementList.cpp:
(WebCore::HTMLFormattingElementList::closestElementInScopeWithName):
* html/parser/HTMLStackItem.h:
(WebCore::HTMLStackItem::matchesHTMLTag):
(HTMLStackItem):
* html/parser/HTMLTreeBuilder.cpp:
(WebCore::HTMLTreeBuilder::HTMLTreeBuilder):
(WebCore::HTMLTreeBuilder::processAnyOtherEndTagForInBody):
(WebCore::HTMLTreeBuilder::processEndTagForInCell):
(WebCore::HTMLTreeBuilder::processEndTagForInBody):

LayoutTests:

* html5lib/generated/run-namespace-sensitivity-data-expected.txt: Added.
* html5lib/generated/run-namespace-sensitivity-data.html: Added.
* html5lib/generated/run-namespace-sensitivity-write-expected.txt: Added.
* html5lib/generated/run-namespace-sensitivity-write.html: Added.
* html5lib/resources/namespace-sensitivity.dat: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147441 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[GTK][AC] Support preserves3D css property for clutter ac backend.
https://bugs.webkit.org/show_bug.cgi?id=113318

Patch by ChangSeok Oh <changseok.oh@collabora.com> on 2013-04-02
Reviewed by Gustavo Noronha Silva.

This patch brings preserve-3D css property support to WebKitGtk+ with clutter ac backed.
Most of the code is based on Mac port's implementation. The core concept is that
if a layer has preserve-3d property false, we mark itself and its immediate children
to make them flatten. And then we remove 3D factor in a modelView matrix
when applying it to each actor.

No new tests as this is covered with existing AC tests.

* platform/graphics/clutter/GraphicsLayerActor.cpp:
(_GraphicsLayerActorPrivate):
(graphics_layer_actor_init):
(graphicsLayerActorApplyTransform):
(graphicsLayerActorNew):
(graphicsLayerActorRemoveFromSuperLayer):
(graphicsLayerActorSetDrawsContent):
(graphicsLayerActorSetFlatten):
* platform/graphics/clutter/GraphicsLayerActor.h:
* platform/graphics/clutter/GraphicsLayerClutter.cpp:
(WebCore::GraphicsLayerClutter::~GraphicsLayerClutter):
(WebCore::GraphicsLayerClutter::platformLayer):
(WebCore::GraphicsLayerClutter::moveOrCopyAnimations):
(WebCore):
(WebCore::GraphicsLayerClutter::setPreserves3D):
(WebCore::GraphicsLayerClutter::flushCompositingState):
(WebCore::GraphicsLayerClutter::recursiveCommitChanges):
(WebCore::GraphicsLayerClutter::commitLayerChangesAfterSublayers):
(WebCore::GraphicsLayerClutter::commitLayerChangesBeforeSublayers):
(WebCore::GraphicsLayerClutter::updateGeometry):
(WebCore::GraphicsLayerClutter::updateSublayerList):
(WebCore::GraphicsLayerClutter::updateStructuralLayer):
(WebCore::GraphicsLayerClutter::ensureStructuralLayer):
(WebCore::GraphicsLayerClutter::structuralLayerPurpose):
(WebCore::GraphicsLayerClutter::layerForSuperlayer):
* platform/graphics/clutter/GraphicsLayerClutter.h:
(CommitState):
(WebCore::GraphicsLayerClutter::CommitState::CommitState):
(GraphicsLayerClutter):
(WebCore::GraphicsLayerClutter::primaryLayer):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, chromium expectations update.

* platform/chromium/TestExpectations: Mark svg/as-image/image-respects-pageScaleFactor.html as flaky.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147444 268f45cc-cd09-0410-ab3c-d52691b4dbfc