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

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

Issue 1330633003: Intersection Observer first draft Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Lost newline in merge Created 5 years, 2 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 1167 matching lines...) Expand 10 before | Expand all | Expand 10 after
1178 // to invalidate its descendants which are painted on the same backing. Howe ver, for 1178 // to invalidate its descendants which are painted on the same backing. Howe ver, for
1179 // an object (e.g. LayoutScrollbarPart, custom scroll corner, custom resizer ) which is 1179 // an object (e.g. LayoutScrollbarPart, custom scroll corner, custom resizer ) which is
1180 // not hooked up in the layout tree and not able to find its paint backing, it should 1180 // not hooked up in the layout tree and not able to find its paint backing, it should
1181 // let its owning layout object call the following function. 1181 // let its owning layout object call the following function.
1182 // FIXME: should we hook up scrollbar parts in the layout tree? crbug.com/48 4263. 1182 // FIXME: should we hook up scrollbar parts in the layout tree? crbug.com/48 4263.
1183 void invalidateDisplayItemClientForNonCompositingDescendantsOf(const LayoutO bject&) const; 1183 void invalidateDisplayItemClientForNonCompositingDescendantsOf(const LayoutO bject&) const;
1184 1184
1185 // Called before anonymousChild.setStyle(). Override to set custom styles fo r the child. 1185 // Called before anonymousChild.setStyle(). Override to set custom styles fo r the child.
1186 virtual void updateAnonymousChildStyle(const LayoutObject& anonymousChild, C omputedStyle& style) const { } 1186 virtual void updateAnonymousChildStyle(const LayoutObject& anonymousChild, C omputedStyle& style) const { }
1187 1187
1188 bool hasIntersectionObserver() { return m_node && m_node->hasIntersectionOb server(); }
1189
1188 protected: 1190 protected:
1189 enum LayoutObjectType { 1191 enum LayoutObjectType {
1190 LayoutObjectBr, 1192 LayoutObjectBr,
1191 LayoutObjectCanvas, 1193 LayoutObjectCanvas,
1192 LayoutObjectFieldset, 1194 LayoutObjectFieldset,
1193 LayoutObjectCounter, 1195 LayoutObjectCounter,
1194 LayoutObjectDetailsMarker, 1196 LayoutObjectDetailsMarker,
1195 LayoutObjectEmbeddedObject, 1197 LayoutObjectEmbeddedObject,
1196 LayoutObjectFileUploadControl, 1198 LayoutObjectFileUploadControl,
1197 LayoutObjectFrame, 1199 LayoutObjectFrame,
(...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after
1873 void showTree(const blink::LayoutObject*); 1875 void showTree(const blink::LayoutObject*);
1874 void showLineTree(const blink::LayoutObject*); 1876 void showLineTree(const blink::LayoutObject*);
1875 void showLayoutTree(const blink::LayoutObject* object1); 1877 void showLayoutTree(const blink::LayoutObject* object1);
1876 // We don't make object2 an optional parameter so that showLayoutTree 1878 // We don't make object2 an optional parameter so that showLayoutTree
1877 // can be called from gdb easily. 1879 // can be called from gdb easily.
1878 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2); 1880 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2);
1879 1881
1880 #endif 1882 #endif
1881 1883
1882 #endif // LayoutObject_h 1884 #endif // LayoutObject_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.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