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

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

Issue 2245873002: Disable anchoring if ancestor changes padding or margin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/ScrollAnchor.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 * (C) 2007 David Smith (catfish.man@gmail.com) 4 * (C) 2007 David Smith (catfish.man@gmail.com)
5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All r ights reserved. 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All r ights 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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 352
353 void computeBlockPreferredLogicalWidths(LayoutUnit& minLogicalWidth, LayoutU nit& maxLogicalWidth) const; 353 void computeBlockPreferredLogicalWidths(LayoutUnit& minLogicalWidth, LayoutU nit& maxLogicalWidth) const;
354 354
355 bool isSelectionRoot() const; 355 bool isSelectionRoot() const;
356 356
357 public: 357 public:
358 bool hasCursorCaret() const; 358 bool hasCursorCaret() const;
359 bool hasDragCaret() const; 359 bool hasDragCaret() const;
360 bool hasCaret() const { return hasCursorCaret() || hasDragCaret(); } 360 bool hasCaret() const { return hasCursorCaret() || hasDragCaret(); }
361 361
362 bool heightAvailableToChildrenChanged() const { return m_heightAvailableToC hildrenChanged; }
363
362 private: 364 private:
363 LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* extraWidt hToEndOfLine = nullptr) final; 365 LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* extraWidt hToEndOfLine = nullptr) final;
364 bool isInlineBoxWrapperActuallyChild() const; 366 bool isInlineBoxWrapperActuallyChild() const;
365 367
366 Position positionForBox(InlineBox*, bool start = true) const; 368 Position positionForBox(InlineBox*, bool start = true) const;
367 369
368 // End helper functions and structs used by layoutBlockChildren. 370 // End helper functions and structs used by layoutBlockChildren.
369 371
370 void removeFromGlobalMaps(); 372 void removeFromGlobalMaps();
371 bool widthAvailableToChildrenHasChanged(); 373 bool widthAvailableToChildrenHasChanged();
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 // FIXME: This is temporary as we move code that accesses block flow 416 // FIXME: This is temporary as we move code that accesses block flow
415 // member variables out of LayoutBlock and into LayoutBlockFlow. 417 // member variables out of LayoutBlock and into LayoutBlockFlow.
416 friend class LayoutBlockFlow; 418 friend class LayoutBlockFlow;
417 }; 419 };
418 420
419 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, isLayoutBlock()); 421 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, isLayoutBlock());
420 422
421 } // namespace blink 423 } // namespace blink
422 424
423 #endif // LayoutBlock_h 425 #endif // LayoutBlock_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/ScrollAnchor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698