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

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

Issue 2909553002: [DMC #20] Remove DocumentMarker::IsActiveMatch() and SetIsActiveMatch() methods (Closed)
Patch Set: Rebase Created 3 years, 6 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 * (C) 1999 Lars Knoll (knoll@kde.org) 2 * (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Dirk Mueller (mueller@kde.org) 3 * (C) 2000 Dirk Mueller (mueller@kde.org)
4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. 4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
5 * All rights reserved. 5 * All rights 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 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 const ComputedStyle& style, 546 const ComputedStyle& style,
547 const Font& font, 547 const Font& font,
548 bool grammar) const { 548 bool grammar) const {
549 InlineTextBoxPainter(*this).PaintDocumentMarker(pt, box_origin, marker, style, 549 InlineTextBoxPainter(*this).PaintDocumentMarker(pt, box_origin, marker, style,
550 font, grammar); 550 font, grammar);
551 } 551 }
552 552
553 void InlineTextBox::PaintTextMatchMarkerForeground( 553 void InlineTextBox::PaintTextMatchMarkerForeground(
554 const PaintInfo& paint_info, 554 const PaintInfo& paint_info,
555 const LayoutPoint& box_origin, 555 const LayoutPoint& box_origin,
556 const DocumentMarker& marker, 556 const TextMatchMarker& marker,
557 const ComputedStyle& style, 557 const ComputedStyle& style,
558 const Font& font) const { 558 const Font& font) const {
559 InlineTextBoxPainter(*this).PaintTextMatchMarkerForeground( 559 InlineTextBoxPainter(*this).PaintTextMatchMarkerForeground(
560 paint_info, box_origin, marker, style, font); 560 paint_info, box_origin, marker, style, font);
561 } 561 }
562 562
563 void InlineTextBox::PaintTextMatchMarkerBackground( 563 void InlineTextBox::PaintTextMatchMarkerBackground(
564 const PaintInfo& paint_info, 564 const PaintInfo& paint_info,
565 const LayoutPoint& box_origin, 565 const LayoutPoint& box_origin,
566 const DocumentMarker& marker, 566 const TextMatchMarker& marker,
567 const ComputedStyle& style, 567 const ComputedStyle& style,
568 const Font& font) const { 568 const Font& font) const {
569 InlineTextBoxPainter(*this).PaintTextMatchMarkerBackground( 569 InlineTextBoxPainter(*this).PaintTextMatchMarkerBackground(
570 paint_info, box_origin, marker, style, font); 570 paint_info, box_origin, marker, style, font);
571 } 571 }
572 572
573 int InlineTextBox::CaretMinOffset() const { 573 int InlineTextBox::CaretMinOffset() const {
574 return start_; 574 return start_;
575 } 575 }
576 576
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
749 for (; printed_characters < kLayoutObjectCharacterOffset; 749 for (; printed_characters < kLayoutObjectCharacterOffset;
750 printed_characters++) 750 printed_characters++)
751 fputc(' ', stderr); 751 fputc(' ', stderr);
752 fprintf(stderr, "(%d,%d) \"%s\"\n", Start(), Start() + Len(), 752 fprintf(stderr, "(%d,%d) \"%s\"\n", Start(), Start() + Len(),
753 value.Utf8().data()); 753 value.Utf8().data());
754 } 754 }
755 755
756 #endif 756 #endif
757 757
758 } // namespace blink 758 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698