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

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

Issue 129173004: Update rendering classes to use OVERRIDE / FINAL when needed (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 11 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2007 David Smith (catfish.man@gmail.com) 4 * (C) 2007 David Smith (catfish.man@gmail.com)
5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All r ights reserved. 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All r ights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 RenderObject* firstChild() const { ASSERT(children() == virtualChildren()); return children()->firstChild(); } 86 RenderObject* firstChild() const { ASSERT(children() == virtualChildren()); return children()->firstChild(); }
87 RenderObject* lastChild() const { ASSERT(children() == virtualChildren()); r eturn children()->lastChild(); } 87 RenderObject* lastChild() const { ASSERT(children() == virtualChildren()); r eturn children()->lastChild(); }
88 88
89 const RenderObjectChildList* children() const { return &m_children; } 89 const RenderObjectChildList* children() const { return &m_children; }
90 RenderObjectChildList* children() { return &m_children; } 90 RenderObjectChildList* children() { return &m_children; }
91 91
92 bool beingDestroyed() const { return m_beingDestroyed; } 92 bool beingDestroyed() const { return m_beingDestroyed; }
93 93
94 // These two functions are overridden for inline-block. 94 // These two functions are overridden for inline-block.
95 virtual LayoutUnit lineHeight(bool firstLine, LineDirectionMode, LinePositio nMode = PositionOnContainingLine) const OVERRIDE FINAL; 95 virtual LayoutUnit lineHeight(bool firstLine, LineDirectionMode, LinePositio nMode = PositionOnContainingLine) const OVERRIDE FINAL;
96 virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode , LinePositionMode = PositionOnContainingLine) const; 96 virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode , LinePositionMode = PositionOnContainingLine) const OVERRIDE;
97 97
98 LayoutUnit minLineHeightForReplacedRenderer(bool isFirstLine, LayoutUnit rep lacedHeight) const; 98 LayoutUnit minLineHeightForReplacedRenderer(bool isFirstLine, LayoutUnit rep lacedHeight) const;
99 99
100 RenderLineBoxList* lineBoxes() { return &m_lineBoxes; } 100 RenderLineBoxList* lineBoxes() { return &m_lineBoxes; }
101 101
102 InlineFlowBox* firstLineBox() const { return m_lineBoxes.firstLineBox(); } 102 InlineFlowBox* firstLineBox() const { return m_lineBoxes.firstLineBox(); }
103 InlineFlowBox* lastLineBox() const { return m_lineBoxes.lastLineBox(); } 103 InlineFlowBox* lastLineBox() const { return m_lineBoxes.lastLineBox(); }
104 104
105 // FIXME-BLOCKFLOW: Remove virtualizaion when all callers have moved to Rend erBlockFlow 105 // FIXME-BLOCKFLOW: Remove virtualizaion when all callers have moved to Rend erBlockFlow
106 virtual void deleteLineBoxTree(); 106 virtual void deleteLineBoxTree();
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 ShapeInsideInfo* layoutShapeInsideInfo() const; 322 ShapeInsideInfo* layoutShapeInsideInfo() const;
323 bool allowsShapeInsideInfoSharing(const RenderBlock* other) const; 323 bool allowsShapeInsideInfoSharing(const RenderBlock* other) const;
324 LayoutSize logicalOffsetFromShapeAncestorContainer(const RenderBlock* contai ner) const; 324 LayoutSize logicalOffsetFromShapeAncestorContainer(const RenderBlock* contai ner) const;
325 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) OVERRIDE; 325 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) OVERRIDE;
326 326
327 // inline-block elements paint all phases atomically. This function ensures that. Certain other elements 327 // inline-block elements paint all phases atomically. This function ensures that. Certain other elements
328 // (grid items, flex items) require this behavior as well, and this function exists as a helper for them. 328 // (grid items, flex items) require this behavior as well, and this function exists as a helper for them.
329 // It is expected that the caller will call this function independent of the value of paintInfo.phase. 329 // It is expected that the caller will call this function independent of the value of paintInfo.phase.
330 static void paintAsInlineBlock(RenderObject*, PaintInfo&, const LayoutPoint& ); 330 static void paintAsInlineBlock(RenderObject*, PaintInfo&, const LayoutPoint& );
331 protected: 331 protected:
332 virtual void willBeDestroyed(); 332 virtual void willBeDestroyed() OVERRIDE;
333 333
334 void dirtyForLayoutFromPercentageHeightDescendants(SubtreeLayoutScope&); 334 void dirtyForLayoutFromPercentageHeightDescendants(SubtreeLayoutScope&);
335 335
336 virtual void layout(); 336 virtual void layout() OVERRIDE;
337 virtual void didLayout(ResourceLoadPriorityOptimizer&); 337 virtual void didLayout(ResourceLoadPriorityOptimizer&) OVERRIDE;
338 virtual void didScroll(ResourceLoadPriorityOptimizer&); 338 virtual void didScroll(ResourceLoadPriorityOptimizer&) OVERRIDE;
339 void updateStyleImageLoadingPriorities(ResourceLoadPriorityOptimizer&); 339 void updateStyleImageLoadingPriorities(ResourceLoadPriorityOptimizer&);
340 340
341 void layoutPositionedObjects(bool relayoutChildren, bool fixedPositionObject sOnly = false); 341 void layoutPositionedObjects(bool relayoutChildren, bool fixedPositionObject sOnly = false);
342 void markFixedPositionObjectForLayoutIfNeeded(RenderObject* child, SubtreeLa youtScope&); 342 void markFixedPositionObjectForLayoutIfNeeded(RenderObject* child, SubtreeLa youtScope&);
343 343
344 LayoutUnit marginIntrinsicLogicalWidthForChild(RenderBox* child) const; 344 LayoutUnit marginIntrinsicLogicalWidthForChild(RenderBox* child) const;
345 345
346 virtual bool supportsPartialLayout() const OVERRIDE { return true; }; 346 virtual bool supportsPartialLayout() const OVERRIDE { return true; };
347 347
348 virtual void paint(PaintInfo&, const LayoutPoint&); 348 virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE;
349 virtual void paintObject(PaintInfo&, const LayoutPoint&); 349 virtual void paintObject(PaintInfo&, const LayoutPoint&) OVERRIDE;
350 virtual void paintChildren(PaintInfo&, const LayoutPoint&); 350 virtual void paintChildren(PaintInfo&, const LayoutPoint&);
351 void paintChild(RenderBox*, PaintInfo&, const LayoutPoint&); 351 void paintChild(RenderBox*, PaintInfo&, const LayoutPoint&);
352 void paintChildAsInlineBlock(RenderBox*, PaintInfo&, const LayoutPoint&); 352 void paintChildAsInlineBlock(RenderBox*, PaintInfo&, const LayoutPoint&);
353 353
354 virtual void adjustInlineDirectionLineBounds(int /* expansionOpportunityCoun t */, float& /* logicalLeft */, float& /* logicalWidth */) const { } 354 virtual void adjustInlineDirectionLineBounds(int /* expansionOpportunityCoun t */, float& /* logicalLeft */, float& /* logicalWidth */) const { }
355 355
356 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct ion) OVERRIDE; 356 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct ion) OVERRIDE;
357 357
358 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo utUnit& maxLogicalWidth) const OVERRIDE; 358 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo utUnit& maxLogicalWidth) const OVERRIDE;
359 virtual void computePreferredLogicalWidths() OVERRIDE; 359 virtual void computePreferredLogicalWidths() OVERRIDE;
360 void adjustIntrinsicLogicalWidthsForColumns(LayoutUnit& minLogicalWidth, Lay outUnit& maxLogicalWidth) const; 360 void adjustIntrinsicLogicalWidthsForColumns(LayoutUnit& minLogicalWidth, Lay outUnit& maxLogicalWidth) const;
361 361
362 virtual int firstLineBoxBaseline() const; 362 virtual int firstLineBoxBaseline() const OVERRIDE;
363 virtual int inlineBlockBaseline(LineDirectionMode) const OVERRIDE; 363 virtual int inlineBlockBaseline(LineDirectionMode) const OVERRIDE;
364 int lastLineBoxBaseline(LineDirectionMode) const; 364 int lastLineBoxBaseline(LineDirectionMode) const;
365 365
366 virtual void updateHitTestResult(HitTestResult&, const LayoutPoint&); 366 virtual void updateHitTestResult(HitTestResult&, const LayoutPoint&);
367 367
368 // Delay update scrollbar until finishDelayRepaint() will be 368 // Delay update scrollbar until finishDelayRepaint() will be
369 // called. This function is used when a flexbox is laying out its 369 // called. This function is used when a flexbox is laying out its
370 // descendant. If multiple calls are made to startDelayRepaint(), 370 // descendant. If multiple calls are made to startDelayRepaint(),
371 // finishDelayRepaint() will do nothing until finishDelayRepaint() 371 // finishDelayRepaint() will do nothing until finishDelayRepaint()
372 // is called the same number of times. 372 // is called the same number of times.
373 static void startDelayUpdateScrollInfo(); 373 static void startDelayUpdateScrollInfo();
374 static void finishDelayUpdateScrollInfo(); 374 static void finishDelayUpdateScrollInfo();
375 375
376 void updateScrollInfoAfterLayout(); 376 void updateScrollInfoAfterLayout();
377 377
378 virtual void styleWillChange(StyleDifference, const RenderStyle* newStyle); 378 virtual void styleWillChange(StyleDifference, const RenderStyle* newStyle) O VERRIDE;
379 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); 379 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV ERRIDE;
380 380
381 virtual bool hasLineIfEmpty() const; 381 virtual bool hasLineIfEmpty() const;
382 382
383 bool simplifiedLayout(); 383 bool simplifiedLayout();
384 virtual void simplifiedNormalFlowLayout(); 384 virtual void simplifiedNormalFlowLayout();
385 385
386 void setDesiredColumnCountAndWidth(int, LayoutUnit); 386 void setDesiredColumnCountAndWidth(int, LayoutUnit);
387 387
388 public: 388 public:
389 virtual void computeOverflow(LayoutUnit oldClientAfterEdge, bool = false); 389 virtual void computeOverflow(LayoutUnit oldClientAfterEdge, bool = false);
(...skipping 18 matching lines...) Expand all
408 408
409 private: 409 private:
410 void computeShapeSize(); 410 void computeShapeSize();
411 void updateRegionsAndShapesAfterChildLayout(RenderFlowThread*, bool); 411 void updateRegionsAndShapesAfterChildLayout(RenderFlowThread*, bool);
412 void updateShapeInsideInfoAfterStyleChange(const ShapeValue*, const ShapeVal ue* oldShape); 412 void updateShapeInsideInfoAfterStyleChange(const ShapeValue*, const ShapeVal ue* oldShape);
413 void relayoutShapeDescendantIfMoved(RenderBlock* child, LayoutSize offset); 413 void relayoutShapeDescendantIfMoved(RenderBlock* child, LayoutSize offset);
414 414
415 virtual RenderObjectChildList* virtualChildren() OVERRIDE FINAL { return chi ldren(); } 415 virtual RenderObjectChildList* virtualChildren() OVERRIDE FINAL { return chi ldren(); }
416 virtual const RenderObjectChildList* virtualChildren() const OVERRIDE FINAL { return children(); } 416 virtual const RenderObjectChildList* virtualChildren() const OVERRIDE FINAL { return children(); }
417 417
418 virtual const char* renderName() const; 418 virtual const char* renderName() const OVERRIDE;
419 419
420 virtual bool isRenderBlock() const OVERRIDE FINAL { return true; } 420 virtual bool isRenderBlock() const OVERRIDE FINAL { return true; }
421 421
422 void makeChildrenNonInline(RenderObject* insertionPoint = 0); 422 void makeChildrenNonInline(RenderObject* insertionPoint = 0);
423 virtual void removeLeftoverAnonymousBlock(RenderBlock* child); 423 virtual void removeLeftoverAnonymousBlock(RenderBlock* child);
424 424
425 static void collapseAnonymousBlockChild(RenderBlock* parent, RenderBlock* ch ild); 425 static void collapseAnonymousBlockChild(RenderBlock* parent, RenderBlock* ch ild);
426 426
427 virtual void dirtyLinesFromChangedChild(RenderObject* child) OVERRIDE FINAL { m_lineBoxes.dirtyLinesFromChangedChild(this, child); } 427 virtual void dirtyLinesFromChangedChild(RenderObject* child) OVERRIDE FINAL { m_lineBoxes.dirtyLinesFromChangedChild(this, child); }
428 428
429 void addChildToContinuation(RenderObject* newChild, RenderObject* beforeChil d); 429 void addChildToContinuation(RenderObject* newChild, RenderObject* beforeChil d);
430 void addChildIgnoringContinuation(RenderObject* newChild, RenderObject* befo reChild); 430 void addChildIgnoringContinuation(RenderObject* newChild, RenderObject* befo reChild) OVERRIDE;
431 void addChildToAnonymousColumnBlocks(RenderObject* newChild, RenderObject* b eforeChild); 431 void addChildToAnonymousColumnBlocks(RenderObject* newChild, RenderObject* b eforeChild);
432 432
433 void addChildIgnoringAnonymousColumnBlocks(RenderObject* newChild, RenderObj ect* beforeChild = 0); 433 void addChildIgnoringAnonymousColumnBlocks(RenderObject* newChild, RenderObj ect* beforeChild = 0);
434 434
435 virtual bool isSelfCollapsingBlock() const OVERRIDE; 435 virtual bool isSelfCollapsingBlock() const OVERRIDE;
436 436
437 void insertIntoTrackedRendererMaps(RenderBox* descendant, TrackedDescendants Map*&, TrackedContainerMap*&); 437 void insertIntoTrackedRendererMaps(RenderBox* descendant, TrackedDescendants Map*&, TrackedContainerMap*&);
438 static void removeFromTrackedRendererMaps(RenderBox* descendant, TrackedDesc endantsMap*&, TrackedContainerMap*&); 438 static void removeFromTrackedRendererMaps(RenderBox* descendant, TrackedDesc endantsMap*&, TrackedContainerMap*&);
439 439
440 // Called to lay out the legend for a fieldset or the ruby text of a ruby ru n. 440 // Called to lay out the legend for a fieldset or the ruby text of a ruby ru n.
441 virtual RenderObject* layoutSpecialExcludedChild(bool /*relayoutChildren*/, SubtreeLayoutScope&) { return 0; } 441 virtual RenderObject* layoutSpecialExcludedChild(bool /*relayoutChildren*/, SubtreeLayoutScope&) { return 0; }
442 442
443 void createFirstLetterRenderer(RenderObject* firstLetterBlock, RenderObject* currentChild, unsigned length); 443 void createFirstLetterRenderer(RenderObject* firstLetterBlock, RenderObject* currentChild, unsigned length);
444 void updateFirstLetterStyle(RenderObject* firstLetterBlock, RenderObject* fi rstLetterContainer); 444 void updateFirstLetterStyle(RenderObject* firstLetterBlock, RenderObject* fi rstLetterContainer);
445 445
446 Node* nodeForHitTest() const; 446 Node* nodeForHitTest() const;
447 447
448 // FIXME-BLOCKFLOW: Remove virtualizaion when all callers have moved to Rend erBlockFlow 448 // FIXME-BLOCKFLOW: Remove virtualizaion when all callers have moved to Rend erBlockFlow
449 virtual void paintFloats(PaintInfo&, const LayoutPoint&, bool) { } 449 virtual void paintFloats(PaintInfo&, const LayoutPoint&, bool) { }
450 void paintContents(PaintInfo&, const LayoutPoint&); 450 void paintContents(PaintInfo&, const LayoutPoint&);
451 void paintColumnContents(PaintInfo&, const LayoutPoint&, bool paintFloats = false); 451 void paintColumnContents(PaintInfo&, const LayoutPoint&, bool paintFloats = false);
452 void paintColumnRules(PaintInfo&, const LayoutPoint&); 452 void paintColumnRules(PaintInfo&, const LayoutPoint&);
453 void paintSelection(PaintInfo&, const LayoutPoint&); 453 void paintSelection(PaintInfo&, const LayoutPoint&);
454 void paintCaret(PaintInfo&, const LayoutPoint&, CaretType); 454 void paintCaret(PaintInfo&, const LayoutPoint&, CaretType);
455 455
456 bool hasCaret() const { return hasCaret(CursorCaret) || hasCaret(DragCaret); } 456 bool hasCaret() const { return hasCaret(CursorCaret) || hasCaret(DragCaret); }
457 bool hasCaret(CaretType) const; 457 bool hasCaret(CaretType) const;
458 458
459 virtual bool avoidsFloats() const; 459 virtual bool avoidsFloats() const OVERRIDE;
460 460
461 bool hitTestColumns(const HitTestRequest&, HitTestResult&, const HitTestLoca tion& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction); 461 bool hitTestColumns(const HitTestRequest&, HitTestResult&, const HitTestLoca tion& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction);
462 bool hitTestContents(const HitTestRequest&, HitTestResult&, const HitTestLoc ation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) ; 462 bool hitTestContents(const HitTestRequest&, HitTestResult&, const HitTestLoc ation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) ;
463 // FIXME-BLOCKFLOW: Remove virtualizaion when all callers have moved to Rend erBlockFlow 463 // FIXME-BLOCKFLOW: Remove virtualizaion when all callers have moved to Rend erBlockFlow
464 virtual bool hitTestFloats(const HitTestRequest&, HitTestResult&, const HitT estLocation&, const LayoutPoint&) { return false; } 464 virtual bool hitTestFloats(const HitTestRequest&, HitTestResult&, const HitT estLocation&, const LayoutPoint&) { return false; }
465 465
466 virtual bool isPointInOverflowControl(HitTestResult&, const LayoutPoint& loc ationInContainer, const LayoutPoint& accumulatedOffset); 466 virtual bool isPointInOverflowControl(HitTestResult&, const LayoutPoint& loc ationInContainer, const LayoutPoint& accumulatedOffset);
467 467
468 // FIXME: Make this method const so we can remove the const_cast in computeI ntrinsicLogicalWidths. 468 // FIXME: Make this method const so we can remove the const_cast in computeI ntrinsicLogicalWidths.
469 void computeInlinePreferredLogicalWidths(LayoutUnit& minLogicalWidth, Layout Unit& maxLogicalWidth); 469 void computeInlinePreferredLogicalWidths(LayoutUnit& minLogicalWidth, Layout Unit& maxLogicalWidth);
470 void computeBlockPreferredLogicalWidths(LayoutUnit& minLogicalWidth, LayoutU nit& maxLogicalWidth) const; 470 void computeBlockPreferredLogicalWidths(LayoutUnit& minLogicalWidth, LayoutU nit& maxLogicalWidth) const;
471 471
472 // Obtains the nearest enclosing block (including this block) that contribut es a first-line style to our inline 472 // Obtains the nearest enclosing block (including this block) that contribut es a first-line style to our inline
473 // children. 473 // children.
474 virtual RenderBlock* firstLineBlock() const; 474 virtual RenderBlock* firstLineBlock() const OVERRIDE;
475 475
476 virtual LayoutRect rectWithOutlineForRepaint(const RenderLayerModelObject* r epaintContainer, LayoutUnit outlineWidth) const OVERRIDE FINAL; 476 virtual LayoutRect rectWithOutlineForRepaint(const RenderLayerModelObject* r epaintContainer, LayoutUnit outlineWidth) const OVERRIDE FINAL;
477 virtual RenderStyle* outlineStyleForRepaint() const OVERRIDE FINAL; 477 virtual RenderStyle* outlineStyleForRepaint() const OVERRIDE FINAL;
478 478
479 virtual RenderObject* hoverAncestor() const OVERRIDE FINAL; 479 virtual RenderObject* hoverAncestor() const OVERRIDE FINAL;
480 virtual void updateDragState(bool dragOn) OVERRIDE FINAL; 480 virtual void updateDragState(bool dragOn) OVERRIDE FINAL;
481 virtual void childBecameNonInline(RenderObject* child) OVERRIDE FINAL; 481 virtual void childBecameNonInline(RenderObject* child) OVERRIDE FINAL;
482 482
483 virtual LayoutRect selectionRectForRepaint(const RenderLayerModelObject* rep aintContainer, bool /*clipToVisibleContent*/) OVERRIDE FINAL 483 virtual LayoutRect selectionRectForRepaint(const RenderLayerModelObject* rep aintContainer, bool /*clipToVisibleContent*/) OVERRIDE FINAL
484 { 484 {
485 return selectionGapRectsForRepaint(repaintContainer); 485 return selectionGapRectsForRepaint(repaintContainer);
486 } 486 }
487 virtual bool shouldPaintSelectionGaps() const OVERRIDE FINAL; 487 virtual bool shouldPaintSelectionGaps() const OVERRIDE FINAL;
488 bool isSelectionRoot() const; 488 bool isSelectionRoot() const;
489 GapRects selectionGaps(RenderBlock* rootBlock, const LayoutPoint& rootBlockP hysicalPosition, const LayoutSize& offsetFromRootBlock, 489 GapRects selectionGaps(RenderBlock* rootBlock, const LayoutPoint& rootBlockP hysicalPosition, const LayoutSize& offsetFromRootBlock,
490 LayoutUnit& lastLogicalTop, LayoutUnit& lastLogicalLe ft, LayoutUnit& lastLogicalRight, const PaintInfo* = 0); 490 LayoutUnit& lastLogicalTop, LayoutUnit& lastLogicalLe ft, LayoutUnit& lastLogicalRight, const PaintInfo* = 0);
491 GapRects blockSelectionGaps(RenderBlock* rootBlock, const LayoutPoint& rootB lockPhysicalPosition, const LayoutSize& offsetFromRootBlock, 491 GapRects blockSelectionGaps(RenderBlock* rootBlock, const LayoutPoint& rootB lockPhysicalPosition, const LayoutSize& offsetFromRootBlock,
492 LayoutUnit& lastLogicalTop, LayoutUnit& lastLogi calLeft, LayoutUnit& lastLogicalRight, const PaintInfo*); 492 LayoutUnit& lastLogicalTop, LayoutUnit& lastLogi calLeft, LayoutUnit& lastLogicalRight, const PaintInfo*);
493 LayoutRect blockSelectionGap(RenderBlock* rootBlock, const LayoutPoint& root BlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, 493 LayoutRect blockSelectionGap(RenderBlock* rootBlock, const LayoutPoint& root BlockPhysicalPosition, const LayoutSize& offsetFromRootBlock,
494 LayoutUnit lastLogicalTop, LayoutUnit lastLogic alLeft, LayoutUnit lastLogicalRight, LayoutUnit logicalBottom, const PaintInfo*) ; 494 LayoutUnit lastLogicalTop, LayoutUnit lastLogic alLeft, LayoutUnit lastLogicalRight, LayoutUnit logicalBottom, const PaintInfo*) ;
495 virtual LayoutUnit logicalLeftSelectionOffset(RenderBlock* rootBlock, Layout Unit position); 495 virtual LayoutUnit logicalLeftSelectionOffset(RenderBlock* rootBlock, Layout Unit position);
496 virtual LayoutUnit logicalRightSelectionOffset(RenderBlock* rootBlock, Layou tUnit position); 496 virtual LayoutUnit logicalRightSelectionOffset(RenderBlock* rootBlock, Layou tUnit position);
497 497
498 // FIXME-BLOCKFLOW: Remove virtualizaion when all callers have moved to Rend erBlockFlow 498 // FIXME-BLOCKFLOW: Remove virtualizaion when all callers have moved to Rend erBlockFlow
499 virtual void clipOutFloatingObjects(RenderBlock*, const PaintInfo*, const La youtPoint&, const LayoutSize&) { }; 499 virtual void clipOutFloatingObjects(RenderBlock*, const PaintInfo*, const La youtPoint&, const LayoutSize&) { };
500 500
501 virtual void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedO ffset) const; 501 virtual void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedO ffset) const OVERRIDE;
502 virtual void absoluteQuads(Vector<FloatQuad>&, bool* wasFixed) const; 502 virtual void absoluteQuads(Vector<FloatQuad>&, bool* wasFixed) const OVERRID E;
503 503
504 LayoutUnit desiredColumnWidth() const; 504 LayoutUnit desiredColumnWidth() const;
505 505
506 void paintContinuationOutlines(PaintInfo&, const LayoutPoint&); 506 void paintContinuationOutlines(PaintInfo&, const LayoutPoint&);
507 507
508 virtual LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* e xtraWidthToEndOfLine = 0) OVERRIDE FINAL; 508 virtual LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* e xtraWidthToEndOfLine = 0) OVERRIDE FINAL;
509 509
510 void adjustPointToColumnContents(LayoutPoint&) const; 510 void adjustPointToColumnContents(LayoutPoint&) const;
511 511
512 void fitBorderToLinesIfNeeded(); // Shrink the box in which the border paint s if border-fit is set. 512 void fitBorderToLinesIfNeeded(); // Shrink the box in which the border paint s if border-fit is set.
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
650 return false; 650 return false;
651 } 651 }
652 return true; 652 return true;
653 } 653 }
654 654
655 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); 655 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock());
656 656
657 } // namespace WebCore 657 } // namespace WebCore
658 658
659 #endif // RenderBlock_h 659 #endif // RenderBlock_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698