Fix layoutMod in fractional layout units.
https://bugs.webkit.org/show_bug.cgi?id=92374

Reviewed by Levi Weintraub.

Source/WebCore:

The modulo operation is upgraded from only being performed in integer to
being performed in fractionalLayoutUnits, so that it returns an accurate
remainder for fractionalLayoutUnit division.

An alternative modulo operation is added and used to find the remainder
after division with natural integer results, for instance, the remainding
height after pagination.

No new functionality. No new tests.

* platform/FractionalLayoutUnit.h:
(WebCore::intMod):
(WebCore::operator%):
* rendering/LayoutTypes.h:
(WebCore::layoutMod):
* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::pageRemainingLogicalHeightForOffset):
* rendering/RenderFlowThread.cpp:
(WebCore::RenderFlowThread::regionRemainingLogicalHeightForLine):

LayoutTests:

Mark minor pixel changes in the baseline as expected failures.

* platform/chromium/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124745 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, rolling out r124739.
http://trac.webkit.org/changeset/124739
https://bugs.webkit.org/show_bug.cgi?id=93241

newly added test crash on chromium linux debug (Requested by
toyoshim on #webkit).

Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2012-08-06

Source/WebCore:

* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::removeChild):

LayoutTests:

* fast/lists/list-marker-remove-crash-expected.txt: Removed.
* fast/lists/list-marker-remove-crash.html: Removed.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124746 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed: Web Inspector: single line test fix for r124744.

* loader/cache/CachedResourceLoader.cpp:
(WebCore::CachedResourceLoader::reportMemoryUsage):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124747 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove unused png files from platform/chromium-linux/fast/css/variables.
https://bugs.webkit.org/show_bug.cgi?id=93232

Reviewed by Tony Chang.

* platform/chromium-linux/fast/css/variables/block-cycle-test-expected.png: Removed.
* platform/chromium-linux/fast/css/variables/colors-test-expected.png: Removed.
* platform/chromium-linux/fast/css/variables/declaration-block-test-expected.png: Removed.
* platform/chromium-linux/fast/css/variables/font-test-expected.png: Removed.
* platform/chromium-linux/fast/css/variables/image-test-expected.png: Removed.
* platform/chromium-linux/fast/css/variables/import-test-expected.png: Removed.
* platform/chromium-linux/fast/css/variables/inline-style-test-expected.png: Removed.
* platform/chromium-linux/fast/css/variables/invalid-variable-test-expected.png: Removed.
* platform/chromium-linux/fast/css/variables/margin-test-expected.png: Removed.
* platform/chromium-linux/fast/css/variables/misplaced-import-test-expected.png: Removed.
* platform/chromium-linux/fast/css/variables/misplaced-variables-test-expected.png: Removed.
* platform/chromium-linux/fast/css/variables/multiple-blocks-test-expected.png: Removed.
* platform/chromium-linux/fast/css/variables/multiple-term-test-expected.png: Removed.
* platform/chromium-linux/fast/css/variables/override-test-expected.png: Removed.
* platform/chromium-linux/fast/css/variables/print-test-expected.png: Removed.
* platform/chromium-linux/fast/css/variables/remove-variable-test-expected.png: Removed.
* platform/chromium-linux/fast/css/variables/set-variable-test-expected.png: Removed.
* platform/chromium-linux/fast/css/variables/shorthand-test-expected.png: Removed.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124748 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: extracting HighlightInfo from HighlightData in DOMNodeHighlighter
https://bugs.webkit.org/show_bug.cgi?id=91632

Patch by Sergey Rogulenko <rogulenko@google.com> on 2012-08-06
Reviewed by Pavel Feldman.

Extracted struct HighlightInfo from struct HighlightData in DOMNodeHighlighter.
Now InspectorOverlay receives node or rect to highlight together with highlightInfo.

* inspector/DOMNodeHighlighter.cpp:
(WebCore::InspectorOverlay::paint):
(WebCore::InspectorOverlay::getHighlight):
(WebCore::InspectorOverlay::hideHighlight):
(WebCore::InspectorOverlay::highlightNode):
(WebCore::InspectorOverlay::highlightRect):
(WebCore::InspectorOverlay::highlightedNode):
(WebCore::InspectorOverlay::update):
(WebCore::InspectorOverlay::drawNodeHighlight):
(WebCore):
(WebCore::InspectorOverlay::drawRectHighlight):
(WebCore::InspectorOverlay::drawPausedInDebugger):
* inspector/DOMNodeHighlighter.h:
(HighlightConfig):
(WebCore::Highlight::setColors):
(Highlight):
(InspectorOverlay):
* inspector/InspectorDOMAgent.cpp:
(WebCore::InspectorDOMAgent::clearFrontend):
(WebCore::InspectorDOMAgent::inspect):
(WebCore::InspectorDOMAgent::mouseDidMoveOverElement):
(WebCore::InspectorDOMAgent::setSearchingForNode):
(WebCore::InspectorDOMAgent::highlightConfigFromInspectorObject):
(WebCore::InspectorDOMAgent::setInspectModeEnabled):
(WebCore::InspectorDOMAgent::highlightRect):
(WebCore::InspectorDOMAgent::highlightNode):
(WebCore::InspectorDOMAgent::highlightFrame):
* inspector/InspectorDOMAgent.h:
(WebCore):
(InspectorDOMAgent):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124749 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Microdata: document.getItems() must treat no token as no parameter.
https://bugs.webkit.org/show_bug.cgi?id=93071

Reviewed by Ryosuke Niwa.

Source/WebCore: 

document.getItems() must return all top-level microdata items in the
document when no tokens specified in the argument.
Spec: http://www.whatwg.org/specs/web-apps/current-work/multipage/microdata.html#dom-document-getitems

Test: fast/dom/MicroData/getitems-empty-string-as-arg.html

* dom/Document.cpp:
(WebCore::Document::getItems): Create an empty string identifier when typeNames is null string
to map such request in the cache.
* dom/MicroDataItemList.cpp:
(WebCore::MicroDataItemList::undefinedItemType): Changed undefinedItemType() to empty string.
(WebCore::MicroDataItemList::nodeMatches): Return true if m_typeNames contains no token.

LayoutTests: 

Added test to verify that document.getItems() returns all top-level
microdata items in the document when no tokens specified in the argement.

* fast/dom/MicroData/getitems-empty-string-as-arg-expected.txt: Added.
* fast/dom/MicroData/getitems-empty-string-as-arg.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124750 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed gardening, skip new asserting tests to paint the bots green.

* platform/qt/Skipped:

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