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

Side by Side Diff: Source/core/html/HTMLElement.cpp

Issue 1249553002: CSSValue Immediates: Add move operators to CSSPrimitiveValue (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@cssvalue_patch_3_tagged_ptrs_with_copy_ops_mv_operators_ref_primvalue
Patch Set: Rebase Created 5 years, 4 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
« no previous file with comments | « Source/core/editing/markup.cpp ('k') | Source/core/html/canvas/CanvasFontCache.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2004-2008, 2013, 2014 Apple Inc. All rights reserved. 4 * Copyright (C) 2004-2008, 2013, 2014 Apple Inc. All rights reserved.
5 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 5 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
6 * Copyright (C) 2011 Motorola Mobility. All rights reserved. 6 * Copyright (C) 2011 Motorola Mobility. 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 891 matching lines...) Expand 10 before | Expand all | Expand 10 after
902 902
903 // "transparent" doesn't apply a color either. 903 // "transparent" doesn't apply a color either.
904 if (equalIgnoringCase(colorString, "transparent")) 904 if (equalIgnoringCase(colorString, "transparent"))
905 return; 905 return;
906 906
907 // If the string is a named CSS color or a 3/6-digit hex color, use that. 907 // If the string is a named CSS color or a 3/6-digit hex color, use that.
908 Color parsedColor; 908 Color parsedColor;
909 if (!parsedColor.setFromString(colorString)) 909 if (!parsedColor.setFromString(colorString))
910 parsedColor.setRGB(parseColorStringWithCrazyLegacyRules(colorString)); 910 parsedColor.setRGB(parseColorStringWithCrazyLegacyRules(colorString));
911 911
912 style->setProperty(propertyID, cssValuePool().createColorValue(parsedColor.r gb())); 912 style->setProperty(propertyID, CSSValue(cssValuePool().createColorValue(pars edColor.rgb())));
913 } 913 }
914 914
915 bool HTMLElement::isInteractiveContent() const 915 bool HTMLElement::isInteractiveContent() const
916 { 916 {
917 return false; 917 return false;
918 } 918 }
919 919
920 HTMLMenuElement* HTMLElement::assignedContextMenu() const 920 HTMLMenuElement* HTMLElement::assignedContextMenu() const
921 { 921 {
922 if (HTMLMenuElement* menu = contextMenu()) 922 if (HTMLMenuElement* menu = contextMenu())
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
1016 #ifndef NDEBUG 1016 #ifndef NDEBUG
1017 1017
1018 // For use in the debugger 1018 // For use in the debugger
1019 void dumpInnerHTML(blink::HTMLElement*); 1019 void dumpInnerHTML(blink::HTMLElement*);
1020 1020
1021 void dumpInnerHTML(blink::HTMLElement* element) 1021 void dumpInnerHTML(blink::HTMLElement* element)
1022 { 1022 {
1023 printf("%s\n", element->innerHTML().ascii().data()); 1023 printf("%s\n", element->innerHTML().ascii().data());
1024 } 1024 }
1025 #endif 1025 #endif
OLDNEW
« no previous file with comments | « Source/core/editing/markup.cpp ('k') | Source/core/html/canvas/CanvasFontCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698