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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutObject.h

Issue 1406133005: Calculate paint invalidation rect for scrollbars (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 1282 matching lines...) Expand 10 before | Expand all | Expand 10 after
1293 return mayNeedPaintInvalidation() || shouldDoFullPaintInvalidation() || shouldInvalidateSelection() || m_bitfields.childShouldCheckForPaintInvalidation( ); 1293 return mayNeedPaintInvalidation() || shouldDoFullPaintInvalidation() || shouldInvalidateSelection() || m_bitfields.childShouldCheckForPaintInvalidation( );
1294 } 1294 }
1295 1295
1296 virtual bool supportsPaintInvalidationStateCachedOffsets() const { return !h asTransformRelatedProperty() && !hasReflection() && !style()->isFlippedBlocksWri tingMode(); } 1296 virtual bool supportsPaintInvalidationStateCachedOffsets() const { return !h asTransformRelatedProperty() && !hasReflection() && !style()->isFlippedBlocksWri tingMode(); }
1297 1297
1298 virtual LayoutRect viewRect() const; 1298 virtual LayoutRect viewRect() const;
1299 1299
1300 DisplayItemClient displayItemClient() const { return toDisplayItemClient(thi s); } 1300 DisplayItemClient displayItemClient() const { return toDisplayItemClient(thi s); }
1301 1301
1302 void invalidateDisplayItemClient(const DisplayItemClientWrapper&) const; 1302 void invalidateDisplayItemClient(const DisplayItemClientWrapper&) const;
1303 void invalidateDisplayItemClientForNonCompositingDescendants() const { inval idateDisplayItemClientForNonCompositingDescendantsOf(*this); } 1303 void invalidateDisplayItemClientsIncludingNonCompositingDescendants(const La youtBoxModelObject* paintInvalidationContainer, PaintInvalidationReason, const L ayoutRect* paintInvalidationRect) const;
1304 // A normal object should use invalidateDisplayItemClientForNonCompositingDe scendants()
1305 // to invalidate its descendants which are painted on the same backing. Howe ver, for
1306 // an object (e.g. LayoutScrollbarPart, custom scroll corner, custom resizer ) which is
1307 // not hooked up in the layout tree and not able to find its paint backing, it should
1308 // let its owning layout object call the following function.
1309 // FIXME: should we hook up scrollbar parts in the layout tree? crbug.com/48 4263.
1310 void invalidateDisplayItemClientForNonCompositingDescendantsOf(const LayoutO bject&) const;
1311 1304
1312 // Called before anonymousChild.setStyle(). Override to set custom styles fo r the child. 1305 // Called before anonymousChild.setStyle(). Override to set custom styles fo r the child.
1313 virtual void updateAnonymousChildStyle(const LayoutObject& anonymousChild, C omputedStyle& style) const { } 1306 virtual void updateAnonymousChildStyle(const LayoutObject& anonymousChild, C omputedStyle& style) const { }
1314 1307
1315 // Painters can use const methods only, except for these explicitly declared methods. 1308 // Painters can use const methods only, except for these explicitly declared methods.
1316 class MutableForPainting { 1309 class MutableForPainting {
1317 public: 1310 public:
1318 void setPreviousPaintOffset(const LayoutPoint& paintOffset) { m_layoutOb ject.setPreviousPaintOffset(paintOffset); } 1311 void setPreviousPaintOffset(const LayoutPoint& paintOffset) { m_layoutOb ject.setPreviousPaintOffset(paintOffset); }
1319 1312
1320 private: 1313 private:
(...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after
2047 void showTree(const blink::LayoutObject*); 2040 void showTree(const blink::LayoutObject*);
2048 void showLineTree(const blink::LayoutObject*); 2041 void showLineTree(const blink::LayoutObject*);
2049 void showLayoutTree(const blink::LayoutObject* object1); 2042 void showLayoutTree(const blink::LayoutObject* object1);
2050 // We don't make object2 an optional parameter so that showLayoutTree 2043 // We don't make object2 an optional parameter so that showLayoutTree
2051 // can be called from gdb easily. 2044 // can be called from gdb easily.
2052 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2); 2045 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2);
2053 2046
2054 #endif 2047 #endif
2055 2048
2056 #endif // LayoutObject_h 2049 #endif // LayoutObject_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698