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

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

Issue 2181953004: Changed ComputedStyle's EVisibility to be an enum class and fixed naming (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_move_computedstyle_around
Patch Set: Rebase Created 4 years, 4 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 1224 matching lines...) Expand 10 before | Expand all | Expand 10 after
1235 virtual void imageChanged(WrappedImagePtr, const IntRect* = nullptr) { } 1235 virtual void imageChanged(WrappedImagePtr, const IntRect* = nullptr) { }
1236 1236
1237 void selectionStartEnd(int& spos, int& epos) const; 1237 void selectionStartEnd(int& spos, int& epos) const;
1238 1238
1239 void remove() 1239 void remove()
1240 { 1240 {
1241 if (parent()) 1241 if (parent())
1242 parent()->removeChild(this); 1242 parent()->removeChild(this);
1243 } 1243 }
1244 1244
1245 bool visibleToHitTestRequest(const HitTestRequest& request) const { return s tyle()->visibility() == VISIBLE && (request.ignorePointerEventsNone() || style() ->pointerEvents() != PE_NONE) && !isInert(); } 1245 bool visibleToHitTestRequest(const HitTestRequest& request) const { return s tyle()->visibility() == EVisibility::Visible && (request.ignorePointerEventsNone () || style()->pointerEvents() != PE_NONE) && !isInert(); }
1246 1246
1247 bool visibleToHitTesting() const { return style()->visibility() == VISIBLE & & style()->pointerEvents() != PE_NONE && !isInert(); } 1247 bool visibleToHitTesting() const { return style()->visibility() == EVisibili ty::Visible && style()->pointerEvents() != PE_NONE && !isInert(); }
1248 1248
1249 // Map points and quads through elements, potentially via 3d transforms. You should never need to call these directly; use 1249 // Map points and quads through elements, potentially via 3d transforms. You should never need to call these directly; use
1250 // localToAbsolute/absoluteToLocal methods instead. 1250 // localToAbsolute/absoluteToLocal methods instead.
1251 virtual void mapLocalToAncestor(const LayoutBoxModelObject* ancestor, Transf ormState&, MapCoordinatesFlags = ApplyContainerFlip) const; 1251 virtual void mapLocalToAncestor(const LayoutBoxModelObject* ancestor, Transf ormState&, MapCoordinatesFlags = ApplyContainerFlip) const;
1252 // If the LayoutBoxModelObject ancestor is non-null, the input quad is in th e space of the ancestor. 1252 // If the LayoutBoxModelObject ancestor is non-null, the input quad is in th e space of the ancestor.
1253 // Otherwise: 1253 // Otherwise:
1254 // If TraverseDocumentBoundaries is specified, the input quad is in the sp ace of the local root frame. 1254 // If TraverseDocumentBoundaries is specified, the input quad is in the sp ace of the local root frame.
1255 // Otherwise, the input quad is in the space of the containing frame. 1255 // Otherwise, the input quad is in the space of the containing frame.
1256 virtual void mapAncestorToLocal(const LayoutBoxModelObject*, TransformState& , MapCoordinatesFlags = ApplyContainerFlip) const; 1256 virtual void mapAncestorToLocal(const LayoutBoxModelObject*, TransformState& , MapCoordinatesFlags = ApplyContainerFlip) const;
1257 1257
(...skipping 929 matching lines...) Expand 10 before | Expand all | Expand 10 after
2187 void showTree(const blink::LayoutObject*); 2187 void showTree(const blink::LayoutObject*);
2188 void showLineTree(const blink::LayoutObject*); 2188 void showLineTree(const blink::LayoutObject*);
2189 void showLayoutTree(const blink::LayoutObject* object1); 2189 void showLayoutTree(const blink::LayoutObject* object1);
2190 // We don't make object2 an optional parameter so that showLayoutTree 2190 // We don't make object2 an optional parameter so that showLayoutTree
2191 // can be called from gdb easily. 2191 // can be called from gdb easily.
2192 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2); 2192 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2);
2193 2193
2194 #endif 2194 #endif
2195 2195
2196 #endif // LayoutObject_h 2196 #endif // LayoutObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698