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

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

Issue 1330633003: Intersection Observer first draft Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Include new files as well. Created 5 years, 3 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) 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 1040 matching lines...) Expand 10 before | Expand all | Expand 10 after
1051 // to invalidate its descendants which are painted on the same backing. Howe ver, for 1051 // to invalidate its descendants which are painted on the same backing. Howe ver, for
1052 // an object (e.g. LayoutScrollbarPart, custom scroll corner, custom resizer ) which is 1052 // an object (e.g. LayoutScrollbarPart, custom scroll corner, custom resizer ) which is
1053 // not hooked up in the layout tree and not able to find its paint backing, it should 1053 // not hooked up in the layout tree and not able to find its paint backing, it should
1054 // let its owning layout object call the following function. 1054 // let its owning layout object call the following function.
1055 // FIXME: should we hook up scrollbar parts in the layout tree? crbug.com/48 4263. 1055 // FIXME: should we hook up scrollbar parts in the layout tree? crbug.com/48 4263.
1056 void invalidateDisplayItemClientForNonCompositingDescendantsOf(const LayoutO bject&) const; 1056 void invalidateDisplayItemClientForNonCompositingDescendantsOf(const LayoutO bject&) const;
1057 1057
1058 // Called before anonymousChild.setStyle(). Override to set custom styles fo r the child. 1058 // Called before anonymousChild.setStyle(). Override to set custom styles fo r the child.
1059 virtual void updateAnonymousChildStyle(const LayoutObject& anonymousChild, C omputedStyle& style) const { } 1059 virtual void updateAnonymousChildStyle(const LayoutObject& anonymousChild, C omputedStyle& style) const { }
1060 1060
1061 bool hasIntersectionObserver() { return m_node && m_node->hasIntersectionOb server(); }
1062
1061 protected: 1063 protected:
1062 enum LayoutObjectType { 1064 enum LayoutObjectType {
1063 LayoutObjectBr, 1065 LayoutObjectBr,
1064 LayoutObjectCanvas, 1066 LayoutObjectCanvas,
1065 LayoutObjectFieldset, 1067 LayoutObjectFieldset,
1066 LayoutObjectCounter, 1068 LayoutObjectCounter,
1067 LayoutObjectDetailsMarker, 1069 LayoutObjectDetailsMarker,
1068 LayoutObjectEmbeddedObject, 1070 LayoutObjectEmbeddedObject,
1069 LayoutObjectFileUploadControl, 1071 LayoutObjectFileUploadControl,
1070 LayoutObjectFrame, 1072 LayoutObjectFrame,
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after
1669 void showTree(const blink::LayoutObject*); 1671 void showTree(const blink::LayoutObject*);
1670 void showLineTree(const blink::LayoutObject*); 1672 void showLineTree(const blink::LayoutObject*);
1671 void showLayoutTree(const blink::LayoutObject* object1); 1673 void showLayoutTree(const blink::LayoutObject* object1);
1672 // We don't make object2 an optional parameter so that showLayoutTree 1674 // We don't make object2 an optional parameter so that showLayoutTree
1673 // can be called from gdb easily. 1675 // can be called from gdb easily.
1674 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2); 1676 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2);
1675 1677
1676 #endif 1678 #endif
1677 1679
1678 #endif // LayoutObject_h 1680 #endif // LayoutObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698