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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutBox.cpp

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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com)
5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com)
6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc.
7 * All rights reserved. 7 * All rights reserved.
8 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. 8 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved.
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 1480 matching lines...) Expand 10 before | Expand all | Expand 10 after
1491 if (!style()->backgroundLayers().image() || 1491 if (!style()->backgroundLayers().image() ||
1492 style()->backgroundLayers().next()) { 1492 style()->backgroundLayers().next()) {
1493 paintedExtent = backgroundRect; 1493 paintedExtent = backgroundRect;
1494 return true; 1494 return true;
1495 } 1495 }
1496 1496
1497 BackgroundImageGeometry geometry; 1497 BackgroundImageGeometry geometry;
1498 // TODO(jchaffraix): This function should be rethought as it's called during 1498 // TODO(jchaffraix): This function should be rethought as it's called during
1499 // and outside of the paint phase. Potentially returning different results at 1499 // and outside of the paint phase. Potentially returning different results at
1500 // different phases. 1500 // different phases.
1501 geometry.calculate(*this, nullptr, GlobalPaintNormalPhase, 1501 geometry.calculate(*this, nullptr, nullptr, GlobalPaintNormalPhase,
1502 style()->backgroundLayers(), backgroundRect); 1502 style()->backgroundLayers(), backgroundRect);
1503 if (geometry.hasNonLocalGeometry()) 1503 if (geometry.hasNonLocalGeometry())
1504 return false; 1504 return false;
1505 paintedExtent = LayoutRect(geometry.destRect()); 1505 paintedExtent = LayoutRect(geometry.destRect());
1506 return true; 1506 return true;
1507 } 1507 }
1508 1508
1509 bool LayoutBox::backgroundIsKnownToBeOpaqueInRect( 1509 bool LayoutBox::backgroundIsKnownToBeOpaqueInRect(
1510 const LayoutRect& localRect) const { 1510 const LayoutRect& localRect) const {
1511 if (isDocumentElement() || backgroundStolenForBeingBody()) 1511 if (isDocumentElement() || backgroundStolenForBeingBody())
(...skipping 4184 matching lines...) Expand 10 before | Expand all | Expand 10 after
5696 block->adjustChildDebugRect(rect); 5696 block->adjustChildDebugRect(rect);
5697 5697
5698 return rect; 5698 return rect;
5699 } 5699 }
5700 5700
5701 bool LayoutBox::shouldClipOverflow() const { 5701 bool LayoutBox::shouldClipOverflow() const {
5702 return hasOverflowClip() || styleRef().containsPaint() || hasControlClip(); 5702 return hasOverflowClip() || styleRef().containsPaint() || hasControlClip();
5703 } 5703 }
5704 5704
5705 } // namespace blink 5705 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698