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

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 1486 matching lines...) Expand 10 before | Expand all | Expand 10 after
1497 if (!style()->backgroundLayers().image() || 1497 if (!style()->backgroundLayers().image() ||
1498 style()->backgroundLayers().next()) { 1498 style()->backgroundLayers().next()) {
1499 paintedExtent = backgroundRect; 1499 paintedExtent = backgroundRect;
1500 return true; 1500 return true;
1501 } 1501 }
1502 1502
1503 BackgroundImageGeometry geometry; 1503 BackgroundImageGeometry geometry;
1504 // TODO(jchaffraix): This function should be rethought as it's called during 1504 // TODO(jchaffraix): This function should be rethought as it's called during
1505 // and outside of the paint phase. Potentially returning different results at 1505 // and outside of the paint phase. Potentially returning different results at
1506 // different phases. 1506 // different phases.
1507 geometry.calculate(*this, nullptr, GlobalPaintNormalPhase, 1507 geometry.calculate(*this, nullptr, nullptr, GlobalPaintNormalPhase,
1508 style()->backgroundLayers(), backgroundRect); 1508 style()->backgroundLayers(), backgroundRect);
1509 if (geometry.hasNonLocalGeometry()) 1509 if (geometry.hasNonLocalGeometry())
1510 return false; 1510 return false;
1511 paintedExtent = LayoutRect(geometry.destRect()); 1511 paintedExtent = LayoutRect(geometry.destRect());
1512 return true; 1512 return true;
1513 } 1513 }
1514 1514
1515 bool LayoutBox::backgroundIsKnownToBeOpaqueInRect( 1515 bool LayoutBox::backgroundIsKnownToBeOpaqueInRect(
1516 const LayoutRect& localRect) const { 1516 const LayoutRect& localRect) const {
1517 if (isDocumentElement() || backgroundStolenForBeingBody()) 1517 if (isDocumentElement() || backgroundStolenForBeingBody())
(...skipping 4175 matching lines...) Expand 10 before | Expand all | Expand 10 after
5693 block->adjustChildDebugRect(rect); 5693 block->adjustChildDebugRect(rect);
5694 5694
5695 return rect; 5695 return rect;
5696 } 5696 }
5697 5697
5698 bool LayoutBox::shouldClipOverflow() const { 5698 bool LayoutBox::shouldClipOverflow() const {
5699 return hasOverflowClip() || styleRef().containsPaint() || hasControlClip(); 5699 return hasOverflowClip() || styleRef().containsPaint() || hasControlClip();
5700 } 5700 }
5701 5701
5702 } // namespace blink 5702 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698