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

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

Issue 26997002: Should paint border before background when bleedAvoidance is BackgroundBleedBackgroundOverBorder (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | Annotate | Revision Log
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, 2010 Apple Inc. All rights reserv ed. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2009, 2010 Apple Inc. All rights reserv ed.
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 class RenderTable FINAL : public RenderBlock { 43 class RenderTable FINAL : public RenderBlock {
44 public: 44 public:
45 explicit RenderTable(Element*); 45 explicit RenderTable(Element*);
46 virtual ~RenderTable(); 46 virtual ~RenderTable();
47 47
48 // Per CSS 3 writing-mode: "The first and second values of the 'border-spaci ng' property represent spacing between columns 48 // Per CSS 3 writing-mode: "The first and second values of the 'border-spaci ng' property represent spacing between columns
49 // and rows respectively, not necessarily the horizontal and vertical spacin g respectively". 49 // and rows respectively, not necessarily the horizontal and vertical spacin g respectively".
50 int hBorderSpacing() const { return m_hSpacing; } 50 int hBorderSpacing() const { return m_hSpacing; }
51 int vBorderSpacing() const { return m_vSpacing; } 51 int vBorderSpacing() const { return m_vSpacing; }
52 52
53 bool collapseBorders() const { return style()->borderCollapse(); } 53 virtual bool collapseBorders() const { return style()->borderCollapse(); } O VERRIDE
54 54
55 int borderStart() const { return m_borderStart; } 55 int borderStart() const { return m_borderStart; }
56 int borderEnd() const { return m_borderEnd; } 56 int borderEnd() const { return m_borderEnd; }
57 int borderBefore() const; 57 int borderBefore() const;
58 int borderAfter() const; 58 int borderAfter() const;
59 59
60 int borderLeft() const 60 int borderLeft() const
61 { 61 {
62 if (style()->isHorizontalWritingMode()) 62 if (style()->isHorizontalWritingMode())
63 return style()->isLeftToRightDirection() ? borderStart() : borderEnd (); 63 return style()->isLeftToRightDirection() ? borderStart() : borderEnd ();
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 private: 269 private:
270 virtual const char* renderName() const { return "RenderTable"; } 270 virtual const char* renderName() const { return "RenderTable"; }
271 271
272 virtual bool isTable() const { return true; } 272 virtual bool isTable() const { return true; }
273 273
274 virtual bool avoidsFloats() const { return true; } 274 virtual bool avoidsFloats() const { return true; }
275 275
276 virtual void paint(PaintInfo&, const LayoutPoint&); 276 virtual void paint(PaintInfo&, const LayoutPoint&);
277 virtual void paintObject(PaintInfo&, const LayoutPoint&); 277 virtual void paintObject(PaintInfo&, const LayoutPoint&);
278 virtual void paintBoxDecorations(PaintInfo&, const LayoutPoint&); 278 virtual void paintBoxDecorations(PaintInfo&, const LayoutPoint&);
279 virtual void paintBackgroundWithBorderAndBoxShadow(PaintInfo&, const LayoutR ect&, BackgroundBleedAvoidance) OVERRIDE;
280 virtual void paintMask(PaintInfo&, const LayoutPoint&); 279 virtual void paintMask(PaintInfo&, const LayoutPoint&);
281 virtual void layout(); 280 virtual void layout();
282 virtual bool supportsPartialLayout() const OVERRIDE { return false; } 281 virtual bool supportsPartialLayout() const OVERRIDE { return false; }
283 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minWidth, LayoutUnit& maxWidth) const OVERRIDE; 282 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minWidth, LayoutUnit& maxWidth) const OVERRIDE;
284 virtual void computePreferredLogicalWidths() OVERRIDE; 283 virtual void computePreferredLogicalWidths() OVERRIDE;
285 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct ion) OVERRIDE; 284 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct ion) OVERRIDE;
286 285
287 virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode , LinePositionMode = PositionOnContainingLine) const OVERRIDE; 286 virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode , LinePositionMode = PositionOnContainingLine) const OVERRIDE;
288 virtual int firstLineBoxBaseline() const OVERRIDE; 287 virtual int firstLineBoxBaseline() const OVERRIDE;
289 virtual int inlineBlockBaseline(LineDirectionMode) const OVERRIDE; 288 virtual int inlineBlockBaseline(LineDirectionMode) const OVERRIDE;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 if (m_firstBody) 347 if (m_firstBody)
349 return m_firstBody; 348 return m_firstBody;
350 return m_foot; 349 return m_foot;
351 } 350 }
352 351
353 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderTable, isTable()); 352 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderTable, isTable());
354 353
355 } // namespace WebCore 354 } // namespace WebCore
356 355
357 #endif // RenderTable_h 356 #endif // RenderTable_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698