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

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.cpp

Issue 2465983002: Rename "paint invalidation rect" etc. to "visual rect". (Closed)
Patch Set: - Created 4 years, 1 month 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) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz> 2 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz>
3 * Copyright (C) 2006 Apple Computer Inc. 3 * Copyright (C) 2006 Apple Computer Inc.
4 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> 4 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org>
5 * Copyright (C) 2008 Rob Buis <buis@kde.org> 5 * Copyright (C) 2008 Rob Buis <buis@kde.org>
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 // FIXME: We need to better handle the case when we compute very small fonts 394 // FIXME: We need to better handle the case when we compute very small fonts
395 // below (below 1pt). 395 // below (below 1pt).
396 fontDescription.setComputedSize(FontSize::getComputedSizeFromSpecifiedSize( 396 fontDescription.setComputedSize(FontSize::getComputedSizeFromSpecifiedSize(
397 &document, scalingFactor, fontDescription.isAbsoluteSize(), 397 &document, scalingFactor, fontDescription.isAbsoluteSize(),
398 fontDescription.specifiedSize(), DoNotUseSmartMinimumForFontSize)); 398 fontDescription.specifiedSize(), DoNotUseSmartMinimumForFontSize));
399 399
400 scaledFont = Font(fontDescription); 400 scaledFont = Font(fontDescription);
401 scaledFont.update(document.styleEngine().fontSelector()); 401 scaledFont.update(document.styleEngine().fontSelector());
402 } 402 }
403 403
404 LayoutRect LayoutSVGInlineText::absoluteClippedOverflowRect() const { 404 LayoutRect LayoutSVGInlineText::absoluteVisualRect() const {
405 return parent()->absoluteClippedOverflowRect(); 405 return parent()->absoluteVisualRect();
406 } 406 }
407 407
408 FloatRect LayoutSVGInlineText::paintInvalidationRectInLocalSVGCoordinates() 408 FloatRect LayoutSVGInlineText::visualRectInLocalSVGCoordinates() const {
409 const { 409 return parent()->visualRectInLocalSVGCoordinates();
410 return parent()->paintInvalidationRectInLocalSVGCoordinates();
411 } 410 }
412 411
413 PassRefPtr<StringImpl> LayoutSVGInlineText::originalText() const { 412 PassRefPtr<StringImpl> LayoutSVGInlineText::originalText() const {
414 RefPtr<StringImpl> result = LayoutText::originalText(); 413 RefPtr<StringImpl> result = LayoutText::originalText();
415 if (!result) 414 if (!result)
416 return nullptr; 415 return nullptr;
417 return normalizeWhitespace(result); 416 return normalizeWhitespace(result);
418 } 417 }
419 418
420 } // namespace blink 419 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698