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

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

Issue 153233002: *** DO NOT LAND *** Remove regions support, keeping a bare minimum to support "region-based"... (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 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 | « Source/core/rendering/RenderNamedFlowThread.cpp ('k') | Source/core/rendering/RenderObject.cpp » ('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) 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 class Path; 54 class Path;
55 class Position; 55 class Position;
56 class PseudoStyleRequest; 56 class PseudoStyleRequest;
57 class RenderBoxModelObject; 57 class RenderBoxModelObject;
58 class RenderInline; 58 class RenderInline;
59 class RenderBlock; 59 class RenderBlock;
60 class RenderFlowThread; 60 class RenderFlowThread;
61 class RenderGeometryMap; 61 class RenderGeometryMap;
62 class RenderLayer; 62 class RenderLayer;
63 class RenderLayerModelObject; 63 class RenderLayerModelObject;
64 class RenderNamedFlowThread;
65 class RenderSVGResourceContainer; 64 class RenderSVGResourceContainer;
66 class RenderTable; 65 class RenderTable;
67 class RenderTheme; 66 class RenderTheme;
68 class RenderView; 67 class RenderView;
69 class ResourceLoadPriorityOptimizer; 68 class ResourceLoadPriorityOptimizer;
70 class TransformState; 69 class TransformState;
71 70
72 struct PaintInfo; 71 struct PaintInfo;
73 72
74 enum CursorDirective { 73 enum CursorDirective {
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 204
206 // Function to return our enclosing flow thread if we are contained inside o ne. This 205 // Function to return our enclosing flow thread if we are contained inside o ne. This
207 // function follows the containing block chain. 206 // function follows the containing block chain.
208 RenderFlowThread* flowThreadContainingBlock() const 207 RenderFlowThread* flowThreadContainingBlock() const
209 { 208 {
210 if (flowThreadState() == NotInsideFlowThread) 209 if (flowThreadState() == NotInsideFlowThread)
211 return 0; 210 return 0;
212 return locateFlowThreadContainingBlock(); 211 return locateFlowThreadContainingBlock();
213 } 212 }
214 213
215 RenderNamedFlowThread* renderNamedFlowThreadWrapper() const;
216
217 virtual bool isEmpty() const { return firstChild() == 0; } 214 virtual bool isEmpty() const { return firstChild() == 0; }
218 215
219 #ifndef NDEBUG 216 #ifndef NDEBUG
220 void setHasAXObject(bool flag) { m_hasAXObject = flag; } 217 void setHasAXObject(bool flag) { m_hasAXObject = flag; }
221 bool hasAXObject() const { return m_hasAXObject; } 218 bool hasAXObject() const { return m_hasAXObject; }
222 219
223 // Helper class forbidding calls to setNeedsLayout() during its lifetime. 220 // Helper class forbidding calls to setNeedsLayout() during its lifetime.
224 class SetLayoutNeededForbiddenScope { 221 class SetLayoutNeededForbiddenScope {
225 public: 222 public:
226 explicit SetLayoutNeededForbiddenScope(RenderObject*); 223 explicit SetLayoutNeededForbiddenScope(RenderObject*);
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 virtual bool isMeter() const { return false; } 336 virtual bool isMeter() const { return false; }
340 virtual bool isProgress() const { return false; } 337 virtual bool isProgress() const { return false; }
341 virtual bool isRenderBlock() const { return false; } 338 virtual bool isRenderBlock() const { return false; }
342 virtual bool isRenderBlockFlow() const { return false; } 339 virtual bool isRenderBlockFlow() const { return false; }
343 virtual bool isRenderButton() const { return false; } 340 virtual bool isRenderButton() const { return false; }
344 virtual bool isRenderIFrame() const { return false; } 341 virtual bool isRenderIFrame() const { return false; }
345 virtual bool isRenderImage() const { return false; } 342 virtual bool isRenderImage() const { return false; }
346 virtual bool isRenderInline() const { return false; } 343 virtual bool isRenderInline() const { return false; }
347 virtual bool isRenderPart() const { return false; } 344 virtual bool isRenderPart() const { return false; }
348 virtual bool isRenderRegion() const { return false; } 345 virtual bool isRenderRegion() const { return false; }
349 virtual bool isRenderNamedFlowFragment() const { return false; }
350 virtual bool isRenderView() const { return false; } 346 virtual bool isRenderView() const { return false; }
351 virtual bool isReplica() const { return false; } 347 virtual bool isReplica() const { return false; }
352 348
353 virtual bool isRuby() const { return false; } 349 virtual bool isRuby() const { return false; }
354 virtual bool isRubyBase() const { return false; } 350 virtual bool isRubyBase() const { return false; }
355 virtual bool isRubyRun() const { return false; } 351 virtual bool isRubyRun() const { return false; }
356 virtual bool isRubyText() const { return false; } 352 virtual bool isRubyText() const { return false; }
357 353
358 virtual bool isSlider() const { return false; } 354 virtual bool isSlider() const { return false; }
359 virtual bool isSliderThumb() const { return false; } 355 virtual bool isSliderThumb() const { return false; }
360 virtual bool isTable() const { return false; } 356 virtual bool isTable() const { return false; }
361 virtual bool isTableCell() const { return false; } 357 virtual bool isTableCell() const { return false; }
362 virtual bool isRenderTableCol() const { return false; } 358 virtual bool isRenderTableCol() const { return false; }
363 virtual bool isTableCaption() const { return false; } 359 virtual bool isTableCaption() const { return false; }
364 virtual bool isTableRow() const { return false; } 360 virtual bool isTableRow() const { return false; }
365 virtual bool isTableSection() const { return false; } 361 virtual bool isTableSection() const { return false; }
366 virtual bool isTextControl() const { return false; } 362 virtual bool isTextControl() const { return false; }
367 virtual bool isTextArea() const { return false; } 363 virtual bool isTextArea() const { return false; }
368 virtual bool isTextField() const { return false; } 364 virtual bool isTextField() const { return false; }
369 virtual bool isVideo() const { return false; } 365 virtual bool isVideo() const { return false; }
370 virtual bool isWidget() const { return false; } 366 virtual bool isWidget() const { return false; }
371 virtual bool isCanvas() const { return false; } 367 virtual bool isCanvas() const { return false; }
372 virtual bool isRenderFullScreen() const { return false; } 368 virtual bool isRenderFullScreen() const { return false; }
373 virtual bool isRenderFullScreenPlaceholder() const { return false; } 369 virtual bool isRenderFullScreenPlaceholder() const { return false; }
374 370
375 virtual bool isRenderGrid() const { return false; } 371 virtual bool isRenderGrid() const { return false; }
376 372
377 virtual bool isRenderFlowThread() const { return false; } 373 virtual bool isRenderFlowThread() const { return false; }
378 virtual bool isRenderNamedFlowThread() const { return false; }
379 bool isInFlowRenderFlowThread() const { return isRenderFlowThread() && !isOu tOfFlowPositioned(); } 374 bool isInFlowRenderFlowThread() const { return isRenderFlowThread() && !isOu tOfFlowPositioned(); }
380 bool isOutOfFlowRenderFlowThread() const { return isRenderFlowThread() && is OutOfFlowPositioned(); } 375 bool isOutOfFlowRenderFlowThread() const { return isRenderFlowThread() && is OutOfFlowPositioned(); }
381 bool isRenderNamedFlowFragmentContainer() const;
382 376
383 virtual bool isRenderMultiColumnBlock() const { return false; } 377 virtual bool isRenderMultiColumnBlock() const { return false; }
384 virtual bool isRenderMultiColumnSet() const { return false; } 378 virtual bool isRenderMultiColumnSet() const { return false; }
385 379
386 virtual bool isRenderScrollbarPart() const { return false; } 380 virtual bool isRenderScrollbarPart() const { return false; }
387 381
388 bool isRoot() const { return document().documentElement() == m_node; } 382 bool isRoot() const { return document().documentElement() == m_node; }
389 bool isBody() const; 383 bool isBody() const;
390 bool isHR() const; 384 bool isHR() const;
391 bool isLegend() const; 385 bool isLegend() const;
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 Frame* frame() const { return document().frame(); } 598 Frame* frame() const { return document().frame(); }
605 599
606 bool hasOutlineAnnotation() const; 600 bool hasOutlineAnnotation() const;
607 bool hasOutline() const { return style()->hasOutline() || hasOutlineAnnotati on(); } 601 bool hasOutline() const { return style()->hasOutline() || hasOutlineAnnotati on(); }
608 602
609 // Returns the object containing this one. Can be different from parent for positioned elements. 603 // Returns the object containing this one. Can be different from parent for positioned elements.
610 // If repaintContainer and repaintContainerSkipped are not null, on return * repaintContainerSkipped 604 // If repaintContainer and repaintContainerSkipped are not null, on return * repaintContainerSkipped
611 // is true if the renderer returned is an ancestor of repaintContainer. 605 // is true if the renderer returned is an ancestor of repaintContainer.
612 RenderObject* container(const RenderLayerModelObject* repaintContainer = 0, bool* repaintContainerSkipped = 0) const; 606 RenderObject* container(const RenderLayerModelObject* repaintContainer = 0, bool* repaintContainerSkipped = 0) const;
613 607
614 virtual RenderObject* hoverAncestor() const; 608 virtual RenderObject* hoverAncestor() const { return parent(); }
615 609
616 Element* offsetParent() const; 610 Element* offsetParent() const;
617 611
618 void markContainingBlocksForLayout(bool scheduleRelayout = true, RenderObjec t* newRoot = 0, SubtreeLayoutScope* = 0); 612 void markContainingBlocksForLayout(bool scheduleRelayout = true, RenderObjec t* newRoot = 0, SubtreeLayoutScope* = 0);
619 void setNeedsLayout(MarkingBehavior = MarkContainingBlockChain, SubtreeLayou tScope* = 0); 613 void setNeedsLayout(MarkingBehavior = MarkContainingBlockChain, SubtreeLayou tScope* = 0);
620 void clearNeedsLayout(); 614 void clearNeedsLayout();
621 void setChildNeedsLayout(MarkingBehavior = MarkContainingBlockChain, Subtree LayoutScope* = 0); 615 void setChildNeedsLayout(MarkingBehavior = MarkContainingBlockChain, Subtree LayoutScope* = 0);
622 void setNeedsPositionedMovementLayout(); 616 void setNeedsPositionedMovementLayout();
623 void setNeedsSimplifiedNormalFlowLayout(); 617 void setNeedsSimplifiedNormalFlowLayout();
624 void setPreferredLogicalWidthsDirty(MarkingBehavior = MarkContainingBlockCha in); 618 void setPreferredLogicalWidthsDirty(MarkingBehavior = MarkContainingBlockCha in);
(...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after
1417 void showTree(const WebCore::RenderObject*); 1411 void showTree(const WebCore::RenderObject*);
1418 void showLineTree(const WebCore::RenderObject*); 1412 void showLineTree(const WebCore::RenderObject*);
1419 void showRenderTree(const WebCore::RenderObject* object1); 1413 void showRenderTree(const WebCore::RenderObject* object1);
1420 // We don't make object2 an optional parameter so that showRenderTree 1414 // We don't make object2 an optional parameter so that showRenderTree
1421 // can be called from gdb easily. 1415 // can be called from gdb easily.
1422 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2); 1416 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2);
1423 1417
1424 #endif 1418 #endif
1425 1419
1426 #endif // RenderObject_h 1420 #endif // RenderObject_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderNamedFlowThread.cpp ('k') | Source/core/rendering/RenderObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698