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

Side by Side Diff: third_party/WebKit/Source/core/layout/line/RootInlineBox.cpp

Issue 2709033003: Migrate WTF::HashMap::get() to ::at() (Closed)
Patch Set: rebase Created 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2006, 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 m_lineBreakPos = breakPos; 510 m_lineBreakPos = breakPos;
511 m_lineBreakBidiStatusEor = status.eor; 511 m_lineBreakBidiStatusEor = status.eor;
512 m_lineBreakBidiStatusLastStrong = status.lastStrong; 512 m_lineBreakBidiStatusLastStrong = status.lastStrong;
513 m_lineBreakBidiStatusLast = status.last; 513 m_lineBreakBidiStatusLast = status.last;
514 m_lineBreakContext = status.context; 514 m_lineBreakContext = status.context;
515 } 515 }
516 516
517 EllipsisBox* RootInlineBox::ellipsisBox() const { 517 EllipsisBox* RootInlineBox::ellipsisBox() const {
518 if (!hasEllipsisBox()) 518 if (!hasEllipsisBox())
519 return nullptr; 519 return nullptr;
520 return gEllipsisBoxMap->get(this); 520 return gEllipsisBoxMap->at(this);
521 } 521 }
522 522
523 void RootInlineBox::removeLineBoxFromLayoutObject() { 523 void RootInlineBox::removeLineBoxFromLayoutObject() {
524 block().lineBoxes()->removeLineBox(this); 524 block().lineBoxes()->removeLineBox(this);
525 } 525 }
526 526
527 void RootInlineBox::extractLineBoxFromLayoutObject() { 527 void RootInlineBox::extractLineBoxFromLayoutObject() {
528 block().lineBoxes()->extractLineBox(this); 528 block().lineBoxes()->extractLineBox(this);
529 } 529 }
530 530
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 } 775 }
776 endBox = nullptr; 776 endBox = nullptr;
777 return nullptr; 777 return nullptr;
778 } 778 }
779 779
780 const char* RootInlineBox::boxName() const { 780 const char* RootInlineBox::boxName() const {
781 return "RootInlineBox"; 781 return "RootInlineBox";
782 } 782 }
783 783
784 } // namespace blink 784 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698