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

Unified Diff: third_party/WebKit/Source/core/paint/BackgroundImageGeometry.h

Issue 2600903002: Paint the whole of a table-part background image behind the cells in a table (Closed)
Patch Set: Paint the whole of an image behind the cells in a table Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/paint/BackgroundImageGeometry.h
diff --git a/third_party/WebKit/Source/core/paint/BackgroundImageGeometry.h b/third_party/WebKit/Source/core/paint/BackgroundImageGeometry.h
index 5a7dccaf27728dd86f1283997e789efb2648fc3b..c91c76e4824532353a2b0494b8113b42a5a21985 100644
--- a/third_party/WebKit/Source/core/paint/BackgroundImageGeometry.h
+++ b/third_party/WebKit/Source/core/paint/BackgroundImageGeometry.h
@@ -14,8 +14,11 @@
namespace blink {
class FillLayer;
+class LayoutBox;
class LayoutBoxModelObject;
+class LayoutObject;
class LayoutRect;
+class LayoutTableCell;
class BackgroundImageGeometry {
DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
@@ -24,6 +27,7 @@ class BackgroundImageGeometry {
BackgroundImageGeometry() : m_hasNonLocalGeometry(false) {}
void calculate(const LayoutBoxModelObject&,
+ const LayoutObject* backgroundObject,
const LayoutBoxModelObject* paintContainer,
const GlobalPaintFlags,
const FillLayer&,
@@ -66,17 +70,22 @@ class BackgroundImageGeometry {
LayoutUnit,
LayoutUnit,
LayoutUnit,
+ LayoutUnit,
LayoutUnit);
void setRepeatY(const FillLayer&,
LayoutUnit,
LayoutUnit,
LayoutUnit,
+ LayoutUnit,
LayoutUnit);
void setSpaceX(LayoutUnit, LayoutUnit, LayoutUnit);
void setSpaceY(LayoutUnit, LayoutUnit, LayoutUnit);
void useFixedAttachment(const LayoutPoint& attachmentPoint);
void setHasNonLocalGeometry() { m_hasNonLocalGeometry = true; }
+ LayoutPoint getOffsetForCell(const LayoutTableCell&, const LayoutBox&);
+ LayoutSize getBackgroundObjectDimensions(const LayoutTableCell&,
+ const LayoutBox&);
// TODO(schenney): Convert these to IntPoints for values that we snap
LayoutRect m_destRect;

Powered by Google App Engine
This is Rietveld 408576698