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

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

Issue 2450093005: Support display: contents for elements, first-line and first-letter pseudos. (Closed)
Patch Set: Allow text as child of the LayoutView, since it can happen with display: contents Created 4 years 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2006 Apple Computer, Inc. 3 * Copyright (C) 2006 Apple Computer, Inc.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 void clearHitTestCache(); 76 void clearHitTestCache();
77 77
78 const char* name() const override { return "LayoutView"; } 78 const char* name() const override { return "LayoutView"; }
79 79
80 bool isOfType(LayoutObjectType type) const override { 80 bool isOfType(LayoutObjectType type) const override {
81 return type == LayoutObjectLayoutView || LayoutBlockFlow::isOfType(type); 81 return type == LayoutObjectLayoutView || LayoutBlockFlow::isOfType(type);
82 } 82 }
83 83
84 PaintLayerType layerTypeRequired() const override { return NormalPaintLayer; } 84 PaintLayerType layerTypeRequired() const override { return NormalPaintLayer; }
85 85
86 bool isChildAllowed(LayoutObject*, const ComputedStyle&) const override;
87
88 void layout() override; 86 void layout() override;
89 void updateLogicalWidth() override; 87 void updateLogicalWidth() override;
90 void computeLogicalHeight(LayoutUnit logicalHeight, 88 void computeLogicalHeight(LayoutUnit logicalHeight,
91 LayoutUnit logicalTop, 89 LayoutUnit logicalTop,
92 LogicalExtentComputedValues&) const override; 90 LogicalExtentComputedValues&) const override;
93 91
94 // Based on FrameView::layoutSize, but: 92 // Based on FrameView::layoutSize, but:
95 // - checks for null FrameView 93 // - checks for null FrameView
96 // - returns 0x0 if using printing layout 94 // - returns 0x0 if using printing layout
97 // - scrollbar exclusion is compatible with root layer scrolling 95 // - scrollbar exclusion is compatible with root layer scrolling
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 Persistent<HitTestCache> m_hitTestCache; 318 Persistent<HitTestCache> m_hitTestCache;
321 319
322 Vector<LayoutMedia*> m_mediaForPositionNotification; 320 Vector<LayoutMedia*> m_mediaForPositionNotification;
323 }; 321 };
324 322
325 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutView, isLayoutView()); 323 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutView, isLayoutView());
326 324
327 } // namespace blink 325 } // namespace blink
328 326
329 #endif // LayoutView_h 327 #endif // LayoutView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698