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

Side by Side Diff: third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp

Issue 1743803002: Rename enums/functions that collide in chromium style in core/style/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@get-names-8
Patch Set: get-names-9: rebase 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
4 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) 4 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com)
5 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) 5 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com)
6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved. 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved.
7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> 8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org>
9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
10 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. 10 * Copyright (c) 2011, Code Aurora Forum. All rights reserved.
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 state.style()->setTextAlign(state.parentStyle()->isLeftToRightDirection( ) ? LEFT : RIGHT); 417 state.style()->setTextAlign(state.parentStyle()->isLeftToRightDirection( ) ? LEFT : RIGHT);
418 else if (state.parentStyle()->textAlign() == TAEND) 418 else if (state.parentStyle()->textAlign() == TAEND)
419 state.style()->setTextAlign(state.parentStyle()->isLeftToRightDirection( ) ? RIGHT : LEFT); 419 state.style()->setTextAlign(state.parentStyle()->isLeftToRightDirection( ) ? RIGHT : LEFT);
420 else 420 else
421 state.style()->setTextAlign(state.parentStyle()->textAlign()); 421 state.style()->setTextAlign(state.parentStyle()->textAlign());
422 } 422 }
423 423
424 void StyleBuilderFunctions::applyInheritCSSPropertyTextIndent(StyleResolverState & state) 424 void StyleBuilderFunctions::applyInheritCSSPropertyTextIndent(StyleResolverState & state)
425 { 425 {
426 state.style()->setTextIndent(state.parentStyle()->textIndent()); 426 state.style()->setTextIndent(state.parentStyle()->textIndent());
427 state.style()->setTextIndentLine(state.parentStyle()->textIndentLine()); 427 state.style()->setTextIndentLine(state.parentStyle()->getTextIndentLine());
428 state.style()->setTextIndentType(state.parentStyle()->textIndentType()); 428 state.style()->setTextIndentType(state.parentStyle()->getTextIndentType());
429 } 429 }
430 430
431 void StyleBuilderFunctions::applyInitialCSSPropertyTextIndent(StyleResolverState & state) 431 void StyleBuilderFunctions::applyInitialCSSPropertyTextIndent(StyleResolverState & state)
432 { 432 {
433 state.style()->setTextIndent(ComputedStyle::initialTextIndent()); 433 state.style()->setTextIndent(ComputedStyle::initialTextIndent());
434 state.style()->setTextIndentLine(ComputedStyle::initialTextIndentLine()); 434 state.style()->setTextIndentLine(ComputedStyle::initialTextIndentLine());
435 state.style()->setTextIndentType(ComputedStyle::initialTextIndentType()); 435 state.style()->setTextIndentType(ComputedStyle::initialTextIndentType());
436 } 436 }
437 437
438 void StyleBuilderFunctions::applyValueCSSPropertyTextIndent(StyleResolverState& state, CSSValue* value) 438 void StyleBuilderFunctions::applyValueCSSPropertyTextIndent(StyleResolverState& state, CSSValue* value)
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 553
554 void StyleBuilderFunctions::applyInitialCSSPropertyWebkitTextEmphasisStyle(Style ResolverState& state) 554 void StyleBuilderFunctions::applyInitialCSSPropertyWebkitTextEmphasisStyle(Style ResolverState& state)
555 { 555 {
556 state.style()->setTextEmphasisFill(ComputedStyle::initialTextEmphasisFill()) ; 556 state.style()->setTextEmphasisFill(ComputedStyle::initialTextEmphasisFill()) ;
557 state.style()->setTextEmphasisMark(ComputedStyle::initialTextEmphasisMark()) ; 557 state.style()->setTextEmphasisMark(ComputedStyle::initialTextEmphasisMark()) ;
558 state.style()->setTextEmphasisCustomMark(ComputedStyle::initialTextEmphasisC ustomMark()); 558 state.style()->setTextEmphasisCustomMark(ComputedStyle::initialTextEmphasisC ustomMark());
559 } 559 }
560 560
561 void StyleBuilderFunctions::applyInheritCSSPropertyWebkitTextEmphasisStyle(Style ResolverState& state) 561 void StyleBuilderFunctions::applyInheritCSSPropertyWebkitTextEmphasisStyle(Style ResolverState& state)
562 { 562 {
563 state.style()->setTextEmphasisFill(state.parentStyle()->textEmphasisFill()); 563 state.style()->setTextEmphasisFill(state.parentStyle()->getTextEmphasisFill( ));
564 state.style()->setTextEmphasisMark(state.parentStyle()->textEmphasisMark()); 564 state.style()->setTextEmphasisMark(state.parentStyle()->getTextEmphasisMark( ));
565 state.style()->setTextEmphasisCustomMark(state.parentStyle()->textEmphasisCu stomMark()); 565 state.style()->setTextEmphasisCustomMark(state.parentStyle()->textEmphasisCu stomMark());
566 } 566 }
567 567
568 void StyleBuilderFunctions::applyValueCSSPropertyWebkitTextEmphasisStyle(StyleRe solverState& state, CSSValue* value) 568 void StyleBuilderFunctions::applyValueCSSPropertyWebkitTextEmphasisStyle(StyleRe solverState& state, CSSValue* value)
569 { 569 {
570 if (value->isValueList()) { 570 if (value->isValueList()) {
571 CSSValueList* list = toCSSValueList(value); 571 CSSValueList* list = toCSSValueList(value);
572 ASSERT(list->length() == 2); 572 ASSERT(list->length() == 2);
573 for (unsigned i = 0; i < 2; ++i) { 573 for (unsigned i = 0; i < 2; ++i) {
574 CSSPrimitiveValue* value = toCSSPrimitiveValue(list->item(i)); 574 CSSPrimitiveValue* value = toCSSPrimitiveValue(list->item(i));
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
842 } 842 }
843 } 843 }
844 844
845 void StyleBuilderFunctions::applyInheritCSSPropertyPosition(StyleResolverState& state) 845 void StyleBuilderFunctions::applyInheritCSSPropertyPosition(StyleResolverState& state)
846 { 846 {
847 if (!state.parentNode()->isDocumentNode()) 847 if (!state.parentNode()->isDocumentNode())
848 state.style()->setPosition(state.parentStyle()->position()); 848 state.style()->setPosition(state.parentStyle()->position());
849 } 849 }
850 850
851 } // namespace blink 851 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp ('k') | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698