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

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

Issue 1269123002: Preparation for combining paths of focus rings and outlines (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove debug from fast/css/focus-ring-recursive-continuations.html Created 5 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 | Annotate | Revision Log
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 * Copyright (C) 2003, 2006, 2007, 2009 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2006, 2007, 2009 Apple Inc. All rights reserved.
5 * Copyright (C) 2010 Google Inc. All rights reserved. 5 * Copyright (C) 2010 Google Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 bool calculateHasBoxDecorations() const; 220 bool calculateHasBoxDecorations() const;
221 221
222 LayoutBoxModelObject* continuation() const; 222 LayoutBoxModelObject* continuation() const;
223 void setContinuation(LayoutBoxModelObject*); 223 void setContinuation(LayoutBoxModelObject*);
224 224
225 LayoutRect localCaretRectForEmptyElement(LayoutUnit width, LayoutUnit textIn dentOffset); 225 LayoutRect localCaretRectForEmptyElement(LayoutUnit width, LayoutUnit textIn dentOffset);
226 226
227 bool hasAutoHeightOrContainingBlockWithAutoHeight() const; 227 bool hasAutoHeightOrContainingBlockWithAutoHeight() const;
228 LayoutBlock* containingBlockForAutoHeightDetection(Length logicalHeight) con st; 228 LayoutBlock* containingBlockForAutoHeightDetection(Length logicalHeight) con st;
229 229
230 void addFocusRingRectsForNormalChildren(Vector<LayoutRect>&, const LayoutPoi nt& additionalOffset) const; 230 void addOutlineRectsForNormalChildren(Vector<LayoutRect>&, const LayoutPoint & additionalOffset) const;
231 void addFocusRingRectsForDescendant(const LayoutObject& descendant, Vector<L ayoutRect>&, const LayoutPoint& additionalOffset) const; 231 void addOutlineRectsForDescendant(const LayoutObject& descendant, Vector<Lay outRect>&, const LayoutPoint& additionalOffset) const;
232 232
233 void addLayerHitTestRects(LayerHitTestRects&, const DeprecatedPaintLayer*, c onst LayoutPoint&, const LayoutRect&) const override; 233 void addLayerHitTestRects(LayerHitTestRects&, const DeprecatedPaintLayer*, c onst LayoutPoint&, const LayoutRect&) const override;
234 234
235 void styleWillChange(StyleDifference, const ComputedStyle& newStyle) overrid e; 235 void styleWillChange(StyleDifference, const ComputedStyle& newStyle) overrid e;
236 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override ; 236 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override ;
237 237
238 public: 238 public:
239 // These functions are only used internally to manipulate the layout tree st ructure via remove/insert/appendChildNode. 239 // These functions are only used internally to manipulate the layout tree st ructure via remove/insert/appendChildNode.
240 // Since they are typically called only to move objects around within anonym ous blocks (which only have layers in 240 // Since they are typically called only to move objects around within anonym ous blocks (which only have layers in
241 // the case of column spans), the default for fullRemoveInsert is false rath er than true. 241 // the case of column spans), the default for fullRemoveInsert is false rath er than true.
(...skipping 28 matching lines...) Expand all
270 bool isBoxModelObject() const final { return true; } 270 bool isBoxModelObject() const final { return true; }
271 271
272 OwnPtr<DeprecatedPaintLayer> m_layer; 272 OwnPtr<DeprecatedPaintLayer> m_layer;
273 }; 273 };
274 274
275 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBoxModelObject, isBoxModelObject()); 275 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBoxModelObject, isBoxModelObject());
276 276
277 } // namespace blink 277 } // namespace blink
278 278
279 #endif // LayoutBoxModelObject_h 279 #endif // LayoutBoxModelObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698