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

Side by Side Diff: Source/core/rendering/RenderTableCol.h

Issue 196413002: Don't allow position:sticky for table columns. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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 | no next file » | 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) 1997 Martin Jones (mjones@kde.org) 2 * Copyright (C) 1997 Martin Jones (mjones@kde.org)
3 * (C) 1997 Torben Weis (weis@kde.org) 3 * (C) 1997 Torben Weis (weis@kde.org)
4 * (C) 1998 Waldo Bastian (bastian@kde.org) 4 * (C) 1998 Waldo Bastian (bastian@kde.org)
5 * (C) 1999 Lars Knoll (knoll@kde.org) 5 * (C) 1999 Lars Knoll (knoll@kde.org)
6 * (C) 1999 Antti Koivisto (koivisto@kde.org) 6 * (C) 1999 Antti Koivisto (koivisto@kde.org)
7 * Copyright (C) 2003, 2004, 2005, 2006, 2009 Apple Inc. All rights reserved. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2009 Apple Inc. All rights reserved.
8 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 virtual const char* renderName() const OVERRIDE { return "RenderTableCol"; } 83 virtual const char* renderName() const OVERRIDE { return "RenderTableCol"; }
84 virtual bool isRenderTableCol() const OVERRIDE { return true; } 84 virtual bool isRenderTableCol() const OVERRIDE { return true; }
85 virtual void updateFromElement() OVERRIDE; 85 virtual void updateFromElement() OVERRIDE;
86 virtual void computePreferredLogicalWidths() OVERRIDE { ASSERT_NOT_REACHED() ; } 86 virtual void computePreferredLogicalWidths() OVERRIDE { ASSERT_NOT_REACHED() ; }
87 87
88 virtual void insertedIntoTree() OVERRIDE; 88 virtual void insertedIntoTree() OVERRIDE;
89 virtual void willBeRemovedFromTree() OVERRIDE; 89 virtual void willBeRemovedFromTree() OVERRIDE;
90 90
91 virtual bool isChildAllowed(RenderObject*, RenderStyle*) const OVERRIDE; 91 virtual bool isChildAllowed(RenderObject*, RenderStyle*) const OVERRIDE;
92 virtual bool canHaveChildren() const OVERRIDE; 92 virtual bool canHaveChildren() const OVERRIDE;
93 virtual LayerType layerTypeRequired() const OVERRIDE { return NoLayer; } 93 virtual LayerType layerTypeRequired() const OVERRIDE
94 {
95 if (isStickyPositioned())
Julien - ping for review 2014/03/12 03:14:42 columns are only style placeholder. That's the rea
ostap 2014/03/12 05:26:24 I think that table column can be sticky positioned
Julien - ping for review 2014/03/12 15:17:04 Yes, it can but that doesn't mean that we should a
ostap 2014/03/12 15:51:12 Ok. I'll disable sticky support for table elements
96 return NormalLayer;
97
98 return NoLayer;
99 }
94 100
95 virtual LayoutRect clippedOverflowRectForRepaint(const RenderLayerModelObjec t* repaintContainer) const OVERRIDE; 101 virtual LayoutRect clippedOverflowRectForRepaint(const RenderLayerModelObjec t* repaintContainer) const OVERRIDE;
96 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) OVERRIDE; 102 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) OVERRIDE;
97 103
98 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV ERRIDE; 104 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV ERRIDE;
99 105
100 RenderTable* table() const; 106 RenderTable* table() const;
101 107
102 RenderObjectChildList m_children; 108 RenderObjectChildList m_children;
103 unsigned m_span; 109 unsigned m_span;
104 }; 110 };
105 111
106 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderTableCol, isRenderTableCol()); 112 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderTableCol, isRenderTableCol());
107 113
108 } 114 }
109 115
110 #endif 116 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698