Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(373)

Side by Side Diff: Source/core/rendering/RenderTableSection.cpp

Issue 153233002: *** DO NOT LAND *** Remove regions support, keeping a bare minimum to support "region-based"... (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/rendering/RenderTable.cpp ('k') | Source/core/rendering/RenderTreeAsText.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1997 Martin Jones (mjones@kde.org) 2 * Copyright (C) 1997 Martin Jones (mjones@kde.org)
3 * (C) 1997 Torben Weis (weis@kde.org) 3 * (C) 1997 Torben Weis (weis@kde.org)
4 * (C) 1998 Waldo Bastian (bastian@kde.org) 4 * (C) 1998 Waldo Bastian (bastian@kde.org)
5 * (C) 1999 Lars Knoll (knoll@kde.org) 5 * (C) 1999 Lars Knoll (knoll@kde.org)
6 * (C) 1999 Antti Koivisto (koivisto@kde.org) 6 * (C) 1999 Antti Koivisto (koivisto@kde.org)
7 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. All rights reserved. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. All rights reserved.
8 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com) 8 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com)
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 1610 matching lines...) Expand 10 before | Expand all | Expand 10 after
1621 bool RenderTableSection::nodeAtPoint(const HitTestRequest& request, HitTestResul t& result, const HitTestLocation& locationInContainer, const LayoutPoint& accumu latedOffset, HitTestAction action) 1621 bool RenderTableSection::nodeAtPoint(const HitTestRequest& request, HitTestResul t& result, const HitTestLocation& locationInContainer, const LayoutPoint& accumu latedOffset, HitTestAction action)
1622 { 1622 {
1623 // If we have no children then we have nothing to do. 1623 // If we have no children then we have nothing to do.
1624 if (!firstChild()) 1624 if (!firstChild())
1625 return false; 1625 return false;
1626 1626
1627 // Table sections cannot ever be hit tested. Effectively they do not exist. 1627 // Table sections cannot ever be hit tested. Effectively they do not exist.
1628 // Just forward to our children always. 1628 // Just forward to our children always.
1629 LayoutPoint adjustedLocation = accumulatedOffset + location(); 1629 LayoutPoint adjustedLocation = accumulatedOffset + location();
1630 1630
1631 if (hasOverflowClip() && !locationInContainer.intersects(overflowClipRect(ad justedLocation, locationInContainer.region()))) 1631 if (hasOverflowClip() && !locationInContainer.intersects(overflowClipRect(ad justedLocation)))
1632 return false; 1632 return false;
1633 1633
1634 if (hasOverflowingCell()) { 1634 if (hasOverflowingCell()) {
1635 for (RenderObject* child = lastChild(); child; child = child->previousSi bling()) { 1635 for (RenderObject* child = lastChild(); child; child = child->previousSi bling()) {
1636 // FIXME: We have to skip over inline flows, since they can show up inside table rows 1636 // FIXME: We have to skip over inline flows, since they can show up inside table rows
1637 // at the moment (a demoted inline <form> for example). If we ever i mplement a 1637 // at the moment (a demoted inline <form> for example). If we ever i mplement a
1638 // table-specific hit-test method (which we should do for performanc e reasons anyway), 1638 // table-specific hit-test method (which we should do for performanc e reasons anyway),
1639 // then we can remove this check. 1639 // then we can remove this check.
1640 if (child->isBox() && !toRenderBox(child)->hasSelfPaintingLayer()) { 1640 if (child->isBox() && !toRenderBox(child)->hasSelfPaintingLayer()) {
1641 LayoutPoint childPoint = flipForWritingModeForChild(toRenderBox( child), adjustedLocation); 1641 LayoutPoint childPoint = flipForWritingModeForChild(toRenderBox( child), adjustedLocation);
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
1730 else 1730 else
1731 cellLocation.setX(table()->columnPositions()[effectiveColumn] + horizont alBorderSpacing); 1731 cellLocation.setX(table()->columnPositions()[effectiveColumn] + horizont alBorderSpacing);
1732 1732
1733 cell->setLogicalLocation(cellLocation); 1733 cell->setLogicalLocation(cellLocation);
1734 1734
1735 if (!RuntimeEnabledFeatures::repaintAfterLayoutEnabled()) 1735 if (!RuntimeEnabledFeatures::repaintAfterLayoutEnabled())
1736 view()->addLayoutDelta(oldCellLocation - cell->location()); 1736 view()->addLayoutDelta(oldCellLocation - cell->location());
1737 } 1737 }
1738 1738
1739 } // namespace WebCore 1739 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderTable.cpp ('k') | Source/core/rendering/RenderTreeAsText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698