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

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

Issue 420483002: Revert of Remove 2 calls to paintInvalidationForWholeRenderer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Better revert. Created 6 years, 5 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
« no previous file with comments | « Source/core/rendering/RenderBox.cpp ('k') | 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) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
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 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 virtual bool isTableCaption() const { return false; } 405 virtual bool isTableCaption() const { return false; }
406 virtual bool isTableCell() const { return false; } 406 virtual bool isTableCell() const { return false; }
407 virtual bool isTableRow() const { return false; } 407 virtual bool isTableRow() const { return false; }
408 virtual bool isTableSection() const { return false; } 408 virtual bool isTableSection() const { return false; }
409 virtual bool isTextArea() const { return false; } 409 virtual bool isTextArea() const { return false; }
410 virtual bool isTextControl() const { return false; } 410 virtual bool isTextControl() const { return false; }
411 virtual bool isTextField() const { return false; } 411 virtual bool isTextField() const { return false; }
412 virtual bool isVideo() const { return false; } 412 virtual bool isVideo() const { return false; }
413 virtual bool isWidget() const { return false; } 413 virtual bool isWidget() const { return false; }
414 414
415 // The background of the root element or the body element could propagate up to the canvas.
416 bool backgroundCanBleedToCanvas() const { return isBody() || isDocumentEleme nt(); }
417
418 bool isDocumentElement() const { return document().documentElement() == m_no de; } 415 bool isDocumentElement() const { return document().documentElement() == m_no de; }
419 // isBody is called from RenderBox::styleWillChange and is thus quite hot. 416 // isBody is called from RenderBox::styleWillChange and is thus quite hot.
420 bool isBody() const { return node() && node()->hasTagName(HTMLNames::bodyTag ); } 417 bool isBody() const { return node() && node()->hasTagName(HTMLNames::bodyTag ); }
421 bool isHR() const; 418 bool isHR() const;
422 bool isLegend() const; 419 bool isLegend() const;
423 420
424 bool isTablePart() const { return isTableCell() || isRenderTableCol() || isT ableCaption() || isTableRow() || isTableSection(); } 421 bool isTablePart() const { return isTableCell() || isRenderTableCol() || isT ableCaption() || isTableRow() || isTableSection(); }
425 422
426 inline bool isBeforeContent() const; 423 inline bool isBeforeContent() const;
427 inline bool isAfterContent() const; 424 inline bool isAfterContent() const;
(...skipping 1115 matching lines...) Expand 10 before | Expand all | Expand 10 after
1543 void showTree(const blink::RenderObject*); 1540 void showTree(const blink::RenderObject*);
1544 void showLineTree(const blink::RenderObject*); 1541 void showLineTree(const blink::RenderObject*);
1545 void showRenderTree(const blink::RenderObject* object1); 1542 void showRenderTree(const blink::RenderObject* object1);
1546 // We don't make object2 an optional parameter so that showRenderTree 1543 // We don't make object2 an optional parameter so that showRenderTree
1547 // can be called from gdb easily. 1544 // can be called from gdb easily.
1548 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2); 1545 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2);
1549 1546
1550 #endif 1547 #endif
1551 1548
1552 #endif // RenderObject_h 1549 #endif // RenderObject_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderBox.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698