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

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

Issue 2688413005: Check paint offset change after updatePaintOffsetTransform (Closed)
Patch Set: Created 3 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 | « no previous file | third_party/WebKit/Source/core/layout/LayoutObject.h » ('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) 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 1686 matching lines...) Expand 10 before | Expand all | Expand 10 after
1697 1697
1698 int screenArea = 0; 1698 int screenArea = 0;
1699 if (!screenRect.isEmpty() && isVisible) 1699 if (!screenRect.isEmpty() && isVisible)
1700 screenArea = (screenRect.width() * screenRect.height()).toInt(); 1700 screenArea = (screenRect.width() * screenRect.height()).toInt();
1701 return ResourcePriority( 1701 return ResourcePriority(
1702 isVisible ? ResourcePriority::Visible : ResourcePriority::NotVisible, 1702 isVisible ? ResourcePriority::Visible : ResourcePriority::NotVisible,
1703 screenArea); 1703 screenArea);
1704 } 1704 }
1705 1705
1706 void LayoutBox::locationChanged() { 1706 void LayoutBox::locationChanged() {
1707 // The location may change because of layout of other objects. Should check 1707 // The location may change because of layout of other objects. Should update
1708 // this object for paint invalidation. 1708 // paint properties and check for paint invalidation.
1709 if (!needsLayout()) 1709 if (!needsLayout()) {
1710 setMayNeedPaintInvalidation(); 1710 setMayNeedPaintInvalidation();
1711 setNeedsPaintPropertyUpdate();
1712 }
1711 } 1713 }
1712 1714
1713 void LayoutBox::sizeChanged() { 1715 void LayoutBox::sizeChanged() {
1714 // The size may change because of layout of other objects. Should check this 1716 // The size may change because of layout of other objects. Should check this
1715 // object for paint invalidation. 1717 // object for paint invalidation.
1716 if (!needsLayout()) 1718 if (!needsLayout())
1717 setMayNeedPaintInvalidation(); 1719 setMayNeedPaintInvalidation();
1718 1720
1719 if (node() && node()->isElementNode()) { 1721 if (node() && node()->isElementNode()) {
1720 Element& element = toElement(*node()); 1722 Element& element = toElement(*node());
(...skipping 3993 matching lines...) Expand 10 before | Expand all | Expand 10 after
5714 block->adjustChildDebugRect(rect); 5716 block->adjustChildDebugRect(rect);
5715 5717
5716 return rect; 5718 return rect;
5717 } 5719 }
5718 5720
5719 bool LayoutBox::shouldClipOverflow() const { 5721 bool LayoutBox::shouldClipOverflow() const {
5720 return hasOverflowClip() || styleRef().containsPaint() || hasControlClip(); 5722 return hasOverflowClip() || styleRef().containsPaint() || hasControlClip();
5721 } 5723 }
5722 5724
5723 } // namespace blink 5725 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698