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

Side by Side Diff: third_party/WebKit/Source/core/editing/EditingStyle.cpp

Issue 1774943003: blink: Rename platform/ methods to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-platform: rebase-yayyyyyyyy Created 4 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) 2007, 2008, 2009 Apple Computer, Inc. 2 * Copyright (C) 2007, 2008, 2009 Apple Computer, Inc.
3 * Copyright (C) 2010, 2011 Google Inc. All rights reserved. 3 * Copyright (C) 2010, 2011 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 { 503 {
504 if (!m_mutableStyle) 504 if (!m_mutableStyle)
505 m_mutableStyle = MutableStylePropertySet::create(HTMLQuirksMode); 505 m_mutableStyle = MutableStylePropertySet::create(HTMLQuirksMode);
506 506
507 m_mutableStyle->setProperty(propertyID, value, important); 507 m_mutableStyle->setProperty(propertyID, value, important);
508 } 508 }
509 509
510 void EditingStyle::replaceFontSizeByKeywordIfPossible(const ComputedStyle* compu tedStyle, CSSComputedStyleDeclaration* cssComputedStyle) 510 void EditingStyle::replaceFontSizeByKeywordIfPossible(const ComputedStyle* compu tedStyle, CSSComputedStyleDeclaration* cssComputedStyle)
511 { 511 {
512 ASSERT(computedStyle); 512 ASSERT(computedStyle);
513 if (computedStyle->fontDescription().keywordSize()) 513 if (computedStyle->getFontDescription().keywordSize())
514 m_mutableStyle->setProperty(CSSPropertyFontSize, cssComputedStyle->getFo ntSizeCSSValuePreferringKeyword()->cssText()); 514 m_mutableStyle->setProperty(CSSPropertyFontSize, cssComputedStyle->getFo ntSizeCSSValuePreferringKeyword()->cssText());
515 } 515 }
516 516
517 void EditingStyle::extractFontSizeDelta() 517 void EditingStyle::extractFontSizeDelta()
518 { 518 {
519 if (!m_mutableStyle) 519 if (!m_mutableStyle)
520 return; 520 return;
521 521
522 if (m_mutableStyle->getPropertyCSSValue(CSSPropertyFontSize)) { 522 if (m_mutableStyle->getPropertyCSSValue(CSSPropertyFontSize)) {
523 // Explicit font size overrides any delta. 523 // Explicit font size overrides any delta.
(...skipping 1203 matching lines...) Expand 10 before | Expand all | Expand 10 after
1727 { 1727 {
1728 for (Node* ancestor = node; ancestor; ancestor = ancestor->parentNode()) { 1728 for (Node* ancestor = node; ancestor; ancestor = ancestor->parentNode()) {
1729 RefPtrWillBeRawPtr<CSSComputedStyleDeclaration> ancestorStyle = CSSCompu tedStyleDeclaration::create(ancestor); 1729 RefPtrWillBeRawPtr<CSSComputedStyleDeclaration> ancestorStyle = CSSCompu tedStyleDeclaration::create(ancestor);
1730 if (!hasTransparentBackgroundColor(ancestorStyle.get())) 1730 if (!hasTransparentBackgroundColor(ancestorStyle.get()))
1731 return ancestorStyle->getPropertyCSSValue(CSSPropertyBackgroundColor ); 1731 return ancestorStyle->getPropertyCSSValue(CSSPropertyBackgroundColor );
1732 } 1732 }
1733 return nullptr; 1733 return nullptr;
1734 } 1734 }
1735 1735
1736 } // namespace blink 1736 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleChangeReason.h ('k') | third_party/WebKit/Source/core/editing/Editor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698